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 AS col1 FROM tab0
----
12390
224613
5841

query I rowsort
SELECT DISTINCT + - 60 * col2 - - + col2 FROM tab2 AS cor0
----
-1357
-2360
-3422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5623
SELECT - ( 74 ) * + CAST( - col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
1110
6438
7178

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5623
SELECT - ( 74 ) * + CAST ( - col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
1110
6438
7178

query II rowsort
SELECT - 26 AS col1, 36 + - 19 + - + col1 FROM tab0 AS cor0
----
-26
-4
-26
-64
-26
16

onlyif mysql # aggregate syntax: 
query II rowsort label-5625
SELECT - MIN( DISTINCT - col2 ), + 1 AS col2 FROM tab0 AS cor0
----
99
1

skipif mysql # not compatible
query II rowsort label-5625
SELECT - MIN ( DISTINCT - col2 ), + 1 AS col2 FROM tab0 AS cor0
----
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5626
SELECT ALL + CAST( + col2 AS SIGNED ) AS col0, col1 FROM tab2
----
23
51
40
77
58
67

skipif mysql # not compatible
query II rowsort label-5626
SELECT ALL + CAST ( + col2 AS INTEGER ) AS col0, col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT ALL - + 89 * + - col0 + - col0 + col1 FROM tab0 AS cor0
----
1401
7677
8537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5628
SELECT DISTINCT + - 93 DIV COUNT( * ) FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT + - 93 / COUNT ( * ) FROM tab2 AS cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5629
SELECT DISTINCT - CAST( + + col1 AS SIGNED ) * + - 25 FROM tab1 AS cor0
----
1175
125
350

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT - CAST ( + + col1 AS INTEGER ) * + - 25 FROM tab1 AS cor0
----
1175
125
350

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT - - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( + - 83 ) + + + col0 + - 99 AND 75 + - + 57
----
0

skipif mysql # not compatible
query I rowsort label-5630
SELECT - - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( + - 83 ) + + + col0 + - 99 AND 75 + - + 57
----
0

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

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

query I rowsort
SELECT - 70 + - ( 49 ) + - + 21 FROM tab1 AS cor0
----
-140
-140
-140

onlyif mysql # DIV for integer division: 
query I rowsort label-5634
SELECT DISTINCT - - 64 DIV - col1 - + 50 DIV col1 FROM tab0 cor0
----
-114
-5
0

skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT - - 64 / - col1 - + 50 / col1 FROM tab0 cor0
----
-114
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT DISTINCT 99 * - + COUNT( ALL col0 ) AS col0 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT 99 * - + COUNT ( ALL col0 ) AS col0 FROM tab0
----
-297

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

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

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

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

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

query I rowsort
SELECT + col1 * + col1 * + - col0 FROM tab2
----
-119646
-336675
-379456

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

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

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

query I rowsort
SELECT col1 + 45 FROM tab1
----
50
59
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 51 / - 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 - - 34, col1 + + col1 + 32 / col2, + col1 )
----

query I rowsort
SELECT ALL + col2 + - + col2 * + col0 FROM tab1
----
-4800
-4956
-6120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 - + 29 col0 FROM tab2
----
69

query I rowsort
SELECT DISTINCT + 87 + 6 FROM tab0
----
93

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5649
SELECT * FROM tab0 WHERE NULL <= - CAST( NULL AS DECIMAL ) + + + col2 * + col0 * - col1
----

skipif mysql # not compatible
query III rowsort label-5649
SELECT * FROM tab0 WHERE NULL <= - CAST ( NULL AS REAL ) + + + col2 * + col0 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5650
SELECT col1 DIV - col2 - + - 70 + 84 AS col0 FROM tab2
----
152
153
153

skipif mysql # not compatible
query I rowsort label-5650
SELECT col1 / - col2 - + - 70 + 84 AS col0 FROM tab2
----
152
153
153

query I rowsort
SELECT - 75 - + col0 AS col2 FROM tab0
----
-162
-172
-90

query I rowsort
SELECT 42 AS col1 FROM tab2 WHERE NOT - 97 <= - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5653
SELECT - CAST( + + CAST( + col2 AS SIGNED ) AS SIGNED ) * col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-5653
SELECT - CAST ( + + CAST ( + col2 AS INTEGER ) AS INTEGER ) * col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query II rowsort label-5654
SELECT col0 col1, - col2 DIV - 82 - - 86 AS col0 FROM tab2 AS cor0
----
46
86
64
86
75
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5654
SELECT col0 col1, - col2 / - 82 - - 86 AS col0 FROM tab2 AS cor0
----
46
86
64
86
75
86

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 * col2 col0 FROM tab2
----
1081
1880
2726

query I rowsort
SELECT ALL - + 74 * 0 + - ( + col1 ) + + col1 + + col0 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + 54 FROM tab1 AS cor0 WHERE NOT col0 + - + col2 <> NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5661
SELECT DISTINCT - COUNT ( * ) col2, - 79 AS col0 FROM tab1 AS cor0
----
-3
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT ALL - COUNT( + col0 ) + 82 col0 FROM tab1 AS cor0
----
79

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

query I rowsort
SELECT DISTINCT col2 * - col0 - - - ( + col0 ) FROM tab0 AS cor0
----
-720
-957
-9700

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 WHERE NOT - col2 + + 25 = + col0 * - col0 * + 97
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT MIN( DISTINCT + col2 ) * + ( - 57 ) FROM tab0
----
-570

skipif mysql # not compatible
query I rowsort label-5665
SELECT MIN ( DISTINCT + col2 ) * + ( - 57 ) FROM tab0
----
-570

query I rowsort
SELECT ALL + 96 * - ( - col2 ) AS col2 FROM tab0
----
4512
9504
960

query II rowsort
SELECT ALL + col1 * - 96 AS col2, col2 * + + col2 FROM tab0
----
-2016
100
-7776
2209
-96
9801

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 <= - + col2 * col0
----

query I rowsort
SELECT col2 * + ( 1 ) + col0 AS col1 FROM tab0 AS cor0
----
196
62
97

query II rowsort
SELECT ALL 83 AS col1, - col2 AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

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

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

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

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

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

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

query I rowsort
SELECT ALL - col0 - + - 16 FROM tab0 AS cor0
----
-71
-81
1

query I rowsort
SELECT 19 - + 61 AS col2 FROM tab2 AS cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5679
SELECT - - CAST( + 9 AS DECIMAL ) - 39 / - 67 - - col0, - 77 + - col0 FROM tab2 AS cor0 WHERE CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-5679
SELECT - - CAST ( + 9 AS REAL ) - 39 / - 67 - - col0, - 77 + - col0 FROM tab2 AS cor0 WHERE CAST ( col0 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5680
SELECT - 53 - - MIN( + CAST( NULL AS SIGNED ) ) + + AVG ( DISTINCT - + col1 ) * 79 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT - 53 - - MIN ( + CAST ( NULL AS INTEGER ) ) + + AVG ( DISTINCT - + col1 ) * 79 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5681
SELECT - CAST( ( - col0 ) AS SIGNED ) + - - col0 FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-5681
SELECT - CAST ( ( - col0 ) AS INTEGER ) + - - col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT - 85 + + + col0 FROM tab0
----
-70
12
2

query I rowsort
SELECT DISTINCT 73 * + col2 FROM tab2
----
1679
2920
4234

onlyif mysql # DIV for integer division: 
query I rowsort label-5684
SELECT + col1 DIV + 62 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5684
SELECT + col1 / + 62 FROM tab1
----
0
0
0

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

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

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

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL - - COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL - - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5689
SELECT + 81 AS col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
81
NULL
81
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-5689
SELECT + 81 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
81
NULL
81
NULL
81
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5691
SELECT - COUNT( * ) + - 48 / + CAST( NULL AS SIGNED ) - 30 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5691
SELECT - COUNT ( * ) + - 48 / + CAST ( NULL AS INTEGER ) - 30 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 99 + 58 * + 40 - + - 98 + + 8 + + col2 * + col1 AS col2 FROM tab0 AS cor0
----
2426
2537
6134

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

query I rowsort
SELECT ALL 31 + + 14 - - 73 + + 74 * col1 - col0 + + 68 FROM tab0
----
163
1653
6165

query II rowsort
SELECT ALL - 0, ( col2 ) AS col2 FROM tab2
----
0
23
0
40
0
58

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT MIN( + - col2 ) * MAX( - 44 ) FROM tab1
----
4224

skipif mysql # not compatible
query I rowsort label-5698
SELECT MIN ( + - col2 ) * MAX ( - 44 ) FROM tab1
----
4224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5699
SELECT CAST( NULL AS SIGNED ) * - 68 * - ( + SUM( - col1 ) ) FROM tab1
----
NULL

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

query I rowsort
SELECT - col2 * - - 69 FROM tab0 WHERE NULL IS NULL
----
-3243
-6831
-690

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

skipif mysql # not compatible
query II rowsort label-5701
SELECT ALL + + COUNT ( * ) AS col2, - 33 * - 74 FROM tab0 AS cor0
----
3
2442

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5704
SELECT ALL - 14 + COUNT( - col0 ) + 75 * - ( + + CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5704
SELECT ALL - 14 + COUNT ( - col0 ) + 75 * - ( + + CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-5706
SELECT + COUNT ( col2 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL - col0 * - col1 + 57 AS col0 FROM tab1 AS cor0
----
4334
482
771

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5708
SELECT ALL SUM( col1 ) DIV COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
34

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL SUM ( col1 ) / COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5709
SELECT DISTINCT + 36 DIV + + col0 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT + 36 / + + col0 AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5710
SELECT + col0 DIV - 62 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5710
SELECT + col0 / - 62 FROM tab2
----
-1
-1
0

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

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NOT + + 4 IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5713
SELECT ALL + 3 DIV col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL + 3 / col1 AS col1 FROM tab2
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5716
SELECT ALL 23, SUM( col0 ) AS col2 FROM tab0
----
23
199

skipif mysql # not compatible
query II rowsort label-5716
SELECT ALL 23, SUM ( col0 ) AS col2 FROM tab0
----
23
199

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 = NULL
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + ( - + 88 ) + + + 10 = + - col0
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT DISTINCT + COUNT( * ) + + 43 AS col0 FROM tab2 AS cor0 WHERE NOT + ( + + ( col2 ) ) * col0 * 84 IS NOT NULL
----
43

skipif mysql # not compatible
query I rowsort label-5725
SELECT DISTINCT + COUNT ( * ) + + 43 AS col0 FROM tab2 AS cor0 WHERE NOT + ( + + ( col2 ) ) * col0 * 84 IS NOT NULL
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5726
SELECT DISTINCT - col2 * - col1 + + col2 + + - CAST( NULL AS SIGNED ) + - col2 AS col0, 5 FROM tab1
----
NULL
5

skipif mysql # not compatible
query II rowsort label-5726
SELECT DISTINCT - col2 * - col1 + + col2 + + - CAST ( NULL AS INTEGER ) + - col2 AS col0, 5 FROM tab1
----
NULL
5

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

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col1, + 63, 23 )
----

query I rowsort
SELECT + col2 * + - col2 + + col2 AS col0 FROM tab1
----
-3422
-4556
-9120

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT 0 + - MIN( DISTINCT - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5730
SELECT 0 + - MIN ( DISTINCT - col2 ) FROM tab1
----
96

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

skipif mysql # not compatible
query II rowsort label-5731
SELECT DISTINCT - - COUNT ( * ) AS col2, + 5 AS col0 FROM tab1 AS cor0
----
3
5

query I rowsort
SELECT + col2 + + 41 AS col0 FROM tab2 AS cor0
----
64
81
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT - 54 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-5734
SELECT - 54 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-162

query I rowsort
SELECT ALL col0 * - - 74 * + col0 + col1 FROM tab2
----
156635
303181
416317

query I rowsort
SELECT ALL - ( - - col2 ) * col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-5737
SELECT DISTINCT col0 DIV col0 * - - col1 - - col1 FROM tab0 AS cor0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT col0 / col0 * - - col1 - - col1 FROM tab0 AS cor0
----
162
2
42

query II rowsort
SELECT + col0, - ( col0 ) AS col2 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query II rowsort
SELECT DISTINCT - 91 AS col2, 56 * col1 AS col0 FROM tab0 AS cor0
----
-91
1176
-91
4536
-91
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT DISTINCT - + COUNT( * ) * + 68 col0 FROM tab0 AS cor0
----
-204

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

query I rowsort
SELECT DISTINCT - col2 * + 44 AS col1 FROM tab2 AS cor0
----
-1012
-1760
-2552

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

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

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

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

query I rowsort
SELECT DISTINCT + 75 * + col2 FROM tab2
----
1725
3000
4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5745
SELECT - 92 DIV + COUNT( * ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-5745
SELECT - 92 / + COUNT ( * ) FROM tab0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-5746
SELECT DISTINCT col1 DIV 81 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT col1 / 81 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT DISTINCT - MAX( - col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT - MAX ( - col0 ) AS col0 FROM tab0
----
15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 * col2 + col2 <= NULL ) OR NOT + - col2 + - col0 BETWEEN + 20 * - col1 AND NULL
----
97
1
99

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

query I rowsort
SELECT ALL 65 * col2 AS col2 FROM tab0
----
3055
6435
650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5751
SELECT ALL - AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL - AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5753
SELECT ALL + + 25 - + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL + + 25 - + - CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

query I rowsort
SELECT + - 12 + + + col2 FROM tab2 AS cor0
----
11
28
46

query I rowsort
SELECT ALL 67 AS col0 FROM tab2 AS cor0 WHERE + 12 <= NULL
----

query I rowsort
SELECT - + 43 + + + 76 AS col0 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT + col2 * col2 + + 67 AS col0 FROM tab1 AS cor0
----
3548
4691
9283

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

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

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

query II rowsort
SELECT ALL + col1 - 25, + col0 AS col1 FROM tab0
----
-24
97
-4
87
56
15

query I rowsort
SELECT DISTINCT col1 + col0 + + + 19 FROM tab0
----
115
117
127

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 + - col2 col0 FROM tab2
----
-38
-55
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5765
SELECT DISTINCT CAST( - - col0 AS SIGNED ) col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5765
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) col0 FROM tab0
----
15
87
97

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5769
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + 25 DIV + col1 + + - col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-5769
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 25 / + col1 + + - col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

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

skipif mysql # not compatible
query II rowsort label-5770
SELECT ALL - 17 AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT ALL COUNT( * ) * + 79 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL COUNT ( * ) * + 79 FROM tab1 AS cor0
----
237

query I rowsort
SELECT DISTINCT - col2 * + - 4 FROM tab0 AS cor0
----
188
396
40

query I rowsort
SELECT ALL + ( 88 ) AS col0 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT DISTINCT - - col0 * 65 + - col1 AS col0 FROM tab2 WHERE NOT NULL < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT - MAX( - 89 ) AS col0 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-5775
SELECT - MAX ( - 89 ) AS col0 FROM tab0
----
89

query I rowsort
SELECT ALL ( - 94 ) AS col1 FROM tab2
----
-94
-94
-94

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

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

query I rowsort
SELECT 88 * - 29 FROM tab0
----
-2552
-2552
-2552

onlyif mysql # DIV for integer division: 
query I rowsort label-5779
SELECT - col2 DIV + + col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5779
SELECT - col2 / + + col2 FROM tab0
----
-1
-1
-1

query II rowsort
SELECT 16, 18 AS col2 FROM tab2
----
16
18
16
18
16
18

query I rowsort
SELECT ALL col0 * + - col1 AS col2 FROM tab1
----
-425
-4277
-714

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

query I rowsort
SELECT ALL col1 * 89 * - 6 + - 2 AS col1 FROM tab2 AS cor0
----
-27236
-35780
-41120

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

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT CAST ( + col0 AS INTEGER ) / 3 / + + col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ( + + col0 ) + col0 FROM tab1
----
102
170
182

query I rowsort
SELECT ALL - 3 * + + ( + - col1 ) FROM tab2
----
153
201
231

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT DISTINCT + COUNT( * ) col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5787
SELECT DISTINCT + COUNT ( * ) col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

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

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

query I rowsort
SELECT DISTINCT col1 * - + 77 AS col1 FROM tab2 cor0
----
-3927
-5159
-5929

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5791
SELECT ALL - + 17 DIV + + 16 - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL - + 17 / + + 16 - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-5792
SELECT - - col2 DIV + 65 AS col0, + 6 AS col2 FROM tab2 AS cor0
----
0
6
0
6
0
6

skipif mysql # not compatible
query II rowsort label-5792
SELECT - - col2 / + 65 AS col0, + 6 AS col2 FROM tab2 AS cor0
----
0
6
0
6
0
6

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

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

query I rowsort
SELECT DISTINCT - col0 + 93 AS col1 FROM tab1 AS cor0
----
2
42
8

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

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

query I rowsort
SELECT + col0 * + 29 - col2 AS col1 FROM tab1 AS cor0
----
1383
2406
2571

query I rowsort
SELECT + 63 - col2 FROM tab2 AS cor0
----
23
40
5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL < - col0 - + col0
----

query I rowsort
SELECT - col1 * col0 + - ( + col2 ) FROM tab1
----
-4345
-484
-810

query I rowsort
SELECT DISTINCT + col2 * + col0 * - ( col2 ) + - col0 AS col2 FROM tab2
----
-102464
-24380
-252375

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT ALL 62 - MAX( + - 98 ) col1 FROM tab0
----
160

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5802
SELECT ( + + CAST( NULL AS SIGNED ) ) + + MAX( ALL col1 ) + + + 70 - + - MAX( ALL + 34 ) col2 FROM tab2
----
NULL

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

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

query III rowsort
SELECT * FROM tab2 WHERE + 80 + - col2 <> + 42
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 - - 5 FROM tab2
----
56
72
82

query I rowsort
SELECT ALL + 81 - 40 FROM tab2
----
41
41
41

query I rowsort
SELECT - col2 FROM tab0 WHERE - col2 BETWEEN 2 AND - col2
----

query I rowsort
SELECT DISTINCT 35 - + - 90 AS col0 FROM tab1
----
125

query I rowsort
SELECT DISTINCT 9 * + 65 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT + 25 * + - ( + - 76 ) + - COUNT( * ) FROM tab0
----
1897

skipif mysql # not compatible
query I rowsort label-5810
SELECT + 25 * + - ( + - 76 ) + - COUNT ( * ) FROM tab0
----
1897

query I rowsort
SELECT DISTINCT + 81 - - col2 FROM tab0 cor0
----
128
180
91

query I rowsort
SELECT - - col0 * 98 AS col1 FROM tab1 cor0
----
4998
8330
8918

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - + col1 + - 93 + - + 4 IN ( col2 + + 41 ) OR NOT - 76 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 75 AS col2 FROM tab2 cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5817
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT NULL <> CAST( NULL AS SIGNED ) * + col1
----

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT NULL <> CAST ( NULL AS INTEGER ) * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5818
SELECT 50 DIV + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5818
SELECT 50 / + col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5819
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5819
SELECT DISTINCT - CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL

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

query I rowsort
SELECT + 38 * - + col2 AS col1 FROM tab0
----
-1786
-3762
-380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 * - - col0 col1 FROM tab1
----
255
425
455

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT 98 * COUNT( * ) AS col0 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-5824
SELECT 98 * COUNT ( * ) AS col0 FROM tab0
----
294

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5825
SELECT - + MIN ( + col2 ) col1 FROM tab2 AS cor0
----
-23

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5827
SELECT ALL - - CAST( COUNT( DISTINCT - col1 ) AS SIGNED ) + - SUM( DISTINCT - 37 ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL - - CAST ( COUNT ( DISTINCT - col1 ) AS INTEGER ) + - SUM ( DISTINCT - 37 ) FROM tab2 AS cor0
----
40

query I rowsort
SELECT - col0 + + + 7 AS col2 FROM tab0
----
-8
-80
-90

query I rowsort
SELECT + col2 + + + ( - col0 ) AS col0 FROM tab1
----
-23
-26
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5830
SELECT + - CAST( NULL AS SIGNED ) / + - COUNT( * ) + - 80 + - + 73 / 72 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT + - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) + - 80 + - + 73 / 72 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

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

query I rowsort
SELECT + col2 + - 62 AS col2 FROM tab1 AS cor0
----
-3
34
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT + SUM( + 30 ) AS col1 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5833
SELECT + SUM ( + 30 ) AS col1 FROM tab2 AS cor0
----
90

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

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

query I rowsort
SELECT ALL 45 + - - col0 FROM tab2
----
109
120
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 63 + - col1 AS col1, - col1 col2 FROM tab2
----
-14
-77
-4
-67
12
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT SUM( ALL - + 5 ) AS col2 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-5837
SELECT SUM ( ALL - + 5 ) AS col2 FROM tab1
----
-15

query I rowsort
SELECT - 54 * + + 89 - - col2 FROM tab1
----
-4710
-4738
-4747

query I rowsort
SELECT DISTINCT 58 * - col0 - - + col0 - + + col0 + + + col1 * - 66 * - 62 AS col2 FROM tab2
----
206024
269814
311372

onlyif mysql # aggregate syntax: 
query II rowsort label-5840
SELECT + 22 + - + ( - MIN( + 55 ) ) AS col2, - 99 FROM tab0 WHERE + 87 IS NOT NULL
----
77
-99

skipif mysql # not compatible
query II rowsort label-5840
SELECT + 22 + - + ( - MIN ( + 55 ) ) AS col2, - 99 FROM tab0 WHERE + 87 IS NOT NULL
----
77
-99

query I rowsort
SELECT DISTINCT ( - + 96 ) - - col1 FROM tab2
----
-19
-29
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5842
SELECT + 82 DIV - + 82 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5842
SELECT + 82 / - + 82 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT 43 * 6 + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
267

skipif mysql # not compatible
query I rowsort label-5843
SELECT 43 * 6 + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
267

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 / + col0 <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5848
SELECT DISTINCT + 41, CAST( NULL AS DECIMAL ) + - col1 AS col1 FROM tab1 cor0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-5848
SELECT DISTINCT + 41, CAST ( NULL AS REAL ) + - col1 AS col1 FROM tab1 cor0
----
41
NULL

query I rowsort
SELECT DISTINCT + col1 + + + 33 AS col0 FROM tab2 AS cor0
----
100
110
84

query I rowsort
SELECT + 62 * col0 AS col2 FROM tab2
----
2852
3968
4650

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5851
SELECT + COUNT ( * ) * + 60 col2 FROM tab0
----
180

query I rowsort
SELECT + col1 * - 70 AS col1 FROM tab2
----
-3570
-4690
-5390

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + 46 NOT IN ( + + 8 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5855
SELECT + 62 + + 5 AS col2, - CAST( - col1 AS SIGNED ) * 76 FROM tab0
----
67
1596
67
6156
67
76

skipif mysql # not compatible
query II rowsort label-5855
SELECT + 62 + + 5 AS col2, - CAST ( - col1 AS INTEGER ) * 76 FROM tab0
----
67
1596
67
6156
67
76

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

query I rowsort
SELECT - col1 + - 65 AS col1 FROM tab0 AS cor0
----
-146
-66
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT 41 * - + COUNT( * ) FROM tab2, tab2 AS cor0
----
-369

skipif mysql # not compatible
query I rowsort label-5858
SELECT 41 * - + COUNT ( * ) FROM tab2, tab2 AS cor0
----
-369

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT IN ( - 74, 90 + - col1, - col2 - + 49, + col0, - 99, - - col1 * - - 91 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 <= - 88 * + 85 * - col1
----

query I rowsort
SELECT ALL 85 AS col1 FROM tab1 AS cor0 WHERE NOT col2 <= - 16
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 34, 82 col2 FROM tab1 AS cor0
----
-34
82

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

query I rowsort
SELECT + 24 * + 73 - - col0 AS col0 FROM tab1 AS cor0
----
1803
1837
1843

query I rowsort
SELECT ALL 24 * 66 - col2 + + + col2 FROM tab0 AS cor0
----
1584
1584
1584

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * + + col2 * - - col2 / + col1 * - 51 + - col1 * + col1 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - ( col2 ) * - col1 * - - col2 + + 2 FROM tab0
----
178931
2102
9803

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5869
SELECT ALL col2 - - + col0 + + CAST( NULL AS SIGNED ) * - + 91 AS col0, col0 + - ( + ( - col1 ) ) FROM tab2
----
NULL
141
NULL
142
NULL
97

skipif mysql # not compatible
query II rowsort label-5869
SELECT ALL col2 - - + col0 + + CAST ( NULL AS INTEGER ) * - + 91 AS col0, col0 + - ( + ( - col1 ) ) FROM tab2
----
NULL
141
NULL
142
NULL
97

query I rowsort
SELECT ALL + col1 + + col1 + + 14 + - col0 FROM tab2
----
104
70
73

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

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

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

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

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

query I rowsort
SELECT ( + 48 ) * + - 59 FROM tab0 AS cor0
----
-2832
-2832
-2832

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5877
SELECT + CAST( + + ( - - 0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5877
SELECT + CAST ( + + ( - - 0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
0
0

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

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

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

query I rowsort
SELECT ALL + + 34 + - ( - ( 45 ) ) * - + col0 FROM tab1 AS cor0
----
-2261
-3791
-4061

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

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

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT ALL + + COUNT( ALL 79 ) + - + 63 AS col0 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL + + COUNT ( ALL 79 ) + - + 63 AS col0 FROM tab0 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5884
SELECT ALL CAST( - col0 AS SIGNED ) + + + col0 DIV col2 FROM tab2
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL CAST ( - col0 AS INTEGER ) + + + col0 / col2 FROM tab2
----
-44
-63
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5885
SELECT ALL - col0 / + 82 * + col0 * - - col1 / + col1 * + - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL - col0 / + 82 * + col0 * - - col1 / + col1 * + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 34 * - + 70 AS col1 FROM tab0
----
-2380
-2380
-2380

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 12 > - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT - 83 * - 60 + col0 FROM tab1
----
5031
5065
5071

query I rowsort
SELECT DISTINCT col2 + 46 * + col2 FROM tab0
----
2209
4653
470

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = col2 + 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5894
SELECT ALL 83 AS col2 FROM tab0 WHERE 61 - - 5 * - CAST( NULL AS SIGNED ) BETWEEN NULL AND ( 74 )
----

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL 83 AS col2 FROM tab0 WHERE 61 - - 5 * - CAST ( NULL AS INTEGER ) BETWEEN NULL AND ( 74 )
----

query I rowsort
SELECT 43 FROM tab0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 21 col2 FROM tab0
----
1701
21
441

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 / - 81 ) BETWEEN + col1 * - 98 AND - 23
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-5898
SELECT - COUNT ( * ) * SUM ( + col0 ) FROM tab1
----
-681

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT ALL + 0 + 74 * - COUNT( * ) FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL + 0 + 74 * - COUNT ( * ) FROM tab1
----
-222

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

query I rowsort
SELECT 74 FROM tab1 WHERE 26 * + col0 IS NOT NULL
----
74
74
74

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 29 col0 FROM tab0
----
1363
2871
290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5904
SELECT ALL CAST( NULL AS SIGNED ) + CAST( col0 - + col2 AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL CAST ( NULL AS INTEGER ) + CAST ( col0 - + col2 AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT ALL 2 * + col0 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT DISTINCT + COUNT( * ) * + 27 AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT + COUNT ( * ) * + 27 AS col2 FROM tab0
----
81

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + ( - col1 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT + MIN( - 15 ) AS col1 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-5911
SELECT + MIN ( - 15 ) AS col1 FROM tab2
----
-15

query I rowsort
SELECT DISTINCT - 42 * + col2 FROM tab2 WHERE NOT ( col2 + 50 ) <> ( 54 + - 63 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) = + 11
----

query I rowsort
SELECT - 38 FROM tab1 WHERE NULL > 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT ALL 27 + COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL 27 + COUNT ( * ) FROM tab0
----
30

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5917
SELECT + AVG ( DISTINCT + col1 ) col0 FROM tab1 WHERE NOT ( + CAST( col2 AS SIGNED ) - - col0 ) <> NULL
----
NULL

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

query I rowsort
SELECT DISTINCT - col1 + - 59 AS col1 FROM tab1
----
-106
-64
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT DISTINCT - MIN( DISTINCT 74 ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT - MIN ( DISTINCT 74 ) FROM tab2
----
-74

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5922
SELECT DISTINCT - col2 DIV 32 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT - col2 / 32 FROM tab2 AS cor0
----
-1
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5923
SELECT 68 * - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + col1 AS col2 FROM tab1 cor0 WHERE NOT col1 NOT IN ( + col2 + col1 )
----

query I rowsort
SELECT - ( 36 ) * + col2 FROM tab1 AS cor0
----
-2124
-2448
-3456

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT DISTINCT 56 * COUNT( col0 ) FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT 56 * COUNT ( col0 ) FROM tab0 AS cor0
----
168

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 86 + col2 < - 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <= - 95 * - col2
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( 61 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5935
SELECT * FROM tab2 cor0 WHERE NOT ( + col0 ) BETWEEN - CAST( NULL AS SIGNED ) - 36 AND ( + col2 - 33 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5935
SELECT * FROM tab2 cor0 WHERE NOT ( + col0 ) BETWEEN - CAST ( NULL AS INTEGER ) - 36 AND ( + col2 - 33 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query I rowsort
SELECT ALL col1 * - 18 FROM tab0 cor0
----
-1458
-18
-378

query I rowsort
SELECT ALL + + 16 + 16 FROM tab2 AS cor0
----
32
32
32

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5942
SELECT DISTINCT - - col2 DIV 58 + 80 AS col0 FROM tab2 AS cor0
----
80
81

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT - - col2 / 58 + 80 AS col0 FROM tab2 AS cor0
----
80
81

query I rowsort
SELECT ALL + 92 + 46 FROM tab1 AS cor0
----
138
138
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT 35 * COUNT( * ) FROM tab2 cor0
----
105

skipif mysql # not compatible
query I rowsort label-5944
SELECT 35 * COUNT ( * ) FROM tab2 cor0
----
105

query I rowsort
SELECT DISTINCT col1 + - 92 AS col0 FROM tab0
----
-11
-71
-91

query I rowsort
SELECT DISTINCT - 86 AS col2 FROM tab2 WHERE NOT - col1 NOT BETWEEN ( col1 ) AND + col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5948
SELECT - AVG ( DISTINCT col0 ) - CAST( 50 - + 5 AS SIGNED ) AS col1 FROM tab2 WHERE ( 38 ) < ( - col2 * + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5948
SELECT - AVG ( DISTINCT col0 ) - CAST ( 50 - + 5 AS INTEGER ) AS col1 FROM tab2 WHERE ( 38 ) < ( - col2 * + 26 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5949
SELECT 47 DIV + 86 * + ( ( - ( - ( + col0 ) ) ) ) + 71 AS col1 FROM tab2
----
71
71
71

skipif mysql # not compatible
query I rowsort label-5949
SELECT 47 / + 86 * + ( ( - ( - ( + col0 ) ) ) ) + 71 AS col1 FROM tab2
----
71
71
71

query I rowsort
SELECT ALL + col1 * + 31 FROM tab1
----
1457
155
434

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5953
SELECT - 9 DIV 12 - + 66 AS col0 FROM tab2 AS cor0
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-5953
SELECT - 9 / 12 - + 66 AS col0 FROM tab2 AS cor0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT - 83 * + 72 FROM tab1, tab0 AS cor0
----
-5976

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

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

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

query I rowsort
SELECT 25 - + 49 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 68 ) * 15 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT - COUNT( * ) * 70 - + 72 AS col1 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-5960
SELECT - COUNT ( * ) * 70 - + 72 AS col1 FROM tab0
----
-282

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

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

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

query I rowsort
SELECT ALL - + col0 * + 70 + - col1 * + 38 AS col0 FROM tab2 AS cor0
----
-5158
-7406
-7796

query I rowsort
SELECT + col0 * col0 + 91 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2207
4187
5716

query I rowsort
SELECT 78 * + col1 FROM tab0 AS cor0
----
1638
6318
78

query I rowsort
SELECT - col1 * + col1 * - col2 - 78 * + 65 AS col0 FROM tab2 AS cor0
----
232090
255292
54753

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT ALL MAX( + - 59 ) AS col0 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL MAX ( + - 59 ) AS col0 FROM tab0 AS cor0
----
-59

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( col0 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5970
SELECT * FROM tab0 WHERE NOT CAST( - - 61 AS SIGNED ) * col2 - + ( col2 ) * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5970
SELECT * FROM tab0 WHERE NOT CAST ( - - 61 AS INTEGER ) * col2 - + ( col2 ) * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5972
SELECT DISTINCT - CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT ALL + + COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL + + COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT col1 <> - - col2 + 78 * - col0 AND NOT + 44 IS NULL
----

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT + 23 IN ( col2 )
----
-14
-47
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT - - COUNT( * ) FROM tab2 cor0 WHERE NOT 24 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5977
SELECT - - COUNT ( * ) FROM tab2 cor0 WHERE NOT 24 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 1 NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT + 18 AS col1 FROM tab2 WHERE NOT NULL <> 1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 22 * col2 col0 FROM tab0 AS cor0
----
1034
2178
220

query I rowsort
SELECT 88 + 70 AS col1 FROM tab1 AS cor0
----
158
158
158

query I rowsort
SELECT col1 * 21 + + col1 + col1 - col0 * col0 AS col2 FROM tab0 AS cor0
----
-7086
-9386
1638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 41 col2 FROM tab2 cor0 WHERE + 11 BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5985
SELECT DISTINCT 24 DIV - + COUNT( DISTINCT + 25 ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT 24 / - + COUNT ( DISTINCT + 25 ) FROM tab1 AS cor0
----
-24

query I rowsort
SELECT DISTINCT + 75 + - 64 FROM tab0 cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE + col2 + col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 + col1 <> NULL
----
0

query II rowsort
SELECT DISTINCT col2 + col1, col0 AS col0 FROM tab1
----
110
51
115
91
64
85

query I rowsort
SELECT ALL + col0 + 47 * - col1 * + col1 AS col1 FROM tab1
----
-103732
-1090
-9161

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5991
SELECT DISTINCT 0 DIV col0 - - 62 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT 0 / col0 - - 62 FROM tab0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5992
SELECT 24 DIV - - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5992
SELECT 24 / - - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT ( NOT - ( + - col2 ) - - col0 * col2 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT - COUNT( ALL + col1 ) FROM tab1 WHERE ( - col0 >= - + col0 + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5994
SELECT - COUNT ( ALL + col1 ) FROM tab1 WHERE ( - col0 >= - + col0 + + col0 )
----
0

query I rowsort
SELECT ALL - 23 + - + col2 FROM tab0 AS cor0
----
-122
-33
-70

query I rowsort
SELECT 25 - - col2 FROM tab1 AS cor0
----
121
84
93

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5998
SELECT ALL 2 DIV + col0 + + - col1 AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL 2 / + col0 + + - col1 AS col2 FROM tab2
----
-51
-67
-77

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6000
SELECT DISTINCT ( - - COUNT( * ) ) AS col2, 11 DIV - 1 AS col2 FROM tab1 AS cor0
----
3
-11

skipif mysql # not compatible
query II rowsort label-6000
SELECT DISTINCT ( - - COUNT ( * ) ) AS col2, 11 / - 1 AS col2 FROM tab1 AS cor0
----
3
-11

query I rowsort
SELECT DISTINCT + 54 / - 97 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

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

query II rowsort
SELECT - 29 * - 98 AS col0, - col2 FROM tab1 AS cor0
----
2842
-59
2842
-68
2842
-96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col2, col1 col0 FROM tab1
----
-14
14
-47
47
-5
5

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

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

query II rowsort
SELECT col1 AS col2, col2 + - + col1 FROM tab2
----
51
-28
67
-9
77
-37

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

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

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

query I rowsort
SELECT ALL - - ( - 53 ) FROM tab1 AS cor0
----
-53
-53
-53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6014
SELECT ALL col2 * + CAST( NULL AS SIGNED ) * + 34 + - - CAST( - col2 AS SIGNED ) * - 96 / - 94 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6014
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) * + 34 + - - CAST ( - col2 AS INTEGER ) * - 96 / - 94 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT DISTINCT MAX( DISTINCT + 65 ) + - 42 + COUNT( * ) col0 FROM tab2
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6016
SELECT DISTINCT MAX ( DISTINCT + 65 ) + - 42 + COUNT ( * ) col0 FROM tab2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6017
SELECT DISTINCT + 22 DIV + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT + 22 / + col0 FROM tab2
----
0

query I rowsort
SELECT + col0 * 58 AS col1 FROM tab2
----
2668
3712
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 * - col2 + col0 - + - 12 col0 FROM tab1 AS cor0
----
-3797
-4385
-6273

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 37 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT - col0 DIV 32 + + + 91 * + - col1 + - col2 col1 FROM tab2 AS cor0
----
-4665
-6157
-7049

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6021
SELECT - col0 / 32 + + + 91 * + - col1 + - col2 col1 FROM tab2 AS cor0
----
-4665
-6157
-7049

query I rowsort
SELECT ( - - 20 ) FROM tab0 AS cor0
----
20
20
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6023
SELECT ALL - SUM( DISTINCT CAST( NULL AS SIGNED ) ) + - MIN( 33 ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6023
SELECT ALL - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) + - MIN ( 33 ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT - MIN( 82 ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-6024
SELECT - MIN ( 82 ) FROM tab1 AS cor0
----
-82

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

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

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

query I rowsort
SELECT DISTINCT - col1 * col2 + + + col2 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ALL + 17 * - - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL + 17 * - - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-6029
SELECT - 33 DIV + + ( + + 69 ) + + col0 AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6029
SELECT - 33 / + + ( + + 69 ) + + col0 AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL 78 + - col1 * col1 AS col0 FROM tab2
----
-2523
-4411
-5851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6031
SELECT + SUM( ALL + - col1 ) + - CAST( NULL AS SIGNED ) + 73 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT + SUM ( ALL + - col1 ) + - CAST ( NULL AS INTEGER ) + 73 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE 49 IN ( - col1, col2 * col2 ) AND NOT + ( + col0 ) BETWEEN NULL AND - ( + + col2 ) - - 58
----

query I rowsort
SELECT ALL col1 + - + 82 AS col1 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL ( - 63 ) FROM tab2
----
-63
-63
-63

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

query I rowsort
SELECT DISTINCT + col1 * + col0 + - 15 FROM tab0 AS cor0
----
1200
1812
82

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE ( NULL ) <> ( col2 * + + 98 * - - ( - col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE ( NULL ) <> ( col2 * + + 98 * - - ( - col0 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT + SUM( - col0 ) AS col1 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-6040
SELECT + SUM ( - col0 ) AS col1 FROM tab2 cor0
----
-185

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6041
SELECT COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) * + + 3 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6041
SELECT COUNT ( DISTINCT CAST ( NULL AS REAL ) ) * + + 3 AS col2 FROM tab0 AS cor0
----
0

query II rowsort
SELECT + col0, ( + col1 ) * col1 - + 3 AS col1 FROM tab0 AS cor0
----
15
6558
87
438
97
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL - ( + COUNT( DISTINCT 39 ) ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL - ( + COUNT ( DISTINCT 39 ) ) AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 75 BETWEEN + 77 AND ( col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-6044
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 75 BETWEEN + 77 AND ( col1 )
----
-3

query I rowsort
SELECT - col1 * - 16 * - col2 AS col0 FROM tab1 AS cor0
----
-21504
-4720
-51136

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 9 * 91 >= NULL
----

query I rowsort
SELECT ALL - 8 + + + col0 * - - col1 FROM tab1 WHERE NOT 16 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 / + col2 AS col1 FROM tab2 WHERE NOT ( 28 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 6 <= + - ( + - col1 )
----

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE - col0 NOT IN ( - ( col2 ), col1 + 54 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT MAX( DISTINCT - - col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6051
SELECT MAX ( DISTINCT - - col1 ) AS col1 FROM tab1
----
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 > - col0
----

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

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

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

skipif mysql # not compatible
query III rowsort label-6054
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col0 + col1 IN ( col1 + col0 + - CAST ( - col0 AS INTEGER ), + CAST ( NULL AS INTEGER ) * - + 39 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT ALL 8 / - COUNT( * ) * MAX( ALL 11 ) * MIN( DISTINCT + col0 ) AS col2 FROM tab0 cor0 WHERE - col1 * + + col1 IN ( col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort label-6055
SELECT ALL 8 / - COUNT ( * ) * MAX ( ALL 11 ) * MIN ( DISTINCT + col0 ) AS col2 FROM tab0 cor0 WHERE - col1 * + + col1 IN ( col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT DISTINCT - 72 * - COUNT( * ) + + 79 AS col0 FROM tab0 AS cor0
----
295

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT - 72 * - COUNT ( * ) + + 79 AS col0 FROM tab0 AS cor0
----
295

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

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

query II rowsort
SELECT DISTINCT 60 - ( + ( col0 ) ) AS col2, col2 AS col1 FROM tab0
----
-27
10
-37
99
45
47

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

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

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

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

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

query II rowsort
SELECT ALL + 21 * + + col1 - - - col0 + - 13, col1 * col1 AS col0 FROM tab0 AS cor0
----
-89
1
1673
6561
341
441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6064
SELECT col1 / + - 19 col0 FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) NOT IN ( - 56 + + + col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6064
SELECT col1 / + - 19 col0 FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) NOT IN ( - 56 + + + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6065
SELECT - 58 * + COUNT( + - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6065
SELECT - 58 * + COUNT ( + - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT + MIN( + 98 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
98

skipif mysql # not compatible
query I rowsort label-6066
SELECT + MIN ( + 98 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6067
SELECT ALL - - COUNT( * ) + CAST( NULL AS SIGNED ) col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT - - col2 * 78 IS NULL
----
23
40
58

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

query I rowsort
SELECT ALL + ( + 72 ) * + col0 FROM tab0 AS cor0
----
1080
6264
6984

query I rowsort
SELECT - 88 * + col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 55 AND - - col1 + 62 / 6
----

query I rowsort
SELECT DISTINCT + + col0 * 74 AS col2 FROM tab2 AS cor0
----
3404
4736
5550

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

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

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

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

skipif mysql # not compatible
query II rowsort label-6075
SELECT + 88, COUNT ( * ) AS col0 FROM tab0
----
88
3

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

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

query II rowsort
SELECT ALL col2, + 82 FROM tab2
----
23
82
40
82
58
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6078
SELECT + COUNT( * ) AS col2, + 31 * + ( + 90 ) * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-6078
SELECT + COUNT ( * ) AS col2, + 31 * + ( + 90 ) * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 21, 36 col1 FROM tab1 WHERE NOT 25 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6080
SELECT ALL 7, - col1 DIV + + 69 AS col0 FROM tab1
----
7
0
7
0
7
0

skipif mysql # not compatible
query II rowsort label-6080
SELECT ALL 7, - col1 / + + 69 AS col0 FROM tab1
----
7
0
7
0
7
0

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

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

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

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

query II rowsort
SELECT ( + 32 ) AS col2, - 41 + 49 * + - 16 AS col2 FROM tab1
----
32
-825
32
-825
32
-825

query I rowsort
SELECT ALL - + 93 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <> + col0 + + + 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 79 FROM tab2 cor0
----
79
79
79

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6090
SELECT DISTINCT col0 DIV col2 DIV col1 - 98 AS col0 FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT col0 / col2 / col1 - 98 AS col0 FROM tab1
----
-98

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

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

query I rowsort
SELECT + 35 + - - col1 AS col1 FROM tab0
----
116
36
56

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( + ( - col1 ), col1 + ( ( + - col1 ) ), - + 26 + - col0 / - col2 )
----

query I rowsort
SELECT DISTINCT + col2 - + - col0 AS col2 FROM tab0
----
196
62
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT DISTINCT + COUNT( - col0 ) / + SUM( + 84 ) AS col1 FROM tab2 WHERE - 61 * - 8 * + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT + COUNT ( - col0 ) / + SUM ( + 84 ) AS col1 FROM tab2 WHERE - 61 * - 8 * + col0 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6097
SELECT DISTINCT - col0 DIV col0 * col1 - - + col1 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6097
SELECT DISTINCT - col0 / col0 * col1 - - + col1 col2 FROM tab1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6099
SELECT DISTINCT col0 DIV 62 + - + 24 AS col1 FROM tab2 AS cor0
----
-23
-24

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT col0 / 62 + - + 24 AS col1 FROM tab2 AS cor0
----
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6100
SELECT DISTINCT - 63 + - col1 + - 12 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = - col2 + - + col1 + col2 * - ( + - 1 ) + - col1 * + CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT - 63 + - col1 + - 12 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = - col2 + - + col1 + col2 * - ( + - 1 ) + - col1 * + CAST ( col0 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6101
SELECT ALL - CAST( NULL AS SIGNED ) / + CAST( - 93 AS DECIMAL ) * - ( - - MAX( 78 ) ) col1, 59 AS col1 FROM tab1 AS cor0
----
NULL
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6101
SELECT ALL - CAST ( NULL AS INTEGER ) / + CAST ( - 93 AS REAL ) * - ( - - MAX ( 78 ) ) col1, 59 AS col1 FROM tab1 AS cor0
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT SUM( ALL 2 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6102
SELECT SUM ( ALL 2 ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT - - 28 * + + col0 AS col2 FROM tab1 AS cor0
----
1428
2380
2548

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

query I rowsort
SELECT + 41 * - + col1 AS col2 FROM tab1
----
-1927
-205
-574

query II rowsort
SELECT DISTINCT + 75 AS col0, - col0 FROM tab1 cor0 WHERE col2 = + col0
----

query I rowsort
SELECT ALL col0 * + ( + - 49 ) FROM tab0 AS cor0
----
-4263
-4753
-735

query I rowsort
SELECT DISTINCT + 99 * - 25 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-2475

query I rowsort
SELECT + 85 * - 75 AS col0 FROM tab2 AS cor0
----
-6375
-6375
-6375

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) * - 15 * - 49 - - 24 + + col2 col2 FROM tab1 AS cor0
----
43448
50072
70680

query I rowsort
SELECT ALL - + col1 + + - col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT + col0 + + col1 > + 32
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6114
SELECT 56 DIV - 68 * + 22 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6114
SELECT 56 / - 68 * + 22 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 44 * - ( + col1 ) AS col1 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

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

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL - CAST ( NULL AS INTEGER ) + + + 55 * + 50 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6119
SELECT - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6120
SELECT ALL COUNT( DISTINCT - col2 ) DIV - + 38 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL COUNT ( DISTINCT - col2 ) / - + 38 AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 54 * 38 col2 FROM tab2
----
-1975
-1985
-2001

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

skipif mysql # not compatible
query II rowsort label-6122
SELECT DISTINCT - col1 / + 98 AS col1, col2 FROM tab1
----
0
59
0
68
0
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 87 BETWEEN col0 AND col2
----
51
14
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6124
SELECT DISTINCT 65, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
65
-3

skipif mysql # not compatible
query II rowsort label-6124
SELECT DISTINCT 65, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
65
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6125
SELECT + col0 - - CAST( NULL AS DECIMAL ) - + col0 / + col2 / - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT + col0 - - CAST ( NULL AS REAL ) - + col0 / + col2 / - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col0 * ( 54 ) AS col2 FROM tab0
----
-38070
-46980
-518562

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - 33 col1, 96 AS col1 FROM tab0
----
-2871
96
-3201
96
-495
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT DISTINCT MAX( ALL - + 65 ) * + + 32 * + 58 AS col1 FROM tab2 AS cor0
----
-120640

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT MAX ( ALL - + 65 ) * + + 32 * + 58 AS col1 FROM tab2 AS cor0
----
-120640

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

skipif mysql # not compatible
query III rowsort label-6130
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * + ( + col2 ) * - col2 * + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6131
SELECT 12 * - CAST( NULL AS SIGNED ) - 2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT 12 * - CAST ( NULL AS INTEGER ) - 2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query II rowsort label-6132
SELECT + MIN ( - - col2 ) * - 69, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-690
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6133
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + CAST( + col1 AS DECIMAL ) - + col2 >= 63 )
----

skipif mysql # not compatible
query III rowsort label-6133
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + CAST ( + col1 AS REAL ) - + col2 >= 63 )
----

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

skipif mysql # not compatible
query I rowsort label-6134
SELECT - MAX ( - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6136
SELECT COUNT( * ), - 17 col1 FROM tab0
----
3
-17

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < ( - ( - + 64 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6138
SELECT DISTINCT - MAX( + - 97 ) * + 54 AS col2, + COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0
----
5238
1

skipif mysql # not compatible
query II rowsort label-6138
SELECT DISTINCT - MAX ( + - 97 ) * + 54 AS col2, + COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0
----
5238
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1, + 0 + col2 * col0 )
----

query I rowsort
SELECT 43 - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-24
-34
-8

query I rowsort
SELECT DISTINCT + col1 + - - col0 * + col1 * 82 FROM tab0 cor0
----
149835
7955
99711

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

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

query I rowsort
SELECT ( - 82 ) * + 92 AS col2 FROM tab1
----
-7544
-7544
-7544

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 * - col0 col1 FROM tab0
----
-4698
-5238
-810

onlyif mysql # DIV for integer division: 
query II rowsort label-6146
SELECT DISTINCT - col0 * 97 DIV col1 DIV - col2 AS col1, + col2 * + + 79 FROM tab0
----
0
3713
40
790
95
7821

skipif mysql # not compatible
query II rowsort label-6146
SELECT DISTINCT - col0 * 97 / col1 / - col2 AS col1, + col2 * + + 79 FROM tab0
----
0
3713
40
790
95
7821

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6148
SELECT ALL + + 12 * - + SUM( DISTINCT - col1 ) + - + COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL + + 12 * - + SUM ( DISTINCT - col1 ) + - + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 44 + - col0 FROM tab0 AS cor0
----
-131
-141
-59

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

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL - COUNT ( * ) / 60 AS col1 FROM tab0 cor0
----
0

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

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

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT - ( + 33 ) / - col1 - - col1 - + 27 * - ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT - + col2 - + 89 AS col2 FROM tab1 AS cor0
----
-148
-157
-185

query I rowsort
SELECT col1 * - col2 - ( - col0 ) FROM tab0 AS cor0
----
-123
-2
-3792

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

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

query I rowsort
SELECT - 16 + - col0 + - - col2 + + col0 * + col1 FROM tab1 AS cor0
----
383
4238
743

query II rowsort
SELECT ALL 78, 78 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
78
78
78
78
78
78

query I rowsort
SELECT ALL col2 + + col0 - - - 1 FROM tab0 AS cor0
----
195
61
96

query I rowsort
SELECT DISTINCT + - 22 AS col1 FROM tab1 AS cor0
----
-22

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT DISTINCT 36 * - COUNT( * ) FROM tab2 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT 36 * - COUNT ( * ) FROM tab2 cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT - SUM( DISTINCT 31 ) AS col0 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-6164
SELECT - SUM ( DISTINCT 31 ) AS col0 FROM tab2 AS cor0
----
-31

query I rowsort
SELECT - col1 / 82 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6166
SELECT DISTINCT + CAST( - 5 AS SIGNED ) AS col0 FROM tab1 WHERE NULL = col2 * - 96 + - 77 + - col2
----

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT + CAST ( - 5 AS INTEGER ) AS col0 FROM tab1 WHERE NULL = col2 * - 96 + - 77 + - col2
----

query I rowsort
SELECT col2 * col1 FROM tab1 WHERE NOT col2 BETWEEN 95 AND - col1
----
1344
295
3196

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT 7 + COUNT( * ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-6170
SELECT 7 + COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6171
SELECT + - col2 AS col1, col2 * + col1 * - CAST( 53 AS SIGNED ) FROM tab2 AS cor0
----
-23
-62169
-40
-163240
-58
-205958

skipif mysql # not compatible
query II rowsort label-6171
SELECT + - col2 AS col1, col2 * + col1 * - CAST ( 53 AS INTEGER ) FROM tab2 AS cor0
----
-23
-62169
-40
-163240
-58
-205958

query II rowsort
SELECT col2 * - 68 AS col2, col1 AS col1 FROM tab1 AS cor0
----
-4012
5
-4624
47
-6528
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT - COUNT( * ) * + MIN( DISTINCT + + 50 ) AS col0 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-6174
SELECT - COUNT ( * ) * + MIN ( DISTINCT + + 50 ) AS col0 FROM tab2 AS cor0
----
-150

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

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

skipif mysql # not compatible
query I rowsort label-6176
SELECT + - 87 * - CAST ( NULL AS INTEGER ) + + col1 / + 24 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - 40 + + - col1 AS col1 FROM tab1 AS cor0
----
-19
14
42

query I rowsort
SELECT - col0 * 12 + col0 AS col2 FROM tab1 AS cor0
----
-1001
-561
-935

query I rowsort
SELECT DISTINCT + col0 + + - col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT ALL - - col0 + + - col2 + 25 * + ( - 3 ) FROM tab1 AS cor0
----
-120
-49
-52

query I rowsort
SELECT ALL + - 32 + 11 FROM tab1 AS cor0
----
-21
-21
-21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6182
SELECT * FROM tab2 cor0 WHERE col2 < 94 + - CAST( NULL AS SIGNED ) / + - col0
----

skipif mysql # not compatible
query III rowsort label-6182
SELECT * FROM tab2 cor0 WHERE col2 < 94 + - CAST ( NULL AS INTEGER ) / + - col0
----

query I rowsort
SELECT 7 * - - 38 AS col0 FROM tab2
----
266
266
266

query I rowsort
SELECT ALL - - col1 / + col2 - col1 * ( col1 ) FROM tab1 WHERE + col0 BETWEEN col2 AND - - col2
----

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

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT - COUNT( * ) * 14 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-6187
SELECT - COUNT ( * ) * 14 FROM tab2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6188
SELECT + 66 AS col2, - ( CAST( col0 AS SIGNED ) ) AS col0 FROM tab0
----
66
-15
66
-87
66
-97

skipif mysql # not compatible
query II rowsort label-6188
SELECT + 66 AS col2, - ( CAST ( col0 AS INTEGER ) ) AS col0 FROM tab0
----
66
-15
66
-87
66
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-6189
SELECT + col0 DIV 75 * + 1 AS col2, 98 + - col0 FROM tab2
----
0
34
0
52
1
23

skipif mysql # not compatible
query II rowsort label-6189
SELECT + col0 / 75 * + 1 AS col2, 98 + - col0 FROM tab2
----
0
34
0
52
1
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT - SUM( DISTINCT - - 5 ) * - - COUNT( * ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6190
SELECT - SUM ( DISTINCT - - 5 ) * - - COUNT ( * ) FROM tab0
----
-15

query I rowsort
SELECT DISTINCT - - 19 + + 94 AS col0 FROM tab1 AS cor0
----
113

query I rowsort
SELECT ALL + 75 + + col1 FROM tab0 AS cor0
----
156
76
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 33 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6194
SELECT DISTINCT CAST( - col2 AS SIGNED ) + - - col1 * - col2 AS col1, - col1 FROM tab0 cor0
----
-198
-1
-220
-21
-3854
-81

skipif mysql # not compatible
query II rowsort label-6194
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + - - col1 * - col2 AS col1, - col1 FROM tab0 cor0
----
-198
-1
-220
-21
-3854
-81

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

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

query I rowsort
SELECT DISTINCT + 33 * col2 + - + 26 * + col1 FROM tab2 AS cor0
----
-567
-682
172

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

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

query I rowsort
SELECT ALL ( - 18 ) * col2 / - 29 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-6199
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9

query II rowsort
SELECT ALL + col1 - - col2 AS col0, - col0 FROM tab1 cor0
----
110
-51
115
-91
64
-85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= 39
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6203
SELECT ( + ( + + col1 ) ) DIV - ( 61 ) AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6203
SELECT ( + ( + + col1 ) ) / - ( 61 ) AS col0 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6204
SELECT ALL + 94 * + AVG ( + + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL + 94 * + AVG ( + + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6205
SELECT CAST( NULL AS DECIMAL ) / - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6205
SELECT CAST ( NULL AS REAL ) / - col2 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT + COUNT( * ) * + - COUNT( * ) * + 68 * + + 21 AS col0 FROM tab1
----
-12852

skipif mysql # not compatible
query I rowsort label-6207
SELECT + COUNT ( * ) * + - COUNT ( * ) * + 68 * + + 21 AS col0 FROM tab1
----
-12852

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6209
SELECT CAST( 7 AS SIGNED ) * - - col2, 72 + + + 93 + + col1 - + col2 AS col1 FROM tab1
----
413
111
476
144
672
83

skipif mysql # not compatible
query II rowsort label-6209
SELECT CAST ( 7 AS INTEGER ) * - - col2, 72 + + + 93 + + col1 - + col2 AS col1 FROM tab1
----
413
111
476
144
672
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6210
SELECT DISTINCT + 98 DIV + col0 AS col2 FROM tab0
----
1
6

skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT + 98 / + col0 AS col2 FROM tab0
----
1
6

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

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

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

query I rowsort
SELECT + col1 * + 32 * + + col0 AS col0 FROM tab0 AS cor0
----
3104
38880
58464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT + col1 + col1 + - col1 FROM tab0 WHERE NOT - col0 IS NULL
----
1
21
81

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

query II rowsort
SELECT ALL - + col0 + - 77 - + - 38 * + - col0 AS col1, + col2 FROM tab2 AS cor0 WHERE NOT col1 >= - - col0 * - + col0 + - col2
----

query II rowsort
SELECT ALL + + 10 AS col0, 21 FROM tab1 AS cor0
----
10
21
10
21
10
21

query I rowsort
SELECT DISTINCT - 41 * - col0 * - col1 + 47 AS col2 FROM tab0 cor0
----
-3930
-49768
-74860

query I rowsort
SELECT ALL + col0 + + + 42 AS col2 FROM tab0 AS cor0
----
129
139
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 AS cor0 WHERE 5 <> col0
----
1
21
81

query I rowsort
SELECT ALL - 28 + + + col1 FROM tab1
----
-14
-23
19

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

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

query I rowsort
SELECT col2 * - ( + col1 ) + + 5 FROM tab2
----
-1168
-3075
-3881

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 29 >= NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT DISTINCT - + 84 * COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1, col2, 14 * - - col0 * + col2 * + + 83 * col2, + col1 - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT - + 84 * COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1, col2, 14 * - - col0 * + col2 * + + 83 * col2, + col1 - - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT ALL + 39 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL + 39 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
36

query I rowsort
SELECT - + col2 * - 5 FROM tab1 AS cor0
----
295
340
480

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT DISTINCT - 38 + COUNT( * ) FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT - 38 + COUNT ( * ) FROM tab2
----
-35

query I rowsort
SELECT - + 3 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query II rowsort
SELECT DISTINCT col0 * 2 - + 67, + col1 AS col0 FROM tab0
----
-37
81
107
21
127
1

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

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

query II rowsort
SELECT ALL - ( - col1 ) * - col2 AS col2, - col1 FROM tab0 AS cor0
----
-210
-21
-3807
-81
-99
-1

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + 79
----

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 <> + 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6242
SELECT col1 DIV 39 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6242
SELECT col1 / 39 AS col2 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6243
SELECT DISTINCT col2 DIV + col2 AS col1, + 93 AS col1 FROM tab1
----
1
93

skipif mysql # not compatible
query II rowsort label-6243
SELECT DISTINCT col2 / + col2 AS col1, + 93 AS col1 FROM tab1
----
1
93

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT + - col1 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6245
SELECT * FROM tab2 WHERE CAST( NULL AS DECIMAL ) BETWEEN 42 / col0 * + col2 + col2 + + - col0 AND + ( + ( + col1 ) ) AND NULL <= - 11 + - + col0 * - - col0
----

skipif mysql # not compatible
query III rowsort label-6245
SELECT * FROM tab2 WHERE CAST ( NULL AS REAL ) BETWEEN 42 / col0 * + col2 + col2 + + - col0 AND + ( + ( + col1 ) ) AND NULL <= - 11 + - + col0 * - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6246
SELECT ( - col2 ) DIV - + col1 AS col0 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-6246
SELECT ( - col2 ) / - + col1 AS col0 FROM tab1
----
1
11
6

query I rowsort
SELECT DISTINCT - 99 * - 52 * - col1 FROM tab0
----
-108108
-416988
-5148

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6248
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + CAST( NULL AS SIGNED ) <= NULL )
----

skipif mysql # not compatible
query III rowsort label-6248
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + CAST ( NULL AS INTEGER ) <= NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / + col0 <= col1
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6250
SELECT ALL - MIN ( col2 ) col1 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT ALL - + MAX( - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL - + MAX ( - col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT - 2 + 86 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT ALL + col2 * - ( + - 68 ) AS col0 FROM tab0 AS cor0 WHERE NULL > 42 + 33 + + 58
----

query I rowsort
SELECT 46 + col0 FROM tab0 AS cor0
----
133
143
61

query I rowsort
SELECT + - col2 + - - 16 * - col1 * - 79 FROM tab2 AS cor0
----
64441
84630
97288

query I rowsort
SELECT ( - col0 ) + - 35 FROM tab0 AS cor0
----
-122
-132
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT ALL + COUNT( * ) * + - 32 + - - 77 AS col0 FROM tab0 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL + COUNT ( * ) * + - 32 + - - 77 AS col0 FROM tab0 cor0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-6258
SELECT ALL - ( - 80 ) * + 46 + + - 3 - - - col2 DIV - - 23 FROM tab0 AS cor0
----
3673
3675
3677

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL - ( - 80 ) * + 46 + + - 3 - - - col2 / - - 23 FROM tab0 AS cor0
----
3673
3675
3677

query II rowsort
SELECT + col0 AS col0, col2 + + col0 FROM tab1
----
51
147
85
144
91
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6260
SELECT ALL COUNT( + CAST( + col1 AS SIGNED ) ) FROM tab1
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT - COUNT( + - 89 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6261
SELECT - COUNT ( + - 89 ) FROM tab0
----
-3

query I rowsort
SELECT ( - 93 ) * - col0 FROM tab2
----
4278
5952
6975

query II rowsort
SELECT col1, col0 * + 17 AS col2 FROM tab0 WHERE 11 > + col2 + + + 76
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, - col0 * - + col1 + - - col0 FROM tab1
----
-59
510
-68
4368
-96
765

query I rowsort
SELECT ALL col1 + - 70 + - 91 FROM tab0
----
-140
-160
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6266
SELECT ALL 16 AS col2, + MIN( - 50 ) + + COUNT( * ) DIV - - 26 FROM tab2
----
16
-50

skipif mysql # not compatible
query II rowsort label-6266
SELECT ALL 16 AS col2, + MIN ( - 50 ) + + COUNT ( * ) / - - 26 FROM tab2
----
16
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT + MAX( - - 29 ) * - 18 - + 37 * MIN( + 77 ) AS col0 FROM tab1
----
-3371

skipif mysql # not compatible
query I rowsort label-6267
SELECT + MAX ( - - 29 ) * - 18 - + 37 * MIN ( + 77 ) AS col0 FROM tab1
----
-3371

query I rowsort
SELECT DISTINCT 50 * - + 35 * col0 - + col2 AS col0 FROM tab0
----
-152260
-169849
-26297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + 84 col2 FROM tab0
----
-69
13
3

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

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

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

query I rowsort
SELECT ALL + + 84 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

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

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

query II rowsort
SELECT ALL - ( + 86 ) AS col1, - ( col0 ) AS col2 FROM tab0 cor0
----
-86
-15
-86
-87
-86
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT DISTINCT + ( + - MIN( - 42 ) ) * ( + 75 ) AS col1 FROM tab1 AS cor0
----
3150

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT + ( + - MIN ( - 42 ) ) * ( + 75 ) AS col1 FROM tab1 AS cor0
----
3150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6276
SELECT ALL - MIN( - - 81 ) DIV 56 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL - MIN ( - - 81 ) / 56 FROM tab0 AS cor0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT MAX( - col1 ) * - 72 FROM tab1
----
360

skipif mysql # not compatible
query I rowsort label-6279
SELECT MAX ( - col1 ) * - 72 FROM tab1
----
360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6280
SELECT col1, col1 * CAST( - - col2 AS SIGNED ) * col1 AS col0 FROM tab2
----
51
59823
67
260362
77
237160

skipif mysql # not compatible
query II rowsort label-6280
SELECT col1, col1 * CAST ( - - col2 AS INTEGER ) * col1 AS col0 FROM tab2
----
51
59823
67
260362
77
237160

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6281
SELECT * FROM tab0 WHERE NOT CAST( col2 AS SIGNED ) = + ( 74 ) + + - 80 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6281
SELECT * FROM tab0 WHERE NOT CAST ( col2 AS INTEGER ) = + ( 74 ) + + - 80 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col1 * 32 FROM tab2
----
1632
2144
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT ALL - MAX( col1 ) * + - COUNT( * ) AS col0 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL - MAX ( col1 ) * + - COUNT ( * ) AS col0 FROM tab2
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6284
SELECT COUNT( * ) * - COUNT( * ) * + 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-6284
SELECT COUNT ( * ) * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

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

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

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

query II rowsort
SELECT DISTINCT 90 * - 53 + - 86 - - + col2 AS col2, - col2 AS col2 FROM tab2 AS cor0
----
-4798
-58
-4816
-40
-4833
-23

query I rowsort
SELECT - 17 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT ALL + 2 * + col0 AS col1 FROM tab2 cor0
----
128
150
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT DISTINCT - COUNT( DISTINCT + 83 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6291
SELECT DISTINCT - COUNT ( DISTINCT + 83 ) FROM tab0 AS cor0
----
-1

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

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

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

query I rowsort
SELECT - col0 * - + col0 + + 79 AS col1 FROM tab1 AS cor0
----
2680
7304
8360

query I rowsort
SELECT ( - col0 ) * - + 18 * - col2 + + col1 * + 80 + + - 22 AS col1 FROM tab1
----
-107646
-87030
-89892

query II rowsort
SELECT - col1 + - 2 + - 89, + col0 FROM tab0
----
-112
87
-172
15
-92
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 + - - col0 col1 FROM tab0
----
-17
55
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT - COUNT( * ) + MIN( ALL + - col2 ) AS col1 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-6299
SELECT - COUNT ( * ) + MIN ( ALL + - col2 ) AS col1 FROM tab1
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6300
SELECT DISTINCT - col2 - + col2 * + col2 + - col2 DIV + col1 FROM tab1
----
-3551
-4693
-9318

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT - col2 - + col2 * + col2 + - col2 / + col1 FROM tab1
----
-3551
-4693
-9318

query II rowsort
SELECT DISTINCT col2, + 0 AS col0 FROM tab1 WHERE NULL < NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT ALL 90 * - + COUNT( * ) AS col1 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL 90 * - + COUNT ( * ) AS col1 FROM tab2
----
-270

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

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

query I rowsort
SELECT 74 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT DISTINCT COUNT( DISTINCT - 40 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT COUNT ( DISTINCT - 40 ) AS col1 FROM tab1 AS cor0
----
1

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

skipif mysql # not compatible
query I rowsort label-6307
SELECT + - COUNT ( ALL - CAST ( col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 93 / + col0 IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT + 86 + + ( 39 ) AS col2 FROM tab2 AS cor0
----
125

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

query II rowsort
SELECT ALL + col1 * - col2 * 56, col2 AS col1 FROM tab1
----
-16520
59
-178976
68
-75264
96

query I rowsort
SELECT - - 35 + + col0 AS col1 FROM tab2 AS cor0
----
110
81
99

query I rowsort
SELECT - col0 * col0 + col2 FROM tab1 AS cor0
----
-2505
-7166
-8213

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

skipif mysql # not compatible
query I rowsort label-6318
SELECT DISTINCT + col1 / + 99 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT DISTINCT MIN( - col2 ) + + 94 * + + 8 - + 25 FROM tab1 AS cor0
----
631

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT MIN ( - col2 ) + + 94 * + + 8 - + 25 FROM tab1 AS cor0
----
631

query I rowsort
SELECT ALL + + 18 AS col2 FROM tab1 AS cor0
----
18
18
18

query II rowsort
SELECT DISTINCT 29 + col0 * col2 AS col1, - 22 + - + ( + 11 ) FROM tab0 cor0
----
734
-33
899
-33
9632
-33

query I rowsort
SELECT DISTINCT - + col1 * - - col2 + + col1 FROM tab0 AS cor0
----
-189
-3726
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6323
SELECT ALL CAST( - ( col2 ) AS SIGNED ) * - col0 * + col1 AS col2, col1 - + col1 * + + 82 * 53 * + col0 col0 FROM tab2 WHERE - 89 * + col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6323
SELECT ALL CAST ( - ( col2 ) AS INTEGER ) * - col0 * + col1 AS col2, col1 - + col1 * + + 82 * 53 * + col0 col0 FROM tab2 WHERE - 89 * + col1 IS NULL
----

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

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

query I rowsort
SELECT - col2 - + + col0 FROM tab1
----
-144
-147
-159

query II rowsort
SELECT 15 AS col2, - col2 FROM tab2 WHERE NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT col1 - + 18 * - - col0 AS col0 FROM tab0
----
-1545
-1745
-189

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

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

query I rowsort
SELECT 37 - - - 29 FROM tab1
----
8
8
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT - 81 - + COUNT( * ) AS col2 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-6331
SELECT - 81 - + COUNT ( * ) AS col2 FROM tab2
----
-84

query I rowsort
SELECT + col0 * - col0 - 16 FROM tab0
----
-241
-7585
-9425

query I rowsort
SELECT ALL 24 FROM tab1 AS cor0 WHERE ( NULL ) <= - 38
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6335
SELECT 34 DIV 40 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6335
SELECT 34 / 40 AS col1 FROM tab2
----
0
0
0

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

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

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

query II rowsort
SELECT DISTINCT - col1, col1 AS col1 FROM tab0 AS cor0 WHERE - 79 IS NULL
----

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

query I rowsort
SELECT DISTINCT - col0 + 60 + + col2 AS col2 FROM tab1
----
105
34
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT 18 * + + COUNT( * ) col1 FROM tab1
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6342
SELECT 18 * + + COUNT ( * ) col1 FROM tab1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT 80 * COUNT( - col1 ) AS col2 FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-6343
SELECT 80 * COUNT ( - col1 ) AS col2 FROM tab0
----
240

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * - 18 / + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6345
SELECT MIN( + - CAST( NULL AS DECIMAL ) ) + SUM( + 11 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6345
SELECT MIN ( + - CAST ( NULL AS REAL ) ) + SUM ( + 11 ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6346
SELECT + - 53 + + + col1 / CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6346
SELECT + - 53 + + + col1 / CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col2, - col2 + + col1 FROM tab2 AS cor0
----
23
28
40
37
58
9

query II rowsort
SELECT - col1 AS col1, col1 - - col0 FROM tab0 AS cor0
----
-1
98
-21
108
-81
96

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

skipif mysql # not compatible
query II rowsort label-6349
SELECT - + col0 AS col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 99 BETWEEN NULL AND - - 73 * - 93 + - col1 - col2 * - col1 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + + - col1 AS col1 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT ALL + 66 + + + col2 FROM tab1
----
125
134
162

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

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

skipif mysql # not compatible
query I rowsort label-6355
SELECT + CAST ( NULL AS INTEGER ) * - - CAST ( + + COUNT ( * ) AS REAL ) - - - MIN ( - col2 ) FROM tab2
----
NULL

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

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

query I rowsort
SELECT - col1 * 36 * - col2 - - 11 FROM tab2 AS cor0
----
110891
139907
42239

query I rowsort
SELECT + col2 * - col1 + col1 FROM tab1 AS cor0
----
-1330
-290
-3149

onlyif mysql # DIV for integer division: 
query I rowsort label-6359
SELECT + - 4 + + 73 DIV col1 AS col2 FROM tab1 AS cor0
----
-3
1
10

skipif mysql # not compatible
query I rowsort label-6359
SELECT + - 4 + + 73 / col1 AS col2 FROM tab1 AS cor0
----
-3
1
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 95 <= ( - 97 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT - col0 + 97 DIV - col2 AS col1 FROM tab0 AS cor0
----
-17
-96
-97

skipif mysql # not compatible
query I rowsort label-6362
SELECT - col0 + 97 / - col2 AS col1 FROM tab0 AS cor0
----
-17
-96
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) + - 56 col1 FROM tab1 AS cor0
----
-5
29
35

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

query I rowsort
SELECT + col1 + col1 - + - col2 AS col0 FROM tab1 cor0
----
124
162
69

query I rowsort
SELECT + 68 + + col2 FROM tab1 AS cor0
----
127
136
164

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

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

query I rowsort
SELECT 9 + + col1 AS col2 FROM tab1
----
14
23
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6369
SELECT ALL - CAST( NULL AS SIGNED ) DIV - + 77 + - col2, col0 + + 15 DIV - - col2 AS col0 FROM tab0
----
NULL
15
NULL
88
NULL
97

skipif mysql # not compatible
query II rowsort label-6369
SELECT ALL - CAST ( NULL AS INTEGER ) / - + 77 + - col2, col0 + + 15 / - - col2 AS col0 FROM tab0
----
NULL
15
NULL
88
NULL
97

query I rowsort
SELECT DISTINCT - col1 + + 37 + 8 AS col0 FROM tab2
----
-22
-32
-6

query I rowsort
SELECT + - col2 AS col1 FROM tab1 WHERE NOT + col1 * + + 14 IN ( + col2, + col0 * col1, ( - col1 ) )
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6372
SELECT CAST( 14 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

skipif mysql # not compatible
query I rowsort label-6372
SELECT CAST ( 14 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

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

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

query I rowsort
SELECT ALL - col2 * - + 8 AS col2 FROM tab1 AS cor0
----
472
544
768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6376
SELECT DISTINCT + - ( - - 48 ) * CAST( NULL AS SIGNED ) / ( - 15 ) FROM tab0 AS cor0 WHERE NOT ( + 27 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT + - ( - - 48 ) * CAST ( NULL AS INTEGER ) / ( - 15 ) FROM tab0 AS cor0 WHERE NOT ( + 27 ) IS NULL
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT ALL 23 * COUNT( * ) + + - 4 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL 23 * COUNT ( * ) + + - 4 FROM tab2 AS cor0
----
65

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( 90 )
----

query I rowsort
SELECT DISTINCT - ( ( + col2 ) ) FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6384
SELECT col1 * 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-6384
SELECT col1 * CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT - 0 * SUM( ALL col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6385
SELECT - 0 * SUM ( ALL col2 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT COUNT( * ) * - 36 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6386
SELECT COUNT ( * ) * - 36 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT 72 * + col2 AS col0 FROM tab2
----
1656
2880
4176

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT ALL - ( COUNT( * ) ) * 49 FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL - ( COUNT ( * ) ) * 49 FROM tab1
----
-147

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 82 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6393
SELECT MIN( ALL - col0 ) * CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6393
SELECT MIN ( ALL - col0 ) * CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6396
SELECT DISTINCT - CAST ( - CAST ( col0 AS INTEGER ) AS INTEGER ) col1 FROM tab2
----
46
64
75

query I rowsort
SELECT + ( + col1 ) * 5 FROM tab0 AS cor0
----
105
405
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( - ( col0 ) ) AND col0 * 5 - col1
----

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

query I rowsort
SELECT DISTINCT + col2 + col0 * 1 AS col2 FROM tab1 AS cor0
----
144
147
159

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

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

query I rowsort
SELECT 66 + 8 AS col1 FROM tab0
----
74
74
74

query I rowsort
SELECT ( ( + col2 ) ) + + col0 AS col1 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT 97 * COUNT( * ) FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-6405
SELECT 97 * COUNT ( * ) FROM tab2 AS cor0
----
291

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6408
SELECT - - col1 DIV + ( col0 ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6408
SELECT - - col1 / + ( col0 ) FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 78 * + col1 FROM tab2 AS cor0
----
-3978
-5226
-6006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) * - 89 col0 FROM tab2 WHERE NOT + 51 * col0 = ( col1 + ( ( col0 ) ) )
----
4094
5696
6675

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

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL CAST ( NULL AS INTEGER ) / + - COUNT ( DISTINCT - 17 ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6412
SELECT DISTINCT SUM( col1 ) DIV 61 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT SUM ( col1 ) / 61 FROM tab1
----
1

query I rowsort
SELECT col1 * + ( col0 ) AS col2 FROM tab0
----
1215
1827
97

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

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

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

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL SUM ( DISTINCT + + 20 ) FROM tab2
----
20

query I rowsort
SELECT col0 * + col2 * - 90 FROM tab0
----
-63450
-78300
-864270

query I rowsort
SELECT DISTINCT 73 FROM tab2 WHERE NOT - 73 / - col1 IS NOT NULL
----

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

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

query I rowsort
SELECT ( col1 ) FROM tab0 AS cor0 WHERE NOT + 49 / - col0 >= col2
----
1
21
81

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

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT - ( - 72 ) <> col2 / + col2
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6424
SELECT ALL - col1 * + 83 + 30 DIV + col1 AS col2 FROM tab1 AS cor0
----
-1160
-3901
-409

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL - col1 * + 83 + 30 / + col1 AS col2 FROM tab1 AS cor0
----
-1160
-3901
-409

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( 85 ) <= ( 58 * - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE + - col0 IS NULL
----
0

query I rowsort
SELECT + 45 AS col0 FROM tab2 cor0 WHERE NOT NULL > ( - 26 )
----

query I rowsort
SELECT DISTINCT + 13 + col0 FROM tab0 AS cor0
----
100
110
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6432
SELECT 89 AS col1, ( + col1 ) * + CAST( - col1 * col1 AS SIGNED ) + 54 FROM tab2 AS cor0
----
89
-132597
89
-300709
89
-456479

skipif mysql # not compatible
query II rowsort label-6432
SELECT 89 AS col1, ( + col1 ) * + CAST ( - col1 * col1 AS INTEGER ) + 54 FROM tab2 AS cor0
----
89
-132597
89
-300709
89
-456479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6433
SELECT ALL + CAST( + + 36 AS SIGNED ) * - - 21 * - col2 + - col1 FROM tab2 AS cor0
----
-17439
-30317
-43915

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL + CAST ( + + 36 AS INTEGER ) * - - 21 * - col2 + - col1 FROM tab2 AS cor0
----
-17439
-30317
-43915

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT MIN( DISTINCT + ( - 42 ) ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-6434
SELECT MIN ( DISTINCT + ( - 42 ) ) FROM tab0 AS cor0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-6435
SELECT - col1 DIV col0 + col2 * + 17 FROM tab1 AS cor0 WHERE + 70 IS NOT NULL
----
1003
1156
1632

skipif mysql # not compatible
query I rowsort label-6435
SELECT - col1 / col0 + col2 * + 17 FROM tab1 AS cor0 WHERE + 70 IS NOT NULL
----
1003
1156
1632

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6437
SELECT + + 12, col2 * + + col1 + CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
12
1248
12
236
12
3128

skipif mysql # not compatible
query II rowsort label-6437
SELECT + + 12, col2 * + + col1 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
12
1248
12
236
12
3128

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE ( NULL ) NOT IN ( col2 + - 40 - 53 * - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6439
SELECT + ( - col1 ) DIV col1 * col1 + ( 83 ) AS col0 FROM tab2
----
16
32
6

skipif mysql # not compatible
query I rowsort label-6439
SELECT + ( - col1 ) / col1 * col1 + ( 83 ) AS col0 FROM tab2
----
16
32
6

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

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

query I rowsort
SELECT DISTINCT - col0 + + 87 AS col1 FROM tab2
----
12
23
41

query I rowsort
SELECT ( - col0 ) * + col1 + + + 99 * col0 FROM tab1
----
4335
4732
7990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
-3

skipif mysql # not compatible
query I rowsort label-6444
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
-3

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6448
SELECT DISTINCT + CAST( - col0 AS SIGNED ) DIV col2 + - + ( 21 ) * - col0 FROM tab1
----
1071
1784
1910

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) / col2 + - + ( 21 ) * - col0 FROM tab1
----
1071
1784
1910

query I rowsort
SELECT ALL col2 - col1 + + col1 * - 31 FROM tab0
----
-2545
-662
67

query I rowsort
SELECT DISTINCT 71 - 87 FROM tab0 cor0
----
-16

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 19 * col0 IS NULL
----

query I rowsort
SELECT 57 * + - col2 FROM tab1 cor0
----
-3363
-3876
-5472

query I rowsort
SELECT DISTINCT - - col1 * + col0 + - - col2 * col1 AS col1 FROM tab1 AS cor0
----
2058
720
7473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6455
SELECT - CAST( MAX( DISTINCT + col1 ) AS SIGNED ) * 61 FROM tab0 AS cor0
----
-4941

skipif mysql # not compatible
query I rowsort label-6455
SELECT - CAST ( MAX ( DISTINCT + col1 ) AS INTEGER ) * 61 FROM tab0 AS cor0
----
-4941

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

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

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

query II rowsort
SELECT + 12, + ( + col0 ) FROM tab2
----
12
46
12
64
12
75

query I rowsort
SELECT + 33 * - ( - + col2 ) FROM tab2 WHERE NOT ( col2 ) IS NULL
----
1320
1914
759

query II rowsort
SELECT + ( - 37 ) AS col0, col2 * + 89 + + + col2 + + col0 FROM tab0
----
-37
4245
-37
9007
-37
987

onlyif mysql # aggregate syntax: 
query II rowsort label-6461
SELECT DISTINCT 90, COUNT( * ) AS col1 FROM tab0
----
90
3

skipif mysql # not compatible
query II rowsort label-6461
SELECT DISTINCT 90, COUNT ( * ) AS col1 FROM tab0
----
90
3

query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE NOT NULL > ( NULL )
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col0 - 4
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6466
SELECT CAST( NULL AS SIGNED ) AS col1, 91 + - col0 + + + 24 * CAST( NULL AS SIGNED ) * 61 + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6466
SELECT CAST ( NULL AS INTEGER ) AS col1, 91 + - col0 + + + 24 * CAST ( NULL AS INTEGER ) * 61 + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT ALL - 24 * 74 AS col1 FROM tab2
----
-1776
-1776
-1776

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6470
SELECT CAST( 28 AS SIGNED ) AS col2 FROM tab1 cor0 WHERE NOT ( - - col0 ) IN ( col1 * - + col1 - - + 47 - 0 )
----
28
28
28

skipif mysql # not compatible
query I rowsort label-6470
SELECT CAST ( 28 AS INTEGER ) AS col2 FROM tab1 cor0 WHERE NOT ( - - col0 ) IN ( col1 * - + col1 - - + 47 - 0 )
----
28
28
28

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

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

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

query I rowsort
SELECT col0 * col1 * - 21 AS col1 FROM tab2 cor0
----
-103488
-105525
-49266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6474
SELECT + 99 FROM tab0 AS cor0 WHERE NOT - col2 / col2 + + - CAST( CAST( - - col0 AS SIGNED ) AS SIGNED ) IS NULL
----
99
99
99

skipif mysql # not compatible
query I rowsort label-6474
SELECT + 99 FROM tab0 AS cor0 WHERE NOT - col2 / col2 + + - CAST ( CAST ( - - col0 AS INTEGER ) AS INTEGER ) IS NULL
----
99
99
99

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

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

query I rowsort
SELECT DISTINCT col2 * + col2 * - col0 AS col0 FROM tab0
----
-33135
-8700
-950697

query II rowsort
SELECT col1 + col1 AS col1, + 17 FROM tab2
----
102
17
134
17
154
17

query III rowsort
SELECT * FROM tab0 WHERE + 54 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6479
SELECT - CAST( + + 67 AS SIGNED ) + + 90 - - col0 + - + 38 AS col1 FROM tab1 AS cor0
----
36
70
76

skipif mysql # not compatible
query I rowsort label-6479
SELECT - CAST ( + + 67 AS INTEGER ) + + 90 - - col0 + - + 38 AS col1 FROM tab1 AS cor0
----
36
70
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 col0 FROM tab2 AS cor0 WHERE NOT ( 44 <> NULL )
----

query I rowsort
SELECT 1 + + col1 AS col1 FROM tab1 cor0
----
15
48
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 = ( - ( 81 ) ) - 3
----

query II rowsort
SELECT - col0 + - + col2 AS col1, 93 AS col1 FROM tab0 cor0
----
-196
93
-62
93
-97
93

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6485
SELECT + CAST( - + 60 AS SIGNED ) + 20 FROM tab1 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-6485
SELECT + CAST ( - + 60 AS INTEGER ) + 20 FROM tab1 AS cor0
----
-40
-40
-40

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * + 22 IS NULL
----

query I rowsort
SELECT ALL - 57 + - + 10 AS col0 FROM tab0 AS cor0
----
-67
-67
-67

query I rowsort
SELECT ALL + col0 + col0 - + col2 AS col1 FROM tab2 AS cor0
----
69
88
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 83 + + col1 col2, col1 AS col0 FROM tab2 cor0
----
-16
67
-32
51
-6
77

query II rowsort
SELECT ALL + col0 * + + 94 AS col2, - col1 FROM tab1 AS cor0
----
4794
-14
7990
-5
8554
-47

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

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

query I rowsort
SELECT ALL 20 AS col2 FROM tab2 WHERE NOT - ( 22 ) * - col0 / col1 + 55 NOT BETWEEN - col0 * 38 + col1 AND - col1
----

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

query II rowsort
SELECT DISTINCT col2 AS col0, col0 + col1 FROM tab2
----
23
97
40
141
58
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - + 18 col0 FROM tab2
----
64
82
93

onlyif mysql # DIV for integer division: 
query II rowsort label-6496
SELECT col1 col1, + col0 * - - col0 DIV + col0 + - 47 AS col1 FROM tab0
----
1
50
21
40
81
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6496
SELECT col1 col1, + col0 * - - col0 / + col0 + - 47 AS col1 FROM tab0
----
1
50
21
40
81
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-6497
SELECT DISTINCT - col2 DIV - - col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT - col2 / - - col0 FROM tab2 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6499
SELECT ALL CAST( - CAST( - 24 AS SIGNED ) AS SIGNED ) - 34 * + col0 FROM tab2 AS cor0
----
-1540
-2152
-2526

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL CAST ( - CAST ( - 24 AS INTEGER ) AS INTEGER ) - 34 * + col0 FROM tab2 AS cor0
----
-1540
-2152
-2526

query I rowsort
SELECT ALL 55 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # DIV for integer division: 
query II rowsort label-6501
SELECT DISTINCT col2 + - col2 DIV + col0 + - - col0, - 73 AS col2 FROM tab0
----
195
-73
59
-73
97
-73

skipif mysql # not compatible
query II rowsort label-6501
SELECT DISTINCT col2 + - col2 / + col0 + - - col0, - 73 AS col2 FROM tab0
----
195
-73
59
-73
97
-73

query I rowsort
SELECT 44 * - 83 + - + 47 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 06ff9ce15798a19814b7001c4d3afa42

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

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

query I rowsort
SELECT + - 15 * - + 28 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c94863ad19129504220d0f9e9d33832

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

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IN ( col0, col1 + - col0 - - - col2 * + + col1 )
----
59
68
96

query I rowsort
SELECT - col0 * col2 * 97 - - 4 + col1 + + + col0 AS col1 FROM tab2 AS cor0
----
-102525
-248175
-421804

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

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

query I rowsort
SELECT DISTINCT ( - 1 ) * 90 FROM tab1
----
-90

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6511
SELECT ALL - + col0 * + 34 * - - col0 * ( - CAST( col1 AS SIGNED ) ) FROM tab2 AS cor0
----
10723328
12813750
3669144

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL - + col0 * + 34 * - - col0 * ( - CAST ( col1 AS INTEGER ) ) FROM tab2 AS cor0
----
10723328
12813750
3669144

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

query I rowsort
SELECT col2 * - - 0 FROM tab0
----
0
0
0

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

query I rowsort
SELECT DISTINCT - col1 + 8 FROM tab0 cor0
----
-13
-73
7

query I rowsort
SELECT - 97 + 4 * - 2 FROM tab0 AS cor0
----
-105
-105
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT DISTINCT - - ( - 95 ) + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT - - ( - 95 ) + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-98

query I rowsort
SELECT + + col1 + + + 2 + + 84 AS col1 FROM tab2 AS cor0
----
137
153
163

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT ALL - 57 + - COUNT( * ) - - COUNT( * ) * + 62 * + 88 * - MIN( ALL - col0 ) AS col0 FROM tab2
----
1227540

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL - 57 + - COUNT ( * ) - - COUNT ( * ) * + 62 * + 88 * - MIN ( ALL - col0 ) AS col0 FROM tab2
----
1227540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + + col2 col0, col2 AS col0 FROM tab2
----
104
40
133
58
69
23

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

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

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE NOT 18 * col1 <= col2
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6523
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE CAST( - 20 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6523
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE CAST ( - 20 AS INTEGER ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6524
SELECT ALL col2 DIV + - 10 AS col0, + col1 AS col0 FROM tab2
----
-2
51
-4
77
-5
67

skipif mysql # not compatible
query II rowsort label-6524
SELECT ALL col2 / + - 10 AS col0, + col1 AS col0 FROM tab2
----
-2
51
-4
77
-5
67

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6526
SELECT + - CAST( ( COUNT( * ) ) AS SIGNED ) DIV MAX( - + 5 ) - + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6526
SELECT + - CAST ( ( COUNT ( * ) ) AS INTEGER ) / MAX ( - + 5 ) - + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col2 FROM tab2 cor0
----
76
76
76

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT DISTINCT COUNT( * ) + 36 FROM tab2 cor0 WHERE ( NULL ) <= ( + col0 )
----
36

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT COUNT ( * ) + 36 FROM tab2 cor0 WHERE ( NULL ) <= ( + col0 )
----
36

query I rowsort
SELECT + col1 * - 14 FROM tab0 cor0
----
-1134
-14
-294

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

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

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

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

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

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

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

query I rowsort
SELECT - col2 * - col0 * + - col0 AS col2 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + col1 IN ( - - col2 + - 52 )
----
15
87
97

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

query I rowsort
SELECT ALL + 97 * - 32 FROM tab0
----
-3104
-3104
-3104

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

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

query I rowsort
SELECT ALL - + 54 AS col2 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT + 84 + col1 AS col2 FROM tab1
----
131
89
98

query I rowsort
SELECT DISTINCT + 59 AS col0 FROM tab2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6545
SELECT ALL + 97 AS col0 FROM tab1 cor0 WHERE NOT + CAST( - 83 AS SIGNED ) NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL + 97 AS col0 FROM tab1 cor0 WHERE NOT + CAST ( - 83 AS INTEGER ) NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT ALL 11 * - + COUNT( * ) + 2 AS col0 FROM tab2 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL 11 * - + COUNT ( * ) + 2 AS col0 FROM tab2 cor0
----
-31

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT - 62 * CAST( + col1 AS SIGNED ) + 96 + - - col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-6548
SELECT - 62 * CAST ( + col1 AS INTEGER ) + 96 + - - col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + 6 / + - col2 NOT IN ( + 63 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE + - 32 * col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + col1 - - col1 - + col0 * col1 FROM tab0
----
-1053
-1785
-95

query I rowsort
SELECT col0 + + + col2 FROM tab1 AS cor0
----
144
147
159

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

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT MAX ( - 38 ) AS col0 FROM tab1 AS cor0
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query II rowsort
SELECT ALL col2 * 28 AS col2, - col1 AS col0 FROM tab2
----
1120
-77
1624
-67
644
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6556
SELECT - 70 DIV SUM( + col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6556
SELECT - 70 / SUM ( + col0 ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT COUNT( ALL + ( - 85 ) ) col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6557
SELECT COUNT ( ALL + ( - 85 ) ) col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) * + 2 AS col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) * + 2 AS col0 FROM tab0 AS cor0
----
18

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 18 BETWEEN + col2 AND NULL
----
15
81
47
97
1
99

query I rowsort
SELECT 3 * + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1275
12831
2142

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT 55 * - COUNT( * ) FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-6562
SELECT 55 * - COUNT ( * ) FROM tab2
----
-165

query I rowsort
SELECT 45 * - 1 FROM tab0
----
-45
-45
-45

query II rowsort
SELECT - 5 AS col0, - 56 FROM tab1
----
-5
-56
-5
-56
-5
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 52 AS col1, 8 col0 FROM tab1
----
-52
8
-52
8
-52
8

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

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

query I rowsort
SELECT DISTINCT - 77 AS col2 FROM tab1 cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT - + COUNT( * ) + + 49 + - 56 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-122

skipif mysql # not compatible
query I rowsort label-6568
SELECT - + COUNT ( * ) + + 49 + - 56 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-122

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

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

query II rowsort
SELECT ALL - col2 * + col0 + + col2 AS col0, - 68 AS col0 FROM tab2 AS cor0
----
-1035
-68
-2520
-68
-4292
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6571
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + col2 + + + 82 * + 75 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6571
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + col2 + + + 82 * + 75 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT ALL + 91 + SUM( DISTINCT + 46 ) FROM tab1 cor0
----
137

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL + 91 + SUM ( DISTINCT + 46 ) FROM tab1 cor0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT DISTINCT MIN( DISTINCT - + 93 ) + - 94 FROM tab0
----
-187

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT MIN ( DISTINCT - + 93 ) + - 94 FROM tab0
----
-187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - 68 col1 FROM tab1
----
3468
5780
6188

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

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

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

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

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

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

query I rowsort
SELECT ALL - + col1 * + 96 AS col1 FROM tab1 AS cor0
----
-1344
-4512
-480

onlyif mysql # DIV for integer division: 
query I rowsort label-6580
SELECT DISTINCT + 6 DIV - ( + - col2 ) + - 57 + - col1 * + col2 FROM tab2 AS cor0
----
-1230
-3137
-3943

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT + 6 / - ( + - col2 ) + - 57 + - col1 * + col2 FROM tab2 AS cor0
----
-1230
-3137
-3943

query I rowsort
SELECT DISTINCT - - col1 * 13 * + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 > NULL
----

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

query II rowsort
SELECT col2 * - - col0 * col0 + + 83 + + col0 AS col1, col0 AS col2 FROM tab2
----
163987
64
326408
75
48797
46

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

skipif mysql # not compatible
query II rowsort label-6584
SELECT - + COUNT ( * ) AS col1, 28 AS col2 FROM tab1 WHERE col1 + + - 18 IS NOT NULL
----
-3
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + - col0 - col0 AS col1, col2 col0 FROM tab1 WHERE NULL < - - col0
----

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

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

query I rowsort
SELECT ALL - 62 - 43 FROM tab0
----
-105
-105
-105

query II rowsort
SELECT - - 54 * col1, + col1 AS col2 FROM tab0 WHERE NULL < col0
----

query II rowsort
SELECT DISTINCT - col0 - + 23 * - 98 AS col0, + col0 * - - 45 AS col2 FROM tab2
----
2179
3375
2190
2880
2208
2070

query III rowsort
SELECT * FROM tab2 WHERE NOT + 30 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT - ( - - 50 ) AS col0 FROM tab2 AS cor0
----
-50
-50
-50

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

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

query I rowsort
SELECT DISTINCT + 93 FROM tab2, tab2 AS cor0
----
93

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

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

query III rowsort
SELECT DISTINCT col0, - ( + - 61 ) + col1 AS col2, col2 FROM tab0
----
9 values hashing to 19e5b04d31ec0d5a47cccf8acef589a6

query I rowsort
SELECT ALL - col2 * + - col2 * col1 + + - col0 AS col0 FROM tab2 AS cor0
----
123136
225313
26933

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT 93 * - COUNT( 38 ) FROM tab0 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-6599
SELECT 93 * - COUNT ( 38 ) FROM tab0 AS cor0
----
-279

query I rowsort
SELECT DISTINCT 48 * col2 - + 32 FROM tab1 AS cor0
----
2800
3232
4576

query I rowsort
SELECT 8 + + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-433
-6553
7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6603
SELECT ALL + 47 + col2 + - + 64 DIV 71 DIV col2 + + + col1 AS col0 FROM tab2 cor0
----
121
164
172

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL + 47 + col2 + - + 64 / 71 / col2 + + + col1 AS col0 FROM tab2 cor0
----
121
164
172

onlyif mysql # DIV for integer division: 
query I rowsort label-6604
SELECT DISTINCT - 67 DIV col0 + col0 FROM tab1
----
50
85
91

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT - 67 / col0 + col0 FROM tab1
----
50
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6605
SELECT ALL ( + COUNT( * ) ) DIV - COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL ( + COUNT ( * ) ) / - COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
-1

query II rowsort
SELECT ALL 98 * + col2, col0 AS col2 FROM tab2
----
2254
46
3920
64
5684
75

onlyif mysql # DIV for integer division: 
query II rowsort label-6607
SELECT + 4 DIV col0 * - + 1, col1 * + 38 AS col0 FROM tab0
----
0
3078
0
38
0
798

skipif mysql # not compatible
query II rowsort label-6607
SELECT + 4 / col0 * - + 1, col1 * + 38 AS col0 FROM tab0
----
0
3078
0
38
0
798

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6609
SELECT DISTINCT + CAST( 13 AS SIGNED ) AS col1 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT + CAST ( 13 AS INTEGER ) AS col1 FROM tab0
----
13

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

query I rowsort
SELECT ALL - col0 + - + 18 FROM tab2 AS cor0
----
-64
-82
-93

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

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

query I rowsort
SELECT ALL + ( + 74 ) - col0 AS col1 FROM tab1 cor0 WHERE ( NOT 31 NOT IN ( - 77, 34, + col1, + col0, - + 47, + col1 * + - 47 ) )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col1, col1 col2 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6616
SELECT DISTINCT + 56 + CAST( NULL AS SIGNED ) * - - 15, + col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-6616
SELECT DISTINCT + 56 + CAST ( NULL AS INTEGER ) * - - 15, + col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT * FROM tab1 WHERE + 69 < + 70 * + - 31 * - 29 * - 23 * + 39
----

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

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

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

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

query I rowsort
SELECT ALL - + ( 8 ) + - - col0 AS col2 FROM tab2 AS cor0
----
38
56
67

query II rowsort
SELECT DISTINCT + ( 33 ) * 30 AS col1, 3 - + 93 AS col0 FROM tab2 AS cor0
----
990
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT DISTINCT + SUM( ( + 52 ) ) AS col2 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT + SUM ( ( + 52 ) ) AS col2 FROM tab1 AS cor0
----
156

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

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

query I rowsort
SELECT 42 * - col0 - + ( - + col2 ) * - + col1 FROM tab1
----
-3486
-3865
-7018

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6626
SELECT - CAST( - + col0 AS SIGNED ) - 44 AS col2 FROM tab2
----
2
20
31

skipif mysql # not compatible
query I rowsort label-6626
SELECT - CAST ( - + col0 AS INTEGER ) - 44 AS col2 FROM tab2
----
2
20
31

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

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

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

query I rowsort
SELECT ALL - - 35 AS col2 FROM tab2 AS cor0
----
35
35
35

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6632
SELECT + 17 * - COUNT ( * ) * COUNT ( * ) * + ( COUNT ( CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6633
SELECT DISTINCT 22 DIV 93 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT 22 / 93 FROM tab1 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6635
SELECT DISTINCT - - MIN( ALL + ( + - col1 ) ) AS col0, 75 AS col1 FROM tab0 AS cor0
----
-81
75

skipif mysql # not compatible
query II rowsort label-6635
SELECT DISTINCT - - MIN ( ALL + ( + - col1 ) ) AS col0, 75 AS col1 FROM tab0 AS cor0
----
-81
75

query I rowsort
SELECT DISTINCT + 76 + + col1 FROM tab0 AS cor0
----
157
77
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT + MAX( ALL col2 ) * + 40 AS col1 FROM tab2 AS cor0
----
2320

skipif mysql # not compatible
query I rowsort label-6637
SELECT + MAX ( ALL col2 ) * + 40 AS col1 FROM tab2 AS cor0
----
2320

query I rowsort
SELECT ALL - 12 * - 71 FROM tab1
----
852
852
852

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT DISTINCT + 79 * - + COUNT( * ) AS col2 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT + 79 * - + COUNT ( * ) AS col2 FROM tab0
----
-237

query I rowsort
SELECT - ( - ( col1 ) ) FROM tab1 WHERE col0 * + 46 = ( NULL )
----

query II rowsort
SELECT col2 + col2, + 64 AS col1 FROM tab0
----
198
64
20
64
94
64

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

query I rowsort
SELECT + 28 + - 7 FROM tab2
----
21
21
21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT DISTINCT MIN( ALL + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT MIN ( ALL + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL col0 + - col0 * 17 + - col1 FROM tab2 AS cor0
----
-1101
-1267
-787

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT MAX( DISTINCT + 21 ) * - 28 AS col0 FROM tab2
----
-588

skipif mysql # not compatible
query I rowsort label-6648
SELECT MAX ( DISTINCT + 21 ) * - 28 AS col0 FROM tab2
----
-588

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

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

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

query I rowsort
SELECT + col0 * 67 + + - col0 + 4 AS col1 FROM tab2 AS cor0
----
3040
4228
4954

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT + 23 + + - COUNT( * ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-6652
SELECT + 23 + + - COUNT ( * ) FROM tab0 AS cor0
----
20

query I rowsort
SELECT - - 78 * - + 96 + - + ( - - 21 ) FROM tab1 AS cor0
----
-7509
-7509
-7509

onlyif mysql # aggregate syntax: 
query II rowsort label-6654
SELECT - SUM( DISTINCT - + col2 ), 82 - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
156
85

skipif mysql # not compatible
query II rowsort label-6654
SELECT - SUM ( DISTINCT - + col2 ), 82 - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
156
85

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

query I rowsort
SELECT DISTINCT + - 56 AS col2 FROM tab1 AS cor0 WHERE NOT 67 <= NULL
----

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

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

query I rowsort
SELECT + col2 * + col1 AS col2 FROM tab0 WHERE NOT + 24 NOT BETWEEN ( - col1 * col0 * - col1 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT ALL + MIN( ALL - col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL + MIN ( ALL - col0 ) AS col1 FROM tab0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6660
SELECT ALL + 53 * CAST( + - COUNT( * ) AS SIGNED ) * + COUNT( - CAST( - 99 AS SIGNED ) ) col1 FROM tab1
----
-477

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6660
SELECT ALL + 53 * CAST ( + - COUNT ( * ) AS INTEGER ) * + COUNT ( - CAST ( - 99 AS INTEGER ) ) col1 FROM tab1
----
-477

query II rowsort
SELECT DISTINCT 14 AS col2, + ( + col1 ) FROM tab0
----
14
1
14
21
14
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT MAX( - + 22 ) AS col2 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-6662
SELECT MAX ( - + 22 ) AS col2 FROM tab2
----
-22

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( - + 45 ) * col0 FROM tab2 AS cor0
----
-2070
-2880
-3375

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

query I rowsort
SELECT - + 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 25 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6670
SELECT DISTINCT - 91 * - CAST( ( - + col1 ) AS SIGNED ) AS col2, - col1 - col0 FROM tab1 AS cor0
----
-1274
-65
-4277
-138
-455
-90

skipif mysql # not compatible
query II rowsort label-6670
SELECT DISTINCT - 91 * - CAST ( ( - + col1 ) AS INTEGER ) AS col2, - col1 - col0 FROM tab1 AS cor0
----
-1274
-65
-4277
-138
-455
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT COUNT( * ) + - + ( + MAX( DISTINCT + col0 ) ) * - COUNT( * ) FROM tab0 cor0
----
294

skipif mysql # not compatible
query I rowsort label-6671
SELECT COUNT ( * ) + - + ( + MAX ( DISTINCT + col0 ) ) * - COUNT ( * ) FROM tab0 cor0
----
294

query I rowsort
SELECT + 82 * - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-4205
-5552
-6354

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT - - SUM( + + col1 ) * - 3 + + - COUNT( * ) - - + 57 FROM tab2 AS cor0
----
-531

skipif mysql # not compatible
query I rowsort label-6675
SELECT - - SUM ( + + col1 ) * - 3 + + - COUNT ( * ) - - + 57 FROM tab2 AS cor0
----
-531

query I rowsort
SELECT DISTINCT - col2 * - + col0 + + - ( 97 ) FROM tab1 AS cor0
----
4799
4918
6091

query III rowsort
SELECT * FROM tab0 WHERE + ( + 83 ) * 45 + + + 46 * + - ( + 84 ) * col1 + - col1 BETWEEN NULL AND col1
----

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

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL - COUNT ( + col0 ) / - MIN ( - 76 ) AS col1 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < ( col2 + col1 )
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - + col2 + 54 / - + 3 * + - 1, col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 - - 50 - - 95 + - + col1 col0 FROM tab0
----
121
181
201

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT - MAX( DISTINCT + 97 ) * + - SUM( ALL - 25 ) AS col1 FROM tab2
----
-7275

skipif mysql # not compatible
query I rowsort label-6684
SELECT - MAX ( DISTINCT + 97 ) * + - SUM ( ALL - 25 ) AS col1 FROM tab2
----
-7275

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6685
SELECT DISTINCT + MAX( + + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6686
SELECT DISTINCT + col0 + col1 DIV + col1 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT + col0 + col1 / + col1 FROM tab1
----
52
86
92

query II rowsort
SELECT DISTINCT + 11, col0 FROM tab0 AS cor0
----
11
15
11
87
11
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6688
SELECT ALL ( - 89 ) col2, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-89
NULL
-89
NULL
-89
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6688
SELECT ALL ( - 89 ) col2, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-89
NULL
-89
NULL
-89
NULL

query I rowsort
SELECT DISTINCT - ( col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

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

query II rowsort
SELECT 22, - col2 AS col1 FROM tab0 AS cor0
----
22
-10
22
-47
22
-99

query II rowsort
SELECT DISTINCT col2, col0 * - + col1 FROM tab2 AS cor0
----
23
-2346
40
-4928
58
-5025

query I rowsort
SELECT + col1 * - 56 AS col0 FROM tab2
----
-2856
-3752
-4312

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6694
SELECT ALL CAST( + CAST( - 50 AS DECIMAL ) AS SIGNED ) col0 FROM tab1
----
-50
-50
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6694
SELECT ALL CAST ( + CAST ( - 50 AS REAL ) AS INTEGER ) col0 FROM tab1
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT ALL SUM( ALL - 32 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL SUM ( ALL - 32 ) FROM tab0
----
-96

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6697
SELECT DISTINCT - col0 DIV + + 79, col0 FROM tab0
----
-1
87
-1
97
0
15

skipif mysql # not compatible
query II rowsort label-6697
SELECT DISTINCT - col0 / + + 79, col0 FROM tab0
----
-1
87
-1
97
0
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT + COUNT( * ) * + 92 * + 65 AS col1 FROM tab0
----
17940

skipif mysql # not compatible
query I rowsort label-6698
SELECT + COUNT ( * ) * + 92 * + 65 AS col1 FROM tab0
----
17940

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6700
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * 72 * + - 78 - + CAST( NULL AS SIGNED ) - 76 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6700
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * 72 * + - 78 - + CAST ( NULL AS INTEGER ) - 76 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 70 AS col0 FROM tab0 cor0
----
70
70
70

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

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

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

skipif mysql # not compatible
query I rowsort label-6703
SELECT + COUNT ( * ) / COUNT ( - 37 ) FROM tab2
----
1

query I rowsort
SELECT ALL + - 62 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT ALL - + 97 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query II rowsort
SELECT + col2, - col1 + col2 FROM tab0 AS cor0
----
10
-11
47
-34
99
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 97 col1 FROM tab0 cor0
----
-16
-76
-96

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

query I rowsort
SELECT - 56 + 18 * col1 AS col1 FROM tab2
----
1150
1330
862

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 >= + 24 + + col2
----
75
67
58

query I rowsort
SELECT - - 47 * - + 94 + + col2 FROM tab1 AS cor0
----
-4322
-4350
-4359

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 67 * + ( + 61 ) col1 FROM tab0 AS cor0
----
-4087
-4087
-4087

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

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

query I rowsort
SELECT - 57 * + col1 * - 87 AS col1 FROM tab0 AS cor0
----
104139
401679
4959

query II rowsort
SELECT DISTINCT - col2 * + 94 * + + col0 AS col1, - col2 AS col0 FROM tab2 AS cor0
----
-240640
-40
-408900
-58
-99452
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT DISTINCT - 97 DIV - + ( 64 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT - 97 / - + ( 64 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT ALL + 47 * - - 86 * MAX( - col1 ) FROM tab2 AS cor0
----
-206142

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL + 47 * - - 86 * MAX ( - col1 ) FROM tab2 AS cor0
----
-206142

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT + ( + SUM( DISTINCT - 23 ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6721
SELECT + ( + SUM ( DISTINCT - 23 ) ) FROM tab2 AS cor0
----
-23

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

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

query I rowsort
SELECT - 84 * - + col1 - - col2 FROM tab0 WHERE NOT col1 BETWEEN - 45 AND NULL
----

query I rowsort
SELECT DISTINCT - 90 * - col0 * - col2 AS col0 FROM tab0
----
-63450
-78300
-864270

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + col1 ) - + + 42 IS NULL
----

query II rowsort
SELECT ALL - - col0, col1 * - col2 FROM tab1 WHERE NOT col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6729
SELECT - 64 AS col2, COUNT( DISTINCT col2 ) + 91 - - COUNT( * ) AS col0 FROM tab2
----
-64
97

skipif mysql # not compatible
query II rowsort label-6729
SELECT - 64 AS col2, COUNT ( DISTINCT col2 ) + 91 - - COUNT ( * ) AS col0 FROM tab2
----
-64
97

query I rowsort
SELECT + 19 * - - 62 + + col1 AS col0 FROM tab1 AS cor0
----
1183
1192
1225

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

query I rowsort
SELECT 73 * + col1 + + col2 AS col2 FROM tab1 AS cor0
----
1118
3499
424

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

query I rowsort
SELECT + col0 + + 2 * - col1 AS col2 FROM tab0
----
-147
45
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6735
SELECT DISTINCT - COUNT( * ) + + SUM( + 8 ) AS col0, AVG ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
63
NULL

skipif mysql # not compatible
query II rowsort label-6735
SELECT DISTINCT - COUNT ( * ) + + SUM ( + 8 ) AS col0, AVG ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT + 73 + + + COUNT( ALL - col2 ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-6736
SELECT + 73 + + + COUNT ( ALL - col2 ) FROM tab2 AS cor0
----
76

query I rowsort
SELECT - col2 + col0 * - + col0 FROM tab0 AS cor0
----
-272
-7579
-9508

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + + 18 ) col0, col0 * + ( ( ( + col1 ) ) ) AS col2 FROM tab2 AS cor0
----
18
2346
18
4928
18
5025

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

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NULL <> - 56
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6742
SELECT + 63 * col1 DIV + + col1 AS col0 FROM tab2 AS cor0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-6742
SELECT + 63 * col1 / + + col1 AS col0 FROM tab2 AS cor0
----
63
63
63

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

skipif mysql # not compatible
query I rowsort label-6743
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE - 16 - - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - col0 - col1 * - col1 FROM tab0 cor0
----
3
364
6593

query I rowsort
SELECT ALL + + col1 + col2 * col1 AS col2 FROM tab0 AS cor0
----
100
231
3888

query I rowsort
SELECT ALL + 34 * + 61 + + col0 AS col0 FROM tab1 AS cor0
----
2125
2159
2165

query I rowsort
SELECT DISTINCT - col1 - - 31 FROM tab1
----
-16
17
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT COUNT( * ) - 51 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-6748
SELECT COUNT ( * ) - 51 FROM tab1
----
-48

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

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

query I rowsort
SELECT 47 + - - 82 FROM tab0 cor0
----
129
129
129

onlyif mysql # DIV for integer division: 
query I rowsort label-6751
SELECT DISTINCT - col1 * 22 DIV + col0 FROM tab2
----
-19
-24
-26

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT - col1 * 22 / + col0 FROM tab2
----
-19
-24
-26

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

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

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

query I rowsort
SELECT 36 FROM tab0 cor0 WHERE NOT 9 * - - 24 * col2 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6756
SELECT CAST( - 6 AS SIGNED ) * - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - 83 IS NULL
----
-126
-486
-6

skipif mysql # not compatible
query I rowsort label-6756
SELECT CAST ( - 6 AS INTEGER ) * - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - 83 IS NULL
----
-126
-486
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6757
SELECT DISTINCT + CAST( 6 AS SIGNED ), + col1 AS col0 FROM tab1 AS cor0
----
6
14
6
47
6
5

skipif mysql # not compatible
query II rowsort label-6757
SELECT DISTINCT + CAST ( 6 AS INTEGER ), + col1 AS col0 FROM tab1 AS cor0
----
6
14
6
47
6
5

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

query I rowsort
SELECT 94 * + col0 FROM tab1
----
4794
7990
8554

onlyif mysql # aggregate syntax: 
query II rowsort label-6760
SELECT DISTINCT - 38, 13 * - MAX( - 28 ) * + MAX( + + col2 ) AS col1 FROM tab1
----
-38
34944

skipif mysql # not compatible
query II rowsort label-6760
SELECT DISTINCT - 38, 13 * - MAX ( - 28 ) * + MAX ( + + col2 ) AS col1 FROM tab1
----
-38
34944

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

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

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

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

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

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

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

query I rowsort
SELECT 25 * + col0 AS col1 FROM tab0 WHERE NOT - col2 <> - + col1 + - 25 / + 53
----

query I rowsort
SELECT DISTINCT col0 * 77 FROM tab0 AS cor0
----
1155
6699
7469

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

query I rowsort
SELECT DISTINCT - 18 * + col1 FROM tab0
----
-1458
-18
-378

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6770
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 97 <= - col1 AND col2 >= col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6770
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 97 <= - col1 AND col2 >= col2 * CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT - + col0 * col2 + + col1 + + col0 AS col2 FROM tab2 AS cor0
----
-2419
-4208
-961

query I rowsort
SELECT col0 + + col1 + - ( - + 76 ) * - col0 FROM tab1 AS cor0
----
-3811
-6370
-6778

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT DISTINCT - + 21 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT - + 21 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT DISTINCT 8 + + SUM( + col2 ) AS col2 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT 8 + + SUM ( + col2 ) AS col2 FROM tab1 AS cor0
----
231

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

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

query I rowsort
SELECT + - 16 FROM tab1 WHERE - col1 <= col0
----
-16
-16
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-6778
SELECT + col2 * - ( + 40 ) + + 0 DIV col2 AS col0 FROM tab1
----
-2360
-2720
-3840

skipif mysql # not compatible
query I rowsort label-6778
SELECT + col2 * - ( + 40 ) + + 0 / col2 AS col0 FROM tab1
----
-2360
-2720
-3840

onlyif mysql # DIV for integer division: 
query I rowsort label-6779
SELECT - col1 DIV - + col0 + + + 47 FROM tab0
----
47
47
52

skipif mysql # not compatible
query I rowsort label-6779
SELECT - col1 / - + col0 + + + 47 FROM tab0
----
47
47
52

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NULL IS NULL OR NOT ( NULL ) >= NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col2 * - - 52 col0 FROM tab1
----
-3063
-3489
-4978

query I rowsort
SELECT DISTINCT + col2 + + 38 AS col2 FROM tab0 WHERE NOT ( NOT ( NOT - 11 <= NULL ) )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6784
SELECT DISTINCT + - 81 DIV - + 39 + + + 56 FROM tab0 WHERE NULL IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT + - 81 / - + 39 + + + 56 FROM tab0 WHERE NULL IS NULL
----
58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6785
SELECT - COUNT ( * ) * - 69, + COUNT ( * ) col0 FROM tab1 AS cor0
----
207
3

query I rowsort
SELECT DISTINCT - 82 + + 21 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

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

query II rowsort
SELECT col2, + col0 + 8 + + + col1 AS col2 FROM tab0 AS cor0
----
10
116
47
104
99
106

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6793
SELECT + + col2 DIV - col1 * + 1 FROM tab2 WHERE NOT + col2 * - 76 > + col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6793
SELECT + + col2 / - col1 * + 1 FROM tab2 WHERE NOT + col2 * - 76 > + col2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6794
SELECT DISTINCT 55 DIV col0 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT 55 / col0 FROM tab0
----
0
3

query I rowsort
SELECT ALL col2 * - + col2 * - col1 * - col1 FROM tab2
----
-1375929
-15100996
-9486400

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6798
SELECT DISTINCT 55 + + ( MAX( DISTINCT - col0 ) ) DIV - 68 + + - COUNT( * ) FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT 55 + + ( MAX ( DISTINCT - col0 ) ) / - 68 + + - COUNT ( * ) FROM tab1 AS cor0
----
52

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

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

query I rowsort
SELECT col1 + ( + - 96 ) AS col2 FROM tab2
----
-19
-29
-45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 83 + col2 + - + 84 IS NOT NULL
----

query I rowsort
SELECT - 19 * 9 + 59 FROM tab2
----
-112
-112
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT - - 43 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-6803
SELECT - - 43 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
129

query II rowsort
SELECT ALL - 74 + - col0 + + + col1 AS col0, 15 * + - col1 FROM tab1 AS cor0
----
-111
-210
-118
-705
-154
-75

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

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

query I rowsort
SELECT + ( + 17 ) FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT DISTINCT + col2 * - 75 * + col2 - + col1 FROM tab1
----
-261080
-346847
-691214

query I rowsort
SELECT ALL + col2 + + + 36 + - col0 AS col2 FROM tab1
----
10
13
81

query I rowsort
SELECT col2 - + + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 - + 36 * - col0 FROM tab0
----
3142
3591
587

query I rowsort
SELECT col1 * + 22 FROM tab0
----
1782
22
462

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 80 * - col1 BETWEEN col0 * - 85 AND 73
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6815
SELECT DISTINCT 45 AS col1, COUNT( * ) * COUNT( * ) * 65 AS col0 FROM tab1 AS cor0
----
45
585

skipif mysql # not compatible
query II rowsort label-6815
SELECT DISTINCT 45 AS col1, COUNT ( * ) * COUNT ( * ) * 65 AS col0 FROM tab1 AS cor0
----
45
585

query II rowsort
SELECT - col0, 20 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT COUNT( * ) * + 19 AS col1 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6818
SELECT COUNT ( * ) * + 19 AS col1 FROM tab0 AS cor0
----
57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT DISTINCT + AVG ( - ( - col2 ) ) + - COUNT( - + col1 ) col1 FROM tab2 WHERE NOT + + 34 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6820
SELECT DISTINCT + AVG ( - ( - col2 ) ) + - COUNT ( - + col1 ) col1 FROM tab2 WHERE NOT + + 34 IS NOT NULL
----
NULL

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 66 * - + ( + + 70 ) + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6823
SELECT + 82 AS col1, + COUNT( * ) FROM tab2
----
82
3

skipif mysql # not compatible
query II rowsort label-6823
SELECT + 82 AS col1, + COUNT ( * ) FROM tab2
----
82
3

onlyif mysql # DIV for integer division: 
query II rowsort label-6824
SELECT 96, col0 DIV + 45 AS col2 FROM tab2
----
96
1
96
1
96
1

skipif mysql # not compatible
query II rowsort label-6824
SELECT 96, col0 / + 45 AS col2 FROM tab2
----
96
1
96
1
96
1

query I rowsort
SELECT + col1 + + 34 FROM tab2
----
101
111
85

query I rowsort
SELECT col1 * + col1 * + col2 AS col2 FROM tab1 WHERE NULL IS NULL
----
1475
150212
18816

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT ALL - 30 + - MIN( DISTINCT 73 ) AS col0 FROM tab2 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL - 30 + - MIN ( DISTINCT 73 ) AS col0 FROM tab2 AS cor0
----
-103

query I rowsort
SELECT DISTINCT - 99 * + 35 + + + col1 + + 38 * col0 AS col2 FROM tab1 AS cor0
----
-1513
-230
40

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + col0 ) * + col1 + 80 + + - 21 + + col1 col2 FROM tab2 AS cor0
----
-2236
-4792
-4899

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT DISTINCT 94 * - COUNT( * ) AS col0 FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT 94 * - COUNT ( * ) AS col0 FROM tab1
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT 80 + MIN( ALL col0 ) AS col0 FROM tab1
----
131

skipif mysql # not compatible
query I rowsort label-6832
SELECT 80 + MIN ( ALL col0 ) AS col0 FROM tab1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT COUNT( * ) FROM tab2 WHERE - 63 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6833
SELECT COUNT ( * ) FROM tab2 WHERE - 63 IS NULL
----
0

query I rowsort
SELECT ALL col0 * - 7 - + col1 FROM tab1 WHERE NOT 88 + - col0 * col1 <= col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN ( col0 - col2 ) AND col1 + 81
----
15
81
47
87
21
10

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

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + ( + col0 ) / 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT + SUM( - ( 20 ) ) col0 FROM tab0
----
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6838
SELECT + SUM ( - ( 20 ) ) col0 FROM tab0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6839
SELECT ALL - COUNT( * ) DIV COUNT( * ) col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6839
SELECT ALL - COUNT ( * ) / COUNT ( * ) col2 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6840
SELECT + col2 - CAST( + col0 AS SIGNED ) AS col2 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-6840
SELECT + col2 - CAST ( + col0 AS INTEGER ) AS col2 FROM tab2
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-6841
SELECT 72 DIV col1 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6841
SELECT 72 / col1 AS col1 FROM tab2
----
0
1
1

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

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

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE + 54 IS NOT NULL
----
-15
-87
-97

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

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

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

skipif mysql # not compatible
query I rowsort label-6847
SELECT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT ALL MAX( DISTINCT col1 ) + 47 col2 FROM tab2
----
124

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6849
SELECT ALL MAX ( DISTINCT col1 ) + 47 col2 FROM tab2
----
124

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

query I rowsort
SELECT + col2 - 60 AS col0 FROM tab1 WHERE NOT - col2 <= - ( col1 )
----

query I rowsort
SELECT ALL - 60 * col0 FROM tab0
----
-5220
-5820
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT COUNT( * ) * 42 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-6853
SELECT COUNT ( * ) * 42 FROM tab0
----
126

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

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

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

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

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( 42 ) NOT BETWEEN - col1 + + 91 AND col0 / + 22
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT ALL COUNT( DISTINCT - 10 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL COUNT ( DISTINCT - 10 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT - MAX( - 6 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6862
SELECT - MAX ( - 6 ) FROM tab0 AS cor0
----
6

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

query I rowsort
SELECT col1 * 41 FROM tab1 cor0
----
1927
205
574

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

query I rowsort
SELECT DISTINCT + 84 FROM tab2 AS cor0 CROSS JOIN tab0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6867
SELECT - CAST( NULL AS SIGNED ) * col2 FROM tab0 WHERE NOT 31 / col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6867
SELECT - CAST ( NULL AS INTEGER ) * col2 FROM tab0 WHERE NOT 31 / col2 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-9

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

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

query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab2 AS cor0 WHERE col1 <> ( col0 )
----
22

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
14
47
5

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

query I rowsort
SELECT + 74 + col0 AS col2 FROM tab2 AS cor0
----
120
138
149

query I rowsort
SELECT + 78 + + 71 FROM tab1 AS cor0
----
149
149
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6875
SELECT - 88 + COUNT( * ) DIV 32 FROM tab0 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-6875
SELECT - 88 + COUNT ( * ) / 32 FROM tab0 cor0
----
-88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 3 ) > - 70 * 63
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= col1 / 64
----

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

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

query I rowsort
SELECT ALL + 71 * + 51 FROM tab1
----
3621
3621
3621

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6881
SELECT DISTINCT * FROM tab2 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6881
SELECT DISTINCT * FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + col0 FROM tab1 WHERE ( col2 / - col2 + col2 * + 87 ) IN ( col1 / 8 - - col2 / 40 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6884
SELECT - MAX( DISTINCT + 78 ) DIV MIN( + col0 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6884
SELECT - MAX ( DISTINCT + 78 ) / MIN ( + col0 ) FROM tab2
----
-1

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

query I rowsort
SELECT ALL col2 + + + 7 * col1 AS col2 FROM tab0
----
106
157
614

onlyif mysql # DIV for integer division: 
query I rowsort label-6887
SELECT + col0 DIV 1 AS col0 FROM tab0 WHERE 17 IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6887
SELECT + col0 / 1 AS col0 FROM tab0 WHERE 17 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6888
SELECT ( + col0 ) * + CAST( col0 * + col0 AS SIGNED ) FROM tab2 AS cor0
----
262144
421875
97336

skipif mysql # not compatible
query I rowsort label-6888
SELECT ( + col0 ) * + CAST ( col0 * + col0 AS INTEGER ) FROM tab2 AS cor0
----
262144
421875
97336

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT DISTINCT + COUNT( ALL - - 79 ) + + 49 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT + COUNT ( ALL - - 79 ) + + 49 FROM tab1 AS cor0
----
52

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( + 82 )
----

query I rowsort
SELECT ALL 58 FROM tab1 WHERE NULL >= - 71
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6897
SELECT + MIN ( + col1 ) col0 FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> 99 - - 44 - - col0 * 15
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6899
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST( col0 AS DECIMAL ) ) >= ( col0 )
----

skipif mysql # not compatible
query III rowsort label-6899
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST ( col0 AS REAL ) ) >= ( col0 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + 91
----

query I rowsort
SELECT ALL + - ( col2 ) * + 41 AS col0 FROM tab2 cor0
----
-1640
-2378
-943

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

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

query I rowsort
SELECT ALL 66 * + - col1 FROM tab1
----
-3102
-330
-924

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6907
SELECT DISTINCT MIN( ( + col0 ) ) DIV 8 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT MIN ( ( + col0 ) ) / 8 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT - + COUNT( * ) * + 81 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-243

skipif mysql # not compatible
query I rowsort label-6908
SELECT - + COUNT ( * ) * + 81 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-243

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

skipif mysql # not compatible
query I rowsort label-6909
SELECT COUNT ( * ) / COUNT ( + - CAST ( ( + ( 89 ) ) AS INTEGER ) ) AS col1 FROM tab2
----
1

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

query I rowsort
SELECT + col1 * + + 95 * - ( + + 59 ) AS col2 FROM tab0
----
-117705
-454005
-5605

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6915
SELECT DISTINCT + col0 DIV - 90 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT + col0 / - 90 AS col2 FROM tab0 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6916
SELECT 53 DIV - col1 AS col2 FROM tab0 AS cor0
----
-2
-53
0

skipif mysql # not compatible
query I rowsort label-6916
SELECT 53 / - col1 AS col2 FROM tab0 AS cor0
----
-2
-53
0

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

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

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT - - CAST ( + 40 AS INTEGER ) * + - col2 / col0 + col1 FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT ( + col0 ) <= ( col2 )
----
59
68

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col0 col1 FROM tab2 cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT ALL + MIN( DISTINCT + 46 ) + + 3 AS col0 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL + MIN ( DISTINCT + 46 ) + + 3 AS col0 FROM tab1 AS cor0
----
49

query I rowsort
SELECT DISTINCT + - col1 + 83 FROM tab2 AS cor0
----
16
32
6

query I rowsort
SELECT DISTINCT col0 * + ( + 62 ) AS col0 FROM tab1 AS cor0 WHERE 71 NOT BETWEEN ( NULL ) AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT + COUNT( * ) + + + 5 AS col2 FROM tab1 cor0
----
8

skipif mysql # not compatible
query I rowsort label-6927
SELECT + COUNT ( * ) + + + 5 AS col2 FROM tab1 cor0
----
8

query II rowsort
SELECT col1 * col0 + col2 AS col0, - 10 * + ( col2 ) FROM tab0 AS cor0
----
1262
-470
1837
-100
196
-990

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

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

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

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

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

query I rowsort
SELECT ALL - ( + - col1 ) FROM tab1 WHERE + 54 BETWEEN NULL AND NULL
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT ALL + 64 + + SUM( ALL + col2 ) FROM tab0 AS cor0
----
220

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL + 64 + + SUM ( ALL + col2 ) FROM tab0 AS cor0
----
220

query I rowsort
SELECT DISTINCT 78 - - 69 FROM tab0
----
147

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

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

query I rowsort
SELECT - - col0 * + + col1 * + col2 + - col2 FROM tab0 AS cor0 WHERE NOT ( - col0 ) > - 78
----
18260
9504

query I rowsort
SELECT - 19 * - 17 AS col2 FROM tab2 AS cor0
----
323
323
323

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6943
SELECT - col0 DIV - col1 - + 87 + - 90 AS col1 FROM tab1 AS cor0
----
-160
-174
-176

skipif mysql # not compatible
query I rowsort label-6943
SELECT - col0 / - col1 - + 87 + - 90 AS col1 FROM tab1 AS cor0
----
-160
-174
-176

query I rowsort
SELECT + col2 * + - col2 + + - col2 AS col0 FROM tab1 AS cor0
----
-3540
-4692
-9312

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 - - ( - 51 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 > ( 78 + - + 43 + - col0 / - 49 + col0 / - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT DISTINCT MAX( + + 86 ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-6948
SELECT DISTINCT MAX ( + + 86 ) FROM tab2
----
86

query I rowsort
SELECT - 52 - - col1 AS col2 FROM tab1 WHERE NOT - col1 < NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= ( - 32 + + - 11 * + ( col2 ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT DISTINCT MIN( ALL - 96 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 29 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT MIN ( ALL - 96 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 29 >= NULL
----
NULL

query I rowsort
SELECT - ( - + col2 ) + + 74 - - + ( - 59 ) AS col1 FROM tab2 AS cor0
----
38
55
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT - MAX( - col1 ) + + - 30 AS col1 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6955
SELECT - MAX ( - col1 ) + + - 30 AS col1 FROM tab0 AS cor0
----
-29

query I rowsort
SELECT DISTINCT + col1 + + 25 AS col2 FROM tab0 AS cor0
----
106
26
46

query III rowsort
SELECT * FROM tab0 cor0 WHERE 24 IN ( + 18 - - col2 )
----

query I rowsort
SELECT ALL + col0 * - col2 + 26 FROM tab2 AS cor0
----
-1032
-2534
-4324

query I rowsort
SELECT DISTINCT col2 + + 37 FROM tab0 AS cor0
----
136
47
84

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

query I rowsort
SELECT DISTINCT 8 + + col2 AS col0 FROM tab1 AS cor0
----
104
67
76

query I rowsort
SELECT ALL 81 + + + col0 FROM tab0
----
168
178
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 / 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 99 + ( + 86 ) + - - 15 * - col0 * + + ( - col1 ) * + col0 + col0 AS col0 FROM tab2
----
1618971
4731129
5653385

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

query I rowsort
SELECT col0 * + - 37 FROM tab2
----
-1702
-2368
-2775

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

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

query I rowsort
SELECT ALL - ( - ( + col2 ) ) - - col0 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT col0 * + 12 FROM tab0
----
1044
1164
180

query I rowsort
SELECT - col1 - - + col2 + col0 FROM tab2 AS cor0
----
18
27
66

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

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL - - 84 + - 92 + col1 FROM tab2 AS cor0 WHERE NOT ( ( + col2 + + + col0 - - + col2 ) <> - CAST ( NULL AS INTEGER ) * + col1 )
----

query I rowsort
SELECT - 64 + + 26 FROM tab2 AS cor0
----
-38
-38
-38

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

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

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

query I rowsort
SELECT 73 * - ( + 64 ) FROM tab0
----
-4672
-4672
-4672

query I rowsort
SELECT ALL + - col0 * col1 * + col1 * - ( - col1 ) FROM tab1 AS cor0
----
-10625
-139944
-9447893

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6978
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT 68 BETWEEN - + 56 AND - - CAST( + - col0 AS DECIMAL ) + + col2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT 68 BETWEEN - + 56 AND - - CAST ( + - col0 AS REAL ) + + col2
----
-51
-67
-77

query II rowsort
SELECT DISTINCT col0, 89 + + 28 FROM tab0 AS cor0
----
15
117
87
117
97
117

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

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

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

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

query I rowsort
SELECT col1 * - + col0 * - col0 FROM tab1
----
36125
36414
389207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 * + col0 col2 FROM tab2
----
107916
315392
376875

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT ALL MIN( col2 ) * 21 * - + MIN( ALL + - ( - 20 ) ) FROM tab2
----
-9660

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL MIN ( col2 ) * 21 * - + MIN ( ALL + - ( - 20 ) ) FROM tab2
----
-9660

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT ALL + SUM( + 63 ) FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL + SUM ( + 63 ) FROM tab1
----
189

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NULL NOT BETWEEN - ( 19 ) AND NULL
----

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

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

query I rowsort
SELECT - 65 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6990
SELECT 33 col2, 82 + CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 383ca4aa77c611edc07e9131f33b24c8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6990
SELECT 33 col2, 82 + CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 383ca4aa77c611edc07e9131f33b24c8

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

query II rowsort
SELECT - 88, + 16 * + ( + ( + 51 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 6fce77f8d8ebcfd6f0d6e9d3d78ab530

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 1 / 48 * - 71 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6995
SELECT ALL - CAST( NULL AS DECIMAL ) * ( + + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 33 BETWEEN NULL AND col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL - CAST ( NULL AS REAL ) * ( + + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 33 BETWEEN NULL AND col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT - MIN( ALL + col1 ) + - 58 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6996
SELECT - MIN ( ALL + col1 ) + - 58 FROM tab0 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 * + col2 + col1 + + 2 col0 FROM tab1 cor0
----
-25068
-290787
-68528

query I rowsort
SELECT DISTINCT + - col1 + + 59 AS col2 FROM tab0 AS cor0
----
-22
38
58

query I rowsort
SELECT DISTINCT - 88 + - - col1 AS col0 FROM tab1
----
-41
-74
-83

query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab1 WHERE NULL < NULL
----

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

skipif mysql # not compatible
query I rowsort label-7001
SELECT col2 + + 24 * col2 * + - CAST ( NULL AS INTEGER ) * col1 / - col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 7 IS NULL
----

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

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

query I rowsort
SELECT - col2 - - ( - + col2 ) * + - 18 - + col1 FROM tab0 AS cor0
----
149
1682
718

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

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT ALL + 82 * COUNT( * ) FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL + 82 * COUNT ( * ) FROM tab0
----
246

query I rowsort
SELECT DISTINCT ( + 0 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7009
SELECT - 3 * + CAST( + col2 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
-10443
-13872
-27648

skipif mysql # not compatible
query I rowsort label-7009
SELECT - 3 * + CAST ( + col2 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
-10443
-13872
-27648

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT DISTINCT - - MAX( DISTINCT - 32 ) FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-7010
SELECT DISTINCT - - MAX ( DISTINCT - 32 ) FROM tab2 AS cor0
----
-32

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

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

query I rowsort
SELECT - col0 * 6 AS col1 FROM tab2 cor0
----
-276
-384
-450

query II rowsort
SELECT + 73 * + col1 * - col1, + col2 - + - col1 * + col1 AS col2 FROM tab0 cor0
----
-32193
451
-478953
6608
-73
100

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

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

query II rowsort
SELECT + - col0, col2 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7017
SELECT - ( - col1 ) AS col2, + CAST( - col1 AS SIGNED ) + + + col1 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-7017
SELECT - ( - col1 ) AS col2, + CAST ( - col1 AS INTEGER ) + + + col1 FROM tab1
----
14
0
47
0
5
0

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

query II rowsort
SELECT 84 + - 66 - 13 * + col0 + col0 AS col2, + col1 - - 81 AS col1 FROM tab2
----
-534
132
-750
158
-882
148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 col1 FROM tab2
----
-43
-43
-43

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

query I rowsort
SELECT + col2 - 23 + - 18 FROM tab2 AS cor0 WHERE + col0 * - + col1 IS NULL
----

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

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

query I rowsort
SELECT col1 * - col2 * - col2 + - 15 + ( + 62 ) FROM tab1 cor0
----
129071
17452
217375

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + 61 * + - 3 > + col2 / + col0 + + + col2 * - - 16 + col1 + + - col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT DISTINCT - + SUM( col2 ) FROM tab2 AS cor0 WHERE NOT - col0 * col1 - - col1 + col0 + + 30 + + + ( + + col1 ) / - col0 * - - col2 - + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7027
SELECT DISTINCT - + SUM ( col2 ) FROM tab2 AS cor0 WHERE NOT - col0 * col1 - - col1 + col0 + + 30 + + + ( + + col1 ) / - col0 * - - col2 - + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT - ( - 56 ) AS col0 FROM tab0 AS cor0
----
56
56
56

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

query I rowsort
SELECT DISTINCT col2 * - + 79 - - col0 + - 79 FROM tab1
----
-4655
-5360
-7612

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

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

query II rowsort
SELECT DISTINCT + 86 + col2 AS col1, - col2 FROM tab1 WHERE - ( - 54 ) NOT IN ( 93 * + - col2 + + 57 - ( + 99 ) )
----
145
-59
154
-68
182
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 + - col2 col0 FROM tab2
----
37
55
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7034
SELECT ALL + col2 / + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL > - col1
----

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL + col2 / + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL > - col1
----

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

query I rowsort
SELECT - 8 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 91 AND NULL
----

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

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

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

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

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

query I rowsort
SELECT + + 43 FROM tab0 AS cor0 WHERE NOT - col1 >= - 70 / + + col1
----
43
43

query I rowsort
SELECT - - col0 * + + col0 + 34 AS col0 FROM tab1 AS cor0
----
2635
7259
8315

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + 45 * col0 * - 31 * 28, + col0 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL >= + 9 * + col0 + 79 * 27 + col0 + - ( - col1 ) + ( + ( + col0 ) ) / + - col2 * + 87 * + 12 * + 11 )
----

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL >= + 9 * + col0 + 79 * 27 + col0 + - ( - col1 ) + ( + ( + col0 ) ) / + - col2 * + 87 * + 12 * + 11 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7046
SELECT DISTINCT COUNT( * ) / + + MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7046
SELECT DISTINCT COUNT ( * ) / + + MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + col0 AS col0, + 18 AS col2 FROM tab2 WHERE NOT - ( + + col0 ) IS NULL
----
46
18
64
18
75
18

query I rowsort
SELECT ALL + col0 + 29 FROM tab2
----
104
75
93

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT ALL - 81 + COUNT( * ) * 78 * + MAX( + 16 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL - 81 + COUNT ( * ) * 78 * + MAX ( + 16 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 63 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7056
SELECT - col0 * 91 DIV - + ( + - col0 ) FROM tab1 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-7056
SELECT - col0 * 91 / - + ( + - col0 ) FROM tab1 AS cor0
----
-91
-91
-91

query I rowsort
SELECT 23 * - 5 FROM tab2
----
-115
-115
-115

query I rowsort
SELECT ALL 85 - - col2 AS col1 FROM tab2
----
108
125
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT COUNT( * ) * + - ( + - 55 ) + 89 - 18 FROM tab2 WHERE - ( + - col2 ) IN ( - col1 * - col0 )
----
71

skipif mysql # not compatible
query I rowsort label-7059
SELECT COUNT ( * ) * + - ( + - 55 ) + 89 - 18 FROM tab2 WHERE - ( + - col2 ) IN ( - col1 * - col0 )
----
71

query II rowsort
SELECT col2 + col0, - ( ( + col2 ) ) AS col2 FROM tab0 WHERE + - col0 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT DISTINCT SUM( 30 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
270

skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT SUM ( 30 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
270

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE 39 BETWEEN - col2 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + - 96 AS col1 FROM tab2 AS cor0
----
-147
-163
-173

query I rowsort
SELECT + col2 * 70 + + col1 + col0 * - col0 * + + 98 FROM tab0 AS cor0 WHERE col2 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7066
SELECT DISTINCT + COUNT( * ), ( + + 21 ) * - - COUNT( * ) * + MAX( ALL + col1 ) AS col0 FROM tab2 cor0
----
3
4851

skipif mysql # not compatible
query II rowsort label-7066
SELECT DISTINCT + COUNT ( * ), ( + + 21 ) * - - COUNT ( * ) * + MAX ( ALL + col1 ) AS col0 FROM tab2 cor0
----
3
4851

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

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

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

query I rowsort
SELECT - 28 + + + col0 FROM tab0 AS cor0
----
-13
59
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT - - 53 + - - MIN( ALL col0 ) AS col1 FROM tab1 AS cor0
----
104

skipif mysql # not compatible
query I rowsort label-7070
SELECT - - 53 + - - MIN ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
104

query I rowsort
SELECT ALL + col2 + + 82 FROM tab0 AS cor0
----
129
181
92

query I rowsort
SELECT col1 + 49 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
100
116
126

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

query I rowsort
SELECT ALL - ( ( 31 ) ) * - col1 + - - 52 FROM tab2 AS cor0
----
1633
2129
2439

query I rowsort
SELECT - col2 + + 62 AS col1 FROM tab2
----
22
39
4

query I rowsort
SELECT DISTINCT col1 + + + col2 - - col0 - col2 * - col1 * + 75 * + 7 * + col1 + + + col2 - - col2 * - + ( col1 ) * 45 - col1 FROM tab0
----
161721469
2305907
47815

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7080
SELECT DISTINCT * FROM tab1 WHERE + CAST( col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7080
SELECT DISTINCT * FROM tab1 WHERE + CAST ( col2 AS REAL ) IS NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7082
SELECT + 32 DIV COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( + 98 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7082
SELECT + 32 / COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( + 98 ) IS NULL
----
3

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

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

query I rowsort
SELECT ALL - 15 * + 49 * + col0 * - col0 AS col0 FROM tab2
----
1555260
3010560
4134375

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7085
SELECT ALL + ( + - ( COUNT( * ) ) ) DIV + 97 + + - SUM( - col1 ), - 52 col0 FROM tab0 AS cor0
----
103
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7085
SELECT ALL + ( + - ( COUNT ( * ) ) ) / + 97 + + - SUM ( - col1 ), - 52 col0 FROM tab0 AS cor0
----
103
-52

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

query I rowsort
SELECT + + 69 + + col1 * col2 * - - 63 FROM tab2 AS cor0
----
194109
244887
73968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 99 + - col2 * - col1 col1 FROM tab2 AS cor0
----
1272
3179
3985

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

query II rowsort
SELECT ALL + 50 + + col2 * - col2, col0 AS col0 FROM tab2 AS cor0
----
-1550
64
-3314
75
-479
46

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 * col0 col2 FROM tab2 AS cor0
----
230
320
375

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

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

query I rowsort
SELECT - col2 * + + 89 FROM tab1
----
-5251
-6052
-8544

query I rowsort
SELECT DISTINCT ( - 10 ) FROM tab2
----
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT ALL ( + COUNT( DISTINCT - 10 ) ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL ( + COUNT ( DISTINCT - 10 ) ) AS col1 FROM tab1
----
1

query II rowsort
SELECT + col1 / + col1, - col2 FROM tab1 WHERE ( 98 IN ( + col1, col2 + 23 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7099
SELECT col1 DIV - - CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7099
SELECT col1 / - - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT DISTINCT - col0 + + - 21 AS col0 FROM tab0 AS cor0
----
-108
-118
-36

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 < NULL
----

query I rowsort
SELECT ALL + 46 + + col2 + - - col1 FROM tab0 AS cor0
----
146
174
77

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7104
SELECT - 49 * + col0 DIV - col0, + 41 AS col0 FROM tab0
----
49
41
49
41
49
41

skipif mysql # not compatible
query II rowsort label-7104
SELECT - 49 * + col0 / - col0, + 41 AS col0 FROM tab0
----
49
41
49
41
49
41

query I rowsort
SELECT ALL + 54 - - + 88 * - - col0 FROM tab1
----
4542
7534
8062

query I rowsort
SELECT ALL col2 * + 7 AS col2 FROM tab0 AS cor0
----
329
693
70

onlyif mysql # DIV for integer division: 
query III rowsort label-7107
SELECT - col2 AS col0, - 25 DIV - + 81 AS col0, - col0 * - + 11 FROM tab1 AS cor0
----
9 values hashing to 7fc656453e5acebb31fe7453daeeea3d

skipif mysql # not compatible
query III rowsort label-7107
SELECT - col2 AS col0, - 25 / - + 81 AS col0, - col0 * - + 11 FROM tab1 AS cor0
----
9 values hashing to 7fc656453e5acebb31fe7453daeeea3d

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

query I rowsort
SELECT ALL - col0 + col1 + + 50 * + 1 FROM tab1 cor0
----
-30
13
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7110
SELECT DISTINCT - col2 + + col0 DIV - + col2 FROM tab0 AS cor0
----
-18
-47
-99

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT - col2 + + col0 / - + col2 FROM tab0 AS cor0
----
-18
-47
-99

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

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

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

query I rowsort
SELECT DISTINCT col2 * - 78 * col1 AS col1 FROM tab0
----
-16380
-296946
-7722

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7115
SELECT + 86 AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
86
NULL
86
NULL
86
NULL

skipif mysql # not compatible
query II rowsort label-7115
SELECT + 86 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
86
NULL
86
NULL
86
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7116
SELECT * FROM tab1 WHERE NOT ( - CAST( + ( + col2 ) AS SIGNED ) ) + - col0 < + col1 * col2 * + + col0 + col0
----

skipif mysql # not compatible
query III rowsort label-7116
SELECT * FROM tab1 WHERE NOT ( - CAST ( + ( + col2 ) AS INTEGER ) ) + - col0 < + col1 * col2 * + + col0 + col0
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 47 AS col1, 24 * - col2 col2 FROM tab0
----
47
-1128
47
-2376
47
-240

query I rowsort
SELECT + + ( + 17 ) FROM tab1 WHERE NOT - - col1 * ( + 28 ) + + + col1 - - col2 NOT BETWEEN 96 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT ALL - SUM( DISTINCT - col1 ) * + ( + - 69 ) * - + COUNT( * ) FROM tab1 AS cor0
----
13662

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL - SUM ( DISTINCT - col1 ) * + ( + - 69 ) * - + COUNT ( * ) FROM tab1 AS cor0
----
13662

onlyif mysql # aggregate syntax: 
query II rowsort label-7121
SELECT DISTINCT - MAX( col0 ) * - 91 AS col1, + ( + - COUNT( ALL 82 ) ) col2 FROM tab2 cor0 WHERE NOT + col1 >= 62 * - col2 + + col2 + - col1
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7121
SELECT DISTINCT - MAX ( col0 ) * - 91 AS col1, + ( + - COUNT ( ALL 82 ) ) col2 FROM tab2 cor0 WHERE NOT + col1 >= 62 * - col2 + + col2 + - col1
----
NULL
0

query I rowsort
SELECT DISTINCT - + col2 * + col2 + col0 FROM tab0 AS cor0
----
-13
-2194
-9704

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT + SUM( - + 34 ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-7124
SELECT + SUM ( - + 34 ) FROM tab0
----
-102

query I rowsort
SELECT ALL - 24 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 31 * + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7128
SELECT ALL col1 * + - 74 + - col1 + + - 56 DIV - + col0 FROM tab2 AS cor0
----
-3824
-5025
-5775

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL col1 * + - 74 + - col1 + + - 56 / - + col0 FROM tab2 AS cor0
----
-3824
-5025
-5775

query I rowsort
SELECT ALL - col2 * - 59 * col0 + col0 FROM tab0 AS cor0
----
41610
51417
566674

query I rowsort
SELECT - 74 * - col2 AS col0 FROM tab0 AS cor0
----
3478
7326
740

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

query I rowsort
SELECT ALL + 37 * + col2 FROM tab1
----
2183
2516
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT + ( - + MAX( DISTINCT - 74 ) ) + + 1 AS col1 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-7133
SELECT + ( - + MAX ( DISTINCT - 74 ) ) + + 1 AS col1 FROM tab0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7134
SELECT ALL - CAST( NULL AS SIGNED ), SUM( DISTINCT + col0 ) col0 FROM tab0
----
NULL
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7134
SELECT ALL - CAST ( NULL AS INTEGER ), SUM ( DISTINCT + col0 ) col0 FROM tab0
----
NULL
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7135
SELECT - CAST( + col1 AS SIGNED ) + 79 FROM tab0
----
-2
58
78

skipif mysql # not compatible
query I rowsort label-7135
SELECT - CAST ( + col1 AS INTEGER ) + 79 FROM tab0
----
-2
58
78

query I rowsort
SELECT 59 + + - col2 FROM tab0
----
-40
12
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7137
SELECT ALL 71 + MIN( DISTINCT - col2 ) + - 91 DIV - 58 col1 FROM tab0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7137
SELECT ALL 71 + MIN ( DISTINCT - col2 ) + - 91 / - 58 col1 FROM tab0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-7138
SELECT DISTINCT + col1 DIV - col1 + - + col1 AS col0 FROM tab0 cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT + col1 / - col1 + - + col1 AS col0 FROM tab0 cor0
----
-2
-22
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE 43 * - col1 IN ( + 92 )
----
0

skipif mysql # not compatible
query I rowsort label-7139
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE 43 * - col1 IN ( + 92 )
----
0

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

query I rowsort
SELECT ALL col2 * + + 4 + - col0 * - 59 * 11 FROM tab2
----
29946
41696
48907

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

query I rowsort
SELECT DISTINCT - 27 - + col1 + - col0 FROM tab2 AS cor0
----
-124
-168
-169

query I rowsort
SELECT col0 + - col1 * - - col0 + + col0 * col2 AS col1 FROM tab2 AS cor0
----
-1242
-2304
-600

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT - SUM( + 99 ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-7147
SELECT - SUM ( + 99 ) FROM tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT MAX( - - ( 49 ) ) * - COUNT( * ) FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-7148
SELECT MAX ( - - ( 49 ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-7149
SELECT - col1 DIV col2 + - - col2 - + ( - col0 ) - + + col0 - + + col0 + ( col0 ) DIV - - col2 AS col2 FROM tab2 cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-7149
SELECT - col1 / col2 + - - col2 - + ( - col0 ) - + + col0 - + + col0 + ( col0 ) / - - col2 AS col2 FROM tab2 cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-7150
SELECT ALL - AVG ( ALL col2 ), + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 >= NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7150
SELECT ALL - AVG ( ALL col2 ), + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 >= NULL
----
NULL
0

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT - 66 * + - 84 * - 19 * col0 IS NULL
----
23
40
58

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

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

query I rowsort
SELECT col0 * - 62 AS col0 FROM tab0
----
-5394
-6014
-930

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 46 + - col0 <= 27 * + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - col1 * - 49 + - 77 + - - col1 + + col1 FROM tab0 AS cor0
----
-26
4054
994

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

query I rowsort
SELECT 14 * 61 + col2 - - - 26 FROM tab2 AS cor0
----
851
868
886

query I rowsort
SELECT ALL - col2 * - 11 * col2 FROM tab0 AS cor0
----
107811
1100
24299

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

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

skipif mysql # not compatible
query I rowsort label-7161
SELECT + + 54 * + + 86 + + + ( - CAST ( 93 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
4551
4551
4551

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - 63 + - + col2 FROM tab1 AS cor0
----
-33
-5
4

query I rowsort
SELECT DISTINCT col2 + - + 65 AS col0 FROM tab0 AS cor0
----
-18
-55
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT ALL - SUM( DISTINCT + col1 ) * + COUNT( * ) FROM tab2 cor0
----
-585

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL - SUM ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab2 cor0
----
-585

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7167
SELECT DISTINCT + ( + - CAST( 14 AS SIGNED ) ) DIV - + COUNT( + col2 ) + - 6 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT + ( + - CAST ( 14 AS INTEGER ) ) / - + COUNT ( + col2 ) + - 6 FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT ALL - COUNT( 0 ) + 75 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL - COUNT ( 0 ) + 75 FROM tab2
----
72

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

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

query I rowsort
SELECT - col1 + + - 24 AS col1 FROM tab0 AS cor0
----
-105
-25
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-7171
SELECT + ( ( - col1 ) ) DIV - - col2 + - col2, col0 FROM tab0 AS cor0
----
-12
87
-48
15
-99
97

skipif mysql # not compatible
query II rowsort label-7171
SELECT + ( ( - col1 ) ) / - - col2 + - col2, col0 FROM tab0 AS cor0
----
-12
87
-48
15
-99
97

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

query I rowsort
SELECT + + ( + + 69 ) FROM tab2 AS cor0
----
69
69
69

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

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

query I rowsort
SELECT ALL - - ( - 84 ) * + + col1 FROM tab1 AS cor0
----
-1176
-3948
-420

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

query II rowsort
SELECT DISTINCT + - col2 AS col0, col1 + - 66 FROM tab1 cor0
----
-59
-61
-68
-19
-96
-52

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7179
SELECT DISTINCT col2 AS col0, ( 68 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-7179
SELECT DISTINCT col2 AS col0, ( 68 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

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

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

query II rowsort
SELECT DISTINCT - 41 AS col0, 34 AS col1 FROM tab0 AS cor0
----
-41
34

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

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT - 29 / + col1 * + col2 IS NULL
----
-51
-85
-91

query II rowsort
SELECT - col1 * - + col1 AS col2, + 92 / 68 AS col1 FROM tab0 WHERE NOT ( NULL ) = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT DISTINCT + MAX( DISTINCT 80 ) FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT + MAX ( DISTINCT 80 ) FROM tab0
----
80

query I rowsort
SELECT + 8 * + 6 AS col0 FROM tab1
----
48
48
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT SUM( + 2 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7189
SELECT SUM ( + 2 ) FROM tab0
----
6

query I rowsort
SELECT ALL - 55 * - col1 AS col2 FROM tab1
----
2585
275
770

query I rowsort
SELECT - 26 * + 20 AS col1 FROM tab0 AS cor0
----
-520
-520
-520

query I rowsort
SELECT DISTINCT - - 3 AS col0 FROM tab2 cor0
----
3

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

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL MIN ( col2 ) AS col0 FROM tab1 AS cor0
----
59

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> col2 + + 44 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 37 col1 FROM tab1
----
-1887
-3145
-3367

query I rowsort
SELECT DISTINCT + col2 * - + 84 FROM tab1
----
-4956
-5712
-8064

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7198
SELECT ALL 75 / col0 + - 69 + - col1 + - CAST( 14 AS DECIMAL ) * - col0 * + col0 + 38 FROM tab1 AS cor0 WHERE NOT + col1 <> + - col2
----

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL 75 / col0 + - 69 + - col1 + - CAST ( 14 AS REAL ) * - col0 * + col0 + 38 FROM tab1 AS cor0 WHERE NOT + col1 <> + - col2
----

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

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

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

query I rowsort
SELECT ALL - - 96 + col1 AS col1 FROM tab1 AS cor0
----
101
110
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 0 + + col1 col0 FROM tab2 AS cor0
----
51
67
77

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7205
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0, + 64 FROM tab2
----
NULL
64

skipif mysql # not compatible
query II rowsort label-7205
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0, + 64 FROM tab2
----
NULL
64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7207
SELECT + - col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7207
SELECT + - col1 / + col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 > + 74
----
51
14
96

query II rowsort
SELECT col0 AS col0, 28 + col2 + - - col2 FROM tab1 AS cor0
----
51
220
85
146
91
164

query I rowsort
SELECT 38 - + col0 FROM tab0 AS cor0
----
-49
-59
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT + 40 * + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
360

skipif mysql # not compatible
query I rowsort label-7212
SELECT + 40 * + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT 31 - + MIN( DISTINCT - 74 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
105

skipif mysql # not compatible
query I rowsort label-7213
SELECT 31 - + MIN ( DISTINCT - 74 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
105

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7216
SELECT ALL COUNT( DISTINCT + + col0 ) AS col0, 91 FROM tab0 AS cor0
----
3
91

skipif mysql # not compatible
query II rowsort label-7216
SELECT ALL COUNT ( DISTINCT + + col0 ) AS col0, 91 FROM tab0 AS cor0
----
3
91

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT + 17 = NULL
----

query I rowsort
SELECT DISTINCT - - 4 * - 16 AS col2 FROM tab1 AS cor0
----
-64

query I rowsort
SELECT DISTINCT col0 * - 99 * - 68 FROM tab0 AS cor0
----
100980
585684
653004

query I rowsort
SELECT ALL + 56 * - col1 * + - 89 AS col0 FROM tab1 AS cor0
----
234248
24920
69776

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7221
SELECT DISTINCT + COUNT( * ) AS col1, - COUNT( * ) + + SUM( DISTINCT + + CAST( NULL AS DECIMAL ) ) + - COUNT( * ) - - AVG ( col0 ) * + ( - - 56 ) FROM tab0 cor0 WHERE NOT ( NOT - 6 IS NOT NULL )
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7221
SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) + + SUM ( DISTINCT + + CAST ( NULL AS REAL ) ) + - COUNT ( * ) - - AVG ( col0 ) * + ( - - 56 ) FROM tab0 cor0 WHERE NOT ( NOT - 6 IS NOT NULL )
----
3
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7222
SELECT ALL 71 DIV + MAX( - - col1 ) FROM tab2
----
0

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

query II rowsort
SELECT DISTINCT - col1 AS col2, - ( + col0 ) FROM tab1
----
-14
-51
-47
-91
-5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT + SUM( 30 ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-7224
SELECT + SUM ( 30 ) FROM tab0
----
90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 20 - 77 * + col1 * - + col0 <= NULL
----

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT DISTINCT + + COUNT( - col1 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7231
SELECT DISTINCT + + COUNT ( - col1 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT + 46 DIV + 69 + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7234
SELECT + 46 / + 69 + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL col1 + - ( 52 ) + + - 43 * - + col0 AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7236
SELECT + CAST( + col1 AS SIGNED ) + - - 42 AS col1 FROM tab1 AS cor0
----
47
56
89

skipif mysql # not compatible
query I rowsort label-7236
SELECT + CAST ( + col1 AS INTEGER ) + - - 42 AS col1 FROM tab1 AS cor0
----
47
56
89

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

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

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

query II rowsort
SELECT DISTINCT + + col2 + - - col2, col0 FROM tab0 AS cor0
----
198
97
20
87
94
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7240
SELECT ALL + col0 + + ( + - col0 ) + + CAST( NULL AS DECIMAL ) * + col1 / - 78 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL + col0 + + ( + - col0 ) + + CAST ( NULL AS REAL ) * + col1 / - 78 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - - + ( - col0 ) FROM tab1
----
-23
-26
45

query I rowsort
SELECT ALL col1 - - 30 * + col0 FROM tab2
----
1431
1997
2317

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + ( - col0 ) ) col2 FROM tab1 AS cor0
----
51
85
91

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

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

query I rowsort
SELECT ALL 75 * - col2 AS col2 FROM tab2 AS cor0
----
-1725
-3000
-4350

query I rowsort
SELECT ALL + 1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 10 <= 49
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT + + SUM( ALL - 13 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-117

skipif mysql # not compatible
query I rowsort label-7247
SELECT + + SUM ( ALL - 13 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-117

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7248
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2, - CAST( NULL AS DECIMAL ) * + col1 AS col1 FROM tab1
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7248
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2, - CAST ( NULL AS REAL ) * + col1 AS col1 FROM tab1
----
NULL
NULL

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

query I rowsort
SELECT ALL + col2 * 47 * + - col0 FROM tab2
----
-120320
-204450
-49726

query I rowsort
SELECT - 41 - - col2 * + - 87 + + col2 * - ( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-7252
SELECT + COUNT ( DISTINCT CAST ( ( - col1 ) AS INTEGER ) ) AS col0 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL - 88 * col2 AS col2 FROM tab0 cor0
----
-4136
-8712
-880

query I rowsort
SELECT DISTINCT 7 * - + 79 AS col0 FROM tab2 AS cor0
----
-553

onlyif mysql # DIV for integer division: 
query I rowsort label-7255
SELECT + 6 DIV col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7255
SELECT + 6 / col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7256
SELECT + 16 DIV - col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7256
SELECT + 16 / - col2 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT SUM( ALL + 43 ) + COUNT( * ) - + - 48 AS col2 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-7257
SELECT SUM ( ALL + 43 ) + COUNT ( * ) - + - 48 AS col2 FROM tab2
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT DISTINCT - 4 * - COUNT( - col1 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-7258
SELECT DISTINCT - 4 * - COUNT ( - col1 ) FROM tab0
----
12

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7260
SELECT DISTINCT + - CAST( + 31 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL >= 83 * + + col2
----

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT + - CAST ( + 31 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL >= 83 * + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7261
SELECT DISTINCT - col1 + 36 - - - col2 DIV - 98 AS col0 FROM tab0 cor0
----
-45
15
36

skipif mysql # not compatible
query I rowsort label-7261
SELECT DISTINCT - col1 + 36 - - - col2 / - 98 AS col0 FROM tab0 cor0
----
-45
15
36

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 91 < - - col0 / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 18 BETWEEN + + ( + + col2 ) * col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-7265
SELECT ALL - col2 DIV + + ( col1 ) AS col1, col1 FROM tab0 AS cor0
----
-99
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-7265
SELECT ALL - col2 / + + ( col1 ) AS col1, col1 FROM tab0 AS cor0
----
-99
1
0
21
0
81

query I rowsort
SELECT DISTINCT + + col2 + - col1 + + - 50 + 1 FROM tab2 AS cor0
----
-58
-77
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT DISTINCT + + MAX( - + col1 ) + - SUM( DISTINCT + 76 ) FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT + + MAX ( - + col1 ) + - SUM ( DISTINCT + 76 ) FROM tab0 AS cor0
----
-77

query I rowsort
SELECT col0 * + col2 + - 63 AS col0 FROM tab1 cor0
----
4833
4952
6125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7271
SELECT 87 * + ( + - CAST( NULL AS SIGNED ) ) + + 22 AS col0, col1 * + 66 FROM tab2 cor0 WHERE NULL NOT IN ( + ( col2 ) * + col0, + col1 )
----

skipif mysql # not compatible
query II rowsort label-7271
SELECT 87 * + ( + - CAST ( NULL AS INTEGER ) ) + + 22 AS col0, col1 * + 66 FROM tab2 cor0 WHERE NULL NOT IN ( + ( col2 ) * + col0, + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7272
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 9 AS col2, COUNT( * ) AS col1 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7272
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 9 AS col2, COUNT ( * ) AS col1 FROM tab0
----
NULL
3

query I rowsort
SELECT - col2 + + 24 FROM tab0
----
-23
-75
14

query I rowsort
SELECT col0 * - col0 + + ( col2 ) FROM tab1
----
-2505
-7166
-8213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7275
SELECT ALL - - CAST( + + COUNT( ALL - - col2 ) AS SIGNED ) + 83 AS col0 FROM tab2 WHERE NULL <= - ( - col2 )
----
83

skipif mysql # not compatible
query I rowsort label-7275
SELECT ALL - - CAST ( + + COUNT ( ALL - - col2 ) AS INTEGER ) + 83 AS col0 FROM tab2 WHERE NULL <= - ( - col2 )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7276
SELECT DISTINCT - col0 * - CAST( - col1 AS SIGNED ) + - - col2 col2 FROM tab1
----
-366
-4209
-618

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7276
SELECT DISTINCT - col0 * - CAST ( - col1 AS INTEGER ) + - - col2 col2 FROM tab1
----
-366
-4209
-618

query I rowsort
SELECT ALL 73 * col2 AS col0 FROM tab0
----
3431
7227
730

query I rowsort
SELECT DISTINCT col0 - - 78 AS col0 FROM tab1
----
129
163
169

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

query II rowsort
SELECT - col2 * - 67 - + col1 * + col1 AS col1, + 68 AS col0 FROM tab2 AS cor0
----
-1060
68
-3249
68
-603
68

query I rowsort
SELECT DISTINCT + 65 * + 2 - - col2 + col2 + col1 * 74 * col1 * + 65 FROM tab0 AS cor0
----
2121360
31558634
5138

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

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

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

skipif mysql # not compatible
query I rowsort label-7283
SELECT - COUNT ( ALL 51 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL ) <= - - ( - 38 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 * - + col2 - col0 col0 FROM tab0 AS cor0
----
-3023
-6433
-727

query I rowsort
SELECT + - ( - 82 ) FROM tab2 AS cor0
----
82
82
82

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7287
SELECT * FROM tab2 AS cor0 WHERE NOT 41 IN ( CAST( NULL AS DECIMAL ), - ( - - 64 ) )
----

skipif mysql # not compatible
query III rowsort label-7287
SELECT * FROM tab2 AS cor0 WHERE NOT 41 IN ( CAST ( NULL AS REAL ), - ( - - 64 ) )
----

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

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

query I rowsort
SELECT ALL col0 * - + col1 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7290
SELECT - + SUM ( + col1 ) col1 FROM tab2 AS cor0
----
-195

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

skipif mysql # not compatible
query I rowsort label-7291
SELECT - - SUM ( ALL - - col0 ) AS col2 FROM tab1 AS cor0
----
227

query I rowsort
SELECT col2 * + 66 AS col1 FROM tab2 AS cor0
----
1518
2640
3828

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

query II rowsort
SELECT ALL + col2 AS col0, - ( 36 ) FROM tab2
----
23
-36
40
-36
58
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 20 col2 FROM tab1
----
100
280
940

query I rowsort
SELECT ( + - col0 ) * 2 AS col0 FROM tab2
----
-128
-150
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7297
SELECT 14 * ( - - COUNT( * ) ) DIV + + COUNT( * ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-7297
SELECT 14 * ( - - COUNT ( * ) ) / + + COUNT ( * ) FROM tab2
----
14

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

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

query I rowsort
SELECT col2 * + - 71 FROM tab2
----
-1633
-2840
-4118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7300
SELECT - - ( CAST( + - 64 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-7300
SELECT - - ( CAST ( + - 64 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-64
-64
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7301
SELECT ALL - - col1 DIV + 34 + + 89 col1 FROM tab0 AS cor0
----
89
89
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7301
SELECT ALL - - col1 / + 34 + + 89 col1 FROM tab0 AS cor0
----
89
89
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7302
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + CAST( NULL AS DECIMAL ) ) * + 61 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7302
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + CAST ( NULL AS REAL ) ) * + 61 IS NOT NULL
----

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

query I rowsort
SELECT + col0 + - + ( 49 ) FROM tab1
----
2
36
42

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

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

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

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

query I rowsort
SELECT col1 + + col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
162
2
42

query I rowsort
SELECT DISTINCT - col2 + + col1 - + 71 FROM tab0 AS cor0
----
-169
-37
-60

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

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

query I rowsort
SELECT - col0 * + + ( + col1 ) + - 9 AS col0 FROM tab0 cor0
----
-106
-1224
-1836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col0 col0 FROM tab0 AS cor0
----
-2
-32
77

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

query I rowsort
SELECT 41 * + + 34 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ea1f9b7dbda91382d4df07b675e361c0

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

query I rowsort
SELECT ( - 53 ) AS col1 FROM tab2
----
-53
-53
-53

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

query I rowsort
SELECT - - 39 * + 62 FROM tab2 AS cor0
----
2418
2418
2418

query I rowsort
SELECT + 93 * - - col1 + + col0 * + col2 FROM tab0 cor0
----
2823
8238
9696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7319
SELECT CAST( NULL AS SIGNED ) / ( + 71 ) + 48 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7319
SELECT CAST ( NULL AS INTEGER ) / ( + 71 ) + 48 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7321
SELECT SUM( col0 ) FROM tab1 WHERE ( col2 ) / col1 <> + CAST( + col0 AS SIGNED ) + col1
----
227

skipif mysql # not compatible
query I rowsort label-7321
SELECT SUM ( col0 ) FROM tab1 WHERE ( col2 ) / col1 <> + CAST ( + col0 AS INTEGER ) + col1
----
227

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 IN ( 74 * col1 )
----

query I rowsort
SELECT + ( + 87 ) FROM tab2
----
87
87
87

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= 5
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - ( - 72 ) + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT ALL - 7 + + COUNT( * ) col2 FROM tab1 WHERE NOT NULL >= - col0
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7327
SELECT ALL - 7 + + COUNT ( * ) col2 FROM tab1 WHERE NOT NULL >= - col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT DISTINCT 53 * - COUNT( col0 ) AS col1 FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT 53 * - COUNT ( col0 ) AS col1 FROM tab0
----
-159

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

query I rowsort
SELECT - col0 + + col0 AS col0 FROM tab0 WHERE NOT + 50 IN ( + 33 )
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT 5 * COUNT( * ) AS col2 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-7332
SELECT 5 * COUNT ( * ) AS col2 FROM tab2
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 * - 74 col0 FROM tab0
----
-814
-814
-814

query I rowsort
SELECT DISTINCT - col0 + - 56 AS col0 FROM tab1
----
-107
-141
-147

query I rowsort
SELECT DISTINCT - ( + col2 ) * col2 - col2 * + col2 AS col0 FROM tab1
----
-18432
-6962
-9248

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 <= ( ( + col2 ) / 41 )
----

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

query I rowsort
SELECT + 23 * + 40 FROM tab2
----
920
920
920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7340
SELECT + 86 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) + col0 * 37 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7340
SELECT + 86 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + col0 * 37 IS NOT NULL
----

query I rowsort
SELECT ALL - 70 AS col2 FROM tab0 AS cor0 WHERE 14 BETWEEN 67 + col0 * + col2 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT + SUM( 85 ) AS col1 FROM tab2 cor0
----
255

skipif mysql # not compatible
query I rowsort label-7342
SELECT + SUM ( 85 ) AS col1 FROM tab2 cor0
----
255

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7347
SELECT - COUNT( * ) + + COUNT( * ) DIV 91 AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7347
SELECT - COUNT ( * ) + + COUNT ( * ) / 91 AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7348
SELECT - 82 DIV - col0 + col2 AS col2 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-7348
SELECT - 82 / - col0 + col2 AS col2 FROM tab2 AS cor0
----
24
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT 70 * COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-7349
SELECT 70 * COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
207

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7350
SELECT col1 + + col0 DIV - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
13
81

skipif mysql # not compatible
query I rowsort label-7350
SELECT col1 + + col0 / - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
13
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7351
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - CAST( 62 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7351
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - CAST ( 62 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7352
SELECT - col2 DIV col0 + + 73 FROM tab1 cor0
----
72
73
73

skipif mysql # not compatible
query I rowsort label-7352
SELECT - col2 / col0 + + 73 FROM tab1 cor0
----
72
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT SUM( + 41 ) FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-7353
SELECT SUM ( + 41 ) FROM tab0 AS cor0
----
123

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT - SUM( - 48 ) AS col2 FROM tab0 WHERE NOT + col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT - SUM ( - 48 ) AS col2 FROM tab0 WHERE NOT + col0 <= NULL
----
NULL

query I rowsort
SELECT 61 * - 30 AS col0 FROM tab0 WHERE NOT col1 * - col2 + - col1 / ( col0 + col0 ) IS NULL
----
-1830
-1830
-1830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col0 FROM tab2
----
7

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

query I rowsort
SELECT + col2 * + 34 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1360
1972
782

query I rowsort
SELECT - - 15 * + 48 AS col2 FROM tab1 AS cor0
----
720
720
720

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7363
SELECT ALL * FROM tab0 AS cor0 WHERE 4 IN ( 52 + CAST( 80 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7363
SELECT ALL * FROM tab0 AS cor0 WHERE 4 IN ( 52 + CAST ( 80 AS INTEGER ) )
----

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

skipif mysql # not compatible
query I rowsort label-7364
SELECT - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab0, tab1 cor0 WHERE NULL <> 93 + 33
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * 59 NOT IN ( - 16 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 AS col2, col0 FROM tab0 cor0
----
10
87
47
15
99
97

query I rowsort
SELECT - 39 FROM tab2 AS cor0 WHERE NOT col2 IS NULL OR NOT ( NULL ) IS NOT NULL
----
-39
-39
-39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= ( + col0 * - 87 * + col0 )
----

query I rowsort
SELECT DISTINCT 2 FROM tab1 AS cor0 WHERE NOT 97 BETWEEN ( col0 / col1 ) AND + col0 * 41 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT MIN( DISTINCT + - 92 ) FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-7371
SELECT MIN ( DISTINCT + - 92 ) FROM tab1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7372
SELECT - + CAST( + ( + 58 ) AS SIGNED ) * - COUNT( DISTINCT col1 * - ( 61 ) ) col2 FROM tab0 WHERE NULL IS NULL
----
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7372
SELECT - + CAST ( + ( + 58 ) AS INTEGER ) * - COUNT ( DISTINCT col1 * - ( 61 ) ) col2 FROM tab0 WHERE NULL IS NULL
----
174

query I rowsort
SELECT col1 * + + 32 AS col2 FROM tab1
----
1504
160
448

query I rowsort
SELECT + col0 * + - 23 FROM tab2
----
-1058
-1472
-1725

query I rowsort
SELECT - col2 * - + 38 - + 86 AS col1 FROM tab1 cor0
----
2156
2498
3562

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT - MAX( DISTINCT + + col0 ) + + COUNT( * ) + - - COUNT( * ) * 24 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7376
SELECT - MAX ( DISTINCT + + col0 ) + + COUNT ( * ) + - - COUNT ( * ) * 24 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7377
SELECT ( SUM( - col1 ) ) FROM tab1 AS cor0 WHERE ( NOT NULL >= + - ( - col2 ) * - CAST( - col2 + + 15 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7377
SELECT ( SUM ( - col1 ) ) FROM tab1 AS cor0 WHERE ( NOT NULL >= + - ( - col2 ) * - CAST ( - col2 + + 15 AS INTEGER ) )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 > col2 + col1
----
85
5
59

query I rowsort
SELECT + 75 + + - col1 AS col2 FROM tab2 AS cor0
----
-2
24
8

query I rowsort
SELECT DISTINCT + col2 - + + col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7381
SELECT DISTINCT + + col0 DIV ( col1 ) + col2 + - col1 FROM tab2 WHERE - 91 IS NOT NULL
----
-28
-37
-8

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT + + col0 / ( col1 ) + col2 + - col1 FROM tab2 WHERE - 91 IS NOT NULL
----
-28
-37
-8

query I rowsort
SELECT DISTINCT + ( - 52 ) * - col2 + + 86 AS col1 FROM tab1
----
3154
3622
5078

query I rowsort
SELECT DISTINCT 57 * - ( + col2 ) FROM tab1
----
-3363
-3876
-5472

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * - ( col1 ) - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < col2 + - col1 - - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7386
SELECT ALL + CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) * + + COUNT( DISTINCT - 23 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL + CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) * + + COUNT ( DISTINCT - 23 ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * - col2 - - + col2 FROM tab0 cor0
----
-200
-3760
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7388
SELECT ALL - 3 * + - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL - 3 * + - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7389
SELECT - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) * - SUM( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7389
SELECT - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) * - SUM ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT DISTINCT + - 13 * + SUM( col0 ) + + 44 FROM tab2 cor0
----
-2361

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT + - 13 * + SUM ( col0 ) + + 44 FROM tab2 cor0
----
-2361

query I rowsort
SELECT + - 52 FROM tab1 AS cor0 WHERE NOT - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT + SUM( DISTINCT - col2 ) * - 29 FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7392
SELECT + SUM ( DISTINCT - col2 ) * - 29 FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( col2 )
----
NULL

query I rowsort
SELECT ALL 36 * - col0 FROM tab1 AS cor0
----
-1836
-3060
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2 )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 62 BETWEEN NULL AND ( + + col2 )
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + 8 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 84 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7398
SELECT ALL COUNT( 21 ) DIV + - SUM( 74 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL COUNT ( 21 ) / + - SUM ( 74 ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7399
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN - ( + col2 ) AND ( + + 64 )
----

skipif mysql # not compatible
query III rowsort label-7399
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN - ( + col2 ) AND ( + + 64 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 IN ( + col1 + - col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT - SUM( + - col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-7401
SELECT - SUM ( + - col0 ) AS col1 FROM tab0
----
199

query II rowsort
SELECT DISTINCT - 94, - col2 AS col0 FROM tab1
----
-94
-59
-94
-68
-94
-96

query II rowsort
SELECT ALL - col0 AS col2, + 72 AS col0 FROM tab1
----
-51
72
-85
72
-91
72

query II rowsort
SELECT ALL + 69, + col2 * - + 46 AS col1 FROM tab0
----
69
-2162
69
-4554
69
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT DISTINCT MAX( - + 60 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-7405
SELECT DISTINCT MAX ( - + 60 ) FROM tab2
----
-60

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT col1 * col1 = col2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL - + SUM( + col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL - + SUM ( + col1 ) FROM tab2 cor0
----
-195

query I rowsort
SELECT 32 * + 35 FROM tab0
----
1120
1120
1120

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 92 * - + col1 + + col2 * - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 / 58 IS NOT NULL
----

query I rowsort
SELECT 81 * + 90 * - col1 AS col1 FROM tab1
----
-102060
-342630
-36450

query I rowsort
SELECT DISTINCT + 50 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT DISTINCT + COUNT( ALL - col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7413
SELECT DISTINCT + COUNT ( ALL - col1 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7414
SELECT DISTINCT 73 * ( - col2 ) + + - col1 + CAST( + 70 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-1721
-3962
-6042

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT 73 * ( - col2 ) + + - col1 + CAST ( + 70 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-1721
-3962
-6042

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7415
SELECT DISTINCT + - 79 + - COUNT( * ) - + ( - + COUNT( * ) ) DIV + COUNT( DISTINCT - col2 ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7415
SELECT DISTINCT + - 79 + - COUNT ( * ) - + ( - + COUNT ( * ) ) / + COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-81

query I rowsort
SELECT + col2 * + col0 + + + col0 AS col1 FROM tab2 AS cor0
----
1104
2624
4425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 + col0 col1 FROM tab2
----
-2
-20
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7418
SELECT - COUNT( * ) * - + CAST( NULL AS SIGNED ) + 66 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7418
SELECT - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + 66 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + col2 AS col1, col1 + - + 38 - - + col1 * - 5 FROM tab1
----
59
-58
68
-226
96
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col0 + - 3, col2 + + + col2 col0 FROM tab2
----
-2119
46
-4099
80
-5628
116

query I rowsort
SELECT ALL col1 FROM tab1 WHERE - col0 + - ( + + ( - 24 ) ) IS NULL
----

query I rowsort
SELECT ALL col1 * - 16 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 + - col2 * + col1 - - col1 * - 98 FROM tab1
----
-2767
-7893
-870

onlyif mysql # aggregate syntax: 
query II rowsort label-7424
SELECT ALL 90, COUNT( * ) col1 FROM tab1
----
90
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7424
SELECT ALL 90, COUNT ( * ) col1 FROM tab1
----
90
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * - 37 <= + - 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7426
SELECT col2, - 23 - + ( - col0 ) + - - CAST( 7 AS SIGNED ) FROM tab0 AS cor0
----
10
71
47
-1
99
81

skipif mysql # not compatible
query II rowsort label-7426
SELECT col2, - 23 - + ( - col0 ) + - - CAST ( 7 AS INTEGER ) FROM tab0 AS cor0
----
10
71
47
-1
99
81

query I rowsort
SELECT ALL 67 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT col0 FROM tab2 WHERE - - col0 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 5 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7430
SELECT 41 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( + ( - + CAST( NULL AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7430
SELECT 41 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( + ( - + CAST ( NULL AS INTEGER ) ) ) IS NULL
----

query I rowsort
SELECT ALL 28 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND 91
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 19 >= col1 + - + 70
----

query I rowsort
SELECT DISTINCT 39 * + col2 FROM tab2 AS cor0
----
1560
2262
897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7435
SELECT ALL - CAST( + 77 AS SIGNED ) FROM tab1 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL - CAST ( + 77 AS INTEGER ) FROM tab1 AS cor0
----
-77
-77
-77

query I rowsort
SELECT + col2 * - + col1 + + col0 AS col1 FROM tab1 AS cor0
----
-1293
-210
-3105

query II rowsort
SELECT DISTINCT + col0 * col1, + col1 FROM tab1 AS cor0
----
425
5
4277
47
714
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7438
SELECT CAST( - col0 AS SIGNED ) AS col2, - col0 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

skipif mysql # not compatible
query II rowsort label-7438
SELECT CAST ( - col0 AS INTEGER ) AS col2, - col0 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT ALL + + MIN( - + col1 ) col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7439
SELECT ALL + + MIN ( - + col1 ) col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL + 81 * 97 AS col1 FROM tab0 AS cor0
----
7857
7857
7857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7441
SELECT ALL + - col1 * - col1 * CAST( col1 AS SIGNED ) * ( + - CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-7971615
-805707
-97

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL + - col1 * - col1 * CAST ( col1 AS INTEGER ) * ( + - CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-7971615
-805707
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * - - col0 * + 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col1 + - ( + 36 ) + ( + col1 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT - - ( - COUNT( * ) ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7444
SELECT - - ( - COUNT ( * ) ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT - ( + - col0 ) * + - col1 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col2 * - + col1 * + + col2 - - 83 + + 91 * col2 + - - 90 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7447
SELECT + 49, COUNT( * ) AS col2 FROM tab2
----
49
3

skipif mysql # not compatible
query II rowsort label-7447
SELECT + 49, COUNT ( * ) AS col2 FROM tab2
----
49
3

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7449
SELECT ALL * FROM tab1 WHERE - - col0 + - col1 BETWEEN + - col0 + CAST( + + col1 AS SIGNED ) AND ( 38 )
----
51
14
96

skipif mysql # not compatible
query III rowsort label-7449
SELECT ALL * FROM tab1 WHERE - - col0 + - col1 BETWEEN + - col0 + CAST ( + + col1 AS INTEGER ) AND ( 38 )
----
51
14
96

query III rowsort
SELECT + 3, + col2 * + + col2 AS col0, + + col1 AS col2 FROM tab0 AS cor0
----
9 values hashing to a93ab4c2aa6fb64e12de1eea0c33fe40

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 55 <= ( col1 )
----
3

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 55 <= ( col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT + MAX( ALL + + col1 ) AS col1 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-7452
SELECT + MAX ( ALL + + col1 ) AS col1 FROM tab2 cor0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7453
SELECT ( MAX( + + ( + ( + + CAST( NULL AS SIGNED ) ) ) ) ) AS col1, - MAX( ALL 93 ) FROM tab1 cor0
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-7453
SELECT ( MAX ( + + ( + ( + + CAST ( NULL AS INTEGER ) ) ) ) ) AS col1, - MAX ( ALL 93 ) FROM tab1 cor0
----
NULL
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col0, col0 col1 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - + col2 - - 39 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * + - col0 / - col2 * + - 39 NOT IN ( - col0 * + ( - - col2 ) + + col2 )
----

query I rowsort
SELECT - col1 + - col0 * + - 78 FROM tab1 AS cor0
----
3964
6625
7051

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT + ( - 0 ) + - - COUNT( - col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7458
SELECT + ( - 0 ) + - - COUNT ( - col2 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT DISTINCT + 26 * + + COUNT( * ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT + 26 * + + COUNT ( * ) FROM tab1 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-7460
SELECT - - COUNT( * ) col1, MIN( DISTINCT + col2 ) col0 FROM tab1 AS cor0
----
3
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7460
SELECT - - COUNT ( * ) col1, MIN ( DISTINCT + col2 ) col0 FROM tab1 AS cor0
----
3
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL - + COUNT( ALL + 28 ) + - 75 AS col0 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL - + COUNT ( ALL + 28 ) + - 75 AS col0 FROM tab2 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7462
SELECT + CAST( NULL AS SIGNED ) + + - col0 AS col0 FROM tab2 AS cor0 WHERE 6 * - + 33 IN ( + col0, 85 )
----

skipif mysql # not compatible
query I rowsort label-7462
SELECT + CAST ( NULL AS INTEGER ) + + - col0 AS col0 FROM tab2 AS cor0 WHERE 6 * - + 33 IN ( + col0, 85 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 5 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7464
SELECT - CAST( NULL AS SIGNED ) - - + col0 - col0 * - - col0 / - col2 + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7464
SELECT - CAST ( NULL AS INTEGER ) - - + col0 - col0 * - - col0 / - col2 + col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 26 - + 29 AS col1 FROM tab2
----
-3
-3
-3

query II rowsort
SELECT - col2 + + col2 AS col0, col2 + - - col1 FROM tab1
----
0
110
0
115
0
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL + ( + COUNT( * ) ) AS col2 FROM tab2 cor0 WHERE NOT - 45 - + col0 - - 67 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL + ( + COUNT ( * ) ) AS col2 FROM tab2 cor0 WHERE NOT - 45 - + col0 - - 67 IS NOT NULL
----
0

query I rowsort
SELECT + col1 + - col1 * + ( + - col2 ) * 81 FROM tab1 AS cor0
----
108878
23900
258923

onlyif mysql # aggregate syntax: 
query II rowsort label-7470
SELECT ALL - 58 + COUNT( * ) AS col1, + MIN( + 82 ) FROM tab0 AS cor0
----
-55
82

skipif mysql # not compatible
query II rowsort label-7470
SELECT ALL - 58 + COUNT ( * ) AS col1, + MIN ( + 82 ) FROM tab0 AS cor0
----
-55
82

query I rowsort
SELECT DISTINCT - ( - 93 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col2 * - - col2 AS col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT ALL + - MIN( + + 40 ) AS col2 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL + - MIN ( + + 40 ) AS col2 FROM tab0 AS cor0
----
-40

query II rowsort
SELECT ALL - - col0, col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT DISTINCT + 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-7475
SELECT DISTINCT + SUM ( - + col0 ) col1 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 56 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - + col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query II rowsort
SELECT + 11 + col1, 48 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
62
48
78
48
88
48

query II rowsort
SELECT - col0 * 83 + ( - col0 ) AS col0, 60 FROM tab2 AS cor0
----
-3864
60
-5376
60
-6300
60

query I rowsort
SELECT ALL - 34 AS col2 FROM tab0 cor0
----
-34
-34
-34

query I rowsort
SELECT - col1 * + + 21 AS col0 FROM tab0 cor0
----
-1701
-21
-441

query I rowsort
SELECT DISTINCT 35 FROM tab2 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * + col0 - - ( + + col0 ) / + 64 + - col2 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7484
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * ( - MAX( ALL 0 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * ( - MAX ( ALL 0 ) ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col2 col0 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT DISTINCT 83 * - MAX( ALL + + col1 ) AS col0 FROM tab2
----
-6391

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT 83 * - MAX ( ALL + + col1 ) AS col0 FROM tab2
----
-6391

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> 78 * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( - 3 ) - - - 25 * + col0 IN ( col2, + col0, + ( - 2 ), - 89 * - 33 )
----

query I rowsort
SELECT col1 * + - ( col2 ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT + 55 + col2 AS col1 FROM tab2 AS cor0
----
113
78
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7492
SELECT CAST( NULL AS DECIMAL ) + - ( + 97 ) * col2 col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7492
SELECT CAST ( NULL AS REAL ) + - ( + 97 ) * col2 col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 59 + + col2 * - + col1 + col0 * col2 * - 98 AS col0 FROM tab2 AS cor0
----
-104798
-253901
-430127

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT DISTINCT COUNT( * ) * + - 40 * - + 46 + - - 90 AS col2 FROM tab2 AS cor0
----
5610

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT COUNT ( * ) * + - 40 * - + 46 + - - 90 AS col2 FROM tab2 AS cor0
----
5610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 25 ) + - 23 + + col2 col1 FROM tab2
----
-25
-8
10

query I rowsort
SELECT DISTINCT + col1 * + col2 - - 23 * - - 93 AS col2 FROM tab0
----
2238
2349
5946

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 * + + col1 + - + 17 * - 52 - + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 44 + - 99 AS col0 FROM tab2
----
-143

onlyif mysql # aggregate syntax: 
query II rowsort label-7499
SELECT DISTINCT COUNT( * ) AS col1, + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1
----
3
-9

skipif mysql # not compatible
query II rowsort label-7499
SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
3
-9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7500
SELECT DISTINCT * FROM tab2 WHERE - CAST( CAST( - col0 AS DECIMAL ) AS SIGNED ) = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7500
SELECT DISTINCT * FROM tab2 WHERE - CAST ( CAST ( - col0 AS REAL ) AS INTEGER ) = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7501
SELECT DISTINCT + ( + col0 ) * + 10 * + 4 - CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
1989
3315
3549

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT + ( + col0 ) * + 10 * + 4 - CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
1989
3315
3549

query I rowsort
SELECT + 96 AS col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
96
96
96

query I rowsort
SELECT ALL - - ( + 34 ) FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT ALL 33 * - + col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + - 76 - + col0 + - - 23 AS col2 FROM tab0 AS cor0
----
-140
-150
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-7506
SELECT + 21 DIV + + col0 * col1 * col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7506
SELECT + 21 / + + col0 * col1 * col1 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7508
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( ( + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-7508
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT ALL - MIN( DISTINCT + ( + 17 ) ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL - MIN ( DISTINCT + ( + 17 ) ) FROM tab0 AS cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7510
SELECT + - CAST( ( + + 70 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-7510
SELECT + - CAST ( ( + + 70 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT DISTINCT + COUNT( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7511
SELECT DISTINCT + COUNT ( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 59 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * + 60 AS col2 FROM tab2 cor0
----
-1380
-2400
-3480

query I rowsort
SELECT + 43 FROM tab2 AS cor0 WHERE NOT + 74 >= NULL
----

query I rowsort
SELECT ( - col0 ) FROM tab1 WHERE NOT ( NULL BETWEEN ( - col2 ) AND col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7516
SELECT col2 AS col2, - 59 DIV col1 FROM tab0
----
10
-2
47
0
99
-59

skipif mysql # not compatible
query II rowsort label-7516
SELECT col2 AS col2, - 59 / col1 FROM tab0
----
10
-2
47
0
99
-59

query II rowsort
SELECT DISTINCT col2, 61 * col0 FROM tab0
----
10
5307
47
915
99
5917

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 col1 FROM tab2
----
74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 * + - 18 >= + - 47 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - + 60 col1 FROM tab1
----
-2820
-300
-840

query I rowsort
SELECT - - col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7522
SELECT ALL col2 * + col1 * 54 + - CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL col2 * + col1 * 54 + - CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + - col0 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 31 * - col0 IS NULL
----

query I rowsort
SELECT - - ( 59 ) AS col1 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT - + 79 + col1 FROM tab2 AS cor0
----
-12
-2
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 * + ( + col1 ) col0 FROM tab0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 + + + col0 col1 FROM tab2
----
-2
-20
9

query I rowsort
SELECT col2 + col1 FROM tab2 WHERE - col0 IS NOT NULL
----
117
125
74

query I rowsort
SELECT DISTINCT + + col0 * + col2 + + 12 FROM tab1 AS cor0
----
4908
5027
6200

query II rowsort
SELECT ALL + col1 + - + col1, + col1 AS col2 FROM tab0 AS cor0
----
0
1
0
21
0
81

query I rowsort
SELECT - 72 * - col2 AS col0 FROM tab1 cor0
----
4248
4896
6912

query I rowsort
SELECT - + 47 AS col0 FROM tab0 cor0
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7534
SELECT col2 + - col2 * + 92 * - 25 * + + CAST( NULL AS SIGNED ) * + 83 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT col2 + - col2 * + 92 * - 25 * + + CAST ( NULL AS INTEGER ) * + 83 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7535
SELECT - col2 AS col1 FROM tab2 WHERE CAST( - - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7535
SELECT - col2 AS col1 FROM tab2 WHERE CAST ( - - col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7536
SELECT - MIN( DISTINCT + ( - 61 ) ) + - - CAST( NULL AS SIGNED ) + - + 34 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT - MIN ( DISTINCT + ( - 61 ) ) + - - CAST ( NULL AS INTEGER ) + - + 34 AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT DISTINCT SUM( DISTINCT + + 9 ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT SUM ( DISTINCT + + 9 ) FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT - 50 + - MAX( ALL + + col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-146

skipif mysql # not compatible
query I rowsort label-7539
SELECT - 50 + - MAX ( ALL + + col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT + SUM( DISTINCT - ( - 64 ) ) FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-7540
SELECT + SUM ( DISTINCT - ( - 64 ) ) FROM tab2 AS cor0
----
64

query I rowsort
SELECT ALL + ( - 99 ) AS col0 FROM tab2 AS cor0
----
-99
-99
-99

query I rowsort
SELECT ALL + + 52 AS col2 FROM tab2 cor0
----
52
52
52

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7544
SELECT col2, + col2 + CAST( - 62 AS SIGNED ) + - - col0 AS col2 FROM tab2 AS cor0
----
23
7
40
42
58
71

skipif mysql # not compatible
query II rowsort label-7544
SELECT col2, + col2 + CAST ( - 62 AS INTEGER ) + - - col0 AS col2 FROM tab2 AS cor0
----
23
7
40
42
58
71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - ( - 94 ) * 79
----

query I rowsort
SELECT DISTINCT - 68 + - col2 AS col0 FROM tab0 AS cor0 WHERE col2 * - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT ALL - 93 * + 75 + - - MIN( - - col0 ) AS col2 FROM tab0 AS cor0
----
-6960

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL - 93 * + 75 + - - MIN ( - - col0 ) AS col2 FROM tab0 AS cor0
----
-6960

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL - + SUM( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL - + SUM ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7549
SELECT SUM( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7549
SELECT SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT + 10 * - COUNT( * ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-7550
SELECT + 10 * - COUNT ( * ) FROM tab2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT + COUNT( * ) col1 FROM tab0 WHERE NOT + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7551
SELECT + COUNT ( * ) col1 FROM tab0 WHERE NOT + + col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7552
SELECT col1 * - + col0 * + CAST( + 22 AS SIGNED ) AS col0 FROM tab0
----
-2134
-26730
-40194

skipif mysql # not compatible
query I rowsort label-7552
SELECT col1 * - + col0 * + CAST ( + 22 AS INTEGER ) AS col0 FROM tab0
----
-2134
-26730
-40194

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - COUNT( * ) FROM tab2 WHERE NOT + + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7553
SELECT - COUNT ( * ) FROM tab2 WHERE NOT + + col0 IS NULL
----
-3

query I rowsort
SELECT col2 * + col2 + - ( col1 ) AS col0 FROM tab0
----
2128
79
9800

query I rowsort
SELECT col2 * - col0 + - + 61 AS col0 FROM tab2
----
-1119
-2621
-4411

query I rowsort
SELECT 70 * - 68 * + ( col1 ) + + - 66 * - 2 AS col1 FROM tab0 AS cor0 WHERE col2 + 15 + + 88 <> + 82 + + col1 + - - col0
----
-385428
-4628
-99828

query I rowsort
SELECT ALL + - 71 + - col1 * - col1 FROM tab1 AS cor0
----
-46
125
2138

query I rowsort
SELECT 55 + 77 FROM tab1 cor0
----
132
132
132

query I rowsort
SELECT DISTINCT - - col1 * - 51 AS col1 FROM tab1 AS cor0
----
-2397
-255
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT MIN( DISTINCT + - 67 ) + - 48 AS col0 FROM tab2 AS cor0
----
-115

skipif mysql # not compatible
query I rowsort label-7560
SELECT MIN ( DISTINCT + - 67 ) + - 48 AS col0 FROM tab2 AS cor0
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE col2 >= - - 76
----
0

skipif mysql # not compatible
query I rowsort label-7561
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE col2 >= - - 76
----
0

query II rowsort
SELECT ALL + col0 AS col1, 49 FROM tab0 AS cor0
----
15
49
87
49
97
49

query I rowsort
SELECT DISTINCT + col1 + - + 24 FROM tab2 AS cor0
----
27
43
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7564
SELECT - - col0 col1, col1 * 7 * + 49 FROM tab1 AS cor0 WHERE CAST( + - col0 AS SIGNED ) BETWEEN + + 75 AND + - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7564
SELECT - - col0 col1, col1 * 7 * + 49 FROM tab1 AS cor0 WHERE CAST ( + - col0 AS INTEGER ) BETWEEN + + 75 AND + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7565
SELECT + - CAST( - - 16 AS SIGNED ) + col1 FROM tab2 AS cor0
----
35
51
61

skipif mysql # not compatible
query I rowsort label-7565
SELECT + - CAST ( - - 16 AS INTEGER ) + col1 FROM tab2 AS cor0
----
35
51
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT DISTINCT SUM( ALL col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT SUM ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
185

query I rowsort
SELECT ALL + 41 + + 27 AS col1 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT - col2 + - + 12 FROM tab0 AS cor0 WHERE - 31 + + col2 NOT BETWEEN - 53 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7569
SELECT DISTINCT - ( COUNT( * ) ) + COUNT( * ) / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT - ( COUNT ( * ) ) + COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7570
SELECT ALL COUNT( * ) DIV + ( - + 48 ) + + + 9 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL COUNT ( * ) / + ( - + 48 ) + + + 9 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 WHERE - ( 15 ) * col2 / col1 * 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + 69 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 - 47 AS col1 FROM tab2
----
-105
-70
-87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND 50 * - 85
----

query II rowsort
SELECT ALL + 21 * + 53, - 95 AS col1 FROM tab1 AS cor0
----
1113
-95
1113
-95
1113
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 78 col0, + 83 + - - ( + 38 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 6401e9679ce937af6cb80fd80c22e5ee

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 14 / - - 81 * col1 BETWEEN NULL AND col0 + - - 61
----

query I rowsort
SELECT + 15 * + col1 - + ( + - col0 ) AS col1 FROM tab0 AS cor0
----
112
1230
402

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + col0 + col0
----

query III rowsort
SELECT - 1 AS col2, ( + 93 ) AS col2, + col0 AS col0 FROM tab1 AS cor0
----
9 values hashing to 501205053b0f754175c456be97aafb52

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT DISTINCT 25 * + - 23 * + + 66 * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
113850

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT 25 * + - 23 * + + 66 * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
113850

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7582
SELECT ALL + 68 + COUNT( * ) / COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL + 68 + COUNT ( * ) / COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7583
SELECT ALL + COUNT( DISTINCT + 34 ) FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL + COUNT ( DISTINCT + 34 ) FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT DISTINCT - 93 * + - COUNT( * ) AS col2 FROM tab1 WHERE NOT - 71 IS NULL
----
279

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT - 93 * + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT - 71 IS NULL
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT DISTINCT 0 * + - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT 0 * + - COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7586
SELECT - ( + + col0 ) DIV - 87 + - + col2 FROM tab0
----
-47
-9
-98

skipif mysql # not compatible
query I rowsort label-7586
SELECT - ( + + col0 ) / - 87 + - + col2 FROM tab0
----
-47
-9
-98

query II rowsort
SELECT DISTINCT - col0, - col0 + - 28 / - 67 * col1 + + col1 FROM tab2 WHERE col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 + - 17 col0 FROM tab2
----
-78
-78
-78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 97 BETWEEN NULL AND NULL
----

query II rowsort
SELECT + + col1, + col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT + col2 + + - ( - 6 ) AS col2 FROM tab0 cor0
----
105
16
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7592
SELECT ALL - - CAST( NULL AS SIGNED ) * col0 * + 57 / - col2 + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL - - CAST ( NULL AS INTEGER ) * col0 * + 57 / - col2 + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 + - + 74 AS col2, col0 FROM tab0 AS cor0 WHERE ( NULL ) <> col2 + - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + 67 col2 FROM tab2 cor0
----
107
125
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT ALL - + COUNT( * ) * 65 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-585

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL - + COUNT ( * ) * 65 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-585

query I rowsort
SELECT 11 - + - 42 * 87 AS col0 FROM tab1 AS cor0
----
3665
3665
3665

query I rowsort
SELECT DISTINCT 96 + + col0 AS col2 FROM tab0 AS cor0
----
111
183
193

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> - col2 - - + col0 / + ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7599
SELECT DISTINCT - - col1 + col1 DIV col0 * 12 * + col1 FROM tab2 cor0
----
1001
663
67

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT - - col1 + col1 / col0 * 12 * + col1 FROM tab2 cor0
----
1001
663
67

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( 19 ) > - 82 * - + col0 + - col2
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT SUM( + - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT SUM ( + - col1 ) FROM tab0
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7602
SELECT - ( + CAST( - + COUNT( * ) AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7602
SELECT - ( + CAST ( - + COUNT ( * ) AS INTEGER ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT DISTINCT - MAX( DISTINCT + 31 ) AS col0 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT - MAX ( DISTINCT + 31 ) AS col0 FROM tab0
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-7604
SELECT COUNT( * ) col1, 78 FROM tab2
----
3
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7604
SELECT COUNT ( * ) col1, 78 FROM tab2
----
3
78

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT + col1 <> - + 2
----

query II rowsort
SELECT - col2 * + - ( - 88 ) AS col0, 7 FROM tab1
----
-5192
7
-5984
7
-8448
7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - - col1 AND col1
----

query I rowsort
SELECT DISTINCT 58 * 52 AS col1 FROM tab1
----
3016

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 + + + ( + + col1 ) / - - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT MAX( 52 ) AS col2 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7610
SELECT MAX ( 52 ) AS col2 FROM tab0 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT DISTINCT + ( MAX( ALL - col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT + ( MAX ( ALL - col1 ) ) FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7612
SELECT - 30 / - CAST( NULL AS DECIMAL ) - + col2 FROM tab2 WHERE NOT + col0 < - col0 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7612
SELECT - 30 / - CAST ( NULL AS REAL ) - + col2 FROM tab2 WHERE NOT + col0 < - col0 - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 42 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 60 * + - 17 + - - 17 * 74 IN ( 89, 8 * + 96 + + 76, - col1 - col0 * + col1, - col2, - - 11, + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7615
SELECT DISTINCT - 19 * - + 18 + + - col1 * col0 DIV - 26 AS col2 FROM tab1 cor0
----
358
369
506

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT - 19 * - + 18 + + - col1 * col0 / - 26 AS col2 FROM tab1 cor0
----
358
369
506

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 / + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7617
SELECT + SUM( ALL - - col0 ) * - + 64 * CAST( + 38 AS SIGNED ) + - - 95 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7617
SELECT + SUM ( ALL - - col0 ) * - + 64 * CAST ( + 38 AS INTEGER ) + - - 95 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT ALL - - 9 + 98 FROM tab0 AS cor0
----
107
107
107

query II rowsort
SELECT ALL - col0 + - - 51 AS col2, 27 FROM tab2 cor0
----
-13
27
-24
27
5
27

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE + 80 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7621
SELECT DISTINCT AVG ( - 87 ) + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT AVG ( - 87 ) + - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL - 94 * - - col2 AS col2 FROM tab2
----
-2162
-3760
-5452

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT 76 + + - 71 - - + 1 * COUNT( * ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-7623
SELECT 76 + + - 71 - - + 1 * COUNT ( * ) FROM tab2
----
8

query I rowsort
SELECT + 29 + + col1 FROM tab1
----
34
43
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7625
SELECT 40 + MAX( DISTINCT + col2 ) DIV + COUNT( * ) AS col0 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-7625
SELECT 40 + MAX ( DISTINCT + col2 ) / + COUNT ( * ) AS col0 FROM tab2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT - COUNT( * ) + + ( + SUM( + col0 ) ) AS col1 FROM tab0
----
196

skipif mysql # not compatible
query I rowsort label-7626
SELECT - COUNT ( * ) + + ( + SUM ( + col0 ) ) AS col1 FROM tab0
----
196

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - 23 >= - ( + 27 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT 9 + - ( - SUM( ALL - 82 ) ) AS col1 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-7628
SELECT 9 + - ( - SUM ( ALL - 82 ) ) AS col1 FROM tab0
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT DISTINCT MIN( + + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT MIN ( + + col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT 14 * - - 17 * - 57 * - - col0 * + col1 + - + col1 FROM tab1 AS cor0 WHERE - col2 + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7631
SELECT + COUNT( * ) DIV COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7631
SELECT + COUNT ( * ) / COUNT ( * ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL col1 + col2 + - - 32 FROM tab1 cor0
----
142
147
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7633
SELECT ALL CAST( CAST( - col2 AS DECIMAL ) AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL CAST ( CAST ( - col2 AS REAL ) AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7635
SELECT DISTINCT - + AVG ( col2 ) + 63 * + - CAST( NULL AS SIGNED ) - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT - + AVG ( col2 ) + 63 * + - CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 61 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT + + col2 + col1 * + + 2 AS col0 FROM tab2 AS cor0
----
125
192
194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7638
SELECT DISTINCT CAST( - 41 AS SIGNED ) * + 5 - 67 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-272

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT CAST ( - 41 AS INTEGER ) * + 5 - 67 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-272

query II rowsort
SELECT - - col2 AS col2, col2 + col1 FROM tab1 AS cor0
----
59
64
68
115
96
110

onlyif mysql # DIV for integer division: 
query I rowsort label-7640
SELECT - col2 DIV col2 col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7640
SELECT - col2 / col2 col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - ( + col1 ) * col1 + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7642
SELECT + + 72 DIV 9 * col2 FROM tab0 AS cor0
----
376
792
80

skipif mysql # not compatible
query I rowsort label-7642
SELECT + + 72 / 9 * col2 FROM tab0 AS cor0
----
376
792
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + col2 ) col0 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab0 WHERE 69 >= + 37 / 51
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7645
SELECT DISTINCT 88 * COUNT( DISTINCT + CAST( - col1 AS SIGNED ) ) AS col2 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT 88 * COUNT ( DISTINCT + CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab0
----
264

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + - - col0 + - col2 + + 70 <= + col2
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7647
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < + col0 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7647
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < + col0 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + + ( - + 55 ) * - - 70 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4de1ef5ef1c15ef8d7a9583820213187

query I rowsort
SELECT - 78 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT + COUNT( * ) + - - 67 AS col1 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-7650
SELECT + COUNT ( * ) + - - 67 AS col1 FROM tab1 AS cor0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7651
SELECT DISTINCT ( col1 ) DIV - 30 + col0 FROM tab2 AS cor0
----
45
62
73

skipif mysql # not compatible
query I rowsort label-7651
SELECT DISTINCT ( col1 ) / - 30 + col0 FROM tab2 AS cor0
----
45
62
73

query I rowsort
SELECT DISTINCT + col1 * - col2 + col2 * + 33 AS col1 FROM tab1 AS cor0
----
-952
1652
1824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col2 FROM tab1 AS cor0
----
16
16
16

query II rowsort
SELECT + col1 AS col2, 68 - + 56 + + col2 * - - col0 AS col0 FROM tab2 AS cor0
----
51
1070
67
4362
77
2572

query I rowsort
SELECT + - ( - + col1 ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL AVG ( DISTINCT + + col2 ) FROM tab1 AS cor0 WHERE col0 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * + + col2 + + - 14 NOT IN ( + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 65 + - col2 AS col2 FROM tab1 AS cor0
----
-3
-31
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7659
SELECT ALL col1 + + 76 + + - 70 * + col1 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL col1 + + 76 + + - 70 * + col1 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7660
SELECT - CAST( - ( - + col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7660
SELECT - CAST ( - ( - + col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ALL + COUNT( * ) + COUNT( DISTINCT col1 ) * + - MIN( + 70 ) FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL + COUNT ( * ) + COUNT ( DISTINCT col1 ) * + - MIN ( + 70 ) FROM tab0 AS cor0
----
-207

query II rowsort
SELECT + ( + 62 ) AS col1, ( - - 53 ) FROM tab2 WHERE NULL >= 88
----

query I rowsort
SELECT DISTINCT 7 + - col1 FROM tab2
----
-44
-60
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT ALL - 73 + + COUNT( * ) AS col2 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL - 73 + + COUNT ( * ) AS col2 FROM tab1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT ALL + 40 - COUNT( + col0 ) AS col1 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL + 40 - COUNT ( + col0 ) AS col1 FROM tab0
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-7666
SELECT ALL 79 DIV + col2, + col0 DIV + col0 + + + col2 + + col1 col0 FROM tab2
----
1
118
1
126
3
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7666
SELECT ALL 79 / + col2, + col0 / + col0 + + + col2 + + col1 col0 FROM tab2
----
1
118
1
126
3
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + 81 + - + SUM( DISTINCT + - 90 ) FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-7667
SELECT + 81 + - + SUM ( DISTINCT + - 90 ) FROM tab1
----
171

query I rowsort
SELECT 42 + + - col1 + - 81 FROM tab2 AS cor0
----
-106
-116
-90

query I rowsort
SELECT DISTINCT + - ( + ( + 84 ) ) FROM tab2 AS cor0
----
-84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 >= NULL
----

query I rowsort
SELECT - 80 * - + col2 FROM tab1
----
4720
5440
7680

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ALL + MIN( ALL 35 ) AS col0 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL + MIN ( ALL 35 ) AS col0 FROM tab0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT ALL + SUM( - 4 ) col0 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7673
SELECT ALL + SUM ( - 4 ) col0 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT ALL - + 33 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7675
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( + col0 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7675
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( + col0 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7676
SELECT ALL - - COUNT( * ), + ( 98 ) AS col1 FROM tab0 AS cor0
----
3
98

skipif mysql # not compatible
query II rowsort label-7676
SELECT ALL - - COUNT ( * ), + ( 98 ) AS col1 FROM tab0 AS cor0
----
3
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7677
SELECT - col2 DIV - col0 + col1 * - - col2 AS col2 FROM tab0 AS cor0
----
100
210
3810

skipif mysql # not compatible
query I rowsort label-7677
SELECT - col2 / - col0 + col1 * - - col2 AS col2 FROM tab0 AS cor0
----
100
210
3810

query II rowsort
SELECT ALL col2 AS col1, - col1 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT MAX( DISTINCT - 96 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-7679
SELECT MAX ( DISTINCT - 96 ) FROM tab1
----
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 32 * + 62 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7681
SELECT CAST( NULL AS DECIMAL ) * 21 * - + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT CAST ( NULL AS REAL ) * 21 * - + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7682
SELECT + COUNT( * ) DIV COUNT( * ) * COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7682
SELECT + COUNT ( * ) / COUNT ( * ) * COUNT ( * ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7683
SELECT ALL - col0 / - + CAST( NULL AS SIGNED ) FROM tab2 WHERE ( NOT + col2 / - 50 IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL - col0 / - + CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( NOT + col2 / - 50 IS NULL )
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( - col2 ) < + + 81 * - + col1 )
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT col0 * - col0 * col1 DIV - - col0 col2 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7685
SELECT col0 * - col0 * col1 / - - col0 col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT + col0 * - ( - - col0 ) FROM tab2
----
-2116
-4096
-5625

query II rowsort
SELECT - 38, col1 FROM tab2
----
-38
51
-38
67
-38
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7688
SELECT CAST( NULL AS SIGNED ) * - 98 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT CAST ( NULL AS INTEGER ) * - 98 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col0, + col1 * 4 * - col2 FROM tab0 AS cor0
----
15
-15228
87
-840
97
-396

query I rowsort
SELECT ALL 52 * - + ( - ( - - col1 ) ) AS col1 FROM tab1
----
2444
260
728

query II rowsort
SELECT ( col2 ) AS col0, - col0 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT + COUNT( * ) * ( 17 ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-7693
SELECT + COUNT ( * ) * ( 17 ) FROM tab0
----
51

query I rowsort
SELECT DISTINCT + col2 * - - ( - 81 ) AS col1 FROM tab0
----
-3807
-8019
-810

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE ( NOT + col2 IS NULL )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT + COUNT( * ) + 71 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-7696
SELECT + COUNT ( * ) + 71 FROM tab0 AS cor0
----
74

query I rowsort
SELECT 78 AS col0 FROM tab0 cor0 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 14 / 47 - - 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - - 67 + + 93 FROM tab0
----
1500
160
5520

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT COUNT( * ) + 14 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-7700
SELECT COUNT ( * ) + 14 FROM tab1
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7701
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + SUM( DISTINCT + - 8 ) AS col1, + COUNT( * ) * - COUNT( * ) FROM tab2
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-7701
SELECT DISTINCT CAST ( NULL AS REAL ) * + SUM ( DISTINCT + - 8 ) AS col1, + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
NULL
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col0 BETWEEN - + 88 AND + ( 68 )
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7703
SELECT ALL 88 AS col2, COUNT( * ) AS col0 FROM tab1
----
88
3

skipif mysql # not compatible
query II rowsort label-7703
SELECT ALL 88 AS col2, COUNT ( * ) AS col0 FROM tab1
----
88
3

query I rowsort
SELECT DISTINCT - ( - col2 ) - - + col2 AS col0 FROM tab1
----
118
136
192

query I rowsort
SELECT DISTINCT 90 - + + 80 AS col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= col0
----
0

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= col0
----
0

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT col2 * + col2, + ( 85 ), col2 AS col2 FROM tab1 AS cor0 WHERE NULL > - 89
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7709
SELECT ALL + CAST( - MAX( - col0 ) AS SIGNED ) - 45 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL + CAST ( - MAX ( - col0 ) AS INTEGER ) - 45 FROM tab1 AS cor0
----
6

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT ( - + 71 * - ( - col2 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE - col2 NOT BETWEEN col2 * + + 8 AND NULL
----
51
67
77

query I rowsort
SELECT - - 37 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7713
SELECT * FROM tab2 WHERE NOT col0 + + 31 * - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7713
SELECT * FROM tab2 WHERE NOT col0 + + 31 * - + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL col1 * + col2 + - col1 AS col2 FROM tab1 AS cor0
----
1330
290
3149

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT DISTINCT + COUNT( * ) * - 62 AS col1 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT + COUNT ( * ) * - 62 AS col1 FROM tab1 AS cor0
----
-186

query I rowsort
SELECT ALL - col2 * - 24 AS col0 FROM tab1 AS cor0
----
1416
1632
2304

onlyif mysql # DIV for integer division: 
query I rowsort label-7717
SELECT ALL + - ( + col2 ) DIV col2 + + + 52 FROM tab0 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL + - ( + col2 ) / col2 + + + 52 FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT + col1 * + - col2 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7719
SELECT ALL 6 DIV CAST( ( - - col2 ) AS SIGNED ) * + - col2 * + col0 * - col2 + - ( col2 ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL 6 / CAST ( ( - - col2 ) AS INTEGER ) * + - col2 * + col0 * - col2 + - ( col2 ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7720
SELECT ALL COUNT( * ) AS col1, 58 FROM tab0
----
3
58

skipif mysql # not compatible
query II rowsort label-7720
SELECT ALL COUNT ( * ) AS col1, 58 FROM tab0
----
3
58

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( - - 40 ) >= - - col1
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 >= + col2
----

query I rowsort
SELECT 91 FROM tab0 WHERE NOT + col2 IS NULL
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT - SUM( DISTINCT + 40 ) AS col0 FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-7724
SELECT - SUM ( DISTINCT + 40 ) AS col0 FROM tab1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT COUNT( * ) + - + ( 27 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
-27

skipif mysql # not compatible
query I rowsort label-7725
SELECT COUNT ( * ) + - + ( 27 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT - ( + COUNT( - 45 ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7726
SELECT - ( + COUNT ( - 45 ) ) FROM tab2 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 ) NOT BETWEEN + - ( - + col0 ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT ( + + COUNT( * ) ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7728
SELECT ( + + COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 + + - 92 FROM tab2
----
-138
-156
-167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7730
SELECT DISTINCT - - ( + - COUNT( * ) ) DIV COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-1

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT - - ( + - COUNT ( * ) ) / COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT + MAX( - ( - - 76 ) ) AS col1 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-7731
SELECT + MAX ( - ( - - 76 ) ) AS col1 FROM tab1 AS cor0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7732
SELECT * FROM tab2 AS cor0 WHERE + 52 * + 65 * + - 86 NOT BETWEEN - col2 AND + 4 * + + CAST( NULL AS SIGNED ) + + col2 - - 91 * - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7732
SELECT * FROM tab2 AS cor0 WHERE + 52 * + 65 * + - 86 NOT BETWEEN - col2 AND + 4 * + + CAST ( NULL AS INTEGER ) + + col2 - - 91 * - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 17 + col1 AS col2 FROM tab0 AS cor0
----
18
38
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 25 = + 72 * - - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT ALL - MIN( ALL + col1 ) FROM tab1 cor0 WHERE NOT NULL = col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL - MIN ( ALL + col1 ) FROM tab1 cor0 WHERE NOT NULL = col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT DISTINCT - + COUNT( * ) + - + 46 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT - + COUNT ( * ) + - + 46 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT ALL - col1 + - ( + + col0 ) FROM tab2
----
-141
-142
-97

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE - col2 * + col1 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT ALL - COUNT( + col1 ) AS col2 FROM tab0 WHERE ( NOT col1 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL - COUNT ( + col1 ) AS col2 FROM tab0 WHERE ( NOT col1 IS NOT NULL )
----
0

query II rowsort
SELECT + col1 AS col1, - col2 / + - col0 + + col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 25 * 55 + - col0 + + 37 * + + 38 AS col2 FROM tab2
----
2706
2717
2735

query I rowsort
SELECT + 34 + col2 AS col1 FROM tab0
----
133
44
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT DISTINCT + COUNT( * ) * 13 * COUNT( * ) FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-7743
SELECT DISTINCT + COUNT ( * ) * 13 * COUNT ( * ) FROM tab1 AS cor0
----
117

query I rowsort
SELECT DISTINCT - ( - 14 ) AS col0 FROM tab1 AS cor0 WHERE NOT + 65 * 29 IS NULL
----
14

query I rowsort
SELECT DISTINCT + ( + - col1 ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ALL - 69 * + COUNT( * ) AS col0 FROM tab0 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL - 69 * + COUNT ( * ) AS col0 FROM tab0 cor0
----
-207

query I rowsort
SELECT DISTINCT 13 * col0 + + - ( - col1 ) FROM tab1 AS cor0
----
1110
1230
677

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( NULL IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + ( col2 ) * - col2 + - col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7749
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + ( col2 ) * - col2 + - col0 > NULL
----
0

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT - col1 IS NULL )
----

query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

query II rowsort
SELECT + col0 * + + col2, + col1 AS col2 FROM tab0
----
705
81
870
21
9603
1

query I rowsort
SELECT + 39 * - + col1 FROM tab2
----
-1989
-2613
-3003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7754
SELECT ALL ( + 47 ) * + - CAST( NULL AS SIGNED ) + - 26 + + 57 + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL ( + 47 ) * + - CAST ( NULL AS INTEGER ) + - 26 + + 57 + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7755
SELECT COUNT( * ) DIV - 31 * + - 33 * - - SUM( + col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7755
SELECT COUNT ( * ) / - 31 * + - 33 * - - SUM ( + col2 ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7756
SELECT - CAST( - + 10 AS SIGNED ) + - 75 + + - ( - col2 ) * 5 * + col0 AS col0 FROM tab0 WHERE NOT 93 >= 71
----

skipif mysql # not compatible
query I rowsort label-7756
SELECT - CAST ( - + 10 AS INTEGER ) + - 75 + + - ( - col2 ) * 5 * + col0 AS col0 FROM tab0 WHERE NOT 93 >= 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT + MIN( - + col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT + MIN ( - + col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT DISTINCT + - 26 * - + col1 + - col0 + col2 * 62 FROM tab0 AS cor0 WHERE - ( + + col2 ) + + - 21 + col2 >= - col1
----
1079
5005

query II rowsort
SELECT ( - + 81 ) AS col2, col0 FROM tab2 cor0
----
-81
46
-81
64
-81
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7760
SELECT ALL + ( - col0 ) DIV + col0 + 23 FROM tab1
----
22
22
22

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL + ( - col0 ) / + col0 + 23 FROM tab1
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT ALL - MAX( ALL - col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL - MAX ( ALL - col2 ) AS col2 FROM tab1
----
59

query II rowsort
SELECT DISTINCT + 86 AS col1, ( 56 ) + - + col1 * col0 * ( + - 70 ) FROM tab0 AS cor0
----
86
127946
86
6846
86
85106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7763
SELECT DISTINCT + CAST( - 2 AS SIGNED ) FROM tab2 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT + CAST ( - 2 AS INTEGER ) FROM tab2 cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT DISTINCT - COUNT( * ) + COUNT( col0 ) + - + 69 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT - COUNT ( * ) + COUNT ( col0 ) + - + 69 FROM tab0 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT + 70 + + ( + - SUM( DISTINCT - 6 ) ) FROM tab2 cor0
----
76

skipif mysql # not compatible
query I rowsort label-7765
SELECT + 70 + + ( + - SUM ( DISTINCT - 6 ) ) FROM tab2 cor0
----
76

query I rowsort
SELECT col1 * 49 * 94 + - 88 AS col1 FROM tab0 AS cor0
----
372998
4518
96638

onlyif mysql # DIV for integer division: 
query I rowsort label-7767
SELECT - ( col2 ) DIV col1 + 80 FROM tab1 AS cor0
----
69
74
79

skipif mysql # not compatible
query I rowsort label-7767
SELECT - ( col2 ) / col1 + 80 FROM tab1 AS cor0
----
69
74
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7768
SELECT ALL col1 * + ( - col1 ) * + col1 + - + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * col0 + - ( + 14 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL col1 * + ( - col1 ) * + col1 + - + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * col0 + - ( + 14 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT DISTINCT COUNT( * ) - + + 10 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT COUNT ( * ) - + + 10 FROM tab1
----
-7

query III rowsort
SELECT * FROM tab0 WHERE ( - + col0 + col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT SUM( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT SUM ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - AVG ( - 90 ) + + 83 col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) IN ( ( 79 ) - + col0, + 16, + + 18 * - + 95, + col1, + 28, + 95 ) ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col2 col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # DIV for integer division: 
query II rowsort label-7774
SELECT + + col0 DIV - - col1 AS col0, col1 FROM tab2 AS cor0
----
0
51
0
77
1
67

skipif mysql # not compatible
query II rowsort label-7774
SELECT + + col0 / - - col1 AS col0, col1 FROM tab2 AS cor0
----
0
51
0
77
1
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7775
SELECT - + CAST( NULL AS DECIMAL ) * AVG ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7775
SELECT - + CAST ( NULL AS REAL ) * AVG ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 76 * col1 * - col2 * - col1 / - ( + - col0 ) + - ( col2 ) + + col0 + - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7777
SELECT ALL + - COUNT( + - col1 ) AS col0, 46 FROM tab0 AS cor0
----
-3
46

skipif mysql # not compatible
query II rowsort label-7777
SELECT ALL + - COUNT ( + - col1 ) AS col0, 46 FROM tab0 AS cor0
----
-3
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7778
SELECT - CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7778
SELECT - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + - 84 / col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 2 + - - 1 col1 FROM tab2 cor0 WHERE NOT NULL >= col2 / - ( + 89 )
----

query I rowsort
SELECT - 74 * - col0 AS col1 FROM tab0 AS cor0
----
1110
6438
7178

query I rowsort
SELECT DISTINCT + - col0 + + + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-1104
-2624
-4425

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT BETWEEN 63 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + - 78 + 50 > col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7785
SELECT CAST( ( - CAST( - - COUNT( * ) AS SIGNED ) ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7785
SELECT CAST ( ( - CAST ( - - COUNT ( * ) AS INTEGER ) ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + + col1 + - + 28 + col2 FROM tab0 AS cor0
----
100
3
72

query I rowsort
SELECT col0 + - + col1 AS col2 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7788
SELECT ALL - - col2 DIV - - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL - - col2 / - - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7789
SELECT SUM( ALL CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7789
SELECT SUM ( ALL CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - 12 * - col0 AS col1 FROM tab0
----
1044
1164
180

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 22 + + 7 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 - ( - col1 ) AS col1 FROM tab2
----
117
125
74

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 88 * 73 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 30 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 ) BETWEEN ( - 57 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE + 72 IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT DISTINCT COUNT( * ) * + COUNT( col0 ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT COUNT ( * ) * + COUNT ( col0 ) AS col1 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT ALL 16 * COUNT( * ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL 16 * COUNT ( * ) FROM tab0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7800
SELECT ALL 1 DIV + col2 - 53 col1 FROM tab0
----
-53
-53
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7800
SELECT ALL 1 / + col2 - 53 col1 FROM tab0
----
-53
-53
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7801
SELECT + 61 DIV - 75 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7801
SELECT + 61 / - 75 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7802
SELECT - 50 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7802
SELECT - 50 / col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 2 - 82 FROM tab0 WHERE NOT ( 89 * + col2 ) BETWEEN NULL AND + col0
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7804
SELECT * FROM tab0 WHERE NOT - col0 + col2 NOT BETWEEN + CAST( NULL AS SIGNED ) AND ( 99 )
----

skipif mysql # not compatible
query III rowsort label-7804
SELECT * FROM tab0 WHERE NOT - col0 + col2 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND ( 99 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 / col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE ( 37 ) NOT BETWEEN - 51 + 12 AND ( col1 )
----

query I rowsort
SELECT ALL ( + col1 ) + + col0 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT col1 IN ( col0 * col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-7808
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT col1 IN ( col0 * col2 )
----
-3

query I rowsort
SELECT col2 * 43 + - col0 FROM tab0
----
2006
343
4160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7810
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col0 FROM tab2 cor0 WHERE ( col1 ) BETWEEN 2 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT CAST ( NULL AS REAL ) * - col0 FROM tab2 cor0 WHERE ( col1 ) BETWEEN 2 AND ( NULL )
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= col0 * + 95
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 80 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT COUNT( DISTINCT + ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7814
SELECT COUNT ( DISTINCT + ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 19 + col2 IN ( - ( col2 ) * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 48 * 4 FROM tab0 cor0
----
192
192
192

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT + 89 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 88 FROM tab1 cor0
----
88

query I rowsort
SELECT ALL - ( + col0 ) * 44 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
-2244
-3740
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT DISTINCT + - 97 + COUNT( * ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT + - 97 + COUNT ( * ) FROM tab1 AS cor0
----
-94

query I rowsort
SELECT DISTINCT - col2 + - 49 FROM tab0 AS cor0
----
-148
-59
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7822
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - col0 >= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col0 >= col2
----
NULL

query I rowsort
SELECT ALL - col0 + 31 AS col0 FROM tab0
----
-56
-66
16

query I rowsort
SELECT - col1 + - + col1 + - col1 * - 97 AS col1 FROM tab0
----
1995
7695
95

query III rowsort
SELECT * FROM tab2 WHERE ( - 39 * - col0 - - 84 ) NOT BETWEEN col1 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 54 ) FROM tab2 WHERE NULL <> col1 * col1 + col2 * - col0
----

query I rowsort
SELECT 51 + col2 + - 84 FROM tab0
----
-23
14
66

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7829
SELECT DISTINCT col2 DIV - 51 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT col2 / - 51 FROM tab0
----
-1
0

query I rowsort
SELECT DISTINCT + col1 * - 86 AS col2 FROM tab0
----
-1806
-6966
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT + ( COUNT( * ) ) FROM tab1 WHERE ( - 50 ) IN ( 76 )
----
0

skipif mysql # not compatible
query I rowsort label-7831
SELECT + ( COUNT ( * ) ) FROM tab1 WHERE ( - 50 ) IN ( 76 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7832
SELECT ALL 51 DIV CAST( + col1 AS SIGNED ) * col1 AS col2 FROM tab0
----
0
42
51

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL 51 / CAST ( + col1 AS INTEGER ) * col1 AS col2 FROM tab0
----
0
42
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 - - ( 21 ) / col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7834
SELECT DISTINCT - 62 + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT - 62 + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7835
SELECT - CAST( 84 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-7835
SELECT - CAST ( 84 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-84
-84
-84

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + + 81 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7837
SELECT + COUNT( * ) - - ( - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT + COUNT ( * ) - - ( - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7839
SELECT ALL col2, col1 DIV 20 * col1 + col0 AS col2 FROM tab2
----
23
148
40
295
58
276

skipif mysql # not compatible
query II rowsort label-7839
SELECT ALL col2, col1 / 20 * col1 + col0 AS col2 FROM tab2
----
23
148
40
295
58
276

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 4 + col0 + - col1 * col1 / + 43 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7841
SELECT ALL + + CAST( + 44 AS SIGNED ) AS col0 FROM tab2 cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL + + CAST ( + 44 AS INTEGER ) AS col0 FROM tab2 cor0
----
44
44
44

query II rowsort
SELECT ALL - col1, - 68 AS col2 FROM tab2 AS cor0
----
-51
-68
-67
-68
-77
-68

query I rowsort
SELECT DISTINCT - 2 + + 96 FROM tab1 AS cor0
----
94

query I rowsort
SELECT + - 97 + col2 FROM tab1 AS cor0
----
-1
-29
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL - SUM( 80 ) FROM tab0 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL - SUM ( 80 ) FROM tab0 AS cor0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT DISTINCT - 78 + - 75 * SUM( ALL 51 ) FROM tab2 AS cor0
----
-11553

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT - 78 + - 75 * SUM ( ALL 51 ) FROM tab2 AS cor0
----
-11553

query I rowsort
SELECT ALL - 29 * + - ( + col0 ) FROM tab2 AS cor0
----
1334
1856
2175

query I rowsort
SELECT - + col1 * + - col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7849
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7849
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - ( - col1 ) * - col0 AS col1 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab1 WHERE - 80 * - col2 * 4 BETWEEN ( - col1 * - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT ALL - SUM( DISTINCT 30 ) col0 FROM tab2
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7852
SELECT ALL - SUM ( DISTINCT 30 ) col0 FROM tab2
----
-30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 18 NOT BETWEEN + col0 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7854
SELECT 86 FROM tab2 WHERE NOT ( - + col0 ) NOT BETWEEN ( CAST( - col1 AS SIGNED ) + - 58 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7854
SELECT 86 FROM tab2 WHERE NOT ( - + col0 ) NOT BETWEEN ( CAST ( - col1 AS INTEGER ) + - 58 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 / 5 NOT IN ( 70 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7856
SELECT ALL - col2 / 23 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL - col2 / 23 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7857
SELECT - col2 DIV - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7857
SELECT - col2 / - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT - - COUNT( * ) * + 8 AS col2 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7858
SELECT - - COUNT ( * ) * + 8 AS col2 FROM tab0 AS cor0
----
24

query I rowsort
SELECT + + 50 * - col1 + col2 AS col2 FROM tab1 AS cor0
----
-191
-2282
-604

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 97 - + col0 <= + col0 + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7861
SELECT ALL - 67 AS col0, 6 DIV 15 AS col1 FROM tab1
----
-67
0
-67
0
-67
0

skipif mysql # not compatible
query II rowsort label-7861
SELECT ALL - 67 AS col0, 6 / 15 AS col1 FROM tab1
----
-67
0
-67
0
-67
0

query II rowsort
SELECT DISTINCT + col2 * col2 * - 63 AS col0, - col1 FROM tab0
----
-139167
-81
-617463
-1
-6300
-21

query I rowsort
SELECT 38 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT - - col2 + - ( + col1 ) FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7865
SELECT ALL + CAST( - 19 AS SIGNED ) FROM tab2 AS cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL + CAST ( - 19 AS INTEGER ) FROM tab2 AS cor0
----
-19
-19
-19

query II rowsort
SELECT - col2 AS col2, - col2 AS col1 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT ALL - 18 FROM tab2 AS cor0 WHERE - col2 + - + 85 IS NULL
----

query I rowsort
SELECT ALL 36 + + + 96 FROM tab2 AS cor0
----
132
132
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 * + - col0 col1 FROM tab0
----
1275
7395
8245

query I rowsort
SELECT ( 71 ) + - col1 * - - 66 * - col1 + col2 * - col0 AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
-9466
28307
432392

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT 3 * col1 AS col0 FROM tab0
----
243
3
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7873
SELECT ALL + 89 DIV - 91 + - 48 - col0 AS col1 FROM tab2
----
-112
-123
-94

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL + 89 / - 91 + - 48 - col0 AS col1 FROM tab2
----
-112
-123
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7874
SELECT ALL * FROM tab1 WHERE NOT ( NOT col2 - - + col0 * - + col0 * - CAST( NULL AS SIGNED ) NOT BETWEEN ( - col2 ) AND + 35 + col1 )
----

skipif mysql # not compatible
query III rowsort label-7874
SELECT ALL * FROM tab1 WHERE NOT ( NOT col2 - - + col0 * - + col0 * - CAST ( NULL AS INTEGER ) NOT BETWEEN ( - col2 ) AND + 35 + col1 )
----

query I rowsort
SELECT - 30 * + + col1 AS col2 FROM tab0
----
-2430
-30
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT MIN( + 53 ) + + + COUNT( * ) * + COUNT( * ) col1 FROM tab1
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7876
SELECT MIN ( + 53 ) + + + COUNT ( * ) * + COUNT ( * ) col1 FROM tab1
----
62

query I rowsort
SELECT DISTINCT ( + + 10 ) AS col1 FROM tab0
----
10

query I rowsort
SELECT - 9 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-9
-9
-9

query II rowsort
SELECT DISTINCT 23 AS col0, col1 AS col0 FROM tab2 AS cor0
----
23
51
23
67
23
77

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <> col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 93 + + 23 ) >= + 72 - + col0 - col2 * ( 22 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col0 + + + 21 FROM tab0 AS cor0
----
108
118
36

query III rowsort
SELECT * FROM tab0 WHERE col2 - + - col1 NOT IN ( - 87 + + 1 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 61 + - + col1 FROM tab0
----
-20
40
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7885
SELECT ALL MIN( ALL + - col0 ) DIV - + 24 - - - 16 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL MIN ( ALL + - col0 ) / - + 24 - - - 16 FROM tab2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7886
SELECT - SUM( - - 19 ) AS col0 FROM tab1 WHERE CAST( NULL AS DECIMAL ) + - col1 * - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT - SUM ( - - 19 ) AS col0 FROM tab1 WHERE CAST ( NULL AS REAL ) + - col1 * - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 38 * - - col0 AS col0 FROM tab0 AS cor0
----
3306
3686
570

onlyif mysql # aggregate syntax: 
query II rowsort label-7888
SELECT + 8 - - 88 AS col2, - COUNT( * ) FROM tab1 AS cor0
----
96
-3

skipif mysql # not compatible
query II rowsort label-7888
SELECT + 8 - - 88 AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
96
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col1 col0 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 47 * - + col1 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7891
SELECT ALL CAST( NULL AS SIGNED ) * + 84 / + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL CAST ( NULL AS INTEGER ) * + 84 / + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + + col1 + - 58 - - col1 FROM tab1 cor0 WHERE NOT - col0 BETWEEN - col2 AND + col1
----
127
37

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 58 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT IN ( + 12 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT 0 * + SUM( - col0 ) + 93 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT IN ( - col2 * - col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT 0 * + SUM ( - col0 ) + 93 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT IN ( - col2 * - col0 ) )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, + ( - 43 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT DISTINCT MIN( DISTINCT + 40 ) * + 49 FROM tab1 AS cor0
----
1960

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT MIN ( DISTINCT + 40 ) * + 49 FROM tab1 AS cor0
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT DISTINCT - + SUM( + - 23 ) * 16 AS col2 FROM tab1 AS cor0
----
1104

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT - + SUM ( + - 23 ) * 16 AS col2 FROM tab1 AS cor0
----
1104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7899
SELECT 92 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 52 + - + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7899
SELECT 92 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 52 + - + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7900
SELECT DISTINCT col1 * + - col1 col0, + 32 * + + CAST( 43 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
1376
-441
1376
-6561
1376

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7900
SELECT DISTINCT col1 * + - col1 col0, + 32 * + + CAST ( 43 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
1376
-441
1376
-6561
1376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7901
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - - col1 AND col2 / + col2 + - 48
----

skipif mysql # not compatible
query I rowsort label-7901
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - - col1 AND col2 / + col2 + - 48
----

query I rowsort
SELECT + ( - 26 ) AS col2 FROM tab2
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT - MAX( DISTINCT - + col2 ) col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7903
SELECT - MAX ( DISTINCT - + col2 ) col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + ( + 72 ) AS col2 FROM tab2
----
72
72
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7905
SELECT + col1 DIV 78 * - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7905
SELECT + col1 / 78 * - col1 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( 3 ) AND - 54
----

query I rowsort
SELECT DISTINCT 49 * - ( + 23 ) + + col1 * - ( - 56 ) - col0 FROM tab2 AS cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT + 20 * - + 53 * + - 35 * + col0 AS col0 FROM tab1
----
1892100
3153500
3376100

query I rowsort
SELECT DISTINCT - 15 * - 78 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT DISTINCT ( - + MAX( + col1 ) ) col0 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7910
SELECT DISTINCT ( - + MAX ( + col1 ) ) col0 FROM tab0
----
-81

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT - + ( + - 43 ) IS NULL )
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT DISTINCT - + 36 + 44 FROM tab1 AS cor0
----
8

query I rowsort
SELECT ALL - ( - - ( - col0 ) ) FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - ( + col2 ) + + ( + - 60 ) FROM tab1 AS cor0
----
-119
-128
-156

query I rowsort
SELECT ALL - 55 * - + 54 + - col0 AS col1 FROM tab0 AS cor0
----
2873
2883
2955

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 + ( col0 ) * 94 col1 FROM tab1 cor0
----
4794
7990
8554

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 - 9 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + - 72 AS col0 FROM tab2
----
-14
-32
-49

query I rowsort
SELECT ALL col0 * + col2 + col2 AS col2 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT - 96 * - 49 + - col0 AS col2 FROM tab2
----
4629
4640
4658

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT ALL + 98 + + COUNT( * ) FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL + 98 + + COUNT ( * ) FROM tab1
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7922
SELECT ALL col0 * - + 45 - + CAST( NULL AS SIGNED ) col2, - col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7922
SELECT ALL col0 * - + 45 - + CAST ( NULL AS INTEGER ) col2, - col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col0 col2 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT ALL + 38 * COUNT( * ) FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL + 38 * COUNT ( * ) FROM tab2 AS cor0
----
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 + - col1 + + + col1 col0 FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT - 50 - - + col0 AS col1 FROM tab1 AS cor0
----
1
35
41

query I rowsort
SELECT ALL 77 - + col1 * + + 77 FROM tab2
----
-3850
-5082
-5852

query I rowsort
SELECT ALL - 98 FROM tab0 WHERE + - 0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + + 54 + + col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7931
SELECT DISTINCT - 38, - COUNT( * ) col0 FROM tab2 AS cor0
----
-38
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7931
SELECT DISTINCT - 38, - COUNT ( * ) col0 FROM tab2 AS cor0
----
-38
-3

query I rowsort
SELECT ALL + col0 * - - 66 AS col2 FROM tab1 AS cor0
----
3366
5610
6006

query II rowsort
SELECT DISTINCT 30, 90 AS col1 FROM tab1 AS cor0
----
30
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT ALL + COUNT( * ) * - - SUM( 5 ) AS col2 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL + COUNT ( * ) * - - SUM ( 5 ) AS col2 FROM tab1 AS cor0
----
45

query I rowsort
SELECT - col2 * - + 28 FROM tab2 AS cor0
----
1120
1624
644

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT - col0 DIV - 40 AS col1 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-7936
SELECT - col0 / - 40 AS col1 FROM tab1 AS cor0
----
1
2
2

query II rowsort
SELECT ALL - - 71 AS col1, + col1 AS col0 FROM tab1 AS cor0
----
71
14
71
47
71
5

query I rowsort
SELECT + col1 * - 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 9 FROM tab2, tab1 cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 64 * + - 18 FROM tab1 AS cor0
----
-1152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7942
SELECT DISTINCT - - CAST( 65 AS SIGNED ) AS col0, + 80 FROM tab0 AS cor0
----
65
80

skipif mysql # not compatible
query II rowsort label-7942
SELECT DISTINCT - - CAST ( 65 AS INTEGER ) AS col0, + 80 FROM tab0 AS cor0
----
65
80

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( - 24 / - col1 ) NOT BETWEEN 5 * 64 AND col2
----

query I rowsort
SELECT ALL + + 51 * + - ( - + 49 ) + - - col1 AS col1 FROM tab0 cor0
----
2500
2520
2580

onlyif mysql # DIV for integer division: 
query II rowsort label-7945
SELECT col0 DIV + ( 88 ), ( - - col0 ) * - + col2 AS col0 FROM tab0 cor0
----
0
-705
0
-870
1
-9603

skipif mysql # not compatible
query II rowsort label-7945
SELECT col0 / + ( 88 ), ( - - col0 ) * - + col2 AS col0 FROM tab0 cor0
----
0
-705
0
-870
1
-9603

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7946
SELECT DISTINCT - + col1 * + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT - + col1 * + + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + col0, col2 * - col1 * col0 FROM tab2 AS cor0
----
46
-53958
64
-197120
75
-291450

query I rowsort
SELECT ALL col0 * + 38 AS col0 FROM tab0 AS cor0
----
3306
3686
570

query I rowsort
SELECT ( - + 9 ) FROM tab2 AS cor0
----
-9
-9
-9

query II rowsort
SELECT + + 5 * - col0 * + col1 AS col1, - col0 * - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-11730
119646
-24640
379456
-25125
336675

query II rowsort
SELECT col0, - 47 * + col1 FROM tab2 AS cor0
----
46
-2397
64
-3619
75
-3149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT ALL + - col2 + - col0 + + 44 FROM tab2 AS cor0
----
-25
-60
-89

query II rowsort
SELECT ALL + + col2 - col2 + - 58 AS col2, + 45 - + 93 FROM tab0 AS cor0
----
-58
-48
-58
-48
-58
-48

query III rowsort
SELECT * FROM tab2 WHERE + col1 + col2 + - ( - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 <> NULL
----

query I rowsort
SELECT ALL + ( 90 ) * 84 + + - col0 * col2 * 57 AS col2 FROM tab0
----
-32625
-42030
-539811

query I rowsort
SELECT - col2 * - - 38 - - col0 AS col2 FROM tab2
----
-1456
-2129
-828

query I rowsort
SELECT DISTINCT col2 - 66 * col2 FROM tab1
----
-3835
-4420
-6240

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7960
SELECT * FROM tab2 WHERE NULL < + + CAST( NULL AS DECIMAL ) + 67
----

skipif mysql # not compatible
query III rowsort label-7960
SELECT * FROM tab2 WHERE NULL < + + CAST ( NULL AS REAL ) + 67
----

query I rowsort
SELECT col0 - - col1 * + - col1 FROM tab2
----
-2555
-4414
-5865

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT DISTINCT MAX( - + col0 ) col1 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7962
SELECT DISTINCT MAX ( - + col0 ) col1 FROM tab0
----
-15

query I rowsort
SELECT + col1 + - ( - ( 10 ) ) FROM tab2 AS cor0
----
61
77
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7964
SELECT ALL col0 * + 60 + + CAST( NULL AS SIGNED ) + + - 84 + + 84 + + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL col0 * + 60 + + CAST ( NULL AS INTEGER ) + + - 84 + + 84 + + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + ( + ( - + col2 ) ) col1 FROM tab2 cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT DISTINCT - 66 + - SUM( ALL - 90 ) AS col2 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT - 66 + - SUM ( ALL - 90 ) AS col2 FROM tab2 AS cor0
----
204

query II rowsort
SELECT - - col1, col1 FROM tab0 AS cor0 WHERE + col1 + - col2 IS NULL
----

query I rowsort
SELECT - 7 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 87 ) col2 FROM tab0
----
-87
-87
-87

query II rowsort
SELECT col2 AS col1, + ( 80 ) AS col0 FROM tab2
----
23
80
40
80
58
80

query I rowsort
SELECT + col1 * + + 48 FROM tab1
----
2256
240
672

query I rowsort
SELECT col0 * - col2 * - - col2 FROM tab1 AS cor0
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT - - COUNT( * ) * + 51 AS col1 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT - - COUNT ( * ) * + 51 AS col1 FROM tab2 AS cor0
----
153

query I rowsort
SELECT DISTINCT 72 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT ALL + COUNT( * ) * 76 FROM tab2 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL + COUNT ( * ) * 76 FROM tab2 AS cor0
----
228

query I rowsort
SELECT 94 * - + col0 FROM tab1
----
-4794
-7990
-8554

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT SUM( ( - 54 ) ) AS col1 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-7977
SELECT SUM ( ( - 54 ) ) AS col1 FROM tab0
----
-162

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 * + + col2 >= NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col1, col0 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT col2 * + + col0 * + col0 FROM tab2
----
163840
326250
48668

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7981
SELECT CAST( - + 97 AS SIGNED ), col0 AS col2 FROM tab1
----
-97
51
-97
85
-97
91

skipif mysql # not compatible
query II rowsort label-7981
SELECT CAST ( - + 97 AS INTEGER ), col0 AS col2 FROM tab1
----
-97
51
-97
85
-97
91

query I rowsort
SELECT ALL + col0 * ( - 36 ) AS col1 FROM tab0
----
-3132
-3492
-540

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 < + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT MIN( DISTINCT + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7984
SELECT MIN ( DISTINCT + col0 ) AS col2 FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 * - 14 col0 FROM tab2
----
-1036
-1036
-1036

onlyif mysql # DIV for integer division: 
query I rowsort label-7986
SELECT DISTINCT + 47 DIV + + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT + 47 / + + col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7987
SELECT - col2 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7987
SELECT - col2 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT + 94 * COUNT( * ) - - 94 FROM tab1 AS cor0
----
376

skipif mysql # not compatible
query I rowsort label-7988
SELECT + 94 * COUNT ( * ) - - 94 FROM tab1 AS cor0
----
376

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT - MAX( 43 ) AS col1 FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-7989
SELECT - MAX ( 43 ) AS col1 FROM tab0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7990
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + col0 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 51 * + 14 AS col0 FROM tab0
----
714

query I rowsort
SELECT ALL 89 FROM tab2 AS cor0 WHERE col1 = col0 * + 31 + col0 AND NOT col2 >= + 34
----

query I rowsort
SELECT ALL - col1 * + - 64 + + + col1 FROM tab1 cor0
----
3055
325
910

onlyif mysql # DIV for integer division: 
query I rowsort label-7994
SELECT DISTINCT col1 + - + col2 DIV + col1 FROM tab0 AS cor0
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT col1 + - + col2 / + col1 FROM tab0 AS cor0
----
-98
21
81

query I rowsort
SELECT DISTINCT - 29 + col2 FROM tab2 cor0
----
-6
11
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT + COUNT( * ) + 32 col0 FROM tab1
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7996
SELECT + COUNT ( * ) + 32 col0 FROM tab1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT - 93 + + COUNT( - 46 ) + - 42 AS col1 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-7997
SELECT - 93 + + COUNT ( - 46 ) + - 42 AS col1 FROM tab1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT ALL SUM( ( - - col1 ) ) - + COUNT( * ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL SUM ( ( - - col1 ) ) - + COUNT ( * ) FROM tab0
----
100

query I rowsort
SELECT ALL col2 - + - 58 FROM tab2
----
116
81
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN - 36 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8000
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN - 36 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT - CAST( + 12 AS SIGNED ) AS col0 FROM tab2
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-8001
SELECT - CAST ( + 12 AS INTEGER ) AS col0 FROM tab2
----
-12
-12
-12

query I rowsort
SELECT DISTINCT 66 - col1 AS col2 FROM tab2
----
-1
-11
15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 + - 66 = + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8004
SELECT DISTINCT MAX( - col1 ) DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT MAX ( - col1 ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT 38 AS col2 FROM tab2 AS cor0 WHERE NOT ( 59 ) < - 65
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT ALL MIN( - col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL MIN ( - col0 ) AS col1 FROM tab1
----
-91

query I rowsort
SELECT 94 * - - 90 + col0 AS col2 FROM tab2 WHERE NOT NULL <= + 59 + + 4
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 48 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 41 * + col2 * - col1 FROM tab1 cor0
----
-12095
-131036
-55104

query I rowsort
SELECT ALL 81 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 * + - 49 * col2 FROM tab2 cor0
----
150920
190414
57477

query I rowsort
SELECT col2 * + 18 * col1 FROM tab0 AS cor0
----
1782
3780
68526

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * + 51 IS NULL OR NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8015
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) >= - col1
----

skipif mysql # not compatible
query III rowsort label-8015
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT DISTINCT - MAX( ALL + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT - MAX ( ALL + col0 ) FROM tab2
----
-75

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col2 * - col1 / - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 43 * 14 FROM tab0
----
-602

onlyif mysql # DIV for integer division: 
query I rowsort label-8019
SELECT + 92 DIV + col2 FROM tab0 AS cor0
----
0
1
9

skipif mysql # not compatible
query I rowsort label-8019
SELECT + 92 / + col2 FROM tab0 AS cor0
----
0
1
9

query I rowsort
SELECT ALL - - 6 AS col1 FROM tab0 AS cor0 WHERE 45 * + 10 IS NOT NULL
----
6
6
6

query I rowsort
SELECT DISTINCT + col0 * + ( + 66 ) + 52 FROM tab0 AS cor0
----
1042
5794
6454

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT - COUNT( * ) + 72 AS col1 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8022
SELECT - COUNT ( * ) + 72 AS col1 FROM tab1 AS cor0
----
69

query I rowsort
SELECT DISTINCT + 24 + - col0 AS col2 FROM tab0
----
-63
-73
9

query II rowsort
SELECT - 47 AS col1, 97 FROM tab2
----
-47
97
-47
97
-47
97

query I rowsort
SELECT + 38 * 25 + - + col1 FROM tab0 AS cor0
----
869
929
949

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 20 + col0 NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 > + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8028
SELECT + ( col2 ) DIV + 81 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8028
SELECT + ( col2 ) / + 81 AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT 26 * + 63 * - 70 * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
343980

skipif mysql # not compatible
query I rowsort label-8029
SELECT 26 * + 63 * - 70 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
343980

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8030
SELECT ALL - COUNT( * ) AS col2, - COUNT( * ) - - ( + + 67 ) DIV - + 35 FROM tab2 AS cor0
----
-3
-4

skipif mysql # not compatible
query II rowsort label-8030
SELECT ALL - COUNT ( * ) AS col2, - COUNT ( * ) - - ( + + 67 ) / - + 35 FROM tab2 AS cor0
----
-3
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-8031
SELECT + - 62 AS col2, - COUNT( * ) * - - MAX( ALL - - col1 ) FROM tab2 AS cor0
----
-62
-231

skipif mysql # not compatible
query II rowsort label-8031
SELECT + - 62 AS col2, - COUNT ( * ) * - - MAX ( ALL - - col1 ) FROM tab2 AS cor0
----
-62
-231

query II rowsort
SELECT - col0 AS col2, + 86 * 17 AS col0 FROM tab0 AS cor0
----
-15
1462
-87
1462
-97
1462

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT ALL + ( 7 ) + COUNT( * ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL + ( 7 ) + COUNT ( * ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE - col0 * + - col2 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL - col2 + + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-198
-220
-3854

query III rowsort
SELECT * FROM tab1 WHERE - + col1 * + 48 + col1 / + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8037
SELECT CAST( NULL AS SIGNED ) + + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8037
SELECT CAST ( NULL AS INTEGER ) + + + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 76 * 56 AS col1 FROM tab0
----
-4256
-4256
-4256

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * col0 + - 71 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT + SUM( ALL 77 ) * + 22 FROM tab0 AS cor0
----
5082

skipif mysql # not compatible
query I rowsort label-8040
SELECT + SUM ( ALL 77 ) * + 22 FROM tab0 AS cor0
----
5082

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8041
SELECT ALL CAST( NULL AS SIGNED ), col2 FROM tab2 AS cor0 WHERE NOT ( - - 28 IS NULL )
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8041
SELECT ALL CAST ( NULL AS INTEGER ), col2 FROM tab2 AS cor0 WHERE NOT ( - - 28 IS NULL )
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8042
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8042
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 col0 FROM tab0
----
-89

query I rowsort
SELECT DISTINCT - 17 AS col2 FROM tab1 AS cor0
----
-17

query I rowsort
SELECT ALL 24 + + col2 AS col0 FROM tab0 AS cor0
----
123
34
71

onlyif mysql # DIV for integer division: 
query I rowsort label-8046
SELECT ALL - col1 DIV - 31 - - 16 + + + col2 DIV - col0 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
17
18
18

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL - col1 / - 31 - - 16 + + + col2 / - col0 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
17
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8047
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= CAST( - - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8047
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= CAST ( - - col2 AS INTEGER )
----

query I rowsort
SELECT - - col0 * - - col1 AS col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL - + 3 AS col2 FROM tab1 cor0 WHERE NOT col0 * - col0 * - 37 > NULL
----

query I rowsort
SELECT DISTINCT 94 * - ( - col2 ) AS col0 FROM tab1
----
5546
6392
9024

query I rowsort
SELECT + col1 * + col1 * 56 + - col2 AS col0 FROM tab1
----
10880
123636
1341

query I rowsort
SELECT ALL - col2 * col1 * + + 60 AS col2 FROM tab0
----
-12600
-228420
-5940

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT - 48 + - MAX( ALL + + col0 ) FROM tab0
----
-145

skipif mysql # not compatible
query I rowsort label-8053
SELECT - 48 + - MAX ( ALL + + col0 ) FROM tab0
----
-145

query I rowsort
SELECT - col2 + + + col0 AS col1 FROM tab0
----
-2
-32
77

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT ( + col2 ) > + 19 / - col2 * + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 20 < ( NULL )
----

query I rowsort
SELECT DISTINCT - - col2 * - col1 + + ( - - col1 ) AS col2 FROM tab1 AS cor0
----
-1330
-290
-3149

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 + 4 )
----

query I rowsort
SELECT DISTINCT ( + col2 ) + 64 + + 54 FROM tab1 AS cor0
----
177
186
214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8060
SELECT ALL - CAST( NULL AS SIGNED ) * - - COUNT( * ) + - - 55, - 97 AS col1 FROM tab1 AS cor0
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-8060
SELECT ALL - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + - - 55, - 97 AS col1 FROM tab1 AS cor0
----
NULL
-97

query I rowsort
SELECT 51 * col1 * + 39 FROM tab0 AS cor0
----
161109
1989
41769

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - + col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8063
SELECT COUNT( * ) AS col0, - AVG ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0 WHERE 99 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8063
SELECT COUNT ( * ) AS col0, - AVG ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0 WHERE 99 IS NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT DISTINCT COUNT( * ) + + - 70 AS col0 FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-8064
SELECT DISTINCT COUNT ( * ) + + - 70 AS col0 FROM tab0 AS cor0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8065
SELECT + CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8065
SELECT + CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - 53 ) * - col0 FROM tab1 AS cor0
----
2703
4505
4823

onlyif mysql # DIV for integer division: 
query I rowsort label-8067
SELECT ALL 85 - col1 DIV col2 + - - col2 col1 FROM tab0
----
131
184
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8067
SELECT ALL 85 - col1 / col2 + - - col2 col1 FROM tab0
----
131
184
93

onlyif mysql # aggregate syntax: 
query II rowsort label-8068
SELECT + 60, + COUNT( * ) AS col1 FROM tab0
----
60
3

skipif mysql # not compatible
query II rowsort label-8068
SELECT + 60, + COUNT ( * ) AS col1 FROM tab0
----
60
3

query II rowsort
SELECT ALL col1, + 11 - - col2 FROM tab2
----
51
34
67
69
77
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT + 19 + - - COUNT( - 95 ) * + - ( AVG ( + + 13 ) ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT + 19 + - - COUNT ( - 95 ) * + - ( AVG ( + + 13 ) ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL 40 * + + col0 AS col0 FROM tab1
----
2040
3400
3640

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8072
SELECT + col1 FROM tab2 WHERE NOT - CAST( 76 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8072
SELECT + col1 FROM tab2 WHERE NOT - CAST ( 76 AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8073
SELECT 64 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8073
SELECT 64 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT ALL - COUNT( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 24 * + - 5 * + col0 AND ( - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL - COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 24 * + - 5 * + col0 AND ( - - col0 )
----
0

query II rowsort
SELECT DISTINCT + + col0, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query II rowsort
SELECT - col0 AS col2, + 4 * - 49 AS col2 FROM tab1 AS cor0
----
-51
-196
-85
-196
-91
-196

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8077
SELECT ALL col1 AS col2, - 23 * col2 * + + col1 / - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-8077
SELECT ALL col1 AS col2, - 23 * col2 * + + col1 / - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8078
SELECT COUNT( * ) col0, - 7 + + - COUNT( * ) + + - MIN( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
3
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8078
SELECT COUNT ( * ) col0, - 7 + + - COUNT ( * ) + + - MIN ( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
3
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col0 FROM tab2 AS cor0
----
-85
-85
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8080
SELECT DISTINCT - 97 DIV + - col1 col1 FROM tab1
----
19
2
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8080
SELECT DISTINCT - 97 / + - col1 col1 FROM tab1
----
19
2
6

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * - col2 + ( + 69 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8082
SELECT ALL - - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL - - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 98 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 29 * ( - - 35 ) AS col2 FROM tab0
----
1015

query I rowsort
SELECT ALL ( + col0 ) + col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT + ( + COUNT( DISTINCT col0 ) ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8086
SELECT + ( + COUNT ( DISTINCT col0 ) ) col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 IN ( + 22 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT DISTINCT - - MIN( col2 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT - - MIN ( col2 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT DISTINCT col2 * - + col1 + - + CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
-1122
-3003
-3819

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT col2 * - + col1 + - + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
-1122
-3003
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT - - MAX( DISTINCT + 99 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-8090
SELECT - - MAX ( DISTINCT + 99 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
99

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT + ( + ( 85 ) ) + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + 72 ) FROM tab2
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT COUNT( DISTINCT - 23 ) + + 72 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-8093
SELECT COUNT ( DISTINCT - 23 ) + + 72 FROM tab2 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT + 36 + + 59 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-8094
SELECT + 36 + + 59 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT + COUNT( * ) + 23 + - - MIN( ALL - col1 ) FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-8095
SELECT + COUNT ( * ) + 23 + - - MIN ( ALL - col1 ) FROM tab0 AS cor0
----
-55

query I rowsort
SELECT ALL + 16 + col1 + - 93 FROM tab1 AS cor0
----
-30
-63
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT ALL 18 + + COUNT( * ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL 18 + + COUNT ( * ) FROM tab2 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT DISTINCT ( + ( + + COUNT( * ) ) ) + 48 AS col2 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT ( + ( + + COUNT ( * ) ) ) + 48 AS col2 FROM tab0
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8099
SELECT * FROM tab2 WHERE - 38 + + - col0 + + col2 * - + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8099
SELECT * FROM tab2 WHERE - 38 + + - col0 + + col2 * - + CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT + ( - 64 ) AS col0 FROM tab1
----
-64
-64
-64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 IN ( + col2 * - + 36 + + col0 + + ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8102
SELECT - 77 DIV SUM( ALL + + col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8102
SELECT - 77 / SUM ( ALL + + col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + 25 - + col2 AS col0 FROM tab1 AS cor0
----
-34
-43
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-8104
SELECT DISTINCT COUNT( DISTINCT + 85 ) AS col0, COUNT( * ) * + 98 AS col1 FROM tab1 AS cor0
----
1
294

skipif mysql # not compatible
query II rowsort label-8104
SELECT DISTINCT COUNT ( DISTINCT + 85 ) AS col0, COUNT ( * ) * + 98 AS col1 FROM tab1 AS cor0
----
1
294

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - 58 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8106
SELECT DISTINCT - 24 AS col2 FROM tab2 WHERE NOT - CAST( - col0 AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8106
SELECT DISTINCT - 24 AS col2 FROM tab2 WHERE NOT - CAST ( - col0 AS REAL ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col1 FROM tab0, tab0 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT DISTINCT + ( COUNT( * ) ) * + - 76 AS col0 FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT + ( COUNT ( * ) ) * + - 76 AS col0 FROM tab0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT ALL - COUNT( col0 ) * - 88 * + MAX( ALL + col2 ) + + + COUNT( * ) AS col1 FROM tab1
----
25347

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL - COUNT ( col0 ) * - 88 * + MAX ( ALL + col2 ) + + + COUNT ( * ) AS col1 FROM tab1
----
25347

query I rowsort
SELECT col0 * + 93 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col0, 57 AS col0 FROM tab0
----
1
57
21
57
81
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT - COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - col1 AND + col1 - + col2
----
0

skipif mysql # not compatible
query I rowsort label-8112
SELECT - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - col1 AND + col1 - + col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8113
SELECT ALL - COUNT( * ) DIV + 54 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL - COUNT ( * ) / + 54 FROM tab0 cor0
----
0

query I rowsort
SELECT - - ( - 39 ) + col1 FROM tab1 AS cor0 WHERE + 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT DISTINCT COUNT( * ) + + SUM( ALL + + col2 ) AS col0 FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT COUNT ( * ) + + SUM ( ALL + + col2 ) AS col0 FROM tab1 AS cor0
----
226

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 - - - col2 IS NULL
----

query I rowsort
SELECT ALL - col0 + - 6 + + + 22 AS col1 FROM tab1 AS cor0
----
-35
-69
-75

query I rowsort
SELECT ALL + 27 * col0 + ( - col0 ) FROM tab0
----
2262
2522
390

query I rowsort
SELECT 16 + + col2 - + + col1 AS col2 FROM tab1
----
37
70
98

query I rowsort
SELECT ALL + 58 * - - col1 AS col0 FROM tab1
----
2726
290
812

onlyif mysql # DIV for integer division: 
query I rowsort label-8122
SELECT col1 DIV - col1 + - - ( col2 ) AS col1 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-8122
SELECT col1 / - col1 + - - ( col2 ) AS col1 FROM tab1
----
58
67
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT DISTINCT - - COUNT( ALL + + ( 53 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT - - COUNT ( ALL + + ( 53 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL - col2 + ( - 5 ) + 34 FROM tab1
----
-30
-39
-67

query I rowsort
SELECT DISTINCT col1 + + + 50 FROM tab0
----
131
51
71

query I rowsort
SELECT ALL col2 FROM tab1 WHERE ( col2 ) NOT IN ( col1 + - 76 - col1 )
----
59
68
96

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col2 / col1 * ( + col0 )
----

query I rowsort
SELECT ALL 46 * col1 AS col2 FROM tab1 cor0 WHERE NOT - col0 / - - col0 > - + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8129
SELECT ALL COUNT( * ), COUNT( * ) * + + SUM( - 69 ) - - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
-624

skipif mysql # not compatible
query II rowsort label-8129
SELECT ALL COUNT ( * ), COUNT ( * ) * + + SUM ( - 69 ) - - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT - MAX( - 6 ) col2 FROM tab1 cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8130
SELECT - MAX ( - 6 ) col2 FROM tab1 cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8131
SELECT 15 DIV + col0 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8131
SELECT 15 / + col0 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - col1 > + ( col1 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT ALL 64 * + COUNT( * ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL 64 * + COUNT ( * ) FROM tab2
----
192

query III rowsort
SELECT ALL * FROM tab1 WHERE 11 * col2 * - 28 BETWEEN - + 85 * - 79 + - - 26 / - col2 + + + 3 AND + 79 + 22
----

query I rowsort
SELECT 19 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - - col1 * - + col2 AS col0, col0 * - - col0 + + col1 + - col1 AS col2 FROM tab2 AS cor0
----
-1173
2116
-3080
4096
-3886
5625

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( - col1 * + 16 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + ( 36 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT - SUM( + 95 ) * + - COUNT( * ) FROM tab1
----
855

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT - SUM ( + 95 ) * + - COUNT ( * ) FROM tab1
----
855

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 82 < col0 * 88 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 47 * - ( + ( + 68 ) ) + 46 FROM tab1 AS cor0
----
3242
3242
3242

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * + - ( + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 + + - col1 * + + 43 AS col0 FROM tab2 AS cor0
----
-2170
-2823
-3271

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NOT NULL = NULL ) )
----

query I rowsort
SELECT DISTINCT - col0 * - 41 - col1 FROM tab2
----
1835
2547
3008

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT ALL SUM( DISTINCT - - col0 ) * + COUNT( * ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL SUM ( DISTINCT - - col0 ) * + COUNT ( * ) FROM tab1
----
681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8149
SELECT - - COUNT( * ) * + 51 AS col1 FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8149
SELECT - - COUNT ( * ) * + 51 AS col1 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8150
SELECT DISTINCT - 50 DIV col1 FROM tab0 AS cor0
----
-2
-50
0

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT - 50 / col1 FROM tab0 AS cor0
----
-2
-50
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - col1 * - col2 * 32 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 - + + col0 col1 FROM tab0 AS cor0 WHERE NOT NULL > col0 + - - 23
----

query I rowsort
SELECT ALL - col0 - - col1 * - - col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
1293
210
3105

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT DISTINCT + COUNT( - - col1 ) * - 27 + COUNT( * ) + - 16 * + 78 * 74 * - 12 AS col2 FROM tab2 AS cor0
----
1108146

skipif mysql # not compatible
query I rowsort label-8154
SELECT DISTINCT + COUNT ( - - col1 ) * - 27 + COUNT ( * ) + - 16 * + 78 * 74 * - 12 AS col2 FROM tab2 AS cor0
----
1108146

query I rowsort
SELECT DISTINCT + 32 * col2 - + col0 + col1 * ( - + col1 ) * 0 / col0 - - - col2 * - - 36 + + 96 - + col2 AS col1 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL 12 FROM tab2 AS cor0 WHERE NOT 21 + - 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT DISTINCT 10 * + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 53 < + col1
----
0

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT 10 * + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 53 < + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT DISTINCT MAX( - - col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT MAX ( - - col0 ) AS col1 FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8159
SELECT + 9 DIV - - col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8159
SELECT + 9 / - - col2 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT + col0 AS col1, col1 * - + col1 + - col2 AS col1 FROM tab1
----
51
-292
85
-84
91
-2277

query I rowsort
SELECT col0 FROM tab0 WHERE NOT 59 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 col1 FROM tab0
----
99
99
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8163
SELECT DISTINCT + COUNT( * ) AS col0, 4 AS col1 FROM tab1 AS cor0
----
3
4

skipif mysql # not compatible
query II rowsort label-8163
SELECT DISTINCT + COUNT ( * ) AS col0, 4 AS col1 FROM tab1 AS cor0
----
3
4

query I rowsort
SELECT ALL - col0 + - - col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8165
SELECT ALL - 17 * col1 + + - col2 + + col1 + - ( - CAST( NULL AS SIGNED ) ) / - + 92 - - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL - 17 * col1 + + - col2 + + col1 + - ( - CAST ( NULL AS INTEGER ) ) / - + 92 - - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8166
SELECT * FROM tab2 cor0 WHERE + col1 + CAST( + col1 AS SIGNED ) * - col2 + - 14 > + col0
----

skipif mysql # not compatible
query III rowsort label-8166
SELECT * FROM tab2 cor0 WHERE + col1 + CAST ( + col1 AS INTEGER ) * - col2 + - 14 > + col0
----

query II rowsort
SELECT + + col0 + + 46 * - ( + col1 ) AS col2, 94 FROM tab1 AS cor0
----
-145
94
-2071
94
-593
94

query I rowsort
SELECT ALL 8 + - 32 AS col0 FROM tab2
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT ALL MIN( DISTINCT + - col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL MIN ( DISTINCT + - col0 ) AS col0 FROM tab2
----
-75

query I rowsort
SELECT + ( 36 ) AS col1 FROM tab0
----
36
36
36

query I rowsort
SELECT DISTINCT + + col1 / - col1 + + col0 FROM tab2 AS cor0 WHERE NOT + 87 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * 33 FROM tab1 AS cor0
----
1947
2244
3168

onlyif mysql # DIV for integer division: 
query I rowsort label-8173
SELECT DISTINCT - ( + col1 ) DIV 50 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT - ( + col1 ) / 50 AS col0 FROM tab2
----
-1

query II rowsort
SELECT DISTINCT - 44 AS col2, + col1 AS col2 FROM tab2
----
-44
51
-44
67
-44
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8175
SELECT ALL COUNT( * ), SUM( + + 10 ) AS col1 FROM tab2 AS cor0
----
3
30

skipif mysql # not compatible
query II rowsort label-8175
SELECT ALL COUNT ( * ), SUM ( + + 10 ) AS col1 FROM tab2 AS cor0
----
3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL 17 * - ( COUNT( * ) ) * + + COUNT( * ) + + 75 * + ( + 63 ) AS col0 FROM tab1 AS cor0
----
4572

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL 17 * - ( COUNT ( * ) ) * + + COUNT ( * ) + + 75 * + ( + 63 ) AS col0 FROM tab1 AS cor0
----
4572

query I rowsort
SELECT DISTINCT - 10 * 34 AS col1 FROM tab0 AS cor0
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT - 92 * COUNT( * ) FROM tab1 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-8178
SELECT - 92 * COUNT ( * ) FROM tab1 AS cor0
----
-276

query I rowsort
SELECT ALL + col1 * col2 + + 0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-8180
SELECT ALL - 83 AS col2, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-83
3

skipif mysql # not compatible
query II rowsort label-8180
SELECT ALL - 83 AS col2, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-83
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT DISTINCT ( - MAX( DISTINCT - col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT ( - MAX ( DISTINCT - col1 ) ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT + ( - COUNT( ALL + - col1 ) ) * + 96 - - + ( + COUNT( * ) ) AS col1 FROM tab0
----
-285

skipif mysql # not compatible
query I rowsort label-8182
SELECT + ( - COUNT ( ALL + - col1 ) ) * + 96 - - + ( + COUNT ( * ) ) AS col1 FROM tab0
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT ALL - ( - SUM( + - col0 ) ) AS col2 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL - ( - SUM ( + - col0 ) ) AS col2 FROM tab1 cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT DISTINCT ( - COUNT( * ) ) + - 78 AS col1 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT ( - COUNT ( * ) ) + - 78 AS col1 FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT MAX( - + ( 37 ) ) FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8185
SELECT MAX ( - + ( 37 ) ) FROM tab0 AS cor0
----
-37

query I rowsort
SELECT ALL - + 5 + 91 FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT - 92 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT - SUM( DISTINCT + + col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8188
SELECT - SUM ( DISTINCT + + col1 ) AS col2 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT ALL + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 8 col2 FROM tab2 AS cor0
----
8
8
8

query II rowsort
SELECT 46 AS col0, 10 FROM tab1 cor0
----
46
10
46
10
46
10

query I rowsort
SELECT + 93 * col1 AS col2 FROM tab1 cor0
----
1302
4371
465

query I rowsort
SELECT ALL + ( 98 ) FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT 6 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8195
SELECT ALL - 61 * + col2 + - ( - col2 ) FROM tab1 AS cor0 WHERE + col1 + + + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL - 61 * + col2 + - ( - col2 ) FROM tab1 AS cor0 WHERE + col1 + + + CAST ( NULL AS INTEGER ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col1 > 63
----

query I rowsort
SELECT + + col1 * col1 * col0 FROM tab1 WHERE 61 IS NOT NULL
----
201019
2125
9996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 25 AS col1, + 59 + + + ( col2 ) col2 FROM tab2 WHERE NOT - + 25 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 73 IS NULL
----

query I rowsort
SELECT col2 + + 37 AS col2 FROM tab1
----
105
133
96

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT + col1 - + 68 + + - 7 * + + col1 AS col2 FROM tab1
----
-152
-350
-98

query I rowsort
SELECT ALL - col0 * + col0 * + - col1 AS col0 FROM tab2
----
107916
315392
376875

onlyif mysql # DIV for integer division: 
query I rowsort label-8205
SELECT + 29 + - + col0 DIV - 66 AS col1 FROM tab0 AS cor0
----
29
30
30

skipif mysql # not compatible
query I rowsort label-8205
SELECT + 29 + - + col0 / - 66 AS col1 FROM tab0 AS cor0
----
29
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8206
SELECT ALL + + col0 DIV ( - - col1 ) AS col2 FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL + + col0 / ( - - col1 ) AS col2 FROM tab1 cor0
----
1
17
3

query I rowsort
SELECT - 55 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT ALL - 15 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query II rowsort
SELECT + col1, col2 + - + col2 AS col0 FROM tab2
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 WHERE col2 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8210
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 WHERE col2 >= NULL
----
0

query I rowsort
SELECT DISTINCT - col1 * - col1 * col2 AS col0 FROM tab0 cor0
----
308367
4410
99

query I rowsort
SELECT ALL ( - col1 ) * 52 FROM tab0 AS cor0
----
-1092
-4212
-52

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 14 >= col1
----
15
81
47
87
21
10

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8216
SELECT 70 AS col1, + COUNT( col0 ) FROM tab1 cor0
----
70
3

skipif mysql # not compatible
query II rowsort label-8216
SELECT 70 AS col1, + COUNT ( col0 ) FROM tab1 cor0
----
70
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT ( - - COUNT( * ) ) * + 64 col1 FROM tab0
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8217
SELECT ( - - COUNT ( * ) ) * + 64 col1 FROM tab0
----
192

query I rowsort
SELECT ALL 19 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 17 + + col2 FROM tab2
----
40
57
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8220
SELECT col0 + - CAST( - col0 AS SIGNED ) + + + col2 * + ( + 20 ) * - - col1 AS col0 FROM tab2
----
23552
61728
77870

skipif mysql # not compatible
query I rowsort label-8220
SELECT col0 + - CAST ( - col0 AS INTEGER ) + + + col2 * + ( + 20 ) * - - col1 AS col0 FROM tab2
----
23552
61728
77870

onlyif mysql # aggregate syntax: 
query II rowsort label-8221
SELECT DISTINCT 94 AS col0, SUM( ALL + 64 ) + + 9 * + + 32 FROM tab2
----
94
480

skipif mysql # not compatible
query II rowsort label-8221
SELECT DISTINCT 94 AS col0, SUM ( ALL + 64 ) + + 9 * + + 32 FROM tab2
----
94
480

query II rowsort
SELECT ALL - 28 AS col1, col0 + + col0 FROM tab1 AS cor0
----
-28
102
-28
170
-28
182

query I rowsort
SELECT DISTINCT col0 * ( + col0 ) + + 86 + - col2 + + + col1 AS col2 FROM tab1 AS cor0
----
2605
7257
8346

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT DISTINCT + + COUNT( * ) + ( COUNT( + - 5 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT + + COUNT ( * ) + ( COUNT ( + - 5 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8225
SELECT ALL + col1 + + CAST( - col0 AS SIGNED ) AS col0 FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL + col1 + + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0
----
-66
-96
66

query III rowsort
SELECT * FROM tab1 WHERE - - 78 + - - 49 * + - 56 + + 5 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col0 + 33 FROM tab1 AS cor0
----
-18
-52
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8228
SELECT CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8229
SELECT DISTINCT + - col0 * + CAST( NULL AS SIGNED ) / col1 * - - col0 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT + - col0 * + CAST ( NULL AS INTEGER ) / col1 * - - col0 AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8230
SELECT DISTINCT + + col0 + + col2 - + 42 - + CAST( - - col1 AS SIGNED ) * + - col2 FROM tab2 AS cor0
----
1200
3142
3977

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT + + col0 + + col2 - + 42 - + CAST ( - - col1 AS INTEGER ) * + - col2 FROM tab2 AS cor0
----
1200
3142
3977

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 85 + - col2 col2, 73 FROM tab0 AS cor0
----
-132
73
-184
73
-95
73

query I rowsort
SELECT ALL 1 + + - col1 FROM tab2
----
-50
-66
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT + COUNT( + 52 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8233
SELECT + COUNT ( + 52 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - col1 * + - col2 * col2 AS col2 FROM tab0
----
178929
2100
9801

query I rowsort
SELECT ALL + col0 - 63 AS col0 FROM tab0
----
-48
24
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 46 * + + col0 FROM tab1 AS cor0
----
-2346
-3910
-4186

query I rowsort
SELECT - 26 - 87 AS col1 FROM tab2
----
-113
-113
-113

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 / 34 - col0 / - 11 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT DISTINCT SUM( - 13 ) FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT SUM ( - 13 ) FROM tab1
----
-39

query I rowsort
SELECT DISTINCT + 67 + + col2 * 15 AS col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT - 41 AS col2 FROM tab1 WHERE NOT 66 <= 12 + - 72 * + 70
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE col0 + 33 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE col0 + 33 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT ALL + MAX( 99 ) AS col1 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL + MAX ( 99 ) AS col1 FROM tab2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT DISTINCT - COUNT( DISTINCT + 72 ) AS col1 FROM tab1 WHERE ( NULL ) BETWEEN - col2 AND - 48
----
0

skipif mysql # not compatible
query I rowsort label-8246
SELECT DISTINCT - COUNT ( DISTINCT + 72 ) AS col1 FROM tab1 WHERE ( NULL ) BETWEEN - col2 AND - 48
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT ALL + CAST( col2 AS SIGNED ) + col2 AS col2 FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL + CAST ( col2 AS INTEGER ) + col2 AS col2 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT COUNT( * ) - + 56 AS col0 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-8248
SELECT COUNT ( * ) - + 56 AS col0 FROM tab0
----
-53

query I rowsort
SELECT 49 - 79 AS col0 FROM tab0
----
-30
-30
-30

query I rowsort
SELECT ALL - col2 + - 45 * col2 FROM tab1 WHERE ( NULL ) IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT DISTINCT COUNT( * ) * 52 AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT COUNT ( * ) * 52 AS col1 FROM tab0
----
156

query III rowsort
SELECT * FROM tab1 WHERE + 38 * ( col1 * - col1 ) + + 52 BETWEEN col2 AND ( - col0 )
----

query I rowsort
SELECT ALL - ( 53 ) * - col1 AS col1 FROM tab1
----
2491
265
742

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT DISTINCT - COUNT( - col1 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8254
SELECT DISTINCT - COUNT ( - col1 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT col2 FROM tab1 WHERE + col0 IN ( + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 28 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8257
SELECT + COUNT( * ) + - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8257
SELECT + COUNT ( * ) + - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT DISTINCT MIN( DISTINCT - col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT MIN ( DISTINCT - col0 ) AS col2 FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab2 WHERE NOT 27 + 26 IS NULL
----
46
64
75

query I rowsort
SELECT ALL + 89 - 79 FROM tab1 WHERE NOT ( - col2 ) = ( col1 )
----
10
10
10

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 76 - + col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 <> col0 * + col0 - 88 / - 22
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE col2 + - col0 / + col1 <= - 55
----

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE ( + ( 62 ) ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8265
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) + col2 * col2 >= 82 + 99
----

skipif mysql # not compatible
query III rowsort label-8265
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + col2 * col2 >= 82 + 99
----

query I rowsort
SELECT 94 + 98 FROM tab1 AS cor0
----
192
192
192

query I rowsort
SELECT ALL - ( + 43 ) + + col1 AS col1 FROM tab0 AS cor0
----
-22
-42
38

query I rowsort
SELECT 43 + + 22 AS col1 FROM tab2 AS cor0
----
65
65
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8269
SELECT DISTINCT col0 DIV + col1 + + col0 FROM tab0 AS cor0
----
15
194
91

skipif mysql # not compatible
query I rowsort label-8269
SELECT DISTINCT col0 / + col1 + + col0 FROM tab0 AS cor0
----
15
194
91

query I rowsort
SELECT ALL 23 - - ( - col1 ) AS col0 FROM tab2 WHERE col0 + 2 IS NOT NULL
----
-28
-44
-54

query I rowsort
SELECT DISTINCT - 88 + - col2 FROM tab2
----
-111
-128
-146

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 WHERE NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT 65 + 79 FROM tab1
----
144

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 WHERE NOT ( 0 ) NOT IN ( - 90 )
----

query I rowsort
SELECT + col1 + 23 AS col1 FROM tab2 WHERE - 85 / + 61 = + 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8276
SELECT * FROM tab1 WHERE + CAST( 72 AS SIGNED ) + 48 >= NULL
----

skipif mysql # not compatible
query III rowsort label-8276
SELECT * FROM tab1 WHERE + CAST ( 72 AS INTEGER ) + 48 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 92 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT + - COUNT( * ) * + MAX( - col2 + - col0 * - col1 ) FROM tab0 AS cor0
----
-5451

skipif mysql # not compatible
query I rowsort label-8278
SELECT + - COUNT ( * ) * + MAX ( - col2 + - col0 * - col1 ) FROM tab0 AS cor0
----
-5451

query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8280
SELECT + col2 - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-8280
SELECT + col2 - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT - - 62 - MIN( + col2 ) * 82 FROM tab0 AS cor0
----
-758

skipif mysql # not compatible
query I rowsort label-8281
SELECT - - 62 - MIN ( + col2 ) * 82 FROM tab0 AS cor0
----
-758

query I rowsort
SELECT DISTINCT + col1 * - 45 - + col1 FROM tab0 AS cor0
----
-3726
-46
-966

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT ALL 30 DIV - - col0 + col0 DIV - col2 FROM tab0
----
-8
0
2

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL 30 / - - col0 + col0 / - col2 FROM tab0
----
-8
0
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8284
SELECT ALL - col0 * 33 - + 31 DIV col0 AS col2 FROM tab2
----
-1518
-2112
-2475

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL - col0 * 33 - + 31 / col0 AS col2 FROM tab2
----
-1518
-2112
-2475

query I rowsort
SELECT DISTINCT col0 + 71 FROM tab0 WHERE col1 > - 28
----
158
168
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8286
SELECT DISTINCT col0 * - 95 AS col1 FROM tab1 WHERE ( 41 ) IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT col0 * - 95 AS col1 FROM tab1 WHERE ( 41 ) IN ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + 2 * 45 FROM tab0 WHERE NOT col2 BETWEEN col2 AND 65 * - col1 + col2
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT MIN( col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8288
SELECT MIN ( col2 ) AS col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT DISTINCT SUM( - + col0 ) * 47 AS col0 FROM tab0
----
-9353

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT SUM ( - + col0 ) * 47 AS col0 FROM tab0
----
-9353

query I rowsort
SELECT DISTINCT col2 * 15 FROM tab0
----
1485
150
705

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE ( - col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE ( - col1 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT DISTINCT + COUNT( * ) - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT - + ( + 56 ) FROM tab1 AS cor0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT DISTINCT CAST( + 20 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
20

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT CAST ( + 20 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL - + COUNT( * ) - 34 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-43

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL - + COUNT ( * ) - 34 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT COUNT( * ) FROM tab2 WHERE NOT - 57 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8296
SELECT COUNT ( * ) FROM tab2 WHERE NOT - 57 > NULL
----
0

query I rowsort
SELECT - ( + 94 ) AS col1 FROM tab0 WHERE NOT + 14 NOT IN ( 27 * + col0 + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 * + 28 col0 FROM tab1
----
1680
1680
1680

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8300
SELECT DISTINCT col0 * + ( + CAST( 12 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
1044
1164
180

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT col0 * + ( + CAST ( 12 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
1044
1164
180

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8301
SELECT * FROM tab0 AS cor0 WHERE NOT 5 NOT IN ( + col2 * 56 - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8301
SELECT * FROM tab0 AS cor0 WHERE NOT 5 NOT IN ( + col2 * 56 - + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL + ( 86 ) AS col2 FROM tab0 AS cor0
----
86
86
86

query II rowsort
SELECT + col0, - 70 AS col2 FROM tab1 cor0
----
51
-70
85
-70
91
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-8305
SELECT DISTINCT ( - col2 ) + col1 + col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT ( - col2 ) + col1 + col1 / col0 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8306
SELECT + CAST( NULL AS DECIMAL ) + 92 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8306
SELECT + CAST ( NULL AS REAL ) + 92 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8307
SELECT DISTINCT MAX( + col0 ) * - 53 + CAST( NULL AS SIGNED ) / + 24 + SUM( ALL + 34 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT MAX ( + col0 ) * - 53 + CAST ( NULL AS INTEGER ) / + 24 + SUM ( ALL + 34 ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8308
SELECT - 71 + + MAX( ALL - col0 ) - + 62 DIV + COUNT( * ) col1 FROM tab0
----
-106

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8308
SELECT - 71 + + MAX ( ALL - col0 ) - + 62 / + COUNT ( * ) col1 FROM tab0
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL COUNT( * ) * + - 46 AS col1 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL COUNT ( * ) * + - 46 AS col1 FROM tab2
----
-138

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) < NULL
----

query I rowsort
SELECT 58 + - ( - - col2 ) + - 89 * - col2 * col2 AS col0 FROM tab0
----
196612
872248
8948

onlyif mysql # DIV for integer division: 
query I rowsort label-8312
SELECT DISTINCT - 49 DIV + - col2 AS col2 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT - 49 / + - col2 AS col2 FROM tab0
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT MAX( + - col1 ) + - - 41 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-8313
SELECT MAX ( + - col1 ) + - - 41 FROM tab1
----
36

query I rowsort
SELECT col1 + + col0 + - 70 AS col0 FROM tab1
----
-5
20
68

query I rowsort
SELECT DISTINCT col2 * + - col2 * col1 FROM tab2
----
-123200
-225388
-26979

query III rowsort
SELECT * FROM tab1 WHERE ( - + col1 ) NOT BETWEEN ( + ( - col0 ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT + MAX( - - 47 ) * ( + 58 ) FROM tab2
----
2726

skipif mysql # not compatible
query I rowsort label-8317
SELECT + MAX ( - - 47 ) * ( + 58 ) FROM tab2
----
2726

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - + col1 <= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8320
SELECT + col1 DIV col1 - + col2 AS col0 FROM tab1
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-8320
SELECT + col1 / col1 - + col2 AS col0 FROM tab1
----
-58
-67
-95

query I rowsort
SELECT ALL ( col2 ) + 68 - + col0 AS col0 FROM tab2
----
44
45
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8322
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) - - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8322
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + col0 + + col0 + + ( col1 ) + 55 FROM tab2
----
198
260
272

query III rowsort
SELECT * FROM tab0 WHERE ( + 74 - 76 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 IN ( - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 IN ( + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab2 AS cor0 WHERE NOT + ( + 83 ) = ( NULL )
----

query I rowsort
SELECT col1 + - 6 AS col2 FROM tab1 AS cor0
----
-1
41
8

query I rowsort
SELECT ALL + ( col0 ) + + - col0 FROM tab1 AS cor0 WHERE NOT NULL <> 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8330
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN ( + CAST( NULL AS SIGNED ) ) AND - col2
----
97
1
99

skipif mysql # not compatible
query III rowsort label-8330
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND - col2
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 22 * col0 BETWEEN - col0 AND 9 * 12
----

query I rowsort
SELECT 29 * - 74 AS col0 FROM tab1 AS cor0
----
-2146
-2146
-2146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8333
SELECT + 2 * + MIN( col2 ) DIV 81 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8333
SELECT + 2 * + MIN ( col2 ) / 81 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 44 * col1 * 35 AS col1 FROM tab1 AS cor0
----
21560
72380
7700

query I rowsort
SELECT DISTINCT ( - ( + 68 ) ) AS col0 FROM tab0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ALL + COUNT( ALL - + 99 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL + COUNT ( ALL - + 99 ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT + 24, + col1 AS col2 FROM tab0
----
24
1
24
21
24
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8338
SELECT ALL ( 76 ) AS col2, + COUNT( * ) col2 FROM tab0
----
76
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8338
SELECT ALL ( 76 ) AS col2, + COUNT ( * ) col2 FROM tab0
----
76
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 17 IN ( col1, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT DISTINCT - 16 * + + MIN( ALL - col0 ) FROM tab2
----
1200

skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT - 16 * + + MIN ( ALL - col0 ) FROM tab2
----
1200

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 86 IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8344
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * + - col1 + - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8344
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * + - col1 + - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT - COUNT( + 3 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8346
SELECT - COUNT ( + 3 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT col1, - col0 AS col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query II rowsort
SELECT DISTINCT + col2, col2 * - + col1 FROM tab0 AS cor0
----
10
-210
47
-3807
99
-99

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + col0 * 26 - 95 + 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT - + 30 + COUNT( * ) + + 25 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
4

skipif mysql # not compatible
query I rowsort label-8350
SELECT - + 30 + COUNT ( * ) + + 25 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
4

query I rowsort
SELECT - col1 * - - 10 FROM tab1 WHERE NOT 8 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT DISTINCT + + SUM( ALL - 49 ) AS col1 FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-8352
SELECT DISTINCT + + SUM ( ALL - 49 ) AS col1 FROM tab2 AS cor0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT DISTINCT 42 + + - 22 + COUNT( * ) FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT 42 + + - 22 + COUNT ( * ) FROM tab1 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT - MAX( + + ( - ( + - 76 ) ) ) FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-8354
SELECT - MAX ( + + ( - ( + - 76 ) ) ) FROM tab2 AS cor0
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8355
SELECT ALL - COUNT( * ) * + 32 DIV - - 25 * - 30 AS col0 FROM tab0 AS cor0 WHERE ( 30 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL - COUNT ( * ) * + 32 / - - 25 * - 30 AS col0 FROM tab0 AS cor0 WHERE ( 30 ) IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8356
SELECT DISTINCT col2 * - 42 * + - CAST( NULL AS DECIMAL ) + - col2 + + col2 + - col2 * + - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT col2 * - 42 * + - CAST ( NULL AS REAL ) + - col2 + + col2 + - col2 * + - col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8357
SELECT DISTINCT + col0 DIV - + 67 + col0 + + ( + 98 ) FROM tab1 cor0
----
149
182
188

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT + col0 / - + 67 + col0 + + ( + 98 ) FROM tab1 cor0
----
149
182
188

query I rowsort
SELECT ALL + 9 AS col0 FROM tab0 AS cor0 WHERE NOT 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8359
SELECT ALL 80 + + SUM( DISTINCT - 44 ), 68 - + 47 AS col2 FROM tab0
----
36
21

skipif mysql # not compatible
query II rowsort label-8359
SELECT ALL 80 + + SUM ( DISTINCT - 44 ), 68 - + 47 AS col2 FROM tab0
----
36
21

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 * + 85 + + col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 72 <> NULL
----

query I rowsort
SELECT DISTINCT col2 + 70 + 42 AS col1 FROM tab2
----
135
152
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 13 col1 FROM tab1
----
-182
-611
-65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8364
SELECT * FROM tab0 WHERE NULL IN ( + - col0 * - + col1, 52 * + - CAST( - + 15 AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-8364
SELECT * FROM tab0 WHERE NULL IN ( + - col0 * - + col1, 52 * + - CAST ( - + 15 AS INTEGER ) * - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + + ( + col0 ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 14 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8367
SELECT - col0 + - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-196
-62
-97

skipif mysql # not compatible
query I rowsort label-8367
SELECT - col0 + - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT + 71 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT ALL + col1 - + + col2 FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8370
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) * + - 15 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + - 15 AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 48 * ( - 18 ) FROM tab1 AS cor0
----
-864

query I rowsort
SELECT + ( - col0 ) * + col0 * + - col0 + col1 FROM tab1 cor0
----
132665
614130
753618

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> 92
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col1 / + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8376
SELECT DISTINCT col1 DIV - 5 FROM tab1
----
-1
-2
-9

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT col1 / - 5 FROM tab1
----
-1
-2
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 * + col0 - + - col0 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8378
SELECT COUNT( * ) DIV 18 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8378
SELECT COUNT ( * ) / 18 FROM tab0
----
0

query I rowsort
SELECT - ( - ( + - col2 ) ) AS col1 FROM tab2
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-8380
SELECT DISTINCT - col2 DIV + - ( col0 ) AS col1, col2 - + 50 FROM tab0
----
0
-40
1
49
3
-3

skipif mysql # not compatible
query II rowsort label-8380
SELECT DISTINCT - col2 / + - ( col0 ) AS col1, col2 - + 50 FROM tab0
----
0
-40
1
49
3
-3

query I rowsort
SELECT DISTINCT + 82 * - - 29 FROM tab2
----
2378

query II rowsort
SELECT - col2 AS col0, + col2 - + col1 * 78 + 92 AS col1 FROM tab2
----
-23
-3863
-40
-5874
-58
-5076

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 96 NOT BETWEEN + col0 * + col0 * col0 - - + ( - col0 ) AND + - 20 + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8384
SELECT DISTINCT + CAST( MAX( + ( col1 ) ) AS SIGNED ) AS col2 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT + CAST ( MAX ( + ( col1 ) ) AS INTEGER ) AS col2 FROM tab0 cor0
----
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( NULL ) BETWEEN NULL AND NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 35 >= ( + - col2 - - col0 * + - 2 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 88 * + - col0 NOT BETWEEN - + col0 AND ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> + col2 * + col1 + + + ( - col1 )
----

query I rowsort
SELECT ( - 71 ) * col1 - - col0 + + col1 * - col0 * ( - + col2 ) * - col2 AS col2 FROM tab1
----
-1479695
-19780094
-6581167

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8391
SELECT - ( + COUNT( * ) ) DIV + COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8391
SELECT - ( + COUNT ( * ) ) / + COUNT ( * ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT ALL + 33 * - + col0 FROM tab2
----
-1518
-2112
-2475

query II rowsort
SELECT - col1 AS col2, - col0 AS col0 FROM tab2
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT ALL + col0 + - + ( + + col2 ) FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ALL + + SUM( col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL + + SUM ( col0 ) FROM tab1 cor0
----
227

query I rowsort
SELECT - + 10 + + 43 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - - col0 - ( + col1 ) AS col2 FROM tab0 AS cor0 WHERE ( + col1 ) + - 8 + + col2 + - + col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 col0 FROM tab2 cor0
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8399
SELECT DISTINCT ( + - col1 ) * 51 DIV col1 + 74 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT ( + - col1 ) * 51 / col1 + 74 FROM tab1 AS cor0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8400
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + col1 FROM tab0 WHERE NOT 3 NOT BETWEEN NULL AND ( col0 )
----

query II rowsort
SELECT + col0 * + col2 AS col2, col2 * - + col1 AS col0 FROM tab1
----
4896
-1344
5015
-295
6188
-3196

query I rowsort
SELECT - col0 * + + 65 AS col0 FROM tab1
----
-3315
-5525
-5915

query I rowsort
SELECT - col2 + - col2 FROM tab2 WHERE NULL <> col2
----

query I rowsort
SELECT ( col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query II rowsort
SELECT ALL + - col2 + 38, col2 AS col1 FROM tab1 AS cor0
----
-21
59
-30
68
-58
96

query I rowsort
SELECT - col1 - - 19 FROM tab2
----
-32
-48
-58

query I rowsort
SELECT ALL 96 * col0 FROM tab1
----
4896
8160
8736

query II rowsort
SELECT ALL + 16, + 57 + - col2 AS col1 FROM tab1 AS cor0
----
16
-11
16
-2
16
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT + + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8410
SELECT + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col2 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8412
SELECT - 91 * COUNT( - + 34 ) + + CAST( - ( - 3 ) AS SIGNED ) * - + SUM( DISTINCT + ( - 16 ) ) - + - 96 AS col0 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-8412
SELECT - 91 * COUNT ( - + 34 ) + + CAST ( - ( - 3 ) AS INTEGER ) * - + SUM ( DISTINCT + ( - 16 ) ) - + - 96 AS col0 FROM tab1 AS cor0
----
-129

query I rowsort
SELECT DISTINCT + ( + col1 ) * - col1 * col2 FROM tab0 AS cor0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ALL + MAX( - - 56 ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL + MAX ( - - 56 ) FROM tab0 AS cor0
----
56

query II rowsort
SELECT DISTINCT 73, - col1 * + col0 AS col1 FROM tab0 AS cor0
----
73
-1215
73
-1827
73
-97

query I rowsort
SELECT - col2 * - 57 AS col0 FROM tab2
----
1311
2280
3306

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 60 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IS NOT NULL OR NOT - 87 BETWEEN + col2 + + + col0 + col0 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ALL - - MAX( ALL col0 ) * + MAX( DISTINCT + col2 ) * + COUNT( * ) + + 46 AS col0 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL - - MAX ( ALL col0 ) * + MAX ( DISTINCT + col2 ) * + COUNT ( * ) + + 46 AS col0 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8420
SELECT ALL + + col2 DIV col0 + + 34 + - + col0 AS col2 FROM tab2 AS cor0
----
-12
-30
-41

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL + + col2 / col0 + + 34 + - + col0 AS col2 FROM tab2 AS cor0
----
-12
-30
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-8421
SELECT + + col0 DIV - - col2 AS col1 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8421
SELECT + + col0 / - - col2 AS col1 FROM tab0 AS cor0
----
0
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT - COUNT( ALL - col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8422
SELECT - COUNT ( ALL - col0 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT + - ( - + 65 ) AS col1 FROM tab0 AS cor0
----
65
65
65

query II rowsort
SELECT DISTINCT col0, col0 AS col2 FROM tab0
----
15
15
87
87
97
97

query II rowsort
SELECT 47 * + col2 + - 45 * + col1 AS col1, + col2 FROM tab2
----
-1214
23
-1585
40
-289
58

query I rowsort
SELECT + 24 + - col0 FROM tab1 AS cor0
----
-27
-61
-67

query II rowsort
SELECT ALL - 34 AS col2, - col2 FROM tab1 AS cor0
----
-34
-59
-34
-68
-34
-96

query I rowsort
SELECT DISTINCT - + 87 + - col2 AS col1 FROM tab2 AS cor0
----
-110
-127
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT - + MIN( + 82 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-82

skipif mysql # not compatible
query I rowsort label-8429
SELECT - + MIN ( + 82 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-82

query I rowsort
SELECT + col2 * + 27 FROM tab1 WHERE NOT col1 < NULL OR ( NOT ( + col2 <> - + 48 ) )
----

query II rowsort
SELECT ALL + 38 * - col0, 27 AS col2 FROM tab1 AS cor0
----
-1938
27
-3230
27
-3458
27

query I rowsort
SELECT + - ( - col0 ) - + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN 28 AND NULL
----

query I rowsort
SELECT ALL - - ( 70 ) FROM tab0 cor0
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 79 col0 FROM tab0 cor0
----
1659
6399
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT DISTINCT + - 55 * COUNT( * ) FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT + - 55 * COUNT ( * ) FROM tab0 AS cor0
----
-165

query I rowsort
SELECT 21 * - + 70 AS col2 FROM tab0 AS cor0
----
-1470
-1470
-1470

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + col0 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT DISTINCT - MAX( DISTINCT col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT - MAX ( DISTINCT col0 ) AS col1 FROM tab1
----
-91

query I rowsort
SELECT DISTINCT - col1 * ( col1 ) * 30 + col0 AS col1 FROM tab2
----
-134595
-177806
-77984

query II rowsort
SELECT ALL col2 AS col1, col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT COUNT( * ) + - 86 FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-8441
SELECT COUNT ( * ) + - 86 FROM tab2
----
-83

query I rowsort
SELECT col2 + - ( - 0 ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8443
SELECT ALL 11 DIV + COUNT( * ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8443
SELECT ALL 11 / + COUNT ( * ) col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8444
SELECT ALL col2 * + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 / 51 IS NULL OR ( + CAST( NULL AS SIGNED ) ) / + col1 BETWEEN - + col0 - - ( + + col1 ) + - col0 AND ( 12 )
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL col2 * + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 / 51 IS NULL OR ( + CAST ( NULL AS INTEGER ) ) / + col1 BETWEEN - + col0 - - ( + + col1 ) + - col0 AND ( 12 )
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8445
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8446
SELECT CAST( + COUNT( * ) AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8446
SELECT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 + 55 + col1 col2 FROM tab0
----
143
163
223

query I rowsort
SELECT - 83 + 70 FROM tab1
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT DISTINCT + MIN( ALL - 36 ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8449
SELECT DISTINCT + MIN ( ALL - 36 ) FROM tab2 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT DISTINCT + 25 + COUNT( * ) * - COUNT( * ) col2 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8450
SELECT DISTINCT + 25 + COUNT ( * ) * - COUNT ( * ) col2 FROM tab0 AS cor0
----
16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - - 83 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + - - col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8453
SELECT - SUM( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8453
SELECT - SUM ( CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8454
SELECT DISTINCT col0 DIV - col0 + + col0 AS col1, ( ( col0 ) ) FROM tab0
----
14
15
86
87
96
97

skipif mysql # not compatible
query II rowsort label-8454
SELECT DISTINCT col0 / - col0 + + col0 AS col1, ( ( col0 ) ) FROM tab0
----
14
15
86
87
96
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT - MAX( 76 ) FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-8455
SELECT - MAX ( 76 ) FROM tab0
----
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8456
SELECT ALL - 39 * - CAST( NULL AS DECIMAL ) * - - col2 + + + 50 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL - 39 * - CAST ( NULL AS REAL ) * - - col2 + + + 50 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 89 * + + col0 AS col1 FROM tab1
----
4539
7565
8099

query I rowsort
SELECT ALL + col1 - - col2 - - col0 FROM tab1
----
149
161
206

onlyif mysql # DIV for integer division: 
query I rowsort label-8459
SELECT ALL + col1 DIV + 20 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL + col1 / + 20 FROM tab0
----
0
1
4

onlyif mysql # DIV for integer division: 
query II rowsort label-8460
SELECT DISTINCT + col2 DIV - + 19 - + + col1, col2 FROM tab1
----
-19
96
-50
68
-8
59

skipif mysql # not compatible
query II rowsort label-8460
SELECT DISTINCT + col2 / - + 19 - + + col1, col2 FROM tab1
----
-19
96
-50
68
-8
59

query III rowsort
SELECT ALL * FROM tab0 WHERE + 26 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - ( - + ( 68 ) ) ) - - col0 AS col0 FROM tab1
----
119
153
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8463
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT + SUM( + - col0 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 88 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8464
SELECT + SUM ( + - col0 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 88 IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT + col2 AS col2, + 74 FROM tab0 AS cor0
----
10
74
47
74
99
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8466
SELECT ALL - COUNT( * ) AS col1, + 94 AS col1 FROM tab2 AS cor0
----
-3
94

skipif mysql # not compatible
query II rowsort label-8466
SELECT ALL - COUNT ( * ) AS col1, + 94 AS col1 FROM tab2 AS cor0
----
-3
94

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 + 20 + - - col0 <> NULL
----

query I rowsort
SELECT 26 * ( + col0 ) FROM tab1 AS cor0
----
1326
2210
2366

query II rowsort
SELECT - col2 * + col0 AS col1, col0 AS col1 FROM tab0 cor0
----
-705
15
-870
87
-9603
97

query I rowsort
SELECT ALL 45 * - 5 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - + 8, + col2 + - 88 AS col0 FROM tab1 AS cor0
----
-8
-20
-8
-29
-8
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8472
SELECT DISTINCT + + MAX( ALL - col0 ) AS col1, - COUNT( * ) FROM tab0 AS cor0
----
-15
-3

skipif mysql # not compatible
query II rowsort label-8472
SELECT DISTINCT + + MAX ( ALL - col0 ) AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
-15
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 20 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8474
SELECT 72 * - col0 DIV col0 FROM tab0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-8474
SELECT 72 * - col0 / col0 FROM tab0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL MAX( DISTINCT - + 60 ) AS col1 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL MAX ( DISTINCT - + 60 ) AS col1 FROM tab0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8476
SELECT - col1 DIV - 51 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8476
SELECT - col1 / - 51 FROM tab0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> - col2
----

query I rowsort
SELECT ALL - col0 * + - 74 * - col1 FROM tab2
----
-173604
-364672
-371850

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab1 WHERE + + ( 15 ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8480
SELECT DISTINCT + CAST( MIN( DISTINCT col1 ) AS SIGNED ) + - 15 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT + CAST ( MIN ( DISTINCT col1 ) AS INTEGER ) + - 15 FROM tab0 AS cor0
----
-14

query I rowsort
SELECT + col0 + + col0 + - 40 FROM tab2 AS cor0
----
110
52
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8482
SELECT + col0 DIV - - col2 + + 58 - - + 37 AS col0 FROM tab0 AS cor0
----
103
95
95

skipif mysql # not compatible
query I rowsort label-8482
SELECT + col0 / - - col2 + + 58 - - + 37 AS col0 FROM tab0 AS cor0
----
103
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8483
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <> CAST( + 49 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8483
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <> CAST ( + 49 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - - col0 * - col0 + ( + col0 ) * - col2 FROM tab0 AS cor0
----
-19012
-8439
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 + + 36 col2 FROM tab2 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 44 > - 74
----

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE col2 / + - ( + col1 ) IS NULL
----

query II rowsort
SELECT + col1 AS col2, - 37 AS col1 FROM tab1 AS cor0
----
14
-37
47
-37
5
-37

query II rowsort
SELECT + col0 AS col2, - 88 + 24 * - col2 FROM tab0 AS cor0
----
15
-1216
87
-328
97
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT ALL COUNT( * ) + - COUNT( * ) * COUNT( DISTINCT - + col1 ) col1 FROM tab1
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8490
SELECT ALL COUNT ( * ) + - COUNT ( * ) * COUNT ( DISTINCT - + col1 ) col1 FROM tab1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT ( 5 ) + - col2 FROM tab1
----
-54
-63
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT - col2 * + col2 * - CAST( + - CAST( - ( col1 ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
129024
17405
217328

skipif mysql # not compatible
query I rowsort label-8493
SELECT - col2 * + col2 * - CAST ( + - CAST ( - ( col1 ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
129024
17405
217328

query II rowsort
SELECT + 34 * - 34 AS col0, - col2 AS col0 FROM tab1
----
-1156
-59
-1156
-68
-1156
-96

query I rowsort
SELECT + - 73 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT + ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8496
SELECT + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT - - 28 * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8497
SELECT - - 28 * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
84

query I rowsort
SELECT ( - + col2 ) * - 53 FROM tab0
----
2491
5247
530

onlyif mysql # aggregate syntax: 
query II rowsort label-8499
SELECT ALL SUM( 94 ) AS col2, - COUNT( * ) AS col0 FROM tab1 WHERE 0 IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8499
SELECT ALL SUM ( 94 ) AS col2, - COUNT ( * ) AS col0 FROM tab1 WHERE 0 IS NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT 98 * 20 IS NULL AND NOT + col1 >= + col0 + - + 60
----
0

skipif mysql # not compatible
query I rowsort label-8500
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT 98 * 20 IS NULL AND NOT + col1 >= + col0 + - + 60
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8501
SELECT * FROM tab2 AS cor0 WHERE NOT 53 * + CAST( NULL AS SIGNED ) + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8501
SELECT * FROM tab2 AS cor0 WHERE NOT 53 * + CAST ( NULL AS INTEGER ) + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col2, col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 + - - 28 > + 19 + - + 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 col1, - col2 + - + col2 FROM tab0 cor0
----
15
-94
87
-20
97
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT 69 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-8505
SELECT 69 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
207

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + - col0 * - 32 * col0 > - 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8507
SELECT ALL - col2 * col1 DIV - + col1 AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL - col2 * col1 / - + col1 AS col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT + col1 + - ( + 58 ) * 90 FROM tab1
----
-5173
-5206
-5215

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT + ( - - COUNT( * ) ) AS col1 FROM tab2 WHERE col0 * + - ( - col2 ) + + + col1 * 50 / + col1 * + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8509
SELECT + ( - - COUNT ( * ) ) AS col1 FROM tab2 WHERE col0 * + - ( - col2 ) + + + col1 * 50 / + col1 * + - col0 IS NULL
----
0

query I rowsort
SELECT col0 * + - 39 + - - col1 * col1 FROM tab0
----
-2952
-3782
5976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - col1 + 39 + - + col1 * + - 48 * - - col1 col0, 99 + + col1 AS col2 FROM tab2
----
124882
150
215519
166
284618
176

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT - MAX( ALL - + 73 ) + + 77 - - + 85 + + COUNT( * ) FROM tab1
----
238

skipif mysql # not compatible
query I rowsort label-8512
SELECT - MAX ( ALL - + 73 ) + + 77 - - + 85 + + COUNT ( * ) FROM tab1
----
238

query I rowsort
SELECT - col0 * + - col0 + - - col0 AS col0 FROM tab1
----
2652
7310
8372

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 = - col2 OR NOT - col0 * + + 85 + - col2 + - - 79 <> + ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8516
SELECT ALL + - SUM( DISTINCT - CAST( col1 AS SIGNED ) ) col1 FROM tab2 cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8516
SELECT ALL + - SUM ( DISTINCT - CAST ( col1 AS INTEGER ) ) col1 FROM tab2 cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT DISTINCT - + 63 + - COUNT( * ) AS col1 FROM tab0 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT - + 63 + - COUNT ( * ) AS col1 FROM tab0 cor0
----
-66

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT COUNT( * ) + 97 AS col1 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-8519
SELECT COUNT ( * ) + 97 AS col1 FROM tab1 AS cor0
----
100

query I rowsort
SELECT ( - col2 ) + - col1 + col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT ALL + MIN( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 / 49 * + 37 * - - col0 IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL + MIN ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 / 49 * + 37 * - - col0 IS NULL
----
59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 54 - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8523
SELECT DISTINCT CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) - ( + + col0 ) - ( - - col2 ) - + - ( - col1 ) * + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) - ( + + col0 ) - ( - - col2 ) - + - ( - col1 ) * + col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT DISTINCT - COUNT( * ) * + - 4 + 64 AS col0 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-8524
SELECT DISTINCT - COUNT ( * ) * + - 4 + 64 AS col0 FROM tab0 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8525
SELECT - 75, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-75
NULL
-75
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-8525
SELECT - 75, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-75
NULL
-75
NULL
-75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 col2 FROM tab2
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT MIN( + 61 ) FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-8527
SELECT MIN ( + 61 ) FROM tab1
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + - col1 col0 FROM tab2
----
-2601
-4489
-5929

query II rowsort
SELECT + 65, - ( + col1 ) * + col1 AS col0 FROM tab2
----
65
-2601
65
-4489
65
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT DISTINCT 66 + - ( + CAST( - CAST( - CAST( col0 AS SIGNED ) AS SIGNED ) AS SIGNED ) ) - + - col0 + - col2 + - col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT 66 + - ( + CAST ( - CAST ( - CAST ( col0 AS INTEGER ) AS INTEGER ) AS INTEGER ) ) - + - col0 + - col2 + - col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8531
SELECT DISTINCT 94 AS col0, - 72 * + COUNT( * ) * + 99 FROM tab0
----
94
-21384

skipif mysql # not compatible
query II rowsort label-8531
SELECT DISTINCT 94 AS col0, - 72 * + COUNT ( * ) * + 99 FROM tab0
----
94
-21384

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT + 83 * + COUNT( * ) AS col1 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-8532
SELECT + 83 * + COUNT ( * ) AS col1 FROM tab2
----
249

onlyif mysql # DIV for integer division: 
query II rowsort label-8533
SELECT ALL 53 AS col1, - ( + - col1 ) DIV + - 11 FROM tab1 cor0
----
53
-1
53
-4
53
0

skipif mysql # not compatible
query II rowsort label-8533
SELECT ALL 53 AS col1, - ( + - col1 ) / + - 11 FROM tab1 cor0
----
53
-1
53
-4
53
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT - MIN( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8534
SELECT - MIN ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT + 88 + 49 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL = NULL )
----

query I rowsort
SELECT ALL + col0 * + 8 + col1 AS col2 FROM tab0 AS cor0
----
201
717
777

query I rowsort
SELECT DISTINCT 17 * col0 FROM tab0 AS cor0
----
1479
1649
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8538
SELECT + - CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8538
SELECT + - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8539
SELECT ALL - 8 AS col1 FROM tab1 cor0 WHERE NOT ( NOT - + CAST( col2 AS SIGNED ) + + col1 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL - 8 AS col1 FROM tab1 cor0 WHERE NOT ( NOT - + CAST ( col2 AS INTEGER ) + + col1 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8540
SELECT DISTINCT AVG ( DISTINCT + col2 ) * + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT ( NOT - col1 + + + col2 * + 73 >= - CAST( NULL AS SIGNED ) * + col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8540
SELECT DISTINCT AVG ( DISTINCT + col2 ) * + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT ( NOT - col1 + + + col2 * + 73 >= - CAST ( NULL AS INTEGER ) * + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT ALL SUM( - 58 ) FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL SUM ( - 58 ) FROM tab1
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT DISTINCT + SUM( - 13 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT + SUM ( - 13 ) FROM tab0 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8543
SELECT + + 38 * - + 97 - CAST( NULL AS SIGNED ) / ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT + + 38 * - + 97 - CAST ( NULL AS INTEGER ) / ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 / - 78 < ( 6 * 12 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 27 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col0 - col2 NOT BETWEEN - ( col1 ) AND + - 31 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT ALL + - 5 AS col2 FROM tab1 WHERE NOT - + 28 + col2 - - col1 * - + CAST( NULL AS SIGNED ) * - col2 NOT BETWEEN + 84 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL + - 5 AS col2 FROM tab1 WHERE NOT - + 28 + col2 - - col1 * - + CAST ( NULL AS INTEGER ) * - col2 NOT BETWEEN + 84 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 BETWEEN col2 AND col2 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col2 + + - ( 82 ) * + + col0 AS col1 FROM tab0 cor0
----
-1277
-7144
-8053

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + + col2 col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ALL - col0 + - - 84 FROM tab1 AS cor0
----
-1
-7
33

query I rowsort
SELECT DISTINCT + - 86 + - col2 * + - 3 AS col1 FROM tab0 AS cor0
----
-56
211
55

query I rowsort
SELECT ALL + col0 + - - col0 AS col2 FROM tab2
----
128
150
92

query II rowsort
SELECT DISTINCT col0 AS col1, col0 + - col1 AS col0 FROM tab0
----
15
-66
87
66
97
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT - COUNT( * ) - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8555
SELECT - COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8556
SELECT + + MAX( col2 ) - + - 41 + 29 - + 28 + + + COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-8556
SELECT + + MAX ( col2 ) - + - 41 + 29 - + 28 + + + COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8557
SELECT DISTINCT - CAST( + 78 AS SIGNED ) * - col2 - - - col2 * - col1 AS col2 FROM tab2 AS cor0
----
2967
6200
8410

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT - CAST ( + 78 AS INTEGER ) * - col2 - - - col2 * - col1 AS col2 FROM tab2 AS cor0
----
2967
6200
8410

query I rowsort
SELECT - col2 - - + col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT ALL - SUM( ( col1 ) ) * - + COUNT( * ) col0 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8559
SELECT ALL - SUM ( ( col1 ) ) * - + COUNT ( * ) col0 FROM tab1 AS cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT ALL + + 79 + - + ( COUNT( ALL + ( - - col2 ) ) ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL + + 79 + - + ( COUNT ( ALL + ( - - col2 ) ) ) FROM tab0 AS cor0
----
76

query II rowsort
SELECT ALL + - col0 AS col2, + col1 AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8562
SELECT DISTINCT col0 col1, col2 * - col0 * + col2 / - - col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8562
SELECT DISTINCT col0 col1, col2 * - col0 * + col2 / - - col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT DISTINCT MIN( DISTINCT - + 34 ) * - 0 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT MIN ( DISTINCT - + 34 ) * - 0 AS col0 FROM tab1
----
0

query I rowsort
SELECT - 74 * + - 62 FROM tab1
----
4588
4588
4588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8565
SELECT - 92 * - + 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-8565
SELECT - 92 * - + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8566
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 85 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 85 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 1 AND + - col0 / - + ( + 49 ) + + + 89
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8569
SELECT ALL - ( - ( - col1 ) ) DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL - ( - ( - col1 ) ) / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT col0 AS col1, + col2 * + col1 FROM tab0
----
15
3807
87
210
97
99

query I rowsort
SELECT ALL + + 9 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT ALL - col1 FROM tab1 WHERE + - col1 + + + CAST( + - col1 AS SIGNED ) + - - col2 / col1 IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL - col1 FROM tab1 WHERE + - col1 + + + CAST ( + - col1 AS INTEGER ) + - - col2 / col1 IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT DISTINCT + CAST( + col2 AS SIGNED ) + ( - col2 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) + ( - col2 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col1 * + 94 AS col1 FROM tab1 AS cor0 WHERE - col0 - + col0 IS NOT NULL
----
1316
4418
470

query I rowsort
SELECT ALL col0 + + + 1 AS col1 FROM tab2 AS cor0
----
47
65
76

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab1 AS cor0 WHERE - col2 - - - col1 IN ( ( - col0 ) * - 51, - col2, - - col1, - 87 - - col1 * col1 * col0, - 37 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( ( col2 ) + - - ( + + 85 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8578
SELECT ALL + 78 DIV + 66 + - + col1 AS col2 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL + 78 / + 66 + - + col1 AS col2 FROM tab2
----
-50
-66
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8579
SELECT DISTINCT AVG ( - - col2 ) * 7 * - CAST( NULL AS SIGNED ) - ( COUNT( * ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT AVG ( - - col2 ) * 7 * - CAST ( NULL AS INTEGER ) - ( COUNT ( * ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col2 * - ( col1 ) * + col2 FROM tab0
----
-178929
-2100
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT ALL CAST( + col1 AS SIGNED ) + - col0 FROM tab1
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL CAST ( + col1 AS INTEGER ) + - col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL - + 97 FROM tab1 cor0
----
-97
-97
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8583
SELECT DISTINCT 2 + ( - 79 ) + + + 26 DIV col0 DIV + 47 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT 2 + ( - 79 ) + + + 26 / col0 / + 47 FROM tab1 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col1 FROM tab2 AS cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT DISTINCT - + COUNT( * ) + + + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT - + COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ( - + 69 ) - + 11 FROM tab2 AS cor0
----
-80
-80
-80

query I rowsort
SELECT col0 - + 20 AS col2 FROM tab0
----
-5
67
77

query I rowsort
SELECT col2 + col1 * 43 AS col0 FROM tab2
----
2216
2939
3351

query I rowsort
SELECT + col0 * - ( + col2 ) * - - col0 + - col2 AS col1 FROM tab0
----
-10622
-75700
-931590

query II rowsort
SELECT - + 23 AS col0, 8 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to dccf47e258091f2d7a85bbb53609945d

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 1 + + - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT DISTINCT - + ( - ( - MAX( DISTINCT 98 ) ) ) * + - COUNT( * ) FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT - + ( - ( - MAX ( DISTINCT 98 ) ) ) * + - COUNT ( * ) FROM tab2 AS cor0
----
294

query I rowsort
SELECT DISTINCT - 49 AS col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8594
SELECT - - COUNT( * ) DIV + MIN( col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8594
SELECT - - COUNT ( * ) / + MIN ( col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT - + SUM( - col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8595
SELECT - + SUM ( - col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8596
SELECT - + 35 FROM tab1 AS cor0 WHERE NOT + col1 IN ( + col1 - 85, - col1, - 17 ) AND col1 IN ( - - col2, ( + - CAST( NULL AS SIGNED ) ) * 72, + - col0 + + 70 )
----

skipif mysql # not compatible
query I rowsort label-8596
SELECT - + 35 FROM tab1 AS cor0 WHERE NOT + col1 IN ( + col1 - 85, - col1, - 17 ) AND col1 IN ( - - col2, ( + - CAST ( NULL AS INTEGER ) ) * 72, + - col0 + + 70 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 col1 FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8598
SELECT ALL COUNT( * ) AS col1, 93 AS col2 FROM tab2
----
3
93

skipif mysql # not compatible
query II rowsort label-8598
SELECT ALL COUNT ( * ) AS col1, 93 AS col2 FROM tab2
----
3
93

query II rowsort
SELECT + ( col0 ), + col2 FROM tab0
----
15
47
87
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col2, + col0 * 26 col2 FROM tab1
----
-51
1326
-85
2210
-91
2366

query I rowsort
SELECT DISTINCT - ( col1 ) * + 96 AS col0 FROM tab0
----
-2016
-7776
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8602
SELECT ALL - MAX( DISTINCT CAST( - CAST( - 36 AS SIGNED ) AS SIGNED ) ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL - MAX ( DISTINCT CAST ( - CAST ( - 36 AS INTEGER ) AS INTEGER ) ) FROM tab0
----
-36

query II rowsort
SELECT ALL - col1 AS col2, 55 AS col0 FROM tab2
----
-51
55
-67
55
-77
55

query I rowsort
SELECT ALL - ( 72 ) AS col1 FROM tab2 AS cor0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-8605
SELECT ALL + COUNT( * ), ( MIN( - col0 ) ) col2 FROM tab2 cor0
----
3
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8605
SELECT ALL + COUNT ( * ), ( MIN ( - col0 ) ) col2 FROM tab2 cor0
----
3
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT + MAX( DISTINCT + 6 ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8606
SELECT + MAX ( DISTINCT + 6 ) AS col2 FROM tab2 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <= col0 - - - col2 + 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8608
SELECT DISTINCT + + col0 AS col0, - 38 * - CAST( - col0 AS SIGNED ) * - - col1 AS col1 FROM tab0 AS cor0
----
15
-46170
87
-69426
97
-3686

skipif mysql # not compatible
query II rowsort label-8608
SELECT DISTINCT + + col0 AS col0, - 38 * - CAST ( - col0 AS INTEGER ) * - - col1 AS col1 FROM tab0 AS cor0
----
15
-46170
87
-69426
97
-3686

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 WHERE NOT - 43 >= + 80
----
51
67
77

query I rowsort
SELECT ALL - - 59 + col0 FROM tab1 AS cor0
----
110
144
150

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT 31 + ( + 91 ) AS col1, + col0 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
122
46
122
64
122
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT ALL SUM( + col1 ) * - - COUNT( * ) col0 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8613
SELECT ALL SUM ( + col1 ) * - - COUNT ( * ) col0 FROM tab1 AS cor0
----
198

query II rowsort
SELECT ALL + + col2, 88 * col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + + ( + col1 ) AND - col2 + 62
----

query II rowsort
SELECT DISTINCT col0, col1 / - - 94 FROM tab1 AS cor0 WHERE NOT 7 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - - 76 * + col0 col0 FROM tab1 cor0
----
-197676
-549100
-629356

query I rowsort
SELECT ALL ( - 7 ) + 46 AS col0 FROM tab1
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT DISTINCT - SUM( ALL + col0 ) FROM tab0 WHERE - col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8618
SELECT DISTINCT - SUM ( ALL + col0 ) FROM tab0 WHERE - col2 <> NULL
----
NULL

query I rowsort
SELECT ALL - col1 + + + col2 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8620
SELECT DISTINCT COUNT( DISTINCT + - 43 ) DIV - 73 * + COUNT( DISTINCT - 5 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT COUNT ( DISTINCT + - 43 ) / - 73 * + COUNT ( DISTINCT - 5 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT + col1 + + + col1 - 24 * - + col0 FROM tab2
----
1206
1690
1934

query I rowsort
SELECT ALL - 60 - col2 AS col2 FROM tab1
----
-119
-128
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8623
SELECT ALL COUNT( * ) DIV + 48 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL COUNT ( * ) / + 48 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL <= 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT - COUNT( * ) + 0 col1 FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8625
SELECT - COUNT ( * ) + 0 col1 FROM tab0, tab0 AS cor0
----
-9

query I rowsort
SELECT - 26 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 19 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8627
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 19 IS NULL
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8628
SELECT ALL 43 DIV + 13 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL 43 / + 13 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT DISTINCT - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT - col0 * + - col2 + + 89 + 94 AS col1 FROM tab1 AS cor0 WHERE NOT + 77 NOT BETWEEN - col0 AND col0
----
5198
6371

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8631
SELECT * FROM tab2 AS cor0 WHERE NOT + 34 * - - 26 = + col2 * CAST( - col0 AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8631
SELECT * FROM tab2 AS cor0 WHERE NOT + 34 * - - 26 = + col2 * CAST ( - col0 AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 6 AS col1 FROM tab2 WHERE NOT - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT DISTINCT - COUNT( DISTINCT + col1 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL ( MIN( DISTINCT - 26 ) ) * + COUNT( * ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL ( MIN ( DISTINCT - 26 ) ) * + COUNT ( * ) FROM tab2
----
-78

query I rowsort
SELECT 94 * + - 47 FROM tab0
----
-4418
-4418
-4418

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, col0 + + - 37 FROM tab0
----
-10
50
-47
-22
-99
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8637
SELECT ALL + 27 AS col1, COUNT( * ) FROM tab1
----
27
3

skipif mysql # not compatible
query II rowsort label-8637
SELECT ALL + 27 AS col1, COUNT ( * ) FROM tab1
----
27
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8638
SELECT DISTINCT - COUNT( * ), SUM( DISTINCT col1 ) AS col2 FROM tab1
----
-3
66

skipif mysql # not compatible
query II rowsort label-8638
SELECT DISTINCT - COUNT ( * ), SUM ( DISTINCT col1 ) AS col2 FROM tab1
----
-3
66

query I rowsort
SELECT 42 * + col0 AS col2 FROM tab1
----
2142
3570
3822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 - + 96 * col2 + col2 * col2 + - col2 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + + 64 AS col1, col0 AS col0 FROM tab2 AS cor0
----
64
46
64
64
64
75

query I rowsort
SELECT - ( - 70 ) FROM tab2 AS cor0
----
70
70
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8644
SELECT ( - - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8644
SELECT ( - - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8645
SELECT + 33 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8645
SELECT + 33 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 9 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 96 ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT - ( - 73 ) AS col2 FROM tab2 AS cor0
----
73

query I rowsort
SELECT ALL + col1 + + 1 AS col0 FROM tab1 AS cor0
----
15
48
6

query I rowsort
SELECT ALL - 77 + - col0 AS col0 FROM tab1 AS cor0
----
-128
-162
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT 67 + - COUNT( * ) + + MIN( col1 ) AS col0 FROM tab2
----
115

skipif mysql # not compatible
query I rowsort label-8651
SELECT 67 + - COUNT ( * ) + + MIN ( col1 ) AS col0 FROM tab2
----
115

query III rowsort
SELECT * FROM tab0 WHERE col2 * + ( - 64 ) NOT BETWEEN NULL AND + + ( 15 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8653
SELECT CAST( 36 AS SIGNED ), + 33 * - 60 AS col1 FROM tab1
----
36
-1980
36
-1980
36
-1980

skipif mysql # not compatible
query II rowsort label-8653
SELECT CAST ( 36 AS INTEGER ), + 33 * - 60 AS col1 FROM tab1
----
36
-1980
36
-1980
36
-1980

query II rowsort
SELECT ALL + col2 * - col0 AS col1, 90 AS col1 FROM tab0
----
-705
90
-870
90
-9603
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8655
SELECT + + CAST( NULL AS SIGNED ) - - + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT + + CAST ( NULL AS INTEGER ) - - + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT COUNT( ALL 71 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8656
SELECT COUNT ( ALL 71 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8657
SELECT ALL - CAST( NULL AS SIGNED ) * - AVG ( + - 15 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL - CAST ( NULL AS INTEGER ) * - AVG ( + - 15 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT + COUNT( + col0 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8658
SELECT + COUNT ( + col0 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 16 + + ( + + col0 ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( ( NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8661
SELECT DISTINCT 15 AS col0, - MIN( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
15
58

skipif mysql # not compatible
query II rowsort label-8661
SELECT DISTINCT 15 AS col0, - MIN ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
15
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8662
SELECT + ( - COUNT( * ) ) DIV 95 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8662
SELECT + ( - COUNT ( * ) ) / 95 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 52 - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8664
SELECT ( 42 ) DIV - COUNT( * ) FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-8664
SELECT ( 42 ) / - COUNT ( * ) FROM tab2
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8665
SELECT 45 DIV + COUNT( * ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8665
SELECT 45 / + COUNT ( * ) FROM tab0
----
15

query I rowsort
SELECT ALL - - 55 AS col0 FROM tab0 WHERE NOT NULL BETWEEN - - col2 * + - 30 AND + + col0 - - 27 * - col0
----

query I rowsort
SELECT col1 * + - col1 * + col0 AS col0 FROM tab1
----
-201019
-2125
-9996

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 NOT IN ( - 82, - col1 )
----

query I rowsort
SELECT 95 FROM tab1 WHERE NOT - 92 + - col2 / + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8670
SELECT DISTINCT + CAST( - 0 AS SIGNED ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT + CAST ( - 0 AS INTEGER ) AS col2 FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * col0 + + + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT - - SUM( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8672
SELECT - - SUM ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL + col0 + col1 * - col2 FROM tab1 AS cor0
----
-1293
-210
-3105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8674
SELECT + + COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 52 * + col1 FROM tab1 AS cor0 WHERE - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT + 27 + - MIN( ALL col1 ) col2 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8676
SELECT + 27 + - MIN ( ALL col1 ) col2 FROM tab0 AS cor0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8677
SELECT DISTINCT COUNT( * ) DIV - ( 72 ) - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8677
SELECT DISTINCT COUNT ( * ) / - ( 72 ) - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + col1 * - col1 * - - col0 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + col1 ) * - - col2 - 70 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8680
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE col1 <> - col0 + - CAST( - - ( - col1 ) AS SIGNED )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8680
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE col1 <> - col0 + - CAST ( - - ( - col1 ) AS INTEGER )
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8681
SELECT ALL - CAST( col1 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL - CAST ( col1 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT col2 * - - col2 + col1 FROM tab1 AS cor0
----
3486
4671
9230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8683
SELECT ALL + CAST( 64 AS SIGNED ) FROM tab0 AS cor0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL + CAST ( 64 AS INTEGER ) FROM tab0 AS cor0
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8684
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 74 / col1 * CAST( NULL AS SIGNED ) - + 42 / 2 NOT BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8684
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 74 / col1 * CAST ( NULL AS INTEGER ) - + 42 / 2 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL - - COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL - - COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT 24 * - col2 - col0 * col2 * 73 * - - col0 AS col0 FROM tab1
----
-18230112
-31119491
-41108516

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT + 81 * - - 29 + COUNT( * ) FROM tab1
----
2352

skipif mysql # not compatible
query I rowsort label-8687
SELECT + 81 * - - 29 + COUNT ( * ) FROM tab1
----
2352

query I rowsort
SELECT ALL - col0 - - + 80 + - 85 AS col2 FROM tab1
----
-56
-90
-96

query I rowsort
SELECT DISTINCT - col2 * - - 67 AS col2 FROM tab0
----
-3149
-6633
-670

query I rowsort
SELECT + 15 + + - col0 AS col1 FROM tab1
----
-36
-70
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT 92 + COUNT( * ) AS col1 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-8691
SELECT 92 + COUNT ( * ) AS col1 FROM tab2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT + 24 + + COUNT( * ) * - 3 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8692
SELECT + 24 + + COUNT ( * ) * - 3 FROM tab2 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8693
SELECT + - 89 + + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT + - 89 + + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8694
SELECT DISTINCT col1 * + 99 AS col1, - 61 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
2079
NULL
8019
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8694
SELECT DISTINCT col1 * + 99 AS col1, - 61 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
2079
NULL
8019
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8695
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( + + col1 AS SIGNED ) + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8695
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( + + col1 AS INTEGER ) + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 * + col1 col0 FROM tab0 AS cor0
----
-2106
-26
-546

onlyif mysql # DIV for integer division: 
query I rowsort label-8697
SELECT DISTINCT + + col1 DIV 42 + col0 + col2 AS col0 FROM tab2 cor0
----
105
134
70

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT + + col1 / 42 + col0 + col2 AS col0 FROM tab2 cor0
----
105
134
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8698
SELECT + CAST( NULL AS SIGNED ) * + SUM( ALL col0 ) / + + 71 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT + CAST ( NULL AS INTEGER ) * + SUM ( ALL col0 ) / + + 71 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ALL MAX( - - 73 ) AS col1 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL MAX ( - - 73 ) AS col1 FROM tab1
----
73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 29 BETWEEN NULL AND col1 + col2 + + col1 + - + 38 * 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8702
SELECT - col0 * + col2 + CAST( NULL AS DECIMAL ) AS col1, 51 AS col1 FROM tab0
----
NULL
51
NULL
51
NULL
51

skipif mysql # not compatible
query II rowsort label-8702
SELECT - col0 * + col2 + CAST ( NULL AS REAL ) AS col1, 51 AS col1 FROM tab0
----
NULL
51
NULL
51
NULL
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8703
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT + COUNT( * ) col0 FROM tab2, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + - 83 / 53 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8705
SELECT + COUNT ( * ) col0 FROM tab2, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + - 83 / 53 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 50 ) * + col0 + - 36 col1 FROM tab0 cor0
----
-4386
-4886
-786

query I rowsort
SELECT ALL 16 + - col2 AS col0 FROM tab2 cor0
----
-24
-42
-7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 84 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8710
SELECT + 86 DIV - COUNT( * ) AS col1 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-8710
SELECT + 86 / - COUNT ( * ) AS col1 FROM tab1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8711
SELECT ALL + CAST( NULL AS SIGNED ) / + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL + CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + col1 * + col0 + 57 FROM tab0
----
1272
154
1884

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT ALL SUM( DISTINCT + 71 ) FROM tab1 WHERE - col0 * 79 IS NOT NULL
----
71

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL SUM ( DISTINCT + 71 ) FROM tab1 WHERE - col0 * 79 IS NOT NULL
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL > - 25 / + 9 - 43
----

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL > - 25 / + 9 - 43
----

query I rowsort
SELECT - 76 * 94 AS col1 FROM tab1
----
-7144
-7144
-7144

query I rowsort
SELECT + 92 * - 20 FROM tab1
----
-1840
-1840
-1840

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT COUNT( * ) AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8717
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8718
SELECT ALL col2 DIV + 19 FROM tab1
----
3
3
5

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL col2 / + 19 FROM tab1
----
3
3
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + 60 * + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 NOT IN ( - 19 + 45 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT col0 * - 31 FROM tab2
----
-1426
-1984
-2325

query I rowsort
SELECT + 0 * col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT COUNT( * ) * MIN( + col2 * 89 ) AS col0 FROM tab1
----
15753

skipif mysql # not compatible
query I rowsort label-8724
SELECT COUNT ( * ) * MIN ( + col2 * 89 ) AS col0 FROM tab1
----
15753

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8725
SELECT DISTINCT CAST( NULL AS SIGNED ) * 76 + - 19 * - col1 AS col0 FROM tab2 WHERE ( ( col0 ) + col0 ) NOT IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 76 + - 19 * - col1 AS col0 FROM tab2 WHERE ( ( col0 ) + col0 ) NOT IN ( col0 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL < ( col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= 74
----

query I rowsort
SELECT ALL col0 + 43 AS col0 FROM tab2
----
107
118
89

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 40 ) = col2
----
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8730
SELECT ALL * FROM tab0 WHERE NOT - 42 > - col2 * ( 63 ) + CAST( + col2 AS SIGNED ) * + 32
----

skipif mysql # not compatible
query III rowsort label-8730
SELECT ALL * FROM tab0 WHERE NOT - 42 > - col2 * ( 63 ) + CAST ( + col2 AS INTEGER ) * + 32
----

query I rowsort
SELECT DISTINCT col1 * - 17 AS col1 FROM tab0
----
-1377
-17
-357

query I rowsort
SELECT ALL - col0 * + 14 FROM tab0
----
-1218
-1358
-210

query I rowsort
SELECT DISTINCT + ( - col1 ) * + col1 AS col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8734
SELECT ALL col2 DIV - 38 AS col0 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL col2 / - 38 AS col0 FROM tab1
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8735
SELECT ALL + 23 DIV col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL + 23 / col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + 69 * + col2 FROM tab1 WHERE ( NULL ) BETWEEN ( 34 ) AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 - + 17 < 63
----

query I rowsort
SELECT ALL + col2 * col2 - - col2 * + col0 AS col2 FROM tab1
----
10812
14112
8496

query I rowsort
SELECT DISTINCT col1 - 83 FROM tab1
----
-36
-69
-78

query III rowsort
SELECT * FROM tab1 WHERE NOT - 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT COUNT( * ) * 6 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8741
SELECT COUNT ( * ) * 6 FROM tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8742
SELECT + COUNT( * ) DIV 17 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8742
SELECT + COUNT ( * ) / 17 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 65 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT + COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8744
SELECT + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( ( col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 + col2 NOT IN ( - 80 / col2 + 57 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8747
SELECT col0 / col0 + CAST( - 55 AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-8747
SELECT col0 / col0 + CAST ( - 55 AS REAL ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT DISTINCT + - COUNT( * ) * - 99 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT + - COUNT ( * ) * - 99 FROM tab0 AS cor0
----
297

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN 94 AND 59 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 6 * + col0 FROM tab1 AS cor0
----
306
510
546

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT DISTINCT + SUM( col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT + SUM ( col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT 45 + col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
109
120
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * 55 + + 91 AS col0 FROM tab2 AS cor0
----
-2714
-3594
-4144

query I rowsort
SELECT ALL + col0 * + ( 88 + + col0 ) + 21 AS col1 FROM tab1 AS cor0
----
14726
16310
7110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8756
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * - 64 FROM tab0 AS cor0
----
-1344
-5184
-64

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * - 64 FROM tab0 AS cor0
----
-1344
-5184
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT + COUNT( ALL 7 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8757
SELECT + COUNT ( ALL 7 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8758
SELECT ALL - 93 * CAST( NULL AS SIGNED ) col0 FROM tab2 WHERE NOT 9 <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8758
SELECT ALL - 93 * CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE NOT 9 <= NULL
----

query I rowsort
SELECT ALL - col0 * - 12 * 67 AS col0 FROM tab0
----
12060
69948
77988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8760
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + 68 - - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + 68 - - col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 19 + 93 * 74 col1 FROM tab1 AS cor0
----
6863
6863
6863

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL AND ( - col1 ) IS NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE 44 * - col2 > ( + col2 * - col0 )
----
87
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN ( col2 + 30 ) AND col2
----

query I rowsort
SELECT ALL + 85 + - col0 - col1 FROM tab0 AS cor0
----
-11
-13
-23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 + 29 * ( 2 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT DISTINCT + ( COUNT( * ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8767
SELECT DISTINCT + ( COUNT ( * ) ) col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 * 25 + col0 col0 FROM tab2 cor0 WHERE - 87 > ( - col0 )
----

query I rowsort
SELECT + 57 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 23 ) col0 FROM tab1 WHERE ( - - col1 + - col1 ) IS NULL
----

query I rowsort
SELECT ALL + col1 + - 50 - col2 * col1 AS col1 FROM tab0
----
-148
-239
-3776

query I rowsort
SELECT + - 89 + + ( 6 - + 27 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to aea35ff6aa55a2cb3436ce7f4db01e9b

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT - SUM( ALL - + col1 ) * + COUNT( * ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-8773
SELECT - SUM ( ALL - + col1 ) * + COUNT ( * ) FROM tab1
----
198

query I rowsort
SELECT + 45 - - 19 FROM tab0 AS cor0
----
64
64
64

query I rowsort
SELECT - 88 FROM tab2 AS cor0 WHERE NOT ( - col0 ) = ( + 71 + col2 ) OR ( 66 * - 43 ) IN ( + col0 * col0 + 94 )
----
-88
-88
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8776
SELECT - MIN( + CAST( NULL AS SIGNED ) ) - 51 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) - 51 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > - 40 + - - 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT AVG ( DISTINCT col0 ) * - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8778
SELECT AVG ( DISTINCT col0 ) * - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 )
----
NULL

query I rowsort
SELECT DISTINCT col2 + - ( + col0 ) * + 73 FROM tab0 AS cor0
----
-1048
-6341
-6982

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8780
SELECT ALL * FROM tab0 WHERE NOT ( col1 + - CAST( NULL AS DECIMAL ) ) > ( + CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8780
SELECT ALL * FROM tab0 WHERE NOT ( col1 + - CAST ( NULL AS REAL ) ) > ( + CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT MIN( ALL col0 ) + - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL >= ( + + col0 * - col1 - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8781
SELECT MIN ( ALL col0 ) + - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL >= ( + + col0 * - col1 - col0 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT DISTINCT + COUNT( - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT + COUNT ( - col0 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT + 94 * col1 FROM tab1
----
1316
4418
470

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 67 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8786
SELECT DISTINCT COUNT( + CAST( col2 AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT COUNT ( + CAST ( col2 AS INTEGER ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8787
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col0
----

query I rowsort
SELECT ALL 24 AS col1 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT ALL + col0 * - col2 * - col1 FROM tab0
----
18270
57105
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 * - 0 + col0 col0 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN ( + col1 + + + col2 ) AND ( NULL )
----

query I rowsort
SELECT ( - + 20 ) AS col2 FROM tab2 AS cor0
----
-20
-20
-20

query I rowsort
SELECT DISTINCT + 88 * - + col0 FROM tab1 AS cor0 WHERE + 59 IN ( col2 )
----
-7480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8794
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - + ( - - 25 ) + + COUNT( * ) * + ( + COUNT( * ) ) / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + ( - - 25 ) + + COUNT ( * ) * + ( + COUNT ( * ) ) / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE ( col0 ) >= 69
----
47
5

query I rowsort
SELECT ALL - - 36 + - col1 AS col2 FROM tab0 AS cor0
----
-45
15
35

query II rowsort
SELECT ALL - ( col1 ) + - col1 AS col1, 68 AS col1 FROM tab0 AS cor0
----
-162
68
-2
68
-42
68

query I rowsort
SELECT ALL + col0 + 30 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - 41 * + 80 AS col2 FROM tab1
----
-3280

query I rowsort
SELECT col0 + + col0 * - col1 AS col1 FROM tab2
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT COUNT( * ) + - COUNT( * ) + - - 41 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-8801
SELECT COUNT ( * ) + - COUNT ( * ) + - - 41 FROM tab0
----
41

query I rowsort
SELECT ALL 66 * - col2 FROM tab2
----
-1518
-2640
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL 93 * - COUNT( * ) AS col0 FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL 93 * - COUNT ( * ) AS col0 FROM tab1
----
-279

query I rowsort
SELECT 71 / col0 FROM tab0 WHERE + col0 NOT IN ( + + col0, col1 * - - ( - col1 ) + + 3 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 + - col0 - 6 IS NULL
----

query II rowsort
SELECT col2 * col1 AS col0, - 4 FROM tab0
----
210
-4
3807
-4
99
-4

query III rowsort
SELECT * FROM tab2 WHERE - 46 >= + + col1 + + col1
----

query I rowsort
SELECT col1 * col1 * - col2 AS col2 FROM tab0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT ALL 76 - - 48 * COUNT( - col2 + + col0 ) AS col0 FROM tab1 WHERE NOT ( + - ( - col0 ) ) <= NULL
----
76

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL 76 - - 48 * COUNT ( - col2 + + col0 ) AS col0 FROM tab1 WHERE NOT ( + - ( - col0 ) ) <= NULL
----
76

query I rowsort
SELECT DISTINCT col0 * + 10 FROM tab0 AS cor0 WHERE NOT + col0 IN ( + 68 * + + col0 )
----
150
870
970

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8811
SELECT * FROM tab1 AS cor0 WHERE + 68 + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8811
SELECT * FROM tab1 AS cor0 WHERE + 68 + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 84 * + col1 / + + col2 ) IN ( + 87 * col1 * - 32 )
----

query I rowsort
SELECT DISTINCT - col1 * + + 71 - col2 - - - col2 * - 3 + col2 AS col1 FROM tab0 AS cor0
----
-1461
-5610
226

query I rowsort
SELECT 3 - 19 FROM tab1
----
-16
-16
-16

query I rowsort
SELECT ALL + col2 - col1 * - col0 FROM tab1
----
4345
484
810

query I rowsort
SELECT + - 66 * 75 - + 5 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 093e6ce8872cf001c363f6b91546a2cd

query I rowsort
SELECT ALL - 52 - - col0 FROM tab0
----
-37
35
45

query I rowsort
SELECT DISTINCT - - ( + col1 ) * - 70 - col1 FROM tab2 cor0
----
-3621
-4757
-5467

query I rowsort
SELECT DISTINCT + + col2 + ( + col0 ) AS col2 FROM tab0 cor0
----
196
62
97

query II rowsort
SELECT DISTINCT - ( - 72 ), col2 AS col1 FROM tab0 AS cor0
----
72
10
72
47
72
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT + - SUM( 70 ) FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-8822
SELECT + - SUM ( 70 ) FROM tab2 AS cor0
----
-210

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= ( - - 73 * 7 * - 33 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8824
SELECT ALL col1 DIV + 70 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL col1 / + 70 AS col1 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT ( - 53 ) FROM tab0
----
-53

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NULL > col1 * 36 + col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT ALL - COUNT( * ) + + 76 FROM tab2 WHERE NULL IS NULL
----
73

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL - COUNT ( * ) + + 76 FROM tab2 WHERE NULL IS NULL
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8828
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8828
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) - col2 IS NULL
----

query II rowsort
SELECT ALL col1, 45 + + 85 FROM tab2 AS cor0
----
51
130
67
130
77
130

query I rowsort
SELECT - col0 * - col0 + - + col2 AS col2 FROM tab2 AS cor0
----
2093
4056
5567

query II rowsort
SELECT DISTINCT col0, col2 + + - col2 AS col1 FROM tab0 AS cor0
----
15
0
87
0
97
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) < ( col1 )
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT - SUM( DISTINCT + - 79 ) FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8833
SELECT - SUM ( DISTINCT + - 79 ) FROM tab2 AS cor0
----
79

query I rowsort
SELECT + col1 * - - 58 FROM tab0 AS cor0
----
1218
4698
58

query I rowsort
SELECT - 71 * col2 AS col1 FROM tab0
----
-3337
-7029
-710

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ALL COUNT( + + 92 ) * + 20 - 13 + - 47 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL COUNT ( + + 92 ) * + 20 - 13 + - 47 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT DISTINCT + COUNT( ALL + - 67 ) + COUNT( * ) + + COUNT( * ) + - + SUM( 76 ) AS col1 FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT + COUNT ( ALL + - 67 ) + COUNT ( * ) + + COUNT ( * ) + - + SUM ( 76 ) AS col1 FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8838
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 IN ( col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8839
SELECT CAST( NULL AS SIGNED ) + col0 col0 FROM tab2 AS cor0 WHERE NULL IN ( + 62, - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8839
SELECT CAST ( NULL AS INTEGER ) + col0 col0 FROM tab2 AS cor0 WHERE NULL IN ( + 62, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT + + COUNT( DISTINCT - 94 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8840
SELECT + + COUNT ( DISTINCT - 94 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT DISTINCT - - MIN( ALL col0 ) + - + COUNT( * ) col1 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8841
SELECT DISTINCT - - MIN ( ALL col0 ) + - + COUNT ( * ) col1 FROM tab2 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT + ( MAX( - col1 ) ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8842
SELECT + ( MAX ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8843
SELECT ALL - CAST( NULL AS SIGNED ) + - + col0 + - 15 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL - CAST ( NULL AS INTEGER ) + - + col0 + - 15 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT DISTINCT + 27 * + - COUNT( * ) + + + 0 * - 89 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT + 27 * + - COUNT ( * ) + + + 0 * - 89 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT - 38 AS col1 FROM tab1 cor0
----
-38
-38
-38

query I rowsort
SELECT + + 69 AS col2 FROM tab0 cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT DISTINCT + MIN( col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT + MIN ( col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 ) BETWEEN NULL AND + - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT 43 + 71 + - COUNT( * ) AS col0 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT 43 + 71 + - COUNT ( * ) AS col0 FROM tab0
----
111

query I rowsort
SELECT ALL + 0 * - + col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT col1 * + CAST( col2 AS SIGNED ) FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-8851
SELECT col1 * + CAST ( col2 AS INTEGER ) FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT DISTINCT CAST( - + 71 AS SIGNED ) * col0 - + col0 AS col2 FROM tab0
----
-1080
-6264
-6984

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT CAST ( - + 71 AS INTEGER ) * col0 - + col0 AS col2 FROM tab0
----
-1080
-6264
-6984

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT DISTINCT MAX( 40 ) col1 FROM tab2
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8853
SELECT DISTINCT MAX ( 40 ) col1 FROM tab2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8854
SELECT ALL 90 DIV - col1 FROM tab0
----
-1
-4
-90

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL 90 / - col1 FROM tab0
----
-1
-4
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8855
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) + - + ( - AVG ( + - 75 ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8855
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) + - + ( - AVG ( + - 75 ) ) col1 FROM tab2
----
NULL

query II rowsort
SELECT - col2 * + col1 + + + col0 + + 63 * + - col0, + 51 AS col0 FROM tab0
----
-4737
51
-5604
51
-6113
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8857
SELECT + col1 * + + 38, CAST( col2 AS SIGNED ) + + + col2 FROM tab1 AS cor0 WHERE ( col1 * - col1 ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-8857
SELECT + col1 * + + 38, CAST ( col2 AS INTEGER ) + + + col2 FROM tab1 AS cor0 WHERE ( col1 * - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( + 83 ) FROM tab0 AS cor0
----
83

query I rowsort
SELECT 63 * - 35 + - 4 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( NOT + 85 = + col0 ) )
----
51
14
96
91
47
68

query I rowsort
SELECT col1 * 9 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + col2 ) col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col1 col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT + 89 * + - ( + + col1 ) FROM tab2 AS cor0
----
-4539
-5963
-6853

query I rowsort
SELECT col2 * + - 23 FROM tab2 cor0
----
-1334
-529
-920

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8866
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + CAST( NULL AS SIGNED ) ) AND + 15
----

skipif mysql # not compatible
query III rowsort label-8866
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND + 15
----

query II rowsort
SELECT 59 * + col2 AS col0, + 91 AS col1 FROM tab2
----
1357
91
2360
91
3422
91

query I rowsort
SELECT - 42 * + col0 FROM tab1 WHERE NOT + - col1 IS NULL
----
-2142
-3570
-3822

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE NULL < - 55
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( - + 26 ) / - ( - 53 ) * - col2 + - col0 * ( - col2 ) BETWEEN ( - 76 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - ( + col0 ) col1 FROM tab2 WHERE - - 62 * col1 IS NOT NULL
----
-104
-133
-69

query I rowsort
SELECT DISTINCT - ( - ( 35 ) ) FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
35

query I rowsort
SELECT + + 97 * col1 + + ( col1 ) + 34 * + col0 FROM tab0 AS cor0
----
3396
5016
8448

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 * + - 98 * - col2 IS NULL )
----

query I rowsort
SELECT ALL + col2 + + col1 + 45 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT col1 + 44 AS col1 FROM tab2 cor0
----
111
121
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT DISTINCT + + COUNT( * ) + - 80 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT + + COUNT ( * ) + - 80 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> + col2 / - - ( + + col2 )
----

query I rowsort
SELECT + 47 + - col1 FROM tab1 AS cor0
----
0
33
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT DISTINCT 0 + + COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT 0 + + COUNT ( * ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL - 45 + - 3 AS col0 FROM tab0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT - col2 * + col0 * + ( + col0 ) - + 28 * + col1 FROM tab2
----
-165996
-328126
-50096

query II rowsort
SELECT - col2 * - - col1, + ( ( + ( + col1 ) ) ) FROM tab0
----
-210
21
-3807
81
-99
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8884
SELECT * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED ) / + - col0 + + + ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-8884
SELECT * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER ) / + - col0 + + + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL - SUM( 52 ) FROM tab1, tab2 cor0
----
-468

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL - SUM ( 52 ) FROM tab1, tab2 cor0
----
-468

query I rowsort
SELECT col2 + 36 FROM tab2
----
59
76
94

query I rowsort
SELECT col0 + + 29 AS col1 FROM tab0 WHERE 7 IS NOT NULL
----
116
126
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8888
SELECT ALL + 77 AS col1, SUM( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
77
NULL

skipif mysql # not compatible
query II rowsort label-8888
SELECT ALL + 77 AS col1, SUM ( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
77
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 35 / col1 * + - col0 < + - 13 * col1 - 55 + col0 * + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT DISTINCT - + col1 * - col0 + - CAST( - col2 AS SIGNED ) FROM tab0 cor0
----
1262
1837
196

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT - + col1 * - col0 + - CAST ( - col2 AS INTEGER ) FROM tab0 cor0
----
1262
1837
196

query I rowsort
SELECT col1 * - + col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT - col2 * + col1 + + col2 + + - 12 AS col1 FROM tab2 AS cor0
----
-1162
-3052
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT ALL - COUNT( * ) * 87 AS col2 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL - COUNT ( * ) * 87 AS col2 FROM tab1 AS cor0
----
-261

query I rowsort
SELECT ALL - + 48 AS col2 FROM tab2 AS cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8895
SELECT COUNT( * ), + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8895
SELECT COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT ALL MAX( 25 ) AS col0 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL MAX ( 25 ) AS col0 FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT ALL - 66 + + MAX( ALL - + col0 ) * - + 7 + + MIN( - col1 ) AS col0 FROM tab2 WHERE + 86 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL - 66 + + MAX ( ALL - + col0 ) * - + 7 + + MIN ( - col1 ) AS col0 FROM tab2 WHERE + 86 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8898
SELECT + col0 DIV + + col0 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8898
SELECT + col0 / + + col0 AS col0 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col2 ) * col0 col1 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query II rowsort label-8900
SELECT 24 AS col2, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
24
3

skipif mysql # not compatible
query II rowsort label-8900
SELECT 24 AS col2, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
24
3

query I rowsort
SELECT ALL col0 * + 28 + + col0 AS col1 FROM tab0 AS cor0
----
2523
2813
435

query I rowsort
SELECT - 84 + col0 AS col0 FROM tab0 AS cor0
----
-69
13
3

query I rowsort
SELECT DISTINCT ( + 82 ) AS col0 FROM tab0 AS cor0
----
82

query I rowsort
SELECT DISTINCT + 31 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 48 IS NOT NULL
----

query I rowsort
SELECT + + col1 * col0 * - ( + 70 ) FROM tab1 AS cor0
----
-29750
-299390
-49980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8907
SELECT - + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8907
SELECT - + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - ( - col1 ) - 33 FROM tab0 AS cor0
----
-12
-32
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8909
SELECT DISTINCT - 81 + + col1 + + CAST( col2 AS SIGNED ) + + 99 DIV - col0 AS col2 FROM tab0 AS cor0
----
-51
18
41

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT - 81 + + col1 + + CAST ( col2 AS INTEGER ) + + 99 / - col0 AS col2 FROM tab0 AS cor0
----
-51
18
41

query I rowsort
SELECT + - 88 FROM tab0 WHERE + col2 + + + ( + + 30 ) + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8911
SELECT DISTINCT col0 / col0 * - - 80 * + CAST( NULL AS SIGNED ) * + col0 + + col2 * + col1 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT col0 / col0 * - - 80 * + CAST ( NULL AS INTEGER ) * + col0 + + col2 * + col1 AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 29 - + col0 col2 FROM tab0
----
-2610
-2910
-450

query III rowsort
SELECT * FROM tab0 WHERE + + col0 * 66 + - - 28 > - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 51 + + col1 AS col1 FROM tab0
----
-30
-50
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8915
SELECT col1 DIV - + 7 + col0 FROM tab2
----
39
53
66

skipif mysql # not compatible
query I rowsort label-8915
SELECT col1 / - + 7 + col0 FROM tab2
----
39
53
66

query I rowsort
SELECT 67 + - col1 AS col1 FROM tab0
----
-14
46
66

query I rowsort
SELECT + 96 + - 75 AS col1 FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT ( - + ( col1 ) ) + + 62 FROM tab0 cor0
----
-19
41
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8919
SELECT - - col1 + + - col0 * ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8919
SELECT - - col1 + + - col0 * ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT + + 91 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-8921
SELECT + + 91 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-273

query I rowsort
SELECT + + col2 - + ( - 14 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8923
SELECT DISTINCT - - ( - CAST( + COUNT( * ) AS SIGNED ) ) + MIN( - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT - - ( - CAST ( + COUNT ( * ) AS INTEGER ) ) + MIN ( - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL ( + col0 ) * - col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT + 0 * - + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 * + ( col1 ) * - - col2 AS col2 FROM tab1 AS cor0
----
-129024
-17405
-217328

query II rowsort
SELECT DISTINCT + col2 * - col2 + 42 + - + col2, col1 AS col2 FROM tab0 AS cor0
----
-2214
81
-68
21
-9858
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + ( - - col0 ), + col0 + - - 20 col0 FROM tab2 AS cor0
----
46
66
64
84
75
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT ALL + MIN( 73 ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL + MIN ( 73 ) FROM tab1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8930
SELECT ( - col0 ) DIV + + 76 + - col1 + - - col2 FROM tab1
----
20
53
82

skipif mysql # not compatible
query I rowsort label-8930
SELECT ( - col0 ) / + + 76 + - col1 + - - col2 FROM tab1
----
20
53
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT + MIN( DISTINCT + + col2 ) * - COUNT( * ) - + + 85 + + - 87 FROM tab1
----
-349

skipif mysql # not compatible
query I rowsort label-8931
SELECT + MIN ( DISTINCT + + col2 ) * - COUNT ( * ) - + + 85 + + - 87 FROM tab1
----
-349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8932
SELECT + ( col2 ) + - CAST( NULL AS SIGNED ) + + + 81 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8932
SELECT + ( col2 ) + - CAST ( NULL AS INTEGER ) + + + 81 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 27 * - col0 * + col2 / + - col0 * 89 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8934
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col1 * - col1 * col0 FROM tab1
----
201019
2125
9996

query I rowsort
SELECT ALL - 51 * + + col1 FROM tab0
----
-1071
-4131
-51

query I rowsort
SELECT DISTINCT 68 * - col0 FROM tab0 AS cor0
----
-1020
-5916
-6596

query I rowsort
SELECT 46 FROM tab0 AS cor0 WHERE - 93 IS NOT NULL
----
46
46
46

query I rowsort
SELECT DISTINCT - + 81 + + 95 FROM tab1 AS cor0
----
14

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT 29 + - ( + col0 ) * + col0 - + ( + col2 ) FROM tab2
----
-2110
-4107
-5654

query I rowsort
SELECT ALL 74 * 40 * col0 AS col0 FROM tab1
----
150960
251600
269360

query I rowsort
SELECT - 41 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT - 73 + + MAX( ALL - 40 ) AS col2 FROM tab1
----
-113

skipif mysql # not compatible
query I rowsort label-8944
SELECT - 73 + + MAX ( ALL - 40 ) AS col2 FROM tab1
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-8945
SELECT DISTINCT col1 DIV + col0 * col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT col1 / + col0 * col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - col2 + - - ( col2 ) AS col0 FROM tab2 AS cor0
----
116
46
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 57 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8949
SELECT col2 * ( - + col2 ) * col1 / col0 - + col0 * - col0 + - - 17 * CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8949
SELECT col2 * ( - + col2 ) * col1 / col0 - + col0 * - col0 + - - 17 * CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL col2 * + 49 + col2 + - 36 + - col1 + 44 - col2 AS col0 FROM tab1 AS cor0
----
2894
3293
4698

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8952
SELECT + col1 * + col2, - CAST( NULL AS SIGNED ) col0 FROM tab2
----
1173
NULL
3080
NULL
3886
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8952
SELECT + col1 * + col2, - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
1173
NULL
3080
NULL
3886
NULL

query I rowsort
SELECT ALL - 17 + col1 + - col0 * + + col1 * - col0 + + + col2 AS col1 FROM tab2
----
107973
315492
376983

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT 62 DIV - - 93 - col2 + - + 3 AS col2 FROM tab2
----
-26
-43
-61

skipif mysql # not compatible
query I rowsort label-8954
SELECT 62 / - - 93 - col2 + - + 3 AS col2 FROM tab2
----
-26
-43
-61

query I rowsort
SELECT ALL + 90 - + + 35 * - 95 AS col1 FROM tab0
----
3415
3415
3415

query I rowsort
SELECT ALL - - 54 AS col1 FROM tab2 WHERE - 40 IS NOT NULL AND NOT 31 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8957
SELECT ALL col1 * col1 * + col2 * + - 63 + + col2 DIV - 86 col2 FROM tab1 AS cor0
----
-1185409
-92925
-9463356

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8957
SELECT ALL col1 * col1 * + col2 * + - 63 + + col2 / - 86 col2 FROM tab1 AS cor0
----
-1185409
-92925
-9463356

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT MAX( col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8958
SELECT MAX ( col1 ) AS col1 FROM tab1 AS cor0
----
47

query I rowsort
SELECT - + 83 * + 76 * col1 * + + col2 FROM tab2 AS cor0
----
-19428640
-24512888
-7399284

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL - COUNT( + col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL - COUNT ( + col2 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT + + MAX( ALL - 3 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8961
SELECT + + MAX ( ALL - 3 ) FROM tab0 cor0
----
-3

query II rowsort
SELECT 38 AS col2, col2 FROM tab2
----
38
23
38
40
38
58

query I rowsort
SELECT + col1 * + + col0 * - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

query II rowsort
SELECT ALL + col1, - 19 + - 45 - - col1 + + col1 - + col2 * col0 FROM tab1 AS cor0
----
14
-4932
47
-6158
5
-5069

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8965
SELECT DISTINCT + - col2 + + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT CAST( col0 AS DECIMAL ) BETWEEN col2 AND + col1
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT + - col2 + + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( col0 AS REAL ) BETWEEN col2 AND + col1
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query II rowsort label-8966
SELECT - + COUNT( * ) AS col2, + SUM( + col1 ) FROM tab1 cor0
----
-3
66

skipif mysql # not compatible
query II rowsort label-8966
SELECT - + COUNT ( * ) AS col2, + SUM ( + col1 ) FROM tab1 cor0
----
-3
66

query I rowsort
SELECT DISTINCT - + col1 + + + 33 AS col2 FROM tab0 AS cor0
----
-48
12
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8968
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - - col0 < CAST( - col0 AS SIGNED ) * + - col0 + + col1 / - - 20
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-8968
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - - col0 < CAST ( - col0 AS INTEGER ) * + - col0 + + col1 / - - 20
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL col2 + ( col0 ) AS col0 FROM tab0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 col2 FROM tab1
----
51
51
51

query I rowsort
SELECT ALL + 57 * + + col0 FROM tab2
----
2622
3648
4275

query I rowsort
SELECT + 88 * - + 69 + + 5 + - ( - - col2 ) AS col2 FROM tab1 AS cor0
----
-6126
-6135
-6163

query I rowsort
SELECT DISTINCT - col2 - + col0 FROM tab0 cor0 WHERE ( NULL ) <= + col0 * 3 - - col0 * + 33
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab0 cor0 WHERE NULL BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8976
SELECT + - 56 + - CAST( NULL AS SIGNED ) col2, 30 FROM tab0 AS cor0
----
NULL
30
NULL
30
NULL
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8976
SELECT + - 56 + - CAST ( NULL AS INTEGER ) col2, 30 FROM tab0 AS cor0
----
NULL
30
NULL
30
NULL
30

query I rowsort
SELECT DISTINCT col0 - - - col2 * - ( 26 ) AS col0 FROM tab1
----
1619
1859
2547

query I rowsort
SELECT ALL + 11 * + col1 FROM tab0
----
11
231
891

onlyif mysql # DIV for integer division: 
query I rowsort label-8979
SELECT DISTINCT - col1 + + 55 DIV ( - - 89 ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT - col1 + + 55 / ( - - 89 ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8980
SELECT ALL - col0 DIV + - 63 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL - col0 / + - 63 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8981
SELECT ALL - - MIN( DISTINCT CAST( NULL AS SIGNED ) ) + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL - - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 89 + + 97 FROM tab0 AS cor0
----
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8983
SELECT - COUNT( * ) DIV + - CAST( + COUNT( * ) AS SIGNED ) - + COUNT( * ) DIV + COUNT( ALL 30 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8983
SELECT - COUNT ( * ) / + - CAST ( + COUNT ( * ) AS INTEGER ) - + COUNT ( * ) / + COUNT ( ALL 30 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8984
SELECT DISTINCT + col0 * - 96 - + CAST( NULL AS DECIMAL ) FROM tab0 cor0 WHERE col2 + - + col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT + col0 * - 96 - + CAST ( NULL AS REAL ) FROM tab0 cor0 WHERE col2 + - + col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8985
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NULL ) NOT IN ( - 35, col1, ( - CAST( NULL AS SIGNED ) ), + 99, - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-8985
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NULL ) NOT IN ( - 35, col1, ( - CAST ( NULL AS INTEGER ) ), + 99, - col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 - + - col2 IS NOT NULL
----

query I rowsort
SELECT - col1 * col1 - + - col1 * - + col0 AS col2 FROM tab2 AS cor0
----
-10857
-4947
-9514

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 * - 29 * - col0 + + 87 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT DISTINCT - 84 + COUNT( * ) col0 FROM tab1
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8989
SELECT DISTINCT - 84 + COUNT ( * ) col0 FROM tab1
----
-81

query I rowsort
SELECT DISTINCT - col1 - + 39 FROM tab0
----
-120
-40
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8991
SELECT 1 + + CAST( NULL AS DECIMAL ) + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT 1 + + CAST ( NULL AS REAL ) + - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT DISTINCT + SUM( DISTINCT - col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT + SUM ( DISTINCT - col2 ) AS col2 FROM tab0
----
-156

query II rowsort
SELECT ALL col1 AS col2, + 33 + - + col0 AS col1 FROM tab2
----
51
-13
67
-42
77
-31

query II rowsort
SELECT + col0, + col1 + col0 + + col0 FROM tab1
----
51
116
85
175
91
229

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT + MAX( DISTINCT - ( + col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8995
SELECT + MAX ( DISTINCT - ( + col0 ) ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT ALL - MIN( DISTINCT + + 68 ) AS col1 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL - MIN ( DISTINCT + + 68 ) AS col1 FROM tab0
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 col1 FROM tab0 AS cor0
----
-36

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 98 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col0 col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, col2 * - 14 * 18 FROM tab1 AS cor0
----
-14
-24192
-47
-17136
-5
-14868

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT - - SUM( DISTINCT - 54 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-54

skipif mysql # not compatible
query I rowsort label-9001
SELECT - - SUM ( DISTINCT - 54 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-54

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 19 * col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + + col1 NOT BETWEEN + col0 - col0 * + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT 92 + COUNT( DISTINCT - - col1 ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-9004
SELECT 92 + COUNT ( DISTINCT - - col1 ) FROM tab2
----
95

query II rowsort
SELECT ALL + 66 AS col0, col2 FROM tab2
----
66
23
66
40
66
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT COUNT( * ) + + + 97 AS col0 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-9006
SELECT COUNT ( * ) + + + 97 AS col0 FROM tab0
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-9007
SELECT ALL 63, COUNT( * ) AS col0 FROM tab2
----
63
3

skipif mysql # not compatible
query II rowsort label-9007
SELECT ALL 63, COUNT ( * ) AS col0 FROM tab2
----
63
3

query I rowsort
SELECT + col2 + + col1 * + + col0 FROM tab2
----
2369
4968
5083

query I rowsort
SELECT ( - + col1 ) + + ( 68 ) FROM tab1
----
21
54
63

query I rowsort
SELECT DISTINCT 96 * - col1 AS col1 FROM tab1
----
-1344
-4512
-480

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( ( - col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9012
SELECT ALL - CAST( NULL AS SIGNED ), + 43 * + COUNT( * ) AS col2 FROM tab0
----
NULL
129

skipif mysql # not compatible
query II rowsort label-9012
SELECT ALL - CAST ( NULL AS INTEGER ), + 43 * + COUNT ( * ) AS col2 FROM tab0
----
NULL
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT + MIN( - - col1 ) AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-9013
SELECT + MIN ( - - col1 ) AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
5

query I rowsort
SELECT ALL - col2 + + 96 AS col0 FROM tab0 AS cor0
----
-3
49
86

query II rowsort
SELECT - col2 AS col0, - col1 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9016
SELECT - - col0 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-9016
SELECT - - col0 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT DISTINCT col0 + + + col1 + 70 AS col2 FROM tab2 AS cor0
----
167
211
212

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT ALL - 80 + - COUNT( * ) FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL - 80 + - COUNT ( * ) FROM tab1 AS cor0
----
-83

query I rowsort
SELECT col1 * + + col1 + - 0 + + col1 + + 87 - - 36 + - - 70 FROM tab1
----
223
2449
403

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9020
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9020
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( col1 ) + ( + ( ( + 52 ) ) ) >= 29
----
51
14
96
85
5
59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 5 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT DISTINCT - ( + + 5 ) * + COUNT( ALL col2 ) * - 54 AS col1 FROM tab2 AS cor0
----
810

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT - ( + + 5 ) * + COUNT ( ALL col2 ) * - 54 AS col1 FROM tab2 AS cor0
----
810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9024
SELECT - + 89 DIV - COUNT( * ) FROM tab1 cor0
----
29

skipif mysql # not compatible
query I rowsort label-9024
SELECT - + 89 / - COUNT ( * ) FROM tab1 cor0
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * - - ( - - 87 ) + col0 AS col1, + 82 * ( col0 ) * - - col2 col0 FROM tab1 AS cor0
----
-1167
401472
-350
411230
-3998
507416

query I rowsort
SELECT DISTINCT - col2 * + - 28 FROM tab0 AS cor0
----
1316
2772
280

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT + 77 * 33 + MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
2638

skipif mysql # not compatible
query I rowsort label-9027
SELECT + 77 * 33 + MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
2638

query I rowsort
SELECT ALL - + col2 * - - 62 AS col1 FROM tab0 AS cor0
----
-2914
-6138
-620

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9029
SELECT CAST( NULL AS SIGNED ) col1, ( - 67 ) * 34 FROM tab2
----
NULL
-2278
NULL
-2278
NULL
-2278

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9029
SELECT CAST ( NULL AS INTEGER ) col1, ( - 67 ) * 34 FROM tab2
----
NULL
-2278
NULL
-2278
NULL
-2278

query I rowsort
SELECT DISTINCT 41 FROM tab1 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 - col1 - + + col2 + col0 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / - + 10 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 39 * 33 * + + 24 FROM tab1
----
30888
30888
30888

query II rowsort
SELECT ALL 16, + col0 FROM tab2
----
16
46
16
64
16
75

query I rowsort
SELECT ALL - 84 * + col2 FROM tab0 cor0
----
-3948
-8316
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT MIN( ALL col1 ) * - ( MIN( ALL - col2 ) ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9036
SELECT MIN ( ALL col1 ) * - ( MIN ( ALL - col2 ) ) AS col1 FROM tab0 AS cor0
----
99

query II rowsort
SELECT DISTINCT col0, - 48 + + col2 * - col1 FROM tab2
----
46
-1221
64
-3128
75
-3934

onlyif mysql # DIV for integer division: 
query I rowsort label-9038
SELECT + ( + 81 ) DIV 31 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9038
SELECT + ( + 81 ) / 31 FROM tab0
----
2
2
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9039
SELECT DISTINCT - MIN( - 46 ), - 86 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
46
NULL

skipif mysql # not compatible
query II rowsort label-9039
SELECT DISTINCT - MIN ( - 46 ), - 86 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
46
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9040
SELECT ALL + 8 AS col1, - COUNT( ALL - col0 ) FROM tab0
----
8
-3

skipif mysql # not compatible
query II rowsort label-9040
SELECT ALL + 8 AS col1, - COUNT ( ALL - col0 ) FROM tab0
----
8
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9041
SELECT + 86 col2, - CAST( NULL AS SIGNED ) + 74 FROM tab0 AS cor0
----
86
NULL
86
NULL
86
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9041
SELECT + 86 col2, - CAST ( NULL AS INTEGER ) + 74 FROM tab0 AS cor0
----
86
NULL
86
NULL
86
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9042
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) / + col2 < - + 24 * - 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9042
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) / + col2 < - + 24 * - 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 49 AS col0, ( + col0 ) + - col0 col1 FROM tab1 cor0
----
-49
0
-49
0
-49
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9044
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IN ( - 37 )
----

skipif mysql # not compatible
query III rowsort label-9044
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IN ( - 37 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT DISTINCT - COUNT( ALL col0 ) + - - SUM( - + 45 ) AS col1 FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT - COUNT ( ALL col0 ) + - - SUM ( - + 45 ) AS col1 FROM tab1 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT + + MAX( + - col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9046
SELECT + + MAX ( + - col0 ) AS col0 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT - + ( + 11 ) * - - col0 AS col2 FROM tab1 AS cor0
----
-1001
-561
-935

query I rowsort
SELECT DISTINCT + col0 * - col2 * 51 + - col1 FROM tab0 AS cor0
----
-36036
-44391
-489754

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT ALL - SUM( 30 ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL - SUM ( 30 ) FROM tab1 AS cor0
----
-90

query I rowsort
SELECT DISTINCT - col2 - - 34 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT - COUNT( * ) FROM tab0 WHERE + 31 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9051
SELECT - COUNT ( * ) FROM tab0 WHERE + 31 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT COUNT( * ) + - 59 AS col0 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-9052
SELECT COUNT ( * ) + - 59 AS col0 FROM tab1
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 col1 FROM tab1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9054
SELECT - MAX( DISTINCT + 37 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9054
SELECT - MAX ( DISTINCT + 37 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 73 FROM tab2 AS cor0 WHERE - ( + col1 ) <= col0 + 22
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 + 71 col0, + 68 FROM tab0 AS cor0
----
152
68
72
68
92
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9057
SELECT ALL - 97 + + col2 AS col0 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + col2 * 40 NOT BETWEEN ( - + 88 + - - col0 ) AND - col2
----

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL - 97 + + col2 AS col0 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + col2 * 40 NOT BETWEEN ( - + 88 + - - col0 ) AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9058
SELECT ALL + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT DISTINCT + COUNT( * ) + 61 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT + COUNT ( * ) + 61 FROM tab1
----
64

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9060
SELECT + CAST( NULL AS DECIMAL ), col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-9060
SELECT + CAST ( NULL AS REAL ), col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT col0 - + - col2 * + 14 * - + ( + - col2 ) + - + col2 * 79 FROM tab2
----
19304
42589
5635

query I rowsort
SELECT ALL - - 27 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT - COUNT( * ) - + 31 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9063
SELECT - COUNT ( * ) - + 31 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT + + col0 - - + col2 AS col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9065
SELECT col0 DIV - 32 + + CAST( + + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
47
8
96

skipif mysql # not compatible
query I rowsort label-9065
SELECT col0 / - 32 + + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
47
8
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - 49
----

query I rowsort
SELECT - - ( + col0 ) AS col1 FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT 70 * - - col1 * + ( 54 ) AS col1 FROM tab0
----
306180
3780
79380

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 / - col0 + + 80 * + - 94 * + - 59 + 0 > + col2 * - 70
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT ALL COUNT( - + col1 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9070
SELECT ALL COUNT ( - + col1 ) col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 / + 35 - + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9072
SELECT DISTINCT col2 DIV 88 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT col2 / 88 FROM tab0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT - COUNT( - ( + - col2 ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9074
SELECT - COUNT ( - ( + - col2 ) ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT ALL COUNT( * ) * - 51 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL COUNT ( * ) * - 51 FROM tab1
----
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 col0 FROM tab0 WHERE - col2 <= NULL
----

query I rowsort
SELECT ALL - 7 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT 88 + 3 FROM tab2 AS cor0
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9079
SELECT DISTINCT + ( - + CAST( NULL AS SIGNED ) ) + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9079
SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 * + - col2 AS col1 FROM tab0 cor0
----
210
3807
99

query I rowsort
SELECT ALL 21 * + col2 * - 84 FROM tab0 AS cor0
----
-174636
-17640
-82908

query I rowsort
SELECT DISTINCT - 33 + + - col1 FROM tab2 AS cor0
----
-100
-110
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9083
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col1, - col0 * - + col2 * col2 AS col1 FROM tab2 AS cor0
----
NULL
102400
NULL
24334
NULL
252300

skipif mysql # not compatible
query II rowsort label-9083
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, - col0 * - + col2 * col2 AS col1 FROM tab2 AS cor0
----
NULL
102400
NULL
24334
NULL
252300

query III rowsort
SELECT * FROM tab0 WHERE + col1 + 38 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9085
SELECT ALL MIN( + - CAST( NULL AS SIGNED ) ) + - - 44 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL MIN ( + - CAST ( NULL AS INTEGER ) ) + - - 44 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9086
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT + MAX( 86 ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-9087
SELECT + MAX ( 86 ) FROM tab2
----
86

query I rowsort
SELECT DISTINCT - 73 * + + col0 AS col2 FROM tab0
----
-1095
-6351
-7081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9089
SELECT + col0 + + + col2 col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) >= ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9089
SELECT + col0 + + + col2 col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + col0 NOT BETWEEN 46 AND + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 54, col2 * col2 AS col2 FROM tab1
----
-54
3481
-54
4624
-54
9216

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL + 64 + + + 38 * - COUNT( * ) col1 FROM tab1 cor0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9094
SELECT ALL + 64 + + + 38 * - COUNT ( * ) col1 FROM tab1 cor0
----
-50

query I rowsort
SELECT - col1 * + col2 + - col0 * - 30 AS col1 FROM tab2
----
-1160
-1636
207

onlyif mysql # DIV for integer division: 
query II rowsort label-9096
SELECT 92, 43 DIV + + 73 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 6b9c41e3443589e0d6a982a2719c7d65

skipif mysql # not compatible
query II rowsort label-9096
SELECT 92, 43 / + + 73 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 6b9c41e3443589e0d6a982a2719c7d65

query I rowsort
SELECT DISTINCT - col0 * - col0 * - col0 * col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9098
SELECT + 64 FROM tab2 AS cor0 WHERE NOT ( 94 / + 79 + - CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-9098
SELECT + 64 FROM tab2 AS cor0 WHERE NOT ( 94 / + 79 + - CAST ( NULL AS INTEGER ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT ALL ( - CAST( 39 AS SIGNED ) ) col1 FROM tab1 cor0
----
-39
-39
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9099
SELECT ALL ( - CAST ( 39 AS INTEGER ) ) col1 FROM tab1 cor0
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9100
SELECT ALL 68 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) >= col2
----

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL 68 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) >= col2
----

query I rowsort
SELECT + col2 * - col0 * 77 * + col0 FROM tab0 AS cor0
----
-5828130
-71724807
-814275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9102
SELECT - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, col2 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT ALL + SUM( DISTINCT 72 ) col0 FROM tab1
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9104
SELECT ALL + SUM ( DISTINCT 72 ) col0 FROM tab1
----
72

query I rowsort
SELECT + col1 * + ( + + ( - 29 ) ) AS col0 FROM tab0
----
-2349
-29
-609

onlyif mysql # DIV for integer division: 
query I rowsort label-9106
SELECT 70 DIV - 30 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9106
SELECT 70 / - 30 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT + 40 * - + col1 * + ( col2 ) AS col0 FROM tab1
----
-11800
-127840
-53760

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT DISTINCT - COUNT( * ) * + + 61 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT - COUNT ( * ) * + + 61 FROM tab1
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT ALL + COUNT( * ) * ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL + COUNT ( * ) * ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
9

query II rowsort
SELECT ALL 19 AS col1, - 53 - - + col1 AS col0 FROM tab1 AS cor0
----
19
-39
19
-48
19
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9111
SELECT ALL - col2 * col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - ( + 92 ) AND CAST( NULL AS SIGNED ) + - col2 + - - col1 * - - col2 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL - col2 * col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - ( + 92 ) AND CAST ( NULL AS INTEGER ) + - col2 + - - col1 * - - col2 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT + MIN( + 45 ) AS col2 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9112
SELECT + MIN ( + 45 ) AS col2 FROM tab0 AS cor0
----
45

query I rowsort
SELECT + col2 + 44 FROM tab2 AS cor0 WHERE NOT 88 IS NULL
----
102
67
84

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 7 + - col1 <= - - col2
----

query I rowsort
SELECT ( - col1 ) + col1 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9117
SELECT DISTINCT col1 + + + 48 * CAST( col0 AS SIGNED ) + + + 90 * + - col2 AS col0 FROM tab1 AS cor0
----
-1225
-1705
-6178

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT col1 + + + 48 * CAST ( col0 AS INTEGER ) + + + 90 * + - col2 AS col0 FROM tab1 AS cor0
----
-1225
-1705
-6178

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 < NULL
----

query I rowsort
SELECT DISTINCT - col0 + ( + + 83 ) * - + 0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT ALL + COUNT( * ) + + - MIN( DISTINCT col0 ) FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL + COUNT ( * ) + + - MIN ( DISTINCT col0 ) FROM tab2 AS cor0
----
-43

query I rowsort
SELECT DISTINCT - 96 + col0 + + ( - ( + col0 ) ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL 31 + - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-20
-36
-46

query I rowsort
SELECT ALL - col2 + - 52 AS col2 FROM tab1 AS cor0
----
-111
-120
-148

query I rowsort
SELECT + col0 - - ( + col2 ) FROM tab1
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 - + 34 col0 FROM tab0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT 52 * + col1 * - 25 FROM tab2
----
-100100
-66300
-87100

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + col0 * + - col0 + col2 + + col2
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 IS NULL AND NULL >= NULL
----

query I rowsort
SELECT col0 + col0 + 7 * + col1 AS col2 FROM tab2
----
449
619
667

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL - SUM( - - 74 ) FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL - SUM ( - - 74 ) FROM tab0
----
-222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9131
SELECT + col1 * - - 10 * - col0 * + - col1 + - - 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-9131
SELECT + col1 * - - 10 * - col0 * + - col1 + - - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT DISTINCT + COUNT( * ) * + 47 AS col2 FROM tab2 AS cor0 WHERE NOT + ( col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT + COUNT ( * ) * + 47 AS col2 FROM tab2 AS cor0 WHERE NOT + ( col2 ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL BETWEEN NULL AND - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 > + 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9135
SELECT col2 * + ( - + ( col2 ) ) DIV col2 AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9135
SELECT col2 * + ( - + ( col2 ) ) / col2 AS col0 FROM tab0
----
-10
-47
-99

query II rowsort
SELECT - - col0 AS col1, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT + + COUNT( + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9137
SELECT + + COUNT ( + col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT DISTINCT - + MIN( col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT - + MIN ( col1 ) AS col2 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT - - 37, + col0 AS col1 FROM tab0 AS cor0
----
37
15
37
87
37
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9140
SELECT DISTINCT + + 71 AS col1, - MAX( ALL - + col0 ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
71
18

skipif mysql # not compatible
query II rowsort label-9140
SELECT DISTINCT + + 71 AS col1, - MAX ( ALL - + col0 ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
71
18

query I rowsort
SELECT - - 21 AS col2 FROM tab2 AS cor0
----
21
21
21

query II rowsort
SELECT ALL ( + + 38 ) AS col0, col0 AS col0 FROM tab2
----
38
46
38
64
38
75

query II rowsort
SELECT DISTINCT ( col1 ) AS col0, + col1 AS col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9144
SELECT DISTINCT - CAST( + 11 AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT - CAST ( + 11 AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * ( - - 7 ) * + 95 AS col0 FROM tab0
----
13965
53865
665

query I rowsort
SELECT + ( - col1 ) * + - col1 + col2 * + col0 AS col0 FROM tab2
----
3659
8489
8839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9147
SELECT ALL + COUNT( * ) * - CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL + COUNT ( * ) * - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9148
SELECT DISTINCT - CAST( + col1 AS SIGNED ) col0 FROM tab0 AS cor0 WHERE col1 * - col0 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9148
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) col0 FROM tab0 AS cor0 WHERE col1 * - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9149
SELECT ALL - 42 DIV col0 * - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL - 42 / col0 * - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT ALL 46 + - MAX( - - 31 ) AS col2 FROM tab2 cor0
----
15

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL 46 + - MAX ( - - 31 ) AS col2 FROM tab2 cor0
----
15

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9152
SELECT - 91 + CAST( - col2 AS SIGNED ) * + - 32, + col1 - col1 AS col2 FROM tab1
----
1797
0
2085
0
2981
0

skipif mysql # not compatible
query II rowsort label-9152
SELECT - 91 + CAST ( - col2 AS INTEGER ) * + - 32, + col1 - col1 AS col2 FROM tab1
----
1797
0
2085
0
2981
0

query I rowsort
SELECT 77 + + 26 AS col0 FROM tab0
----
103
103
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT ALL ( MAX( + col2 ) ) AS col0 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL ( MAX ( + col2 ) ) AS col0 FROM tab2 cor0
----
58

query I rowsort
SELECT + col0 + + - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND 73
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT DISTINCT 78 + - - COUNT( * ) * MAX( ALL + ( - 54 ) ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT 78 + - - COUNT ( * ) * MAX ( ALL + ( - 54 ) ) FROM tab2 AS cor0
----
-84

query II rowsort
SELECT ALL - ( - col0 ) - - + 21, + 14 AS col2 FROM tab1 AS cor0
----
106
14
112
14
72
14

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9160
SELECT ALL + col0 / - CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9160
SELECT ALL + col0 / - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9161
SELECT ALL COUNT( * ) DIV + COUNT( * ) - + 67 AS col0 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL COUNT ( * ) / + COUNT ( * ) - + 67 AS col0 FROM tab2
----
-66

query I rowsort
SELECT DISTINCT ( - 11 ) AS col1 FROM tab1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9163
SELECT - 19 * + CAST( 32 AS SIGNED ) + + col2 - col2 AS col1 FROM tab1 AS cor0
----
-608
-608
-608

skipif mysql # not compatible
query I rowsort label-9163
SELECT - 19 * + CAST ( 32 AS INTEGER ) + + col2 - col2 AS col1 FROM tab1 AS cor0
----
-608
-608
-608

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT - COUNT( * ) * - - 90 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9164
SELECT - COUNT ( * ) * - - 90 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE ( - - 93 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9166
SELECT ALL 28 * ( - col0 ) + - col1 + CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL 28 * ( - col0 ) + - col1 + CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT - SUM( DISTINCT + col0 ) AS col0 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9167
SELECT - SUM ( DISTINCT + col0 ) AS col0 FROM tab0 cor0
----
-199

query I rowsort
SELECT DISTINCT 24 FROM tab0 cor0
----
24

query I rowsort
SELECT + col1 * - + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col1
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT DISTINCT - MIN( ALL col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT - MIN ( ALL col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT col2 * - ( 12 ) AS col0 FROM tab0
----
-1188
-120
-564

query I rowsort
SELECT ( + col1 ) * + 35 + - col1 AS col0 FROM tab1
----
1598
170
476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9174
SELECT - COUNT( * ) DIV + 55 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9174
SELECT - COUNT ( * ) / + 55 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL MIN( + + col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL MIN ( + + col0 ) AS col1 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT DISTINCT 68 * COUNT( * ) * - + 51 FROM tab1
----
-10404

skipif mysql # not compatible
query I rowsort label-9176
SELECT DISTINCT 68 * COUNT ( * ) * - + 51 FROM tab1
----
-10404

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 6 - + 1 <> 24 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT - 26 * + 79 + - COUNT( * ) FROM tab0 AS cor0
----
-2057

skipif mysql # not compatible
query I rowsort label-9178
SELECT - 26 * + 79 + - COUNT ( * ) FROM tab0 AS cor0
----
-2057

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9179
SELECT - - 1 + COUNT( * ) + - - ( ( + ( - 12 ) ) ) DIV + + 66 AS col1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9179
SELECT - - 1 + COUNT ( * ) + - - ( ( + ( - 12 ) ) ) / + + 66 AS col1 FROM tab0 AS cor0
----
4

query I rowsort
SELECT DISTINCT ( - 57 ) + - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-3538
-4681
-9273

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NOT NULL OR NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL AVG ( ALL col1 ) AS col1, 85 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----
NULL
85

query I rowsort
SELECT DISTINCT + + 73 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT ALL - COUNT( * ) + - 66 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL - COUNT ( * ) + - 66 FROM tab0
----
-69

query I rowsort
SELECT DISTINCT - + 78 AS col1 FROM tab1 cor0
----
-78

query I rowsort
SELECT - 51 * - + 98 AS col2 FROM tab1 cor0
----
4998
4998
4998

query I rowsort
SELECT col1 - + 62 FROM tab0 AS cor0
----
-41
-61
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9188
SELECT AVG ( + ( - CAST( NULL AS SIGNED ) ) ) + - COUNT( * ) col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9188
SELECT AVG ( + ( - CAST ( NULL AS INTEGER ) ) ) + - COUNT ( * ) col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 79 + - - 92 FROM tab2 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT 4 + 50 AS col0 FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT ALL 59 - - COUNT( * ) col1 FROM tab1
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9191
SELECT ALL 59 - - COUNT ( * ) col1 FROM tab1
----
62

query II rowsort
SELECT + col0 AS col2, 65 + - - col0 FROM tab0
----
15
80
87
152
97
162

query II rowsort
SELECT + + col2 AS col1, + col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9194
SELECT 37 DIV - 28 - col0 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-9194
SELECT 37 / - 28 - col0 FROM tab0 AS cor0
----
-16
-88
-98

query II rowsort
SELECT ALL + 7 * - - col2 * 48 AS col2, col1 FROM tab0 AS cor0
----
15792
81
33264
1
3360
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL SUM( + - 72 ) FROM tab1 cor0
----
-216

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL SUM ( + - 72 ) FROM tab1 cor0
----
-216

query I rowsort
SELECT ALL ( + 10 ) + - 67 * - 78 AS col0 FROM tab1
----
5236
5236
5236

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT DISTINCT - 40 + + COUNT( * ) FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT - 40 + + COUNT ( * ) FROM tab0
----
-37

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT DISTINCT - 44 + COUNT( * ) AS col0 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-9200
SELECT DISTINCT - 44 + COUNT ( * ) AS col0 FROM tab2
----
-41

query I rowsort
SELECT - 81 FROM tab2 WHERE ( 65 ) BETWEEN NULL AND - 88
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 84 <= ( + 63 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col1 FROM tab0
----
2
2
2

query III rowsort
SELECT * FROM tab0 WHERE NULL > col1 + + col2 / + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9205
SELECT - COUNT( + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT ( col0 ) > ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9205
SELECT - COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT ( col0 ) > ( col1 )
----
0

query I rowsort
SELECT + col2 + + ( - col0 ) FROM tab2 WHERE NULL BETWEEN NULL AND col1 + col0 * 41
----

query I rowsort
SELECT - ( + col2 ) * - 94 - col1 AS col0 FROM tab1
----
5541
6345
9010

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT ALL COUNT( * ) + - COUNT( DISTINCT 67 ) col1 FROM tab2 WHERE NOT + ( + col2 ) * - col0 NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9208
SELECT ALL COUNT ( * ) + - COUNT ( DISTINCT 67 ) col1 FROM tab2 WHERE NOT + ( + col2 ) * - col0 NOT BETWEEN NULL AND ( NULL )
----
0

query III rowsort
SELECT * FROM tab2 WHERE 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT 4 * 80 + SUM( DISTINCT + 59 + + col1 * col0 ) / ( 95 ) FROM tab2 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT 4 * 80 + SUM ( DISTINCT + 59 + + col1 * col0 ) / ( 95 ) FROM tab2 WHERE NOT + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT - 56 * + COUNT( * ) AS col1 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-9211
SELECT - 56 * + COUNT ( * ) AS col1 FROM tab1
----
-168

query I rowsort
SELECT DISTINCT + 1 + + col1 AS col2 FROM tab2
----
52
68
78

query I rowsort
SELECT DISTINCT col0 / + col2 FROM tab0 WHERE ( NULL ) >= ( - col1 )
----

query I rowsort
SELECT 88 * - col1 FROM tab1
----
-1232
-4136
-440

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - 35 ) * col1 = col1 / col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9216
SELECT ALL - CAST( + MIN( DISTINCT ( 34 ) ) AS SIGNED ) - 94 AS col0 FROM tab1
----
-128

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL - CAST ( + MIN ( DISTINCT ( 34 ) ) AS INTEGER ) - 94 AS col0 FROM tab1
----
-128

query I rowsort
SELECT ( + col2 ) * - ( - col2 ) AS col0 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT DISTINCT COUNT( * ) + + 11 AS col1 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT COUNT ( * ) + + 11 AS col1 FROM tab0
----
14

query I rowsort
SELECT + ( 12 ) FROM tab1
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT 80 * MAX( DISTINCT - col1 * 27 ) + COUNT( * ) AS col1 FROM tab1
----
-10797

skipif mysql # not compatible
query I rowsort label-9220
SELECT 80 * MAX ( DISTINCT - col1 * 27 ) + COUNT ( * ) AS col1 FROM tab1
----
-10797

query I rowsort
SELECT ( + col2 ) FROM tab0 WHERE - 92 < col0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 51 col0 FROM tab2 AS cor0
----
115
126
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9223
SELECT ALL COUNT( * ) * - CAST( + MIN( - col1 ) AS SIGNED ) + 73 AS col2 FROM tab2 AS cor0
----
304

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL COUNT ( * ) * - CAST ( + MIN ( - col1 ) AS INTEGER ) + 73 AS col2 FROM tab2 AS cor0
----
304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9224
SELECT ALL COUNT( DISTINCT + CAST( col0 AS SIGNED ) ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL COUNT ( DISTINCT + CAST ( col0 AS INTEGER ) ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT + 52 AS col2 FROM tab2 AS cor0 WHERE ( + ( ( - 94 ) ) + 45 ) NOT BETWEEN - col0 * + col1 AND ( CAST( - 58 AS SIGNED ) )
----
52
52
52

skipif mysql # not compatible
query I rowsort label-9225
SELECT + 52 AS col2 FROM tab2 AS cor0 WHERE ( + ( ( - 94 ) ) + 45 ) NOT BETWEEN - col0 * + col1 AND ( CAST ( - 58 AS INTEGER ) )
----
52
52
52

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9226
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * + CAST( NULL AS DECIMAL ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9226
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * + CAST ( NULL AS REAL ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT 8 FROM tab1 AS cor0 CROSS JOIN tab2
----
8

query III rowsort
SELECT ALL * FROM tab2 WHERE + 56 > col0
----
46
51
23

query III rowsort
SELECT * FROM tab1 WHERE 45 <= 36 + col0 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9230
SELECT col2 + + 51 DIV 55 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9230
SELECT col2 + + 51 / 55 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - 25 AS col1 FROM tab0 AS cor0 WHERE - 11 + + col2 <= ( col1 )
----
-25
-25

query I rowsort
SELECT - col2 * - 81 FROM tab2 AS cor0 WHERE - col2 * 61 + col0 NOT BETWEEN col2 AND ( NULL )
----
1863
3240
4698

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 <= ( col1 + col2 )
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9234
SELECT 88 + - CAST( 39 AS SIGNED ) * 19 FROM tab2 cor0
----
-653
-653
-653

skipif mysql # not compatible
query I rowsort label-9234
SELECT 88 + - CAST ( 39 AS INTEGER ) * 19 FROM tab2 cor0
----
-653
-653
-653

query I rowsort
SELECT ALL + + col1 * col2 + - col2 FROM tab0 cor0
----
0
200
3760

query I rowsort
SELECT + ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 AND col2 + - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + ( + col1 ) )
----

query I rowsort
SELECT ALL + - col0 - 24 AS col0 FROM tab1 AS cor0
----
-109
-115
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9239
SELECT - COUNT( - CAST( NULL AS DECIMAL ) ) * - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9239
SELECT - COUNT ( - CAST ( NULL AS REAL ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT - 56 * - COUNT( ALL col2 ) FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-9240
SELECT - 56 * - COUNT ( ALL col2 ) FROM tab2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT SUM( DISTINCT - ( 36 ) ) AS col2 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-9241
SELECT SUM ( DISTINCT - ( 36 ) ) AS col2 FROM tab0
----
-36

query I rowsort
SELECT ALL col1 + + - 60 * + 73 AS col2 FROM tab1
----
-4333
-4366
-4375

onlyif mysql # DIV for integer division: 
query I rowsort label-9243
SELECT ALL 62 DIV + + col1 - 23 col1 FROM tab2
----
-22
-23
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9243
SELECT ALL 62 / + + col1 - 23 col1 FROM tab2
----
-22
-23
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-9244
SELECT DISTINCT col1 DIV col1 - - col2 FROM tab2 WHERE NULL IS NULL
----
24
41
59

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT col1 / col1 - - col2 FROM tab2 WHERE NULL IS NULL
----
24
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT DISTINCT MIN( DISTINCT - + 17 ) AS col1 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-9245
SELECT DISTINCT MIN ( DISTINCT - + 17 ) AS col1 FROM tab1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9246
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - CAST( 93 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9246
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - CAST ( 93 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT ALL COUNT( - + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL COUNT ( - + col1 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9249
SELECT ALL - CAST( NULL AS SIGNED ) * - SUM( DISTINCT + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL - CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( + col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT + 82 + + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( - col0 ) AND NULL
----
82

skipif mysql # not compatible
query I rowsort label-9251
SELECT + 82 + + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( - col0 ) AND NULL
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9252
SELECT DISTINCT + 21 DIV - col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT + 21 / - col0 FROM tab0 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9253
SELECT DISTINCT - CAST( col0 AS SIGNED ) DIV col0 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT - CAST ( col0 AS INTEGER ) / col0 AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9254
SELECT col1 DIV + col2 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9254
SELECT col1 / + col2 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT - COUNT( * ) * 67 - + 93 FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-9255
SELECT - COUNT ( * ) * 67 - + 93 FROM tab2 AS cor0
----
-294

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( col0 ) + - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT DISTINCT - COUNT( - 60 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT - COUNT ( - 60 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT + COUNT( - - col0 ) * - - COUNT( * ) + 81 * - 77 FROM tab0
----
-6228

skipif mysql # not compatible
query I rowsort label-9258
SELECT + COUNT ( - - col0 ) * - - COUNT ( * ) + 81 * - 77 FROM tab0
----
-6228

query I rowsort
SELECT DISTINCT - col2 * + - col0 * 21 AS col0 FROM tab0
----
14805
18270
201663

query I rowsort
SELECT - 34 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 45 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - 27 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT ALL 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-9265
SELECT ALL MIN ( col2 ) col2 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT ALL - COUNT( * ) + + 66 + - COUNT( - col2 ) FROM tab0 cor0
----
60

skipif mysql # not compatible
query I rowsort label-9266
SELECT ALL - COUNT ( * ) + + 66 + - COUNT ( - col2 ) FROM tab0 cor0
----
60

query I rowsort
SELECT - - ( - 75 ) FROM tab1 AS cor0
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9268
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 + col1 FROM tab1 AS cor0 WHERE 56 - 54 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 + col1 FROM tab1 AS cor0 WHERE 56 - 54 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9269
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col2 + - col2 / + col2 NOT BETWEEN - col0 AND ( + CAST( NULL AS SIGNED ) * 41 )
----

skipif mysql # not compatible
query I rowsort label-9269
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col2 + - col2 / + col2 NOT BETWEEN - col0 AND ( + CAST ( NULL AS INTEGER ) * 41 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9270
SELECT 96, 40 * 57 + MIN( DISTINCT col1 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
96
2295

skipif mysql # not compatible
query II rowsort label-9270
SELECT 96, 40 * 57 + MIN ( DISTINCT col1 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
96
2295

onlyif mysql # aggregate syntax: 
query II rowsort label-9271
SELECT - COUNT( * ), - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9271
SELECT - COUNT ( * ), - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT col1 + + 32 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - - col1 + + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9272
SELECT col1 + + 32 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - - col1 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 24 + - + col0 AS col0 FROM tab2 AS cor0
----
-22
-40
-51

query II rowsort
SELECT 4 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
4
51
4
67
4
77

query I rowsort
SELECT DISTINCT 14 FROM tab0 AS cor0 WHERE ( - col1 * + + col0 + 60 ) IS NOT NULL
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9276
SELECT ALL * FROM tab0 cor0 WHERE col0 * - + col0 + - 24 BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9276
SELECT ALL * FROM tab0 cor0 WHERE col0 * - + col0 + - 24 BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query II rowsort
SELECT DISTINCT - col0, + col1 AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT ALL + + 82 + 94 + + col2 AS col2 FROM tab1 AS cor0
----
235
244
272

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 / 46 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( + + ( + col0 ) + col1 )
----

query I rowsort
SELECT DISTINCT - 95 * - col2 + + - 10 + - col0 - + col2 FROM tab0
----
4393
843
9199

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9283
SELECT ALL - col2 col0 FROM tab2 WHERE NOT + - 0 = - col2 DIV 90
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9283
SELECT ALL - col2 col0 FROM tab2 WHERE NOT + - 0 = - col2 / 90
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + ( + 56 ) * + col1 )
----

query I rowsort
SELECT - 88 * + col1 * + + 62 AS col0 FROM tab0
----
-114576
-441936
-5456

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9287
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT ( - CAST( NULL AS SIGNED ) + + col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) + + col0 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9288
SELECT ALL - CAST( NULL AS DECIMAL ) * - 14 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL - CAST ( NULL AS REAL ) * - 14 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 95 + col0 * 19 FROM tab0
----
1748
1938
380

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT + MAX( DISTINCT + col2 ) AS col1 FROM tab2 WHERE col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT + MAX ( DISTINCT + col2 ) AS col1 FROM tab2 WHERE col2 <> NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - col0 col2 FROM tab2
----
128
150
92

query I rowsort
SELECT - col1 + 51 AS col1 FROM tab0
----
-30
30
50

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * col2 * + 9 IS NULL AND NOT ( + 77 ) IS NOT NULL
----

query I rowsort
SELECT - 65 + + col0 * col0 * - ( col1 ) FROM tab2 AS cor0
----
-107981
-315457
-376940

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT DISTINCT + COUNT( * ) + - 57 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT + COUNT ( * ) + - 57 FROM tab0 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT ALL - COUNT( * ) + + ( MIN( ALL + - col2 ) ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL - COUNT ( * ) + + ( MIN ( ALL + - col2 ) ) FROM tab2 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT + MIN( DISTINCT - col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9297
SELECT + MIN ( DISTINCT - col0 ) AS col0 FROM tab0
----
-97

query I rowsort
SELECT DISTINCT + col1 * - + col1 - + col0 + + col2 FROM tab0
----
-518
-6529
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9299
SELECT - 33 DIV COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-9299
SELECT - 33 / COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 25 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9301
SELECT - CAST( NULL AS SIGNED ) - + 11 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT - CAST ( NULL AS INTEGER ) - + 11 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 + 25 + + - col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9303
SELECT - col2 * col2 - + ( + - col0 ) DIV col2 - col1 FROM tab0 AS cor0
----
-113
-2290
-9802

skipif mysql # not compatible
query I rowsort label-9303
SELECT - col2 * col2 - + ( + - col0 ) / col2 - col1 FROM tab0 AS cor0
----
-113
-2290
-9802

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT 2 * - SUM( + col1 ) - + 31 FROM tab2 AS cor0
----
-421

skipif mysql # not compatible
query I rowsort label-9304
SELECT 2 * - SUM ( + col1 ) - + 31 FROM tab2 AS cor0
----
-421

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9305
SELECT DISTINCT COUNT( * ) + - ( - ( - CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0 WHERE + col2 + - + col2 NOT IN ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT COUNT ( * ) + - ( - ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0 WHERE + col2 + - + col2 NOT IN ( + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL + + 48 * - + SUM( + 95 ) FROM tab0 AS cor0
----
-13680

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL + + 48 * - + SUM ( + 95 ) FROM tab0 AS cor0
----
-13680

query I rowsort
SELECT ALL - - 97 FROM tab2 WHERE + + col2 IN ( - 78, col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9308
SELECT 75 AS col1, ( - MIN( - - col1 ) ) FROM tab2
----
75
-51

skipif mysql # not compatible
query II rowsort label-9308
SELECT 75 AS col1, ( - MIN ( - - col1 ) ) FROM tab2
----
75
-51

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * - - col2 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, - col2 AS col0 FROM tab2
----
51
-23
67
-58
77
-40

query II rowsort
SELECT col1, - col1 * col0 + col2 FROM tab0
----
1
2
21
-1817
81
-1168

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * + col0 * - + 35 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9314
SELECT DISTINCT col1 * col2 - + col1 DIV + 91 + 73 * + col0 + col0 FROM tab2 AS cor0
----
4577
7816
9436

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT col1 * col2 - + col1 / + 91 + 73 * + col0 + col0 FROM tab2 AS cor0
----
4577
7816
9436

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= + col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT DISTINCT 85 * + MAX( + col1 ) FROM tab2
----
6545

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT 85 * + MAX ( + col1 ) FROM tab2
----
6545

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT - 3 BETWEEN ( + - col2 * + col1 / + col1 + 88 * + 36 + - 20 ) AND NULL
----
-23
-40
-58

query I rowsort
SELECT ALL 8 AS col0 FROM tab0 WHERE NOT 35 * + col1 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT 11 IS NOT NULL )
----

query I rowsort
SELECT 35 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( ( NULL <= + ( + col2 ) ) ) )
----

query I rowsort
SELECT DISTINCT - + 72 AS col0 FROM tab0 AS cor0 WHERE - col2 * - col1 + - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9323
SELECT DISTINCT + col0 DIV 89 AS col0 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT + col0 / 89 AS col0 FROM tab1 cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 + - col2 col2 FROM tab2 AS cor0
----
-106
-123
-141

query II rowsort
SELECT DISTINCT 79 AS col0, col1 + + 26 FROM tab0
----
79
107
79
27
79
47

query I rowsort
SELECT ALL 58 * + - 75 FROM tab0
----
-4350
-4350
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 * - + col2 col2 FROM tab1
----
-2183
-2516
-3552

query I rowsort
SELECT DISTINCT 57 + + col2 FROM tab2 WHERE NOT + col0 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN + 7 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * + 94 AS col0 FROM tab0
----
1410
8178
9118

query I rowsort
SELECT - col0 * - - col0 * + - col0 AS col2 FROM tab1
----
132651
614125
753571

query I rowsort
SELECT ALL 95 * - - col1 * - col0 + + - 8 * + + 51 AS col1 FROM tab1 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9333
SELECT CAST( + ( - - col1 ) AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9333
SELECT CAST ( + ( - - col1 ) AS INTEGER ) FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9334
SELECT 31 * + col1 / CAST( NULL AS SIGNED ) * col0 * + - 7 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT 31 * + col1 / CAST ( NULL AS INTEGER ) * col0 * + - 7 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - - col2 + + 78 AS col2 FROM tab0
----
109
178
206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9336
SELECT ALL 36 + 89 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= - col0 + ( + + CAST( + - col1 AS SIGNED ) ) - col1
----

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL 36 + 89 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= - col0 + ( + + CAST ( + - col1 AS INTEGER ) ) - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + + col2 - - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > 74
----

query I rowsort
SELECT - col2 - - - col0 * col1 AS col0 FROM tab0 AS cor0
----
-1262
-1837
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9340
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT col0 + + col2 + + - col1 - - col0 AS col0 FROM tab1
----
184
203
224

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ALL + + COUNT( DISTINCT + 61 ) AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL + + COUNT ( DISTINCT + 61 ) AS col2 FROM tab1 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT + + MAX( 90 ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9344
SELECT + + MAX ( 90 ) FROM tab2 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT - + SUM( DISTINCT - 91 ) AS col1 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9345
SELECT - + SUM ( DISTINCT - 91 ) AS col1 FROM tab0 AS cor0
----
91

query I rowsort
SELECT - col2 * 25 + - - col2 AS col0 FROM tab2 AS cor0
----
-1392
-552
-960

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col0 ) * - + col2, col1 * + + col2 col0 FROM tab2
----
-1058
1173
-2560
3080
-4350
3886

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 <= col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9350
SELECT ALL ( - - COUNT( * ) ) AS col1 FROM tab2 WHERE NULL NOT IN ( - col0, + 99 * + ( col0 ), CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL ( - - COUNT ( * ) ) AS col1 FROM tab2 WHERE NULL NOT IN ( - col0, + 99 * + ( col0 ), CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
0

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9352
SELECT MAX( ALL + + col1 ) AS col2, COUNT( * ) AS col0 FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) + + col2 IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9352
SELECT MAX ( ALL + + col1 ) AS col2, COUNT ( * ) AS col0 FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) + + col2 IS NULL
----
NULL
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 63 * + 71 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 75 * - col1 + 57 AS col2 FROM tab2 AS cor0
----
-3768
-4968
-5718

onlyif mysql # DIV for integer division: 
query I rowsort label-9355
SELECT + 20 DIV + ( + col0 ) col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9355
SELECT + 20 / + ( + col0 ) col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - col0 * + col2 * - 4 * - 74 * - - 52 FROM tab0
----
-10851360
-13391040
-147809376

query I rowsort
SELECT + 18 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9358
SELECT - 79 AS col1 FROM tab2 AS cor0 WHERE col2 * - CAST( NULL AS SIGNED ) * - - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9358
SELECT - 79 AS col1 FROM tab2 AS cor0 WHERE col2 * - CAST ( NULL AS INTEGER ) * - - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - + col1 AS col1, - 29 * + 59 FROM tab0 AS cor0
----
-1
-1711
-21
-1711
-81
-1711

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - col1 <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + col1 AS col1, col2 + 11 FROM tab2 AS cor0
----
-51
34
-67
69
-77
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT + - ( COUNT( * ) ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9362
SELECT + - ( COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 + + 67 * + + 8 > ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = + 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT + + MIN( DISTINCT + col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-9365
SELECT + + MIN ( DISTINCT + col2 ) FROM tab0 cor0
----
10

query I rowsort
SELECT DISTINCT + + col2 + + + 12 AS col2 FROM tab0 AS cor0
----
111
22
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 * - 94 + + col0 ) <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9368
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE + col0 + + col1 <= + 13
----

skipif mysql # not compatible
query I rowsort label-9368
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 WHERE + col0 + + col1 <= + 13
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT ALL + + MAX( DISTINCT 93 ) + COUNT( * ) FROM tab1 WHERE - 24 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL + + MAX ( DISTINCT 93 ) + COUNT ( * ) FROM tab1 WHERE - 24 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT DISTINCT - MAX( ALL + ( + col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT - MAX ( ALL + ( + col2 ) ) FROM tab0
----
-99

query I rowsort
SELECT + col2 * + col1 + - col1 * + 78 FROM tab2
----
-1340
-2805
-2926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 * + - col0 * col0 col0 FROM tab0
----
-497025
-756900
-92217609

onlyif mysql # DIV for integer division: 
query II rowsort label-9374
SELECT DISTINCT col2 DIV - col2 AS col1, - 48 AS col1 FROM tab2
----
-1
-48

skipif mysql # not compatible
query II rowsort label-9374
SELECT DISTINCT col2 / - col2 AS col1, - 48 AS col1 FROM tab2
----
-1
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-9375
SELECT ALL col2 * + col0 col0, 63 DIV + ( - 17 ) AS col2 FROM tab2
----
1058
-3
2560
-3
4350
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9375
SELECT ALL col2 * + col0 col0, 63 / + ( - 17 ) AS col2 FROM tab2
----
1058
-3
2560
-3
4350
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9376
SELECT ALL - CAST( 75 AS SIGNED ) + - ( 5 ) FROM tab0 AS cor0
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL - CAST ( 75 AS INTEGER ) + - ( 5 ) FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9377
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + ( col0 ) + + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT CAST ( NULL AS REAL ) + + ( col0 ) + + col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT DISTINCT CAST( 64 AS SIGNED ) * + col0 + - 57 + + col0 * - col2 + - col2 FROM tab1 cor0
----
-1785
-489
309

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT CAST ( 64 AS INTEGER ) * + col0 + - 57 + + col0 * - col2 + - col2 FROM tab1 cor0
----
-1785
-489
309

query I rowsort
SELECT DISTINCT - 82 + - 60 FROM tab0
----
-142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9380
SELECT CAST( NULL AS SIGNED ) - 91 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT CAST ( NULL AS INTEGER ) - 91 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 23 AS col1, 85 AS col0 FROM tab0
----
23
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT - MIN( - 16 ) * 31 AS col0 FROM tab0
----
496

skipif mysql # not compatible
query I rowsort label-9382
SELECT - MIN ( - 16 ) * 31 AS col0 FROM tab0
----
496

query I rowsort
SELECT - + col1 FROM tab1 WHERE NOT ( - col0 ) - - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col1 + + + 10 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9385
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + CAST( NULL AS SIGNED ) * ( - 20 ) NOT BETWEEN NULL AND ( col0 + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-9385
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + CAST ( NULL AS INTEGER ) * ( - 20 ) NOT BETWEEN NULL AND ( col0 + col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NOT NULL < - col0 * + - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ALL SUM( + - 77 ) AS col2 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL SUM ( + - 77 ) AS col2 FROM tab1
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9388
SELECT CAST( 5 AS SIGNED ), col2 * col2 AS col0 FROM tab2
----
5
1600
5
3364
5
529

skipif mysql # not compatible
query II rowsort label-9388
SELECT CAST ( 5 AS INTEGER ), col2 * col2 AS col0 FROM tab2
----
5
1600
5
3364
5
529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9389
SELECT ALL - CAST( + + col0 AS SIGNED ), + 48 + - col2 + - col0 * col1 AS col2 FROM tab0
----
-15
-1214
-87
-1789
-97
-148

skipif mysql # not compatible
query II rowsort label-9389
SELECT ALL - CAST ( + + col0 AS INTEGER ), + 48 + - col2 + - col0 * col1 AS col2 FROM tab0
----
-15
-1214
-87
-1789
-97
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT - + SUM( col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9390
SELECT - + SUM ( col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT DISTINCT ( + MIN( - + col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL > ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT ( + MIN ( - + col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL > ( col1 )
----
NULL

query I rowsort
SELECT - col0 * - - 80 AS col2 FROM tab0 cor0
----
-1200
-6960
-7760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9393
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * + 49 + + 66 + - - 53 * - 79 AS col1 FROM tab0 AS cor0
----
-4268

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * + 49 + + 66 + - - 53 * - 79 AS col1 FROM tab0 AS cor0
----
-4268

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT ALL - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 >= + col1 / + 52 - + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col0 * + + 85 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL <> ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT ALL + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9398
SELECT ALL + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-9399
SELECT + + col0 + - col2 DIV + col2, 3 + + col0 * - 34 * + - 32 AS col0 FROM tab1 AS cor0
----
50
55491
84
92483
90
99011

skipif mysql # not compatible
query II rowsort label-9399
SELECT + + col0 + - col2 / + col2, 3 + + col0 * - 34 * + - 32 AS col0 FROM tab1 AS cor0
----
50
55491
84
92483
90
99011

query I rowsort
SELECT DISTINCT ( - 57 ) + col1 FROM tab2 AS cor0
----
-6
10
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT + COUNT( * ) + - SUM( - 58 ) + + 73 FROM tab1 AS cor0
----
250

skipif mysql # not compatible
query I rowsort label-9402
SELECT + COUNT ( * ) + - SUM ( - 58 ) + + 73 FROM tab1 AS cor0
----
250

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + ( + col1 ) * + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT ALL + 70 + COUNT( + col0 ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL + 70 + COUNT ( + col0 ) FROM tab0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-9405
SELECT COUNT( + + 43 ) AS col0, 25 AS col0 FROM tab1
----
3
25

skipif mysql # not compatible
query II rowsort label-9405
SELECT COUNT ( + + 43 ) AS col0, 25 AS col0 FROM tab1
----
3
25

query I rowsort
SELECT col2 * - - 53 AS col2 FROM tab1
----
3127
3604
5088

query I rowsort
SELECT DISTINCT 29 * - + 30 - + col0 FROM tab2
----
-916
-934
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT MIN( ALL col1 ) * 57 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-9408
SELECT MIN ( ALL col1 ) * 57 FROM tab1
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT ALL SUM( DISTINCT col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL SUM ( DISTINCT col0 ) AS col1 FROM tab1
----
227

query II rowsort
SELECT 8 AS col0, - 50 FROM tab2
----
8
-50
8
-50
8
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 - - - col1 * col0 col1 FROM tab0 WHERE NOT col0 * - - col1 + col0 IS NULL
----
-1262
-1837
-196

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9412
SELECT ALL * FROM tab0 WHERE NOT + - col2 BETWEEN 2 + - - col2 AND + CAST( NULL AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9412
SELECT ALL * FROM tab0 WHERE NOT + - col2 BETWEEN 2 + - - col2 AND + CAST ( NULL AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - 95 AS col0 FROM tab2
----
-4370
-6080
-7125

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9414
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * + + 2 + - col0 - + - col1 + + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT - - CAST ( NULL AS REAL ) * + + 2 + - col0 - + - col1 + + col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, - col2 col0 FROM tab2 cor0
----
46
-23
64
-40
75
-58

query I rowsort
SELECT 17 - - - col1 AS col2 FROM tab1 cor0
----
-30
12
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT ALL CAST( NULL AS SIGNED ) + + 88 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL CAST ( NULL AS INTEGER ) + + 88 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT DISTINCT + - 68 + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT + - 68 + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-71

query I rowsort
SELECT + + 4 FROM tab0 cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT DISTINCT + + ( - - COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9420
SELECT DISTINCT + + ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 57 * + + col2 AS col2 FROM tab2 cor0
----
-1311
-2280
-3306

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT + ( - SUM( + - 84 ) ) * - SUM( ALL - col1 ) FROM tab0 cor0
----
25956

skipif mysql # not compatible
query I rowsort label-9422
SELECT + ( - SUM ( + - 84 ) ) * - SUM ( ALL - col1 ) FROM tab0 cor0
----
25956

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9423
SELECT DISTINCT + MAX( + CAST( - ( + 89 ) AS DECIMAL ) ) + 29 AS col1 FROM tab0 AS cor0 WHERE NOT col0 <= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT + MAX ( + CAST ( - ( + 89 ) AS REAL ) ) + 29 AS col1 FROM tab0 AS cor0 WHERE NOT col0 <= col0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN ( - col1 * + col2 * col0 ) AND col2 + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9425
SELECT ALL - + COUNT( 22 ) DIV - + COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL - + COUNT ( 22 ) / - + COUNT ( * ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT - col2 * - 51 FROM tab2
----
1173
2040
2958

query II rowsort
SELECT - 99, col1 FROM tab2
----
-99
51
-99
67
-99
77

query I rowsort
SELECT DISTINCT col2 * - + ( - 79 ) AS col0 FROM tab2
----
1817
3160
4582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9429
SELECT ALL + 36 + + + 79 * + + COUNT( + col1 ) + COUNT( * ) + - + 8 / + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL + 36 + + + 79 * + + COUNT ( + col1 ) + COUNT ( * ) + - + 8 / + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT - ( - MIN( DISTINCT - 22 ) ) FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-9430
SELECT - ( - MIN ( DISTINCT - 22 ) ) FROM tab2 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT - + 27 + COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9431
SELECT - + 27 + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col1 * + 77 * - + ( - + col0 ) + + col0 AND - col0 * 54
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9433
SELECT + CAST( 6 AS SIGNED ) + - col0 * 64 DIV - + col1 + col2 * - - col2 * + + col2 * + col0 FROM tab0 AS cor0
----
1557362
87271
94125217

skipif mysql # not compatible
query I rowsort label-9433
SELECT + CAST ( 6 AS INTEGER ) + - col0 * 64 / - + col1 + col2 * - - col2 * + + col2 * + col0 FROM tab0 AS cor0
----
1557362
87271
94125217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9434
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 20 * - col1 * - col1 + + 53 FROM tab0 AS cor0
----
-131167
-8767
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT + MAX( ALL - + col1 ) - + + COUNT( * ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9436
SELECT + MAX ( ALL - + col1 ) - + + COUNT ( * ) FROM tab0 AS cor0
----
-4

query I rowsort
SELECT - col1 * - 10 - col0 AS col2 FROM tab0 AS cor0
----
-87
123
795

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE col2 / col2 <> + 80
----
-23
-40
-58

query I rowsort
SELECT col1 + - - 91 * col1 AS col2 FROM tab1 AS cor0
----
1288
4324
460

query II rowsort
SELECT DISTINCT + 4 + - + col1, col2 * - col1 AS col0 FROM tab2 AS cor0
----
-47
-1173
-63
-3886
-73
-3080

query I rowsort
SELECT DISTINCT + - col1 - + col2 - - col2 AS col0 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT ALL col1 + + - ( + - col1 ) * + - 8 FROM tab1
----
-329
-35
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT DISTINCT - MAX( ALL - col1 ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9443
SELECT DISTINCT - MAX ( ALL - col1 ) col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT + col0 * + 7 + 64 * + + 84 FROM tab1
----
5733
5971
6013

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT - COUNT( * ) FROM tab1 WHERE - ( col1 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9445
SELECT - COUNT ( * ) FROM tab1 WHERE - ( col1 ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT DISTINCT + COUNT( * ) - - - 24 AS col2 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT + COUNT ( * ) - - - 24 AS col2 FROM tab2
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-9447
SELECT ALL 62 AS col2, + COUNT( * ) FROM tab1
----
62
3

skipif mysql # not compatible
query II rowsort label-9447
SELECT ALL 62 AS col2, + COUNT ( * ) FROM tab1
----
62
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 cor0 WHERE - col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE - col2 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL ( col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> 18
----

query II rowsort
SELECT DISTINCT col2 AS col2, col2 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
59
-4956
68
-6120
96
-4800

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL = 39
----

query I rowsort
SELECT ALL + 74 * col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * + 0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 47 col2, col2 + - col0 AS col0 FROM tab1 AS cor0
----
-47
-23
-47
-26
-47
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL - + COUNT( + 36 ) * 31 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL - + COUNT ( + 36 ) * 31 FROM tab0 AS cor0
----
-93

query I rowsort
SELECT - + AVG ( ALL + 1 ) FROM tab1 cor0 WHERE NOT - 55 < - col0 / col2 + + + col1
----
NULL

query I rowsort
SELECT ALL 2 * col0 AS col1 FROM tab0 cor0
----
174
194
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9459
SELECT DISTINCT + - col2 DIV + - col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT + - col2 / + - col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9461
SELECT ALL + col1 DIV + - 20 AS col2 FROM tab1 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL + col1 / + - 20 AS col2 FROM tab1 cor0
----
-2
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 / - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 17 + + + 53 + - 67 AS col1 FROM tab1
----
3
3
3

query I rowsort
SELECT DISTINCT + ( + 44 ) FROM tab0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT ALL - 53 * + COUNT( * ) * 71 col0 FROM tab1
----
-11289

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9465
SELECT ALL - 53 * + COUNT ( * ) * 71 col0 FROM tab1
----
-11289

onlyif mysql # DIV for integer division: 
query I rowsort label-9466
SELECT - col1 DIV + - 86 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9466
SELECT - col1 / + - 86 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 32 BETWEEN NULL AND - 71
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 91 IS NULL
----

query I rowsort
SELECT - 85 + 51 FROM tab0
----
-34
-34
-34

query I rowsort
SELECT col2 + 6 + + col1 * 42 FROM tab2
----
2171
2878
3280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9471
SELECT DISTINCT + 36 - - COUNT( * ) * + 15 DIV + - 91 AS col2 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-9471
SELECT DISTINCT + 36 - - COUNT ( * ) * + 15 / + - 91 AS col2 FROM tab2
----
36

query I rowsort
SELECT ALL - 3 * 79 AS col2 FROM tab2
----
-237
-237
-237

query I rowsort
SELECT DISTINCT 53 * col1 + - 47 AS col1 FROM tab0
----
1066
4246
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9474
SELECT DISTINCT - - MAX( DISTINCT CAST( + col0 AS SIGNED ) ) col0 FROM tab2 AS cor0 WHERE NOT 62 IS NULL
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9474
SELECT DISTINCT - - MAX ( DISTINCT CAST ( + col0 AS INTEGER ) ) col0 FROM tab2 AS cor0 WHERE NOT 62 IS NULL
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT DISTINCT - SUM( ALL - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT - SUM ( ALL - col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT DISTINCT - 6 + - col2 AS col2 FROM tab1 AS cor0
----
-102
-65
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-9477
SELECT + COUNT( * ), 57 AS col2 FROM tab2 AS cor0 WHERE 50 IS NOT NULL
----
3
57

skipif mysql # not compatible
query II rowsort label-9477
SELECT + COUNT ( * ), 57 AS col2 FROM tab2 AS cor0 WHERE 50 IS NOT NULL
----
3
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT + MIN( ALL - + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9478
SELECT + MIN ( ALL - + col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT 6 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 54 + - col2 FROM tab1 AS cor0
----
-113
-122
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT ALL - COUNT( * ) + - 73 AS col2 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL - COUNT ( * ) + - 73 AS col2 FROM tab0 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-9482
SELECT - - COUNT( * ), COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9482
SELECT - - COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT + SUM( ALL + + 82 ) FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-9483
SELECT + SUM ( ALL + + 82 ) FROM tab2 AS cor0
----
246

query I rowsort
SELECT - ( + - ( + col2 ) ) AS col1 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 col0 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT ALL 72 - - - col2 + 72 AS col2 FROM tab2
----
104
121
86

query II rowsort
SELECT - col0 * + - col1 - - + 37 * - 86, 19 * + col1 AS col1 FROM tab0
----
-1355
399
-1967
1539
-3085
19

query I rowsort
SELECT ALL ( col0 ) * + + ( col2 ) - + 65 FROM tab0
----
640
805
9538

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND - 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col0 FROM tab0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9491
SELECT ALL - + CAST( - - col0 AS SIGNED ) AS col0, - 59 col2 FROM tab1 AS cor0
----
-51
-59
-85
-59
-91
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9491
SELECT ALL - + CAST ( - - col0 AS INTEGER ) AS col0, - 59 col2 FROM tab1 AS cor0
----
-51
-59
-85
-59
-91
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-9492
SELECT 83 DIV - col2 AS col2, col0 * col0 FROM tab1 AS cor0
----
-1
7225
-1
8281
0
2601

skipif mysql # not compatible
query II rowsort label-9492
SELECT 83 / - col2 AS col2, col0 * col0 FROM tab1 AS cor0
----
-1
7225
-1
8281
0
2601

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 * ( col1 ) + - col2 >= ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab1 AS cor0 WHERE NOT col0 / - 3 + 91 BETWEEN NULL AND + + col2
----
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * col1 - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-9496
SELECT col2, 37 DIV - + col0 + - 6 + - col0 FROM tab0 AS cor0
----
10
-93
47
-23
99
-103

skipif mysql # not compatible
query II rowsort label-9496
SELECT col2, 37 / - + col0 + - 6 + - col0 FROM tab0 AS cor0
----
10
-93
47
-23
99
-103

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 8 + - 30 FROM tab2 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-9499
SELECT - COUNT( * ) AS col1, 11 FROM tab2
----
-3
11

skipif mysql # not compatible
query II rowsort label-9499
SELECT - COUNT ( * ) AS col1, 11 FROM tab2
----
-3
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT COUNT( * ) * SUM( ( - 16 ) ) FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-9500
SELECT COUNT ( * ) * SUM ( ( - 16 ) ) FROM tab2
----
-144

query II rowsort
SELECT - col0 AS col1, - col1 - - - col0 + - col1 FROM tab0
----
-15
-177
-87
-129
-97
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9502
SELECT ALL + - 93, COUNT( * ) * CAST( NULL AS SIGNED ) col1 FROM tab1 WHERE - col1 BETWEEN col1 AND - + col0 * CAST( - - CAST( + col0 AS SIGNED ) AS SIGNED )
----
-93
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9502
SELECT ALL + - 93, COUNT ( * ) * CAST ( NULL AS INTEGER ) col1 FROM tab1 WHERE - col1 BETWEEN col1 AND - + col0 * CAST ( - - CAST ( + col0 AS INTEGER ) AS INTEGER )
----
-93
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + 45 * col0 * - - col0 + + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9504
SELECT 16 AS col2, COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
16
9

skipif mysql # not compatible
query II rowsort label-9504
SELECT 16 AS col2, COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
16
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9505
SELECT ALL col1 DIV - 96 * col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL col1 / - 96 * col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 + 79 col0 FROM tab1
----
108
108
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9507
SELECT DISTINCT col1 + - 83 * - CAST( + 48 AS SIGNED ) FROM tab0 cor0
----
3985
4005
4065

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT col1 + - 83 * - CAST ( + 48 AS INTEGER ) FROM tab0 cor0
----
3985
4005
4065

query I rowsort
SELECT - col0 + + 66 FROM tab2 cor0
----
-9
2
20

query I rowsort
SELECT 29 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
29
29
29

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 44 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 18 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
18

query II rowsort
SELECT ALL - col0 * - col2, - col1 AS col2 FROM tab1
----
4896
-14
5015
-5
6188
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9513
SELECT DISTINCT CAST( - col2 AS SIGNED ) * col2 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-9513
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * col2 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT - 36 * + 61 FROM tab0
----
-2196

query I rowsort
SELECT - col0 * 51 + 93 - - + 7 FROM tab2 AS cor0
----
-2246
-3164
-3725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT + col0 + - col0 + - col1 + - - CAST( NULL AS SIGNED ) * + + 43 + ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE ( 84 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT + col0 + - col0 + - col1 + - - CAST ( NULL AS INTEGER ) * + + 43 + ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE ( 84 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL + ( SUM( DISTINCT - col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL + ( SUM ( DISTINCT - col1 ) ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL 59 + + - 1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + - 54 FROM tab2 AS cor0
----
-112
-77
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT DISTINCT - ( - - SUM( DISTINCT - 60 ) ) AS col0 FROM tab0 WHERE - col2 + + + 79 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT - ( - - SUM ( DISTINCT - 60 ) ) AS col0 FROM tab0 WHERE - col2 + + + 79 > NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9521
SELECT ALL + COUNT( * ) DIV - 71 FROM tab2 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL + COUNT ( * ) / - 71 FROM tab2 WHERE NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT MIN( 94 ) AS col2 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-9522
SELECT MIN ( 94 ) AS col2 FROM tab1
----
94

query I rowsort
SELECT - col1 * - 17 FROM tab2
----
1139
1309
867

query I rowsort
SELECT 34 AS col0 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1 WHERE - - 19 IS NULL
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN - - col0 AND + col2
----
-87

query I rowsort
SELECT + - ( - - 27 ) FROM tab1 AS cor0
----
-27
-27
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-9529
SELECT col1 DIV + 90 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9529
SELECT col1 / + 90 col2 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT MAX( ALL - + 11 ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-9531
SELECT MAX ( ALL - + 11 ) FROM tab1
----
-11

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT - 73 + - - 34 * col2 + - + 7 AS col0 FROM tab0
----
1518
260
3286

query I rowsort
SELECT DISTINCT col2 * + 87 AS col0 FROM tab2
----
2001
3480
5046

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + - col2 * col0 col0, + col1 col2 FROM tab0
----
-18270
21
-57105
81
-9603
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9536
SELECT DISTINCT 72 DIV - col0 FROM tab0
----
-4
0

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT 72 / - col0 FROM tab0
----
-4
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9537
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT CAST ( NULL AS REAL ) + - - col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT DISTINCT + - SUM( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT + - SUM ( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-9539
SELECT DISTINCT + col2 + + col1 DIV + ( - col0 ) FROM tab2 AS cor0
----
22
39
58

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT + col2 + + col1 / + ( - col0 ) FROM tab2 AS cor0
----
22
39
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT ALL - 9 + - COUNT( * ) col1 FROM tab0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9541
SELECT ALL - 9 + - COUNT ( * ) col1 FROM tab0
----
-12

query I rowsort
SELECT ALL + 33 AS col2 FROM tab2 cor0
----
33
33
33

query I rowsort
SELECT ALL + col0 + - + 52 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-37
35
45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < + col0 / + + 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT + 35 * + MIN( DISTINCT + 66 ) col2 FROM tab1 cor0
----
2310

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9545
SELECT + 35 * + MIN ( DISTINCT + 66 ) col2 FROM tab1 cor0
----
2310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9546
SELECT DISTINCT ( - - 45 ) DIV - ( - + ( - COUNT( * ) ) ) AS col0 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9546
SELECT DISTINCT ( - - 45 ) / - ( - + ( - COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0
----
-15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + - 80 <= + 87
----

query II rowsort
SELECT col2 AS col1, ( - 68 ) AS col2 FROM tab2 AS cor0
----
23
-68
40
-68
58
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9549
SELECT DISTINCT + MIN( DISTINCT - 31 ) DIV + + 65 * + - 13 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT + MIN ( DISTINCT - 31 ) / + + 65 * + - 13 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9550
SELECT COUNT( * ) DIV - COUNT( DISTINCT + + 94 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9550
SELECT COUNT ( * ) / - COUNT ( DISTINCT + + 94 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9551
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT ALL SUM( - - 82 ) FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL SUM ( - - 82 ) FROM tab2
----
246

query I rowsort
SELECT DISTINCT + 37 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT ALL - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT + + col1 * + ( + - 11 ) AS col1 FROM tab0 AS cor0
----
-11
-231
-891

query I rowsort
SELECT + + ( + 48 ) AS col0 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE ( + 99 * - col1 + - col1 * + col2 ) BETWEEN ( NULL ) AND - + col0
----

query I rowsort
SELECT ALL - 63 + - - col1 FROM tab0 AS cor0
----
-42
-62
18

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> 30
----

query I rowsort
SELECT DISTINCT - col2 * col0 + ( col2 ) AS col1 FROM tab2 AS cor0
----
-1035
-2520
-4292

query II rowsort
SELECT 54, col0 * col2 AS col1 FROM tab0 AS cor0
----
54
705
54
870
54
9603

query I rowsort
SELECT 78 * + col2 AS col0 FROM tab0 AS cor0
----
3666
7722
780

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND - - 53 / - col0
----

query III rowsort
SELECT * FROM tab0 WHERE + 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * + - col1 + - 82 * col0 + + + 36 FROM tab1
----
-10622
-5490
-7229

onlyif mysql # DIV for integer division: 
query I rowsort label-9566
SELECT 84 DIV + col1 + - col1 FROM tab0
----
-17
-80
83

skipif mysql # not compatible
query I rowsort label-9566
SELECT 84 / + col1 + - col1 FROM tab0
----
-17
-80
83

query I rowsort
SELECT 14 + + ( + col0 ) + - + col0 AS col2 FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT - + col0 * + - col0 + - - col2 AS col0 FROM tab0 AS cor0
----
272
7579
9508

query I rowsort
SELECT + - 83 * - + col2 AS col2 FROM tab1 WHERE - 59 IS NULL
----

query I rowsort
SELECT - col1 * - - col0 AS col2 FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + - 70 * + - 78 AS col0 FROM tab2 AS cor0
----
5460

onlyif mysql # aggregate syntax: 
query II rowsort label-9572
SELECT + COUNT( * ), 5 + - COUNT( * ) AS col2 FROM tab0 cor0
----
3
2

skipif mysql # not compatible
query II rowsort label-9572
SELECT + COUNT ( * ), 5 + - COUNT ( * ) AS col2 FROM tab0 cor0
----
3
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - 35 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) <= + 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + ( + 68 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + ( + 68 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9576
SELECT - + col0 DIV - - ( - col2 ) + - - col0 + - - ( - + col2 ) * + 40 + + col2 FROM tab0 cor0
----
-1818
-295
-3764

skipif mysql # not compatible
query I rowsort label-9576
SELECT - + col0 / - - ( - col2 ) + - - col0 + - - ( - + col2 ) * + 40 + + col2 FROM tab0 cor0
----
-1818
-295
-3764

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9577
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * - col0 + + col2 * col1 AS col1, col1 FROM tab1 AS cor0
----
-2992
47
-3552
14
-4720
5

skipif mysql # not compatible
query II rowsort label-9577
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * - col0 + + col2 * col1 AS col1, col1 FROM tab1 AS cor0
----
-2992
47
-3552
14
-4720
5

query I rowsort
SELECT ALL - ( - 48 ) AS col1 FROM tab0 AS cor0
----
48
48
48

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 AND + + 13
----

query II rowsort
SELECT + 35 AS col1, + col2 * + + 48 FROM tab2
----
35
1104
35
1920
35
2784

onlyif mysql # DIV for integer division: 
query I rowsort label-9581
SELECT col0 * - + col2 DIV - col2 col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9581
SELECT col0 * - + col2 / - col2 col2 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL col1 * col1 * - col0 * + + 20 FROM tab2
----
-2392920
-6733500
-7589120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col2, col1 * 56 * + 53 AS col0 FROM tab1 AS cor0
----
59
14840
68
139496
96
41552

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT MAX( + 95 ) FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-9585
SELECT MAX ( + 95 ) FROM tab0 AS cor0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT ALL col1 DIV + ( - - col2 ) FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL col1 / + ( - - col2 ) FROM tab2 AS cor0
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9587
SELECT 19 DIV col1 AS col2 FROM tab0
----
0
0
19

skipif mysql # not compatible
query I rowsort label-9587
SELECT 19 / col1 AS col2 FROM tab0
----
0
0
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 56 + ( - 63 ) * col0 / + col0 NOT BETWEEN + 50 + + 79 AND - 6 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 94 + ( + 66 ) FROM tab1 AS cor0
----
160

query I rowsort
SELECT DISTINCT + + col1 + - col2 - + 35 * - col0 * - - 58 AS col0 FROM tab1 cor0
----
103448
172496
184709

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT DISTINCT + 76 * + 72 + + + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
5478

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT + 76 * + 72 + + + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
5478

query I rowsort
SELECT ALL + col0 + - - col2 * - 22 AS col2 FROM tab0 AS cor0
----
-1019
-133
-2081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9593
SELECT ALL - col0 * - col1 + - col0 AS col0 FROM tab0 cor0 WHERE 11 + - col0 <= - - col1 * + col1 + + 58 + - col0 + col2 * + 55 / - col1 - - - col0 * + col1 * - CAST( col1 AS SIGNED )
----
1200
1740

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL - col0 * - col1 + - col0 AS col0 FROM tab0 cor0 WHERE 11 + - col0 <= - - col1 * + col1 + + 58 + - col0 + col2 * + 55 / - col1 - - - col0 * + col1 * - CAST ( col1 AS INTEGER )
----
1200
1740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9594
SELECT DISTINCT col1 + - + ( + col0 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT col1 + - + ( + col0 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, - col0 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT - 65 * + 76 FROM tab2
----
-4940
-4940
-4940

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL SUM( 97 ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL SUM ( 97 ) FROM tab0
----
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + 85 FROM tab0
----
15
85
87
85
97
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT - COUNT( DISTINCT + col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9599
SELECT - COUNT ( DISTINCT + col2 ) FROM tab1
----
-3

query I rowsort
SELECT + col1 * - - col2 AS col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT 18 + col2 FROM tab1 AS cor0
----
114
77
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT ALL COUNT( * ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL COUNT ( * ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9603
SELECT - col1 + + CAST( NULL AS SIGNED ), + col1 * + + 62 AS col1 FROM tab0
----
NULL
1302
NULL
5022
NULL
62

skipif mysql # not compatible
query II rowsort label-9603
SELECT - col1 + + CAST ( NULL AS INTEGER ), + col1 * + + 62 AS col1 FROM tab0
----
NULL
1302
NULL
5022
NULL
62

query I rowsort
SELECT ALL - 71 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL - COUNT( DISTINCT + - col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - COUNT ( DISTINCT + - col1 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 35 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9607
SELECT DISTINCT 90 * COUNT( * ) DIV - + 52 + + 61 AS col1 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT 90 * COUNT ( * ) / - + 52 + + 61 AS col1 FROM tab1 AS cor0
----
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - 44 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT + COUNT( - col1 ) * - + 60 FROM tab1 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-9609
SELECT + COUNT ( - col1 ) * - + 60 FROM tab1 AS cor0
----
-180

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > + 27
----

query I rowsort
SELECT col0 * + + 87 AS col0 FROM tab1 AS cor0
----
4437
7395
7917

query I rowsort
SELECT 38 * - 47 * + - col1 FROM tab2
----
119662
137522
91086

query I rowsort
SELECT - col0 * - - 92 AS col1 FROM tab0
----
-1380
-8004
-8924

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ( 95 ) * - SUM( DISTINCT - 73 ) FROM tab2
----
6935

skipif mysql # not compatible
query I rowsort label-9614
SELECT ( 95 ) * - SUM ( DISTINCT - 73 ) FROM tab2
----
6935

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * 41 * - + col1 FROM tab1
----
-1025
-8036
-90569

query I rowsort
SELECT ALL - - col2 + - col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT DISTINCT 69 * - COUNT( * ) FROM tab0 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-9618
SELECT DISTINCT 69 * - COUNT ( * ) FROM tab0 cor0
----
-207

query I rowsort
SELECT - - col2 * 33 + col1 + + + col2 FROM tab0 cor0
----
1679
3367
361

query I rowsort
SELECT + 74 FROM tab1 WHERE NOT NULL IS NOT NULL
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT DISTINCT + ( - COUNT( * ) ) FROM tab0 WHERE NOT NULL IN ( + + 34, 1 - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT + ( - COUNT ( * ) ) FROM tab0 WHERE NOT NULL IN ( + + 34, 1 - - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT DISTINCT 71 * - COUNT( * ) AS col0 FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-9622
SELECT DISTINCT 71 * - COUNT ( * ) AS col0 FROM tab2
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT + + ( + + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9623
SELECT + + ( + + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9624
SELECT - 67, COUNT( * ) AS col0 FROM tab1 cor0
----
-67
3

skipif mysql # not compatible
query II rowsort label-9624
SELECT - 67, COUNT ( * ) AS col0 FROM tab1 cor0
----
-67
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9625
SELECT ALL - 88 DIV + + col2 AS col1 FROM tab0 AS cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL - 88 / + + col2 AS col1 FROM tab0 AS cor0
----
-1
-8
0

query I rowsort
SELECT ALL + col1 + - + ( + - 90 ) + 5 * + col0 AS col0 FROM tab2 AS cor0
----
371
487
532

query I rowsort
SELECT 62 FROM tab0 AS cor0 WHERE NULL IN ( - col2 )
----

query II rowsort
SELECT DISTINCT + col1, 1 AS col0 FROM tab2 AS cor0
----
51
1
67
1
77
1

query I rowsort
SELECT DISTINCT + col0 + + 80 AS col1 FROM tab1 AS cor0
----
131
165
171

query II rowsort
SELECT + col1 AS col1, col0 * - 58 AS col0 FROM tab0 AS cor0
----
1
-5626
21
-5046
81
-870

query I rowsort
SELECT - - ( - col1 ) - + 35 * + col0 FROM tab1 AS cor0
----
-1799
-2980
-3232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9632
SELECT 9 + + MIN( - ( col1 ) ) DIV + 51 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-9632
SELECT 9 + + MIN ( - ( col1 ) ) / + 51 FROM tab2
----
8

query I rowsort
SELECT ALL + ( - - col1 ) + + + col2 AS col2 FROM tab0
----
100
128
31

query II rowsort
SELECT - col1 + + col0 AS col1, col0 + - 46 AS col1 FROM tab1 AS cor0
----
37
5
44
45
80
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9635
SELECT - col2 DIV col2 * - col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9635
SELECT - col2 / col2 * - col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL 5 AS col0 FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON 17 IS NULL
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9638
SELECT ( col2 ) DIV - - ( - 23 ) AS col2 FROM tab1 AS cor0
----
-2
-2
-4

skipif mysql # not compatible
query I rowsort label-9638
SELECT ( col2 ) / - - ( - 23 ) AS col2 FROM tab1 AS cor0
----
-2
-2
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-9639
SELECT + + COUNT( * ) AS col0, COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9639
SELECT + + COUNT ( * ) AS col0, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT - 11 FROM tab1 cor0 WHERE NOT ( NOT + ( - + 7 ) IS NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 / col1 BETWEEN + 68 + + 15 AND - - 86 * + 33 + - 61 + + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9642
SELECT 0 DIV + MIN( ALL + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9642
SELECT 0 / + MIN ( ALL + col2 ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9643
SELECT - + col1 AS col1 FROM tab1 WHERE NOT + + col1 * + - col0 * - ( + col1 ) / + - ( + col1 ) / col0 * + - CAST( NULL AS SIGNED ) * - 93 + - 6 + - - 38 + - + col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-9643
SELECT - + col1 AS col1 FROM tab1 WHERE NOT + + col1 * + - col0 * - ( + col1 ) / + - ( + col1 ) / col0 * + - CAST ( NULL AS INTEGER ) * - 93 + - 6 + - - 38 + - + col1 < NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 5 * + col1 FROM tab0
----
-1050
-19035
-495

query I rowsort
SELECT ALL - col1 * ( + 12 ) FROM tab2
----
-612
-804
-924

query I rowsort
SELECT 48 * col1 AS col2 FROM tab2
----
2448
3216
3696

query I rowsort
SELECT DISTINCT 95 * 49 * - 61 FROM tab0
----
-283955

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT DISTINCT MAX( ALL col1 ) * - COUNT( * ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-9648
SELECT DISTINCT MAX ( ALL col1 ) * - COUNT ( * ) FROM tab2
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT DISTINCT + COUNT( * ) * - 46 col1 FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9649
SELECT DISTINCT + COUNT ( * ) * - 46 col1 FROM tab1 AS cor0
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9650
SELECT DISTINCT + col2 * + + ( + col2 ) * - col2 + - col1 + 22 + + - CAST( - 93 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-205269
-314364
-884635

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT + col2 * + + ( + col2 ) * - col2 + - col1 + 22 + + - CAST ( - 93 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-205269
-314364
-884635

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND + + col2
----

query I rowsort
SELECT DISTINCT - 3 FROM tab0, tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE 0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9654
SELECT DISTINCT 82 + - - 8 DIV - - col2 * + + 73 * - 77 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT 82 + - - 8 / - - col2 * + + 73 * - 77 FROM tab1 AS cor0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT - CAST( NULL AS SIGNED ) * - col2 - - + CAST( NULL AS SIGNED ) * + - col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT - CAST ( NULL AS INTEGER ) * - col2 - - + CAST ( NULL AS INTEGER ) * + - col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 * + + col1 + + col2 * + col1 FROM tab1 AS cor0 WHERE NOT + col0 * - - col0 IS NOT NULL
----

query I rowsort
SELECT + + col2 AS col0 FROM tab2 AS cor0 WHERE col1 * - - col0 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9658
SELECT DISTINCT - col2 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT - col2 + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT DISTINCT - MIN( ALL - col2 ) + + MIN( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-9659
SELECT DISTINCT - MIN ( ALL - col2 ) + + MIN ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-17

query I rowsort
SELECT ALL + col0 * - + col1 + - 23 AS col2 FROM tab0 AS cor0
----
-120
-1238
-1850

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT DISTINCT + ( + COUNT( * ) ) + + 17 AS col2 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT + ( + COUNT ( * ) ) + + 17 AS col2 FROM tab2 AS cor0
----
20

query I rowsort
SELECT DISTINCT - col0 * col1 - - col0 + col0 FROM tab1 AS cor0
----
-255
-4095
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT + MAX( - ( + 19 ) ) AS col2 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9663
SELECT + MAX ( - ( + 19 ) ) AS col2 FROM tab2 AS cor0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-9664
SELECT ALL + col2 DIV + + col1 + - + 3 - ( 17 ) AS col0 FROM tab1
----
-14
-19
-9

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL + col2 / + + col1 + - + 3 - ( 17 ) AS col0 FROM tab1
----
-14
-19
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9665
SELECT ALL CAST( NULL AS SIGNED ) - + SUM( - col1 ) * + 7 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL CAST ( NULL AS INTEGER ) - + SUM ( - col1 ) * + 7 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - 47 * + col0 * + - col2 + 56 BETWEEN NULL AND - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 22, col1 * + + col0 col1 FROM tab1
----
22
425
22
4277
22
714

query I rowsort
SELECT ALL col2 - - - col1 AS col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT DISTINCT 86 - col2 + - col1 AS col2 FROM tab2
----
-31
-39
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 col1 FROM tab1
----
-80
-80
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - 20 col2 FROM tab1
----
-39
-48
-76

query I rowsort
SELECT - 1 - - col2 AS col0 FROM tab2
----
22
39
57

query II rowsort
SELECT ALL - col1 + - + col1 AS col2, + 27 FROM tab2 AS cor0
----
-102
27
-134
27
-154
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9674
SELECT - 45 AS col1, COUNT( * ) FROM tab2 AS cor0
----
-45
3

skipif mysql # not compatible
query II rowsort label-9674
SELECT - 45 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
-45
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 40 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * + 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - ( - + 3 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT DISTINCT + - CAST( ( ( - - col1 ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT + - CAST ( ( ( - - col1 ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9679
SELECT - CAST( + 48 AS SIGNED ), col0 col2 FROM tab1 cor0
----
-48
51
-48
85
-48
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9679
SELECT - CAST ( + 48 AS INTEGER ), col0 col2 FROM tab1 cor0
----
-48
51
-48
85
-48
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 32 * - - col1 + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 69 FROM tab2 cor0
----
69

query I rowsort
SELECT DISTINCT + 77 * + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 44 AND - ( col2 )
----

query I rowsort
SELECT ALL 14 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT DISTINCT SUM( - + 44 ) AS col0 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT SUM ( - + 44 ) AS col0 FROM tab0
----
-132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 15 ) col2 FROM tab1
----
15

query II rowsort
SELECT ALL - 76 AS col2, 16 AS col1 FROM tab0
----
-76
16
-76
16
-76
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 56 * - col1 col0 FROM tab2
----
-2805
-3685
-4235

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) IN ( 25, 78 )
----

query I rowsort
SELECT col0 + - - 9 AS col1 FROM tab1 cor0
----
100
60
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9690
SELECT ALL - col1 + + col1 DIV + col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL - col1 + + col1 / + col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE col0 / - ( col0 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9692
SELECT CAST( - - col2 AS SIGNED ) * + - col0 + col2 DIV - col2 AS col0 FROM tab2 AS cor0
----
-1059
-2561
-4351

skipif mysql # not compatible
query I rowsort label-9692
SELECT CAST ( - - col2 AS INTEGER ) * + - col0 + col2 / - col2 AS col0 FROM tab2 AS cor0
----
-1059
-2561
-4351

query I rowsort
SELECT 35 * + 68 AS col0 FROM tab2
----
2380
2380
2380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9694
SELECT ALL - MIN( DISTINCT CAST( NULL AS SIGNED ) ) + 75 * - 73 FROM tab2 WHERE ( NULL ) BETWEEN - col2 + - 28 AND col2 / col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + 75 * - 73 FROM tab2 WHERE ( NULL ) BETWEEN - col2 + - 28 AND col2 / col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT ALL + SUM( 83 ) AS col2 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL + SUM ( 83 ) AS col2 FROM tab0
----
249

query I rowsort
SELECT col1 * - col2 FROM tab2 WHERE NOT col1 IN ( col1 * ( col0 ) )
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9697
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 >= CAST( col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9697
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 >= CAST ( col1 AS REAL )
----

query III rowsort
SELECT * FROM tab0 WHERE ( col2 * + col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 50 NOT IN ( - col2 + - col1 * ( - col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9700
SELECT DISTINCT * FROM tab0 WHERE + CAST( col1 AS SIGNED ) IN ( + col1 * + 49 + + col0 )
----

skipif mysql # not compatible
query III rowsort label-9700
SELECT DISTINCT * FROM tab0 WHERE + CAST ( col1 AS INTEGER ) IN ( + col1 * + 49 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT DISTINCT + COUNT( * ) + 53 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT + COUNT ( * ) + 53 FROM tab2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9702
SELECT + MIN( DISTINCT + 59 ) DIV 38 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9702
SELECT + MIN ( DISTINCT + 59 ) / 38 AS col0 FROM tab1
----
1

query I rowsort
SELECT ALL col1 + 13 AS col1 FROM tab2
----
64
80
90

query I rowsort
SELECT DISTINCT - 47 AS col1 FROM tab1 WHERE - col1 IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT MIN( ALL - 62 ) + + COUNT( * ) FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT MIN ( ALL - 62 ) + + COUNT ( * ) FROM tab2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT ALL - MIN( col1 ) FROM tab1 WHERE ( + col1 * + 65 ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL - MIN ( col1 ) FROM tab1 WHERE ( + col1 * + 65 ) > NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9707
SELECT col0 DIV 98 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9707
SELECT col0 / 98 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 = - ( col2 )
----

query I rowsort
SELECT ALL 50 * - 7 AS col1 FROM tab0 WHERE col0 IS NOT NULL
----
-350
-350
-350

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) BETWEEN ( 26 ) AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9711
SELECT DISTINCT - ( + 56 ) DIV col1 + col1 FROM tab1
----
-6
10
46

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT - ( + 56 ) / col1 + col1 FROM tab1
----
-6
10
46

query I rowsort
SELECT 74 * 39 AS col2 FROM tab2
----
2886
2886
2886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * + col0 col2 FROM tab0
----
1044
1164
180

query I rowsort
SELECT ALL - 11 * col2 AS col2 FROM tab2
----
-253
-440
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT ( + COUNT( * ) ) - + 20 col0 FROM tab1
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9715
SELECT ( + COUNT ( * ) ) - + 20 col0 FROM tab1
----
-17

query I rowsort
SELECT ( 40 ) * + ( col2 - col1 ) + col1 AS col0 FROM tab0 WHERE col2 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9717
SELECT DISTINCT 34 DIV - COUNT( * ) AS col1 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-9717
SELECT DISTINCT 34 / - COUNT ( * ) AS col1 FROM tab1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT - MIN( DISTINCT - 96 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9718
SELECT - MIN ( DISTINCT - 96 ) AS col1 FROM tab1
----
96

query I rowsort
SELECT ALL - 13 * + col1 AS col0 FROM tab2 WHERE NOT + col2 NOT BETWEEN 79 - - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + 8 * col0 > col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <= ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * - col2 AS col2 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9723
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 < - 94
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9725
SELECT - - CAST( 91 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-9725
SELECT - - CAST ( 91 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
91
91
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 >= 10 + 20
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NOT NULL <> + col0 * 30
----

query I rowsort
SELECT col2 + - col2 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) > - col2 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT ALL - 6 + COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL - 6 + COUNT ( * ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col0 FROM tab0 AS cor0 WHERE NOT + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9731
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 17 )
----

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 17 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 53 ) BETWEEN - col1 AND - 6
----
46
51
23

query I rowsort
SELECT ALL + col0 + ( col0 ) AS col1 FROM tab0 cor0
----
174
194
30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * 86 NOT BETWEEN NULL AND ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9735
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( CAST( - col1 AS SIGNED ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( CAST ( - col1 AS INTEGER ) ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT DISTINCT MAX( ALL col0 ) FROM tab0 WHERE NOT + col2 - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT MAX ( ALL col0 ) FROM tab0 WHERE NOT + col2 - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + col1 * + ( 1 ) AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT - col1 * 25 FROM tab2
----
-1275
-1675
-1925

query I rowsort
SELECT + col0 * + 96 AS col0 FROM tab0
----
1440
8352
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT + AVG ( DISTINCT + col1 ) * COUNT( * ) FROM tab1 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9740
SELECT + AVG ( DISTINCT + col1 ) * COUNT ( * ) FROM tab1 WHERE - col1 IS NULL
----
NULL

query I rowsort
SELECT + col2 FROM tab1 WHERE + 24 - + ( col0 ) = ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 NOT BETWEEN col1 AND - 76
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + - ( col0 ) ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9744
SELECT DISTINCT 76 + CAST( NULL AS SIGNED ) + + col0 col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9744
SELECT DISTINCT 76 + CAST ( NULL AS INTEGER ) + + col0 col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + + col1 * + 34 AS col1 FROM tab2 AS cor0
----
1734
2278
2618

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 97 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 + + col0 * col2 AS col0 FROM tab1 cor0
----
4947
5100
6279

query I rowsort
SELECT ALL col0 + col1 * 19 FROM tab2 AS cor0
----
1015
1348
1527

query I rowsort
SELECT ALL col2 + + ( - ( - col1 ) ) * col0 AS col2 FROM tab1 AS cor0
----
4345
484
810

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 4 ) IS NOT NULL
----

query I rowsort
SELECT col1 * 33 AS col2 FROM tab0 cor0 WHERE + 31 <> ( - col0 / 3 + - ( col0 ) )
----
2673
33
693

query I rowsort
SELECT ALL - + ( + col2 ) AS col0 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + 93 * - - col0 * - col2 * + 50 FROM tab0 AS cor0
----
-3278250
-4045500
-44653950

query I rowsort
SELECT - - 3 * + col2 * - - 80 AS col2 FROM tab0 AS cor0
----
11280
23760
2400

query I rowsort
SELECT ALL 81 FROM tab1 AS cor0 WHERE - 30 IN ( + - 75 * - col2 )
----

query I rowsort
SELECT ALL + - 95 + + col2 FROM tab1 AS cor0
----
-27
-36
1

query I rowsort
SELECT - col0 AS col2 FROM tab2 cor0 WHERE NULL NOT IN ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + + - 6 - ( - col1 ) = + 49
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9760
SELECT + ( + CAST( - ( + - AVG ( ALL + col1 ) ) AS SIGNED ) ) * + COUNT( * ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9760
SELECT + ( + CAST ( - ( + - AVG ( ALL + col1 ) ) AS INTEGER ) ) * + COUNT ( * ) AS col1 FROM tab2
----
195

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE - col0 * + ( + 59 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT - ( ( - + MAX( + col2 ) ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9762
SELECT - ( ( - + MAX ( + col2 ) ) ) FROM tab1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT ALL ( - 59 ) * COUNT( * ) AS col2 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL ( - 59 ) * COUNT ( * ) AS col2 FROM tab2
----
-177

query I rowsort
SELECT + col2 * - 26 + + col1 AS col1 FROM tab0 WHERE NOT ( ( + col2 ) ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT ALL col0 DIV - 87 - - - col2 FROM tab1 cor0
----
-59
-69
-96

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL col0 / - 87 - - - col2 FROM tab1 cor0
----
-59
-69
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 * 72 col2 FROM tab0 cor0
----
-131544
-6984
-87480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9768
SELECT + MAX( DISTINCT + col2 ) + + 32 FROM tab0 WHERE NOT - col2 BETWEEN ( + CAST( NULL AS SIGNED ) + - + col1 ) AND NULL OR NOT col0 IS NULL
----
131

skipif mysql # not compatible
query I rowsort label-9768
SELECT + MAX ( DISTINCT + col2 ) + + 32 FROM tab0 WHERE NOT - col2 BETWEEN ( + CAST ( NULL AS INTEGER ) + - + col1 ) AND NULL OR NOT col0 IS NULL
----
131

query I rowsort
SELECT DISTINCT + ( - 61 ) * - col2 FROM tab0 AS cor0
----
2867
6039
610

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT - AVG ( ALL - col0 ) + COUNT( * ) AS col0 FROM tab2 cor0 WHERE - + 42 IS NULL AND NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9770
SELECT - AVG ( ALL - col0 ) + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE - + 42 IS NULL AND NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col0 * - 54 FROM tab1 AS cor0
----
-2754
-4590
-4914

query I rowsort
SELECT ALL - 38 + - col2 AS col0 FROM tab0 AS cor0
----
-137
-48
-85

query I rowsort
SELECT DISTINCT col0 * - + 30 FROM tab0 cor0
----
-2610
-2910
-450

query I rowsort
SELECT DISTINCT + - 30 * + col0 + + col1 + - - 68 FROM tab2 AS cor0
----
-1261
-1775
-2115

query I rowsort
SELECT ALL + - 42 * + - col2 FROM tab2 AS cor0
----
1680
2436
966

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 / + 63 ) < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT + ( - + ( + COUNT( * ) ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9777
SELECT + ( - + ( + COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT MIN( DISTINCT - + 41 ) AS col0 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-9778
SELECT MIN ( DISTINCT - + 41 ) AS col0 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT DISTINCT - + MIN( - col0 ) + + 52 FROM tab1 AS cor0
----
143

skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT - + MIN ( - col0 ) + + 52 FROM tab1 AS cor0
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-9781
SELECT ALL 82 + + col0 + + 49 + - + col0 DIV + col0 FROM tab0 AS cor0
----
145
217
227

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL 82 + + col0 + + 49 + - + col0 / + col0 FROM tab0 AS cor0
----
145
217
227

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 9 - col0 ) IS NULL
----

query I rowsort
SELECT ALL col1 * + col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL - - COUNT( * ) AS col0 FROM tab1, tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL - - COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL ( + 73 ) * - MAX( - 63 ) FROM tab1 WHERE NOT + - col1 = ( + - 91 )
----
4599

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL ( + 73 ) * - MAX ( - 63 ) FROM tab1 WHERE NOT + - col1 = ( + - 91 )
----
4599

query I rowsort
SELECT - 64 * col0 AS col2 FROM tab1
----
-3264
-5440
-5824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT DISTINCT + col0 * + + CAST( + col0 AS SIGNED ) col2 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9787
SELECT DISTINCT + col0 * + + CAST ( + col0 AS INTEGER ) col2 FROM tab1
----
2601
7225
8281

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + + - 79 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT ALL + MAX( ALL col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL + MAX ( ALL col1 ) AS col2 FROM tab0
----
81

query I rowsort
SELECT col0 + - - 34 - - - col1 * 77 FROM tab1
----
-266
-3494
-993

query I rowsort
SELECT ALL - - 39 + - + col1 AS col1 FROM tab1 AS cor0
----
-8
25
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9792
SELECT MAX( - - CAST( NULL AS DECIMAL ) ) + - SUM( - col0 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9792
SELECT MAX ( - - CAST ( NULL AS REAL ) ) + - SUM ( - col0 ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9793
SELECT + col2 + CAST( NULL AS DECIMAL ) * - + 58 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9793
SELECT + col2 + CAST ( NULL AS REAL ) * - + 58 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 47 + + + 90 AS col1, col0 * + col0 AS col0 FROM tab2 AS cor0
----
137
2116
137
4096
137
5625

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 46 + ( - + 25 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 65 + + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9797
SELECT - - 21 AS col0, - COUNT( * ) FROM tab2 AS cor0
----
21
-3

skipif mysql # not compatible
query II rowsort label-9797
SELECT - - 21 AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
21
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9798
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 WHERE - col0 < - col0 * + col2 + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9798
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 < - col0 * + col2 + CAST ( NULL AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9799
SELECT COUNT( - 51 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 43 * - 45 + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9799
SELECT COUNT ( - 51 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 43 * - 45 + CAST ( NULL AS INTEGER )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - - 63 col0 FROM tab2 AS cor0
----
23
40
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9801
SELECT DISTINCT + ( 29 ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
29
3

skipif mysql # not compatible
query II rowsort label-9801
SELECT DISTINCT + ( 29 ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
29
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT ALL - COUNT( * ) + 59 + + + 89 * - + 67 col1 FROM tab1 AS cor0
----
-5907

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9802
SELECT ALL - COUNT ( * ) + 59 + + + 89 * - + 67 col1 FROM tab1 AS cor0
----
-5907

query I rowsort
SELECT DISTINCT - 46 AS col0 FROM tab0 WHERE NULL NOT IN ( - 60 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9804
SELECT ALL + 75, + 20 + CAST( NULL AS DECIMAL ) + + col1 AS col0 FROM tab2
----
75
NULL
75
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-9804
SELECT ALL + 75, + 20 + CAST ( NULL AS REAL ) + + col1 AS col0 FROM tab2
----
75
NULL
75
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT DISTINCT + 28 * + COUNT( * ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT + 28 * + COUNT ( * ) FROM tab1
----
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9806
SELECT DISTINCT - 23 DIV - CAST( 55 AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT - 23 / - CAST ( 55 AS INTEGER ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9807
SELECT ALL + col1 * 19 DIV - ( - col0 ) AS col2 FROM tab1 AS cor0
----
1
5
9

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL + col1 * 19 / - ( - col0 ) AS col2 FROM tab1 AS cor0
----
1
5
9

query II rowsort
SELECT + col0 AS col1, + col0 AS col2 FROM tab1 cor0
----
51
51
85
85
91
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN col0 AND - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 45 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
45
45
45

query I rowsort
SELECT DISTINCT + + 33 AS col2 FROM tab0 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL + MAX( - + col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL + MAX ( - + col1 ) FROM tab2
----
-51

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 IN ( col0 - - col2 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 13 * col0 FROM tab2 WHERE NOT - - 54 * + 32 + col1 * - col1 * col0 * - 54 NOT IN ( + - 32 )
----

query II rowsort
SELECT + col0 + + col2, col2 * + + col2 AS col0 FROM tab0 AS cor0
----
196
9801
62
2209
97
100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9816
SELECT ALL - + col0 * + col2 + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST( - col0 AS DECIMAL ) AND 91 * - col0
----

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL - + col0 * + col2 + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST ( - col0 AS REAL ) AND 91 * - col0
----

query I rowsort
SELECT ALL + 92 FROM tab1 cor0 WHERE - col1 IS NOT NULL
----
92
92
92

query II rowsort
SELECT - 70 + - col0, col2 AS col0 FROM tab0 AS cor0
----
-157
10
-167
99
-85
47

query I rowsort
SELECT col0 * - 8 AS col2 FROM tab2
----
-368
-512
-600

query I rowsort
SELECT ALL + 55 * + - col1 FROM tab0
----
-1155
-4455
-55

query I rowsort
SELECT col0 * + - 47 AS col0 FROM tab0
----
-4089
-4559
-705

query I rowsort
SELECT DISTINCT - 22 * 39 FROM tab2
----
-858

onlyif mysql # DIV for integer division: 
query I rowsort label-9823
SELECT + 82 DIV - col2 AS col1 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-9823
SELECT + 82 / - col2 AS col1 FROM tab0
----
-1
-8
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9824
SELECT ALL col1 DIV + 48 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9824
SELECT ALL col1 / + 48 col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT SUM( DISTINCT + col2 ) AS col0 FROM tab0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9825
SELECT SUM ( DISTINCT + col2 ) AS col0 FROM tab0 WHERE NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT DISTINCT - MIN( ALL - ( + 40 ) ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT - MIN ( ALL - ( + 40 ) ) FROM tab0
----
40

query II rowsort
SELECT col2, col0 FROM tab1 WHERE + - col1 <= col2 * + + 14
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT - ( - + col0 ) * - 40 * - col0 FROM tab0
----
302760
376360
9000

query I rowsort
SELECT DISTINCT + 41 + + col1 * + - col2 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-123159
-225347
-26938

query I rowsort
SELECT DISTINCT - 57 + + + col0 AS col0 FROM tab2 cor0
----
-11
18
7

query I rowsort
SELECT ALL - + 20 + + - col1 FROM tab1 AS cor0
----
-25
-34
-67

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE + col1 * + col2 * + col0 NOT IN ( - ( + 10 ) )
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT + ( col1 ) * + 53 + - 43 * + col2 BETWEEN - col1 * - - col2 * - col2 AND + 4
----
23
40
58

query I rowsort
SELECT col1 + - 83 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-2
-62
-82

query I rowsort
SELECT DISTINCT + 90 AS col0 FROM tab0 AS cor0
----
90

query I rowsort
SELECT + + 3 * - col1 FROM tab2 cor0
----
-153
-201
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT + - MIN( + - 77 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-9838
SELECT + - MIN ( + - 77 ) FROM tab2 cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9839
SELECT - col0 AS col2, ( - ( + + CAST( NULL AS SIGNED ) ) ) * + 98 + - 13 + 16 + - - CAST( NULL AS SIGNED ) / + + 37 * - + 80 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-9839
SELECT - col0 AS col2, ( - ( + + CAST ( NULL AS INTEGER ) ) ) * + 98 + - 13 + 16 + - - CAST ( NULL AS INTEGER ) / + + 37 * - + 80 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9840
SELECT ALL - col2, + col2 DIV - - 2 AS col0 FROM tab0 AS cor0
----
-10
5
-47
23
-99
49

skipif mysql # not compatible
query II rowsort label-9840
SELECT ALL - col2, + col2 / - - 2 AS col0 FROM tab0 AS cor0
----
-10
5
-47
23
-99
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT - ( - - SUM( DISTINCT - 29 ) ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-9841
SELECT - ( - - SUM ( DISTINCT - 29 ) ) FROM tab1 AS cor0
----
29

query I rowsort
SELECT 94 FROM tab1 WHERE NOT + 5 * col1 + + + col0 BETWEEN + - col1 AND ( + col0 * - - col1 + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9843
SELECT - 81 DIV + - 20 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-9843
SELECT - 81 / + - 20 FROM tab1
----
4
4
4

query II rowsort
SELECT DISTINCT 52 * + col1, + col2 FROM tab0
----
1092
10
4212
47
52
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9845
SELECT DISTINCT + + col1 + + + col0 DIV - col0 FROM tab2 WHERE + 61 IS NOT NULL
----
50
66
76

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT + + col1 + + + col0 / - col0 FROM tab2 WHERE + 61 IS NOT NULL
----
50
66
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9846
SELECT - - SUM( + CAST( NULL AS SIGNED ) ) AS col0, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9846
SELECT - - SUM ( + CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9847
SELECT + - 89 DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-9847
SELECT + - 89 / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-29

query II rowsort
SELECT + - ( + col1 ), 46 AS col1 FROM tab2 AS cor0
----
-51
46
-67
46
-77
46

query II rowsort
SELECT ALL 1 AS col0, + col0 * + col2 + - col0 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
1
1012
1
2496
1
4275

query I rowsort
SELECT ALL 55 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # DIV for integer division: 
query I rowsort label-9851
SELECT - col2 DIV + - col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9851
SELECT - col2 / + - col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9852
SELECT DISTINCT COUNT( * ) AS col1, 38 AS col0 FROM tab2 AS cor0
----
3
38

skipif mysql # not compatible
query II rowsort label-9852
SELECT DISTINCT COUNT ( * ) AS col1, 38 AS col0 FROM tab2 AS cor0
----
3
38

query I rowsort
SELECT + 35 AS col1 FROM tab2 cor0
----
35
35
35

query I rowsort
SELECT ALL + 10 + + - col1 FROM tab0 AS cor0
----
-11
-71
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT - 50 + + COUNT( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9855
SELECT - 50 + + COUNT ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * + + col2 + - 32 < + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 94 + - col1 FROM tab2
----
-145
-161
-171

query I rowsort
SELECT DISTINCT + col2 * col1 * - - col0 FROM tab1
----
25075
290836
68544

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9859
SELECT ALL - 61 + - CAST( - ( - - col1 ) AS SIGNED ) AS col1, 87 FROM tab1
----
-14
87
-47
87
-56
87

skipif mysql # not compatible
query II rowsort label-9859
SELECT ALL - 61 + - CAST ( - ( - - col1 ) AS INTEGER ) AS col1, 87 FROM tab1
----
-14
87
-47
87
-56
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9860
SELECT ALL - 56 DIV + 9 AS col2 FROM tab0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL - 56 / + 9 AS col2 FROM tab0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT DISTINCT MAX( 22 ) * 48 col0 FROM tab2
----
1056

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9861
SELECT DISTINCT MAX ( 22 ) * 48 col0 FROM tab2
----
1056

query I rowsort
SELECT - col1 + - 24 AS col1 FROM tab2
----
-101
-75
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9863
SELECT ALL CAST( + MIN( DISTINCT - col1 ) AS SIGNED ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL CAST ( + MIN ( DISTINCT - col1 ) AS INTEGER ) AS col0 FROM tab1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9864
SELECT col1 + + - col1 DIV - + 86 * ( + col2 ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9864
SELECT col1 + + - col1 / - + 86 * ( + col2 ) AS col2 FROM tab1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + + - col0 + 34 col0 FROM tab1 AS cor0
----
-10
-3
-46

query I rowsort
SELECT ALL 26 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 * - 37 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT ALL - col1 * col2 + CAST( NULL AS SIGNED ) + + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL - col1 * col2 + CAST ( NULL AS INTEGER ) + + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 11 col0, 84 * + + 97 + - 7 FROM tab0
----
11
8141

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT ALL + + ( + - col1 ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT DISTINCT + 56 * 8 * + - COUNT( * ) * + - COUNT( 31 ) AS col1 FROM tab0 AS cor0
----
4032

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT + 56 * 8 * + - COUNT ( * ) * + - COUNT ( 31 ) AS col1 FROM tab0 AS cor0
----
4032

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 >= + - col1
----
97
1
99

query I rowsort
SELECT ALL 73 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9874
SELECT ( - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT col1 < + 1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT ( - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT col1 < + 1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT + 56 > - - col1 + + - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9876
SELECT - COUNT( + 59 ), - COUNT( DISTINCT + + col1 ) FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9876
SELECT - COUNT ( + 59 ), - COUNT ( DISTINCT + + col1 ) FROM tab0
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9877
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-9877
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT DISTINCT SUM( DISTINCT - col0 ) * COUNT( * ) + + SUM( DISTINCT - col1 ) FROM tab2
----
-750

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT SUM ( DISTINCT - col0 ) * COUNT ( * ) + + SUM ( DISTINCT - col1 ) FROM tab2
----
-750

query I rowsort
SELECT ALL + 93 * - col1 * 16 FROM tab0
----
-120528
-1488
-31248

onlyif mysql # DIV for integer division: 
query I rowsort label-9880
SELECT DISTINCT + 60 DIV + col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT + 60 / + col0 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT - MAX( ALL + 62 ) FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-9881
SELECT - MAX ( ALL + 62 ) FROM tab0
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, 61 AS col2 FROM tab2
----
-46
61
-64
61
-75
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT - MAX( - + col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9883
SELECT - MAX ( - + col2 ) AS col1 FROM tab1
----
59

query I rowsort
SELECT - ( - - ( + ( + ( ( col0 ) ) ) ) ) FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT COUNT( ALL - - 36 ) * - COUNT( * ) + + AVG ( + col2 ) FROM tab0 AS cor0 WHERE NOT 7 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9885
SELECT COUNT ( ALL - - 36 ) * - COUNT ( * ) + + AVG ( + col2 ) FROM tab0 AS cor0 WHERE NOT 7 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + + 66 * + + col0 + - col1 FROM tab1 cor0
----
3352
5605
5959

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT - - COUNT( * ) * - 2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9887
SELECT - - COUNT ( * ) * - 2 FROM tab1 AS cor0
----
-6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT ALL + 88 * - MAX( ALL + 53 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-4664

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL + 88 * - MAX ( ALL + 53 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-4664

query I rowsort
SELECT + col2 * + ( - 18 ) + col1 - - - 73 AS col2 FROM tab0
----
-1854
-232
-838

query I rowsort
SELECT DISTINCT col0 * + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col2 <> ( - 63 + + 28 / ( - col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL 5 - - + col0 FROM tab0 cor0
----
102
20
92

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - + 22 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, - col2 + + col1 col2 FROM tab1 WHERE NULL IS NULL
----
-59
-54
-68
-21
-96
-82

query I rowsort
SELECT ALL - 27 - - col1 * col1 * - + col0 + col2 AS col2 FROM tab1
----
-200978
-2093
-9927

query I rowsort
SELECT - 2 * + - col2 AS col1 FROM tab0
----
198
20
94

query I rowsort
SELECT DISTINCT - 33 - col2 FROM tab0
----
-132
-43
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-9900
SELECT ALL 3 AS col1, COUNT( * ) col0 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9900
SELECT ALL 3 AS col1, COUNT ( * ) col0 FROM tab0
----
3
3

query I rowsort
SELECT DISTINCT col0 * + col0 + + col2 * col1 AS col2 FROM tab1
----
11477
3945
7520

onlyif mysql # DIV for integer division: 
query II rowsort label-9902
SELECT ALL + + col0 AS col0, - 58 DIV - col0 FROM tab1 cor0
----
51
1
85
0
91
0

skipif mysql # not compatible
query II rowsort label-9902
SELECT ALL + + col0 AS col0, - 58 / - col0 FROM tab1 cor0
----
51
1
85
0
91
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9903
SELECT DISTINCT - ( 24 ) + + CAST( - 88 AS SIGNED ) FROM tab0 cor0
----
-112

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT - ( 24 ) + + CAST ( - 88 AS INTEGER ) FROM tab0 cor0
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9904
SELECT * FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN - + 3 * - CAST( + col1 AS SIGNED ) / - ( + col2 ) + col0 + - - col1 * - - 55 + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9904
SELECT * FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN - + 3 * - CAST ( + col1 AS INTEGER ) / - ( + col2 ) + col0 + - - col1 * - - 55 + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT COUNT( DISTINCT - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9905
SELECT COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + ( - col1 ) * - 81 AS col2 FROM tab1 AS cor0
----
1134
3807
405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT - + CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9907
SELECT - + CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 NOT BETWEEN 81 + + col1 AND 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2 * - + 8, col0 FROM tab1 AS cor0
----
472
85
544
91
768
51

query I rowsort
SELECT + 21 * + col0 * 30 FROM tab2 AS cor0
----
28980
40320
47250

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9912
SELECT ALL + 99 * 43 DIV - - col1 FROM tab1 cor0
----
304
851
90

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL + 99 * 43 / - - col1 FROM tab1 cor0
----
304
851
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + ( - - col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + ( - - col0 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9914
SELECT ALL col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL col0 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9915
SELECT - CAST( NULL AS DECIMAL ) * col1, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-9915
SELECT - CAST ( NULL AS REAL ) * col1, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT MIN( + 92 ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-9916
SELECT MIN ( + 92 ) FROM tab2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9917
SELECT + 17 DIV + col0 FROM tab2 WHERE NOT + - col2 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9917
SELECT + 17 / + col0 FROM tab2 WHERE NOT + - col2 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9918
SELECT + COUNT( * ) DIV - COUNT( DISTINCT col2 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9918
SELECT + COUNT ( * ) / - COUNT ( DISTINCT col2 ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT DISTINCT SUM( - - ( - col1 ) ) col0 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9919
SELECT DISTINCT SUM ( - - ( - col1 ) ) col0 FROM tab2
----
-195

query II rowsort
SELECT + col2, - 96 * - ( + 57 ) AS col1 FROM tab0 AS cor0
----
10
5472
47
5472
99
5472

query I rowsort
SELECT ALL + 89 + col1 FROM tab2 AS cor0
----
140
156
166

query I rowsort
SELECT - ( col0 ) + - ( - 28 ) AS col1 FROM tab1 AS cor0
----
-23
-57
-63

query I rowsort
SELECT col0 + - - 12 AS col1 FROM tab0 AS cor0
----
109
27
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9924
SELECT DISTINCT - - CAST( MIN( DISTINCT - + col1 ) AS SIGNED ) + + ( - COUNT( * ) ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
-50
3

skipif mysql # not compatible
query II rowsort label-9924
SELECT DISTINCT - - CAST ( MIN ( DISTINCT - + col1 ) AS INTEGER ) + + ( - COUNT ( * ) ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-50
3

query I rowsort
SELECT + + 76 + - col2 FROM tab2 AS cor0
----
18
36
53

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 BETWEEN ( - 67 ) AND col2 * - col2 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT ALL ( - 81 ) + - 21 * - COUNT( * ) + + SUM( DISTINCT - + 33 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL ( - 81 ) + - 21 * - COUNT ( * ) + + SUM ( DISTINCT - + 33 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # DIV for integer division: 
query II rowsort label-9930
SELECT 28 col0, 25 DIV 60 AS col0 FROM tab2 AS cor0
----
28
0
28
0
28
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9930
SELECT 28 col0, 25 / 60 AS col0 FROM tab2 AS cor0
----
28
0
28
0
28
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9931
SELECT col2, col1 DIV 44 AS col1 FROM tab1 AS cor0
----
59
0
68
1
96
0

skipif mysql # not compatible
query II rowsort label-9931
SELECT col2, col1 / 44 AS col1 FROM tab1 AS cor0
----
59
0
68
1
96
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9932
SELECT ALL + col1 * + 44 + - - 9 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL + col1 * + 44 + - - 9 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 - + 53 FROM tab2 AS cor0
----
-7
11
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT 14 - - COUNT( * ) FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-9934
SELECT 14 - - COUNT ( * ) FROM tab0 AS cor0
----
17

query I rowsort
SELECT DISTINCT - + 88 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT - - col0 + + 90 + col1 * - + 29 * - 87 FROM tab0 AS cor0
----
204468
2710
53160

query I rowsort
SELECT col1 + 6 + 65 AS col1 FROM tab1 AS cor0
----
118
76
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9938
SELECT + - CAST( NULL AS SIGNED ) + - col1 * - ( + ( - CAST( col2 AS SIGNED ) ) ) / col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9938
SELECT + - CAST ( NULL AS INTEGER ) + - col1 * - ( + ( - CAST ( col2 AS INTEGER ) ) ) / col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9939
SELECT ALL + col2 - CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) + - 61 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9939
SELECT ALL + col2 - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + - 61 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9941
SELECT ALL col0 DIV col1 - - col2 + + 24 AS col0 FROM tab1
----
100
123
93

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL col0 / col1 - - col2 + + 24 AS col0 FROM tab1
----
100
123
93

query I rowsort
SELECT + col0 * + - col0 AS col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query II rowsort label-9943
SELECT DISTINCT MIN( - + col0 ), + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-75
3

skipif mysql # not compatible
query II rowsort label-9943
SELECT DISTINCT MIN ( - + col0 ), + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-75
3

query I rowsort
SELECT ALL + + col2 FROM tab0 AS cor0 WHERE NOT ( + - 94 BETWEEN + - col2 AND NULL )
----
10
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col1 + + 92 col0 FROM tab1 AS cor0
----
117
2301
288

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT BETWEEN + - col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9947
SELECT CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9947
SELECT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + + col0 * + col2 + - - col2 col1 FROM tab1 AS cor0
----
-25016
-290768
-68448

query I rowsort
SELECT DISTINCT + col2 * col2 * - 32 FROM tab0 AS cor0
----
-313632
-3200
-70688

query II rowsort
SELECT col0 * - + col2 * + col0 AS col2, - col2 FROM tab1 AS cor0
----
-249696
-96
-426275
-59
-563108
-68

query III rowsort
SELECT * FROM tab2 WHERE NOT + 49 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( + 45 ) AS col2 FROM tab2
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT + ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT + ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT - COUNT( + 0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9954
SELECT - COUNT ( + 0 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - + col2 + - col0 * + - col1 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * + - col0 AS col1 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT MAX( DISTINCT - - 37 ) FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-9957
SELECT MAX ( DISTINCT - - 37 ) FROM tab0
----
37

query II rowsort
SELECT ( + col1 ), - 2 FROM tab2
----
51
-2
67
-2
77
-2

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT 46 * - + col1 FROM tab0 AS cor0
----
-3726
-46
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT ALL - 67 + - COUNT( * ) FROM tab2 cor0
----
-70

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL - 67 + - COUNT ( * ) FROM tab2 cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT DISTINCT COUNT( * ) + + - SUM( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT COUNT ( * ) + + - SUM ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT DISTINCT 35 * + MAX( - col2 ) col2 FROM tab2 cor0
----
-805

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9963
SELECT DISTINCT 35 * + MAX ( - col2 ) col2 FROM tab2 cor0
----
-805

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + 32
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9965
SELECT ALL - 33 * + CAST( NULL AS DECIMAL ) + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL - 33 * + CAST ( NULL AS REAL ) + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9966
SELECT DISTINCT 40 * + col0 + + 21 + - + col0 + + + 56 DIV + col1 FROM tab1
----
2014
3347
3571

skipif mysql # not compatible
query I rowsort label-9966
SELECT DISTINCT 40 * + col0 + + 21 + - + col0 + + + 56 / + col1 FROM tab1
----
2014
3347
3571

query I rowsort
SELECT ALL col2 * - + 69 FROM tab2
----
-1587
-2760
-4002

query I rowsort
SELECT - - col2 + - 58 FROM tab2 AS cor0
----
-18
-35
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 + - 95 * + col2 * + col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 75 AS col0 FROM tab1 cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT ALL + - COUNT( DISTINCT + 16 ) + + COUNT( * ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL + - COUNT ( DISTINCT + 16 ) + + COUNT ( * ) FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT DISTINCT - MAX( col2 ) FROM tab2 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT - MAX ( col2 ) FROM tab2 WHERE - col1 IS NULL
----
NULL

query I rowsort
SELECT ALL - col2 * + - ( + 96 ) + - + col0 FROM tab2
----
2162
3776
5493

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT 63 - MAX( DISTINCT + - col1 ) + + + 84 AS col2 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-9974
SELECT 63 - MAX ( DISTINCT + - col1 ) + + + 84 AS col2 FROM tab2
----
198

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + + col1 ) - - col0 AS col2 FROM tab0
----
108
96
98

query I rowsort
SELECT DISTINCT col1 * + col0 + + - col2 FROM tab1
----
366
4209
618

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT 4 - + - COUNT( * ) AS col0 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-9978
SELECT 4 - + - COUNT ( * ) AS col0 FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9979
SELECT ALL - 63 AS col0, - MIN( - col0 ) AS col1 FROM tab1
----
-63
91

skipif mysql # not compatible
query II rowsort label-9979
SELECT ALL - 63 AS col0, - MIN ( - col0 ) AS col1 FROM tab1
----
-63
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9980
SELECT ALL + 54 col1, + col2 * - col0 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE 32 * + col2 IS NOT NULL
----
54
NULL
54
NULL
54
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9980
SELECT ALL + 54 col1, + col2 * - col0 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE 32 * + col2 IS NOT NULL
----
54
NULL
54
NULL
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT MAX( - + ( + - col1 ) ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-9981
SELECT MAX ( - + ( + - col1 ) ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9982
SELECT ALL + CAST( - 68 AS SIGNED ) FROM tab1 AS cor0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL + CAST ( - 68 AS INTEGER ) FROM tab1 AS cor0
----
-68
-68
-68

query II rowsort
SELECT DISTINCT + 86, 70 AS col1 FROM tab0 AS cor0
----
86
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9984
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9984
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) > NULL
----

query I rowsort
SELECT - 6 FROM tab1 AS cor0 WHERE NOT - col0 * - col0 IS NULL
----
-6
-6
-6

query I rowsort
SELECT + col0 * + - col2 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9989
SELECT ALL CAST( COUNT( ALL ( - col1 ) ) AS SIGNED ) + - 1 FROM tab0 cor0
----
2

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL CAST ( COUNT ( ALL ( - col1 ) ) AS INTEGER ) + - 1 FROM tab0 cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT MAX( DISTINCT + 84 ) AS col1 FROM tab0 cor0
----
84

skipif mysql # not compatible
query I rowsort label-9990
SELECT MAX ( DISTINCT + 84 ) AS col1 FROM tab0 cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT ALL + 40 * col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL + 40 * col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( + col2 ) * + - col1 FROM tab0 AS cor0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - + 45 col1 FROM tab0
----
3645
45
945

query I rowsort
SELECT DISTINCT ( - col0 ) + - 30 * - col0 - - - col1 FROM tab0 WHERE NOT - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT ALL - COUNT( * ) * + 37 AS col1 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL - COUNT ( * ) * + 37 AS col1 FROM tab0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT DISTINCT 67 * + - COUNT( * ) AS col2 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT 67 * + - COUNT ( * ) AS col2 FROM tab2
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9997
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NULL <= NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9998
SELECT ALL COUNT( + + 12 ) DIV 20 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL COUNT ( + + 12 ) / 20 FROM tab1
----
0

query I rowsort
SELECT ALL 1 + - + col1 AS col1 FROM tab2
----
-50
-66
-76

