hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( + 29 + - + col2, - 99 * + col0 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2
SELECT * FROM tab1 WHERE NOT + - col2 + CAST( NULL AS SIGNED ) + + col0 + - col2 IN ( 50 + col2 )
----

skipif mysql # not compatible
query III rowsort label-2
SELECT * FROM tab1 WHERE NOT + - col2 + CAST ( NULL AS INTEGER ) + + col0 + - col2 IN ( 50 + col2 )
----

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

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

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL - - MAX ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-46

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

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 40 NOT BETWEEN 79 AND - + 60 - col1 + - col1 / 97 + 44 * + col1
----

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

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

query I rowsort
SELECT ALL col0 * + + col0 * + col2 FROM tab0
----
10575
75690
931491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + + col0 ) + - 43 col0 FROM tab2 AS cor0
----
-107
-118
-89

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-11
SELECT col2 * + col2, - CAST( NULL AS DECIMAL ) * + + col0 AS col1 FROM tab1 AS cor0
----
3481
NULL
4624
NULL
9216
NULL

skipif mysql # not compatible
query II rowsort label-11
SELECT col2 * + col2, - CAST ( NULL AS REAL ) * + + col0 AS col1 FROM tab1 AS cor0
----
3481
NULL
4624
NULL
9216
NULL

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 NOT IN ( col2 - 50, col1 * + 61 )
----

query I rowsort
SELECT ALL + 99 * + col1 AS col2 FROM tab2
----
5049
6633
7623

query I rowsort
SELECT ( 20 ) * - 5 AS col1 FROM tab2
----
-100
-100
-100

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + col1 AND - + 49 - + - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT 99 * + + 62 + - COUNT( * ) AS col2 FROM tab0 WHERE + col2 <> - 49
----
6135

skipif mysql # not compatible
query I rowsort label-18
SELECT 99 * + + 62 + - COUNT ( * ) AS col2 FROM tab0 WHERE + col2 <> - 49
----
6135

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT DISTINCT - col0 DIV - 76 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-19
SELECT DISTINCT - col0 / - 76 FROM tab0
----
0
1

query I rowsort
SELECT 25 * - + col0 * - + col1 FROM tab2
----
123200
125625
58650

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IS NULL AND - 52 < NULL
----

query I rowsort
SELECT + + col0 - - 52 FROM tab2 AS cor0
----
116
127
98

query I rowsort
SELECT - + col0 + 61 * col1 + + + col1 FROM tab0 AS cor0 WHERE col0 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * col1 + + 74 FROM tab1
----
1418
3270
369

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT DISTINCT 37 + - - COUNT( * ) AS col1 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT 37 + - - COUNT ( * ) AS col1 FROM tab1
----
40

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 col0 FROM tab2 AS cor0
----
78
78
78

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

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

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

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

skipif mysql # not compatible
query I rowsort label-33
SELECT - 42 * COUNT ( * ) / - + COUNT ( * ) FROM tab0
----
42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col2 * - 74 * - - col0 * + 27 * - - col2 + + 51 * + + 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 76 AS col0 FROM tab0 WHERE NOT NULL >= col2 + + + col1 * + col2 * + + 31 * + col1 * - 20 - col2 + - 95
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT - ( + MIN( - 48 ) ) FROM tab1 cor0
----
48

skipif mysql # not compatible
query I rowsort label-37
SELECT - ( + MIN ( - 48 ) ) FROM tab1 cor0
----
48

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

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

query II rowsort
SELECT - col1 * col2 * - col0 AS col2, 99 * 91 FROM tab0
----
18270
9009
57105
9009
9603
9009

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT DISTINCT 55 * + - SUM( ALL - 57 ) FROM tab2
----
9405

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT 55 * + - SUM ( ALL - 57 ) FROM tab2
----
9405

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE + 1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-42
SELECT COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE + 1 IS NULL
----
0

query I rowsort
SELECT ALL - 40 * - - col2 + 67 FROM tab2 AS cor0
----
-1533
-2253
-853

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT DISTINCT ( COUNT( * ) ) + 87 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----
87

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT ( COUNT ( * ) ) + 87 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-45
SELECT ALL CAST( NULL AS SIGNED ) / - ( 65 ) + col0 + - - ( 91 ) + + col0, col1 AS col0 FROM tab0 AS cor0 WHERE 85 / 93 IN ( - - col1 )
----

skipif mysql # not compatible
query II rowsort label-45
SELECT ALL CAST ( NULL AS INTEGER ) / - ( 65 ) + col0 + - - ( 91 ) + + col0, col1 AS col0 FROM tab0 AS cor0 WHERE 85 / 93 IN ( - - col1 )
----

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

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

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

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

query I rowsort
SELECT DISTINCT - - 55 + - col2 AS col0 FROM tab2 AS cor0
----
-3
15
32

onlyif mysql # DIV for integer division: 
query I rowsort label-49
SELECT DISTINCT - - col1 DIV 52 + - + 62 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT - - col1 / 52 + - + 62 FROM tab1 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT MIN( ALL + - ( + + col2 ) ) + - COUNT( * ) AS col0 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-50
SELECT MIN ( ALL + - ( + + col2 ) ) + - COUNT ( * ) AS col0 FROM tab0
----
-102

query I rowsort
SELECT ALL 12 + + col2 * + ( col0 ) AS col1 FROM tab1
----
4908
5027
6200

query I rowsort
SELECT DISTINCT col1 * + 30 * - + ( col0 ) AS col0 FROM tab0
----
-2910
-36450
-54810

query I rowsort
SELECT - 13 + col2 FROM tab1
----
46
55
83

query I rowsort
SELECT ALL ( - col2 ) * - - col2 AS col0 FROM tab0
----
-100
-2209
-9801

query III rowsort
SELECT * FROM tab1 WHERE - 96 BETWEEN - - col0 AND + - col2
----

query I rowsort
SELECT 22 + - 73 * + 76 AS col1 FROM tab1
----
-5526
-5526
-5526

query I rowsort
SELECT + 74 * col2 + + col0 FROM tab0
----
3493
7423
827

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

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

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT col0 + 39 FROM tab2
----
103
114
85

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

query I rowsort
SELECT + - 37 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 92 * ( - col1 ) col0 FROM tab1 AS cor0
----
-1288
-4324
-460

query I rowsort
SELECT + - 95 AS col1 FROM tab2 cor0
----
-95
-95
-95

query II rowsort
SELECT ALL - 52, col0 * + ( col1 ) AS col0 FROM tab0 cor0
----
-52
1215
-52
1827
-52
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-66
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - CAST( - 29 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-66
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - CAST ( - 29 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT DISTINCT + MAX( - - col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT + MAX ( - - col1 ) AS col1 FROM tab0 AS cor0
----
81

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

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

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

query I rowsort
SELECT + - 46 * - + col0 AS col0 FROM tab1 AS cor0
----
2346
3910
4186

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

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

query II rowsort
SELECT DISTINCT + 18, 77 * col0 AS col0 FROM tab2
----
18
3542
18
4928
18
5775

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

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

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

query II rowsort
SELECT DISTINCT - 3 AS col0, ( + - col0 ) * + col2 FROM tab0
----
-3
-705
-3
-870
-3
-9603

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

onlyif mysql # DIV for integer division: 
query III rowsort label-77
SELECT col1 AS col2, - col0 DIV - col1 + - col0 AS col2, - - 39 * 84 + col1 + + col1 * + 30 AS col0 FROM tab0 AS cor0
----
9 values hashing to 15da073867ef4ca9cc0544f62c2c80c1

skipif mysql # not compatible
query III rowsort label-77
SELECT col1 AS col2, - col0 / - col1 + - col0 AS col2, - - 39 * 84 + col1 + + col1 * + 30 AS col0 FROM tab0 AS cor0
----
9 values hashing to 15da073867ef4ca9cc0544f62c2c80c1

query II rowsort
SELECT + + col1 AS col1, ( 17 ) + + + 95 FROM tab2 cor0
----
51
112
67
112
77
112

query I rowsort
SELECT + + ( - 93 ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IN ( - col1, + 18 * - col1 * 87 )
----
-93
-93
-93

query I rowsort
SELECT - - 37 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

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

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

query I rowsort
SELECT + 91 + + col0 FROM tab1
----
142
176
182

query I rowsort
SELECT - 30 * + - col2 + + - 84 AS col2 FROM tab2
----
1116
1656
606

query I rowsort
SELECT + col0 + 25 AS col2 FROM tab0 AS cor0
----
112
122
40

query I rowsort
SELECT ALL - col1 + col0 * + 32 FROM tab1 AS cor0
----
1618
2715
2865

query I rowsort
SELECT ALL + 24 * - 70 * - 14 + + col2 FROM tab0 AS cor0
----
23530
23567
23619

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

query I rowsort
SELECT DISTINCT - + 40 * + col0 - + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-1794
-2496
-2925

onlyif mysql # DIV for integer division: 
query II rowsort label-89
SELECT ALL col1 + - ( - + col2 ) DIV 89, col1 + col2 AS col1 FROM tab0
----
2
100
21
31
81
128

skipif mysql # not compatible
query II rowsort label-89
SELECT ALL col1 + - ( - + col2 ) / 89, col1 + col2 AS col1 FROM tab0
----
2
100
21
31
81
128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-91
SELECT DISTINCT + MAX( - 8 ) + - 64 - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-91
SELECT DISTINCT + MAX ( - 8 ) + - 64 - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 80 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - col2 + 78 FROM tab1
----
-18
10
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-94
SELECT - ( - - col2 ) + + col0 AS col1 FROM tab1 WHERE ( + CAST( NULL AS DECIMAL ) + - col2 ) IS NULL
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-94
SELECT - ( - - col2 ) + + col0 AS col1 FROM tab1 WHERE ( + CAST ( NULL AS REAL ) + - col2 ) IS NULL
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT + COUNT( * ) + 78 * 95 FROM tab1 cor0
----
7413

skipif mysql # not compatible
query I rowsort label-95
SELECT + COUNT ( * ) + 78 * 95 FROM tab1 cor0
----
7413

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

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

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

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

query I rowsort
SELECT DISTINCT + 6 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
6

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

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL - + COUNT ( - - col1 ) AS col1 FROM tab0 WHERE + col1 <> - CAST ( NULL AS INTEGER )
----
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-102
SELECT ALL COUNT ( + ( + - 51 ) ) col1 FROM tab1 AS cor0
----
3

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 11 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-108
SELECT DISTINCT - COUNT( * ) col2 FROM tab1 WHERE NOT - - col1 NOT BETWEEN + CAST( NULL AS DECIMAL ) - + col0 + + col2 + col2 + + col2 / ( col2 ) + + - col1 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-108
SELECT DISTINCT - COUNT ( * ) col2 FROM tab1 WHERE NOT - - col1 NOT BETWEEN + CAST ( NULL AS REAL ) - + col0 + + col2 + col2 + + col2 / ( col2 ) + + - col1 AND NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT + MIN( - col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-99

skipif mysql # not compatible
query I rowsort label-110
SELECT + MIN ( - col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-99

query II rowsort
SELECT - col1 AS col0, 78 AS col1 FROM tab2
----
-51
78
-67
78
-77
78

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

skipif mysql # not compatible
query I rowsort label-112
SELECT - col1 / - - col0 * + col1 * - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - ( + 60 ) + - col1 FROM tab1
----
-107
-65
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT COUNT( * ) * + 61 + + + 97 AS col1 FROM tab0
----
280

skipif mysql # not compatible
query I rowsort label-114
SELECT COUNT ( * ) * + 61 + + + 97 AS col1 FROM tab0
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT ALL - SUM( + + 90 ) FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL - SUM ( + + 90 ) FROM tab1
----
-270

query I rowsort
SELECT DISTINCT 74 * - col0 + + col1 AS col0 FROM tab0 AS cor0
----
-1029
-6417
-7177

query I rowsort
SELECT DISTINCT - + col2 * 12 * - col2 * + + 34 AS col2 FROM tab0 AS cor0
----
3998808
40800
901272

query I rowsort
SELECT ALL 46 + - + 23 FROM tab2 AS cor0
----
23
23
23

query II rowsort
SELECT ALL col0, + col1 * + 2 + + 28 FROM tab0 cor0
----
15
190
87
70
97
30

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

query I rowsort
SELECT DISTINCT + 35 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 * + ( 7 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-122
SELECT DISTINCT + col2 + + - ( - + col0 ) DIV - col2 FROM tab1 cor0
----
58
67
96

skipif mysql # not compatible
query I rowsort label-122
SELECT DISTINCT + col2 + + - ( - + col0 ) / - col2 FROM tab1 cor0
----
58
67
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 85 >= NULL
----

query I rowsort
SELECT DISTINCT - + 46 * + - 9 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
414

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-125
SELECT ALL + ( + CAST( NULL AS SIGNED ) ), col1 DIV - + 16 + - col1 AS col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-49
NULL
-5

skipif mysql # not compatible
query II rowsort label-125
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ), col1 / - + 16 + - col1 AS col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-49
NULL
-5

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

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

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

query I rowsort
SELECT + - 36 + + col1 AS col0 FROM tab2 cor0
----
15
31
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 85 col0 FROM tab0 WHERE NULL IS NULL
----
3995
8415
850

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

query I rowsort
SELECT + 15 * + 54 * - + col2 * + 38 * + - 37 + - col1 AS col0 FROM tab1
----
109330546
67192735
77442433

query II rowsort
SELECT ALL - + col2 AS col0, - col1 FROM tab2 WHERE NOT - col0 <> + col1 + col1 * + - 92
----

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

query I rowsort
SELECT - + ( col1 ) - - 4 - 5 * - col2 AS col2 FROM tab0 AS cor0
----
158
33
498

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col0 FROM tab2 WHERE + col1 * + 60 - col2 + + ( - col1 ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-139
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) FROM tab1 WHERE + col0 * + col1 <> + 56 - - 15 * - + col0
----
0

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE + col0 * + col1 <> + 56 - - 15 * - + col0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 < - col0
----
75
67
58

query I rowsort
SELECT - + ( + 46 ) FROM tab2 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL ( MIN( - col0 ) ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL ( MIN ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-143
SELECT + CAST( NULL AS SIGNED ) AS col1, + 83 * + - COUNT( * ) FROM tab0 cor0
----
NULL
-249

skipif mysql # not compatible
query II rowsort label-143
SELECT + CAST ( NULL AS INTEGER ) AS col1, + 83 * + - COUNT ( * ) FROM tab0 cor0
----
NULL
-249

query I rowsort
SELECT 34 * + 13 AS col0 FROM tab2
----
442
442
442

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-146
SELECT CAST( NULL AS SIGNED ) / - - COUNT( * ) * + - COUNT( * ) - - - COUNT( * ) FROM tab1 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-146
SELECT CAST ( NULL AS INTEGER ) / - - COUNT ( * ) * + - COUNT ( * ) - - - COUNT ( * ) FROM tab1 WHERE NOT NULL >= NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col0 >= + col0 / - 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 40 * col0 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( col2 )
----

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

skipif mysql # not compatible
query III rowsort label-150
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col1, + 24 * + CAST ( NULL AS INTEGER ) * col0, + ( 98 ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-152
SELECT DISTINCT CAST( NULL AS SIGNED ) * 74 * - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND ( col0 )
----

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 74 * - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND ( col0 )
----

query I rowsort
SELECT - - 53 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND 27
----

query I rowsort
SELECT ALL + 38 + - 15 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT - + 96 DIV - 26 FROM tab1 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-156
SELECT - + 96 / - 26 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT - 61 * - + col1 FROM tab2 AS cor0
----
3111
4087
4697

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT COUNT( * ) * - - 93 FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-158
SELECT COUNT ( * ) * - - 93 FROM tab0 AS cor0
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-159
SELECT DISTINCT + CAST( - col2 AS SIGNED ) * - - col0 * col0 + + - 40 AS col0 FROM tab0 cor0
----
-10615
-75730
-931531

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * - - col0 * col0 + + - 40 AS col0 FROM tab0 cor0
----
-10615
-75730
-931531

query I rowsort
SELECT ALL + ( + + 13 ) + 52 FROM tab0 AS cor0
----
65
65
65

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

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

query I rowsort
SELECT DISTINCT col2 + + 25 * - - col1 AS col1 FROM tab2 AS cor0
----
1298
1733
1965

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-164
SELECT ALL - CAST( + - CAST( + col1 AS SIGNED ) AS SIGNED ) + - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL - CAST ( + - CAST ( + col1 AS INTEGER ) AS INTEGER ) + - col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 - + 77 col1 FROM tab0
----
-1292
-174
-1904

query I rowsort
SELECT DISTINCT 50 * - + col1 FROM tab0
----
-1050
-4050
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 - col2 col1 FROM tab0
----
-1
49
98

query II rowsort
SELECT col2, col0 * + 18 FROM tab2
----
23
828
40
1152
58
1350

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + - 28 * + + col0
----

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

query I rowsort
SELECT + col1 * - 85 AS col1 FROM tab0 AS cor0
----
-1785
-6885
-85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + - col1 NOT IN ( - 14 )
----

query II rowsort
SELECT DISTINCT - 76, + 81 AS col1 FROM tab1 AS cor0
----
-76
81

query II rowsort
SELECT DISTINCT - + 63 AS col2, 69 AS col0 FROM tab2 AS cor0
----
-63
69

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT ( - 67 ) * - + col2 * - - 87 IS NULL
----
51
67
77

query I rowsort
SELECT - 88 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

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

query I rowsort
SELECT + 21 AS col0 FROM tab0 cor0 WHERE NOT + 66 IS NOT NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-182
SELECT + + col1 * + CAST( - + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-182
SELECT + + col1 * + CAST ( - + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL col1 + - col0 - - ( - col2 ) FROM tab1
----
-112
-133
-139

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-184
SELECT ALL + col0 * + + col0 * ( col0 ), + 7 - - - CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
3375
-40
658503
-3
912673
-92

skipif mysql # not compatible
query II rowsort label-184
SELECT ALL + col0 * + + col0 * ( col0 ), + 7 - - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
3375
-40
658503
-3
912673
-92

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

query I rowsort
SELECT ALL 75 * - col1 + 1 AS col0 FROM tab0
----
-1574
-6074
-74

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-188
SELECT DISTINCT + col0 DIV col2 * - - 81, col1 FROM tab0
----
0
1
0
81
648
21

skipif mysql # not compatible
query II rowsort label-188
SELECT DISTINCT + col0 / col2 * - - 81, col1 FROM tab0
----
0
1
0
81
648
21

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col0 col2 FROM tab1 AS cor0
----
37
44
80

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

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

query I rowsort
SELECT DISTINCT + 71 * + col1 AS col1 FROM tab1 AS cor0
----
3337
355
994

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

query I rowsort
SELECT + 48 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

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

skipif mysql # not compatible
query I rowsort label-195
SELECT - COUNT ( * ) * COUNT ( * ) * 67 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-5427

query I rowsort
SELECT ( - 74 ) - - - col0 - - 51 FROM tab2
----
-69
-87
-98

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

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

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

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

query I rowsort
SELECT ALL - + col2 + - - col1 + 22 + + 69 + col2 + col1 + - 1 * - col2 FROM tab2 AS cor0
----
216
283
285

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

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

query I rowsort
SELECT DISTINCT - col1 * + 83 - + - 70 FROM tab0 AS cor0
----
-13
-1673
-6653

query I rowsort
SELECT DISTINCT 58 * - 18 * ( - - col2 ) FROM tab2
----
-24012
-41760
-60552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-203
SELECT ALL CAST( + - col2 AS SIGNED ) col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-203
SELECT ALL CAST ( + - col2 AS INTEGER ) col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT + MIN( + 68 ) FROM tab0 WHERE NOT + col1 IS NULL
----
68

skipif mysql # not compatible
query I rowsort label-204
SELECT + MIN ( + 68 ) FROM tab0 WHERE NOT + col1 IS NULL
----
68

query II rowsort
SELECT DISTINCT col2, col0 + + col1 FROM tab0 WHERE ( NOT ( NOT 93 NOT BETWEEN NULL AND + col0 ) )
----
10
108
47
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT - - COUNT( ALL + col2 ) col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 42 + col1 >= + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 64 * - col2 FROM tab1 AS cor0
----
3776
4352
6144

query I rowsort
SELECT 11 * - col0 FROM tab1 cor0
----
-1001
-561
-935

query I rowsort
SELECT DISTINCT + 41 * - col2 AS col0 FROM tab2
----
-1640
-2378
-943

query I rowsort
SELECT + 12 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query II rowsort
SELECT col2 AS col0, col2 * + col0 + - 27 AS col0 FROM tab1
----
59
4988
68
6161
96
4869

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT DISTINCT - 9 * - - ( + - 52 ) + MAX( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
417

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT - 9 * - - ( + - 52 ) + MAX ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
417

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

query I rowsort
SELECT - - col1 + - 18 FROM tab0 AS cor0
----
-17
3
63

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

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

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

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT col2 / + CAST ( NULL AS INTEGER ) + - ( + + col1 ) AS col0 FROM tab0 cor0 WHERE ( + col0 ) NOT IN ( col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT DISTINCT - + 60 + + - SUM( ALL + - 42 ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT - + 60 + + - SUM ( ALL + - 42 ) FROM tab0 AS cor0
----
66

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * - + col0 + + ( + 94 ) - + 31 * + + col2, - 10 + + col2 col2 FROM tab2 cor0
----
1414
30
2646
48
439
13

query I rowsort
SELECT - col1 * + 42 AS col2 FROM tab2
----
-2142
-2814
-3234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 * + - col0 col0 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT + 20 * - 28 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND - - col1
----

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

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

query I rowsort
SELECT ALL 18 * + col2 AS col1 FROM tab2
----
1044
414
720

query I rowsort
SELECT DISTINCT + 86 + + col0 + - col1 AS col1 FROM tab0 AS cor0
----
152
182
20

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT ( SUM( ALL + + 39 ) ) + + + ( - 47 ) FROM tab1 cor0
----
70

skipif mysql # not compatible
query I rowsort label-229
SELECT ( SUM ( ALL + + 39 ) ) + + + ( - 47 ) FROM tab1 cor0
----
70

query II rowsort
SELECT ALL + 62 + - + col0 AS col0, - 97 * - 67 + - 23 FROM tab2 AS cor0
----
-13
6476
-2
6476
16
6476

onlyif mysql # DIV for integer division: 
query I rowsort label-231
SELECT ( + 41 ) + col2 DIV col1 FROM tab2 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-231
SELECT ( + 41 ) + col2 / col1 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT col2 + + - 96 AS col0 FROM tab0 AS cor0 WHERE + col2 > NULL AND NOT NULL IS NULL
----

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

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

query II rowsort
SELECT DISTINCT - col2 - - 90 * + col0 AS col2, ( 28 ) FROM tab2
----
4117
28
5720
28
6692
28

query I rowsort
SELECT - col0 + - 2 AS col2 FROM tab0
----
-17
-89
-99

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

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

query I rowsort
SELECT + 55 * 98 * + col0 FROM tab1
----
274890
458150
490490

onlyif mysql # aggregate syntax: 
query II rowsort label-238
SELECT - 41 AS col1, COUNT( * ) * + 76 FROM tab0 AS cor0
----
-41
228

skipif mysql # not compatible
query II rowsort label-238
SELECT - 41 AS col1, COUNT ( * ) * + 76 FROM tab0 AS cor0
----
-41
228

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT ALL - 52 + - MAX( + 39 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL - 52 + - MAX ( + 39 ) FROM tab1 AS cor0
----
-91

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

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

skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT - ( + CAST ( - 10 AS INTEGER ) ) / + col2 * - - col0 * - col0 AS col1 FROM tab1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-243
SELECT + 76 DIV + col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-243
SELECT + 76 / + col2 AS col1 FROM tab1
----
0
1
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-244
SELECT - CAST ( + 42 AS INTEGER ) col2 FROM tab1
----
-42
-42
-42

query II rowsort
SELECT col2 AS col1, - col0 AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ( - - 93 ) AS col1 FROM tab2
----
93
93
93

query I rowsort
SELECT col0 * - 34 AS col0 FROM tab2
----
-1564
-2176
-2550

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-250
SELECT DISTINCT - SUM( - col2 ) AS col0, + COUNT( * ) * - 17 AS col0 FROM tab1 AS cor0
----
223
-51

skipif mysql # not compatible
query II rowsort label-250
SELECT DISTINCT - SUM ( - col2 ) AS col0, + COUNT ( * ) * - 17 AS col0 FROM tab1 AS cor0
----
223
-51

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

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

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

query I rowsort
SELECT AVG ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < + col2
----
NULL

query I rowsort
SELECT + ( + 57 ) FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT ALL col1 + - 24 AS col1 FROM tab0 cor0
----
-23
-3
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-256
SELECT ALL col2, + col2 + - 21 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-256
SELECT ALL col2, + col2 + - 21 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT DISTINCT 87 + COUNT( * ) FROM tab1 cor0
----
90

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT 87 + COUNT ( * ) FROM tab1 cor0
----
90

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

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

query I rowsort
SELECT col2 * + + col0 * + - col2 * - col1 + - 91 FROM tab1
----
1479334
19776757
6580133

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

onlyif mysql # DIV for integer division: 
query I rowsort label-261
SELECT 96 * col0 DIV - - col2 + - - ( 68 ) FROM tab1
----
119
196
206

skipif mysql # not compatible
query I rowsort label-261
SELECT 96 * col0 / - - col2 + - - ( 68 ) FROM tab1
----
119
196
206

query I rowsort
SELECT + 81 + - 0 + + - col2 AS col2 FROM tab2
----
23
41
58

onlyif mysql # DIV for integer division: 
query II rowsort label-263
SELECT ALL - 57 + col2 * col0 + + - col2 AS col1, - col2 DIV - + col0 AS col0 FROM tab2
----
2463
0
4235
0
978
0

skipif mysql # not compatible
query II rowsort label-263
SELECT ALL - 57 + col2 * col0 + + - col2 AS col1, - col2 / - + col0 AS col0 FROM tab2
----
2463
0
4235
0
978
0

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

query I rowsort
SELECT - col2 * col2 + - - col1 AS col0 FROM tab2
----
-1523
-3297
-478

query I rowsort
SELECT 95 + - col2 - - col0 AS col0 FROM tab2
----
112
118
119

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

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

query I rowsort
SELECT DISTINCT col1 + - col0 + + - col1 AS col1 FROM tab2
----
-46
-64
-75

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

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

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

query I rowsort
SELECT + 79 * - col2 - + col0 + - col0 FROM tab0
----
-3743
-8015
-964

query II rowsort
SELECT ALL + 46 * + + 82, - ( 0 ) AS col1 FROM tab0
----
3772
0
3772
0
3772
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-275
SELECT DISTINCT - ( - CAST( - col0 AS SIGNED ) ) DIV + col2 + + 68 FROM tab2 AS cor0
----
66
67

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT - ( - CAST ( - col0 AS INTEGER ) ) / + col2 + + 68 FROM tab2 AS cor0
----
66
67

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - - col0 col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT - COUNT( * ) * 3 - 11 + - 42 AS col1 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-278
SELECT - COUNT ( * ) * 3 - 11 + - 42 AS col1 FROM tab0 AS cor0
----
-62

query I rowsort
SELECT 68 * col1 FROM tab1 AS cor0
----
3196
340
952

onlyif mysql # DIV for integer division: 
query I rowsort label-280
SELECT + col0 DIV - + ( 64 ) + - col0 FROM tab0 AS cor0
----
-15
-88
-98

skipif mysql # not compatible
query I rowsort label-280
SELECT + col0 / - + ( 64 ) + - col0 FROM tab0 AS cor0
----
-15
-88
-98

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

skipif mysql # not compatible
query I rowsort label-281
SELECT DISTINCT 19 / + COUNT ( * ) FROM tab2
----
6

query II rowsort
SELECT + col1, + 26 FROM tab0
----
1
26
21
26
81
26

query II rowsort
SELECT + 62, + col0 AS col2 FROM tab1
----
62
51
62
85
62
91

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

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

query II rowsort
SELECT 67 AS col2, - col0 * col0 FROM tab2 AS cor0
----
67
-2116
67
-4096
67
-5625

query II rowsort
SELECT DISTINCT + - col1 AS col1, col1 - - col0 + + - 57 * 61 * - col1 FROM tab1 AS cor0
----
-14
48743
-47
163557
-5
17475

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-288
SELECT DISTINCT ( col1 ) * - CAST( 58 AS SIGNED ), + col2 + + - col0 FROM tab2 WHERE NOT NULL > 49
----

skipif mysql # not compatible
query II rowsort label-288
SELECT DISTINCT ( col1 ) * - CAST ( 58 AS INTEGER ), + col2 + + - col0 FROM tab2 WHERE NOT NULL > 49
----

query I rowsort
SELECT ( + 70 ) + + - col0 AS col1 FROM tab0
----
-17
-27
55

query III rowsort
SELECT * FROM tab2 WHERE + + 3 <> NULL
----

query I rowsort
SELECT + + 6 + + + col2 * ( 93 ) FROM tab0 AS cor0
----
4377
9213
936

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT DISTINCT + ( - + SUM( ALL - 71 ) ) FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT + ( - + SUM ( ALL - 71 ) ) FROM tab2 AS cor0
----
213

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

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

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

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

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

query I rowsort
SELECT DISTINCT 37 - - col2 FROM tab1
----
105
133
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 - + 13 - - + col2 - - col0 < + ( - ( - col2 ) )
----
87
21
10
97
1
99

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-300
SELECT CAST( - + COUNT( * ) AS SIGNED ) * + 99 AS col1 FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-300
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) * + 99 AS col1 FROM tab1
----
-297

query I rowsort
SELECT + col2 - - 82 FROM tab2
----
105
122
140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 - - - col2 col2 FROM tab0
----
-106
-158
-69

query I rowsort
SELECT 33 + + col0 + col1 FROM tab0 AS cor0
----
129
131
141

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT DISTINCT 97 + COUNT( * ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-304
SELECT DISTINCT 97 + COUNT ( * ) FROM tab0 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT - + COUNT( * ) FROM tab0 WHERE NOT - 68 * col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-305
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT - 68 * col1 <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 * col2 col1 FROM tab1
----
-2124
-2448
-3456

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-308
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 * CAST( + - col1 AS SIGNED ) - - col1 ) IN ( col2, + col2, + 42 )
----

skipif mysql # not compatible
query III rowsort label-308
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 * CAST ( + - col1 AS INTEGER ) - - col1 ) IN ( col2, + col2, + 42 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT - MIN( ( - 77 ) ) AS col2 FROM tab1 cor0
----
77

skipif mysql # not compatible
query I rowsort label-311
SELECT - MIN ( ( - 77 ) ) AS col2 FROM tab1 cor0
----
77

query II rowsort
SELECT + col0 AS col0, col2 * + - col2 AS col2 FROM tab0 AS cor0
----
15
-2209
87
-100
97
-9801

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

query I rowsort
SELECT DISTINCT col0 * - - col0 AS col2 FROM tab0 cor0
----
225
7569
9409

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

query I rowsort
SELECT 94 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-318
SELECT ALL MIN( ALL - col1 ) * CAST( + 8 AS SIGNED ) AS col1 FROM tab0
----
-648

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL MIN ( ALL - col1 ) * CAST ( + 8 AS INTEGER ) AS col1 FROM tab0
----
-648

query I rowsort
SELECT ALL - ( - + col2 ) + 54 FROM tab0 AS cor0
----
101
153
64

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 71 ) col1 FROM tab0
----
-71
-71
-71

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 34 - + - col0 >= ( NULL )
----

query I rowsort
SELECT ALL 32 + - - col0 * + col0 * - + col1 FROM tab2 AS cor0
----
-107884
-315360
-376843

query I rowsort
SELECT DISTINCT - 30 + - - col0 + + col2 FROM tab2 AS cor0
----
103
39
74

query I rowsort
SELECT DISTINCT 90 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-328
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - AVG ( - 15 ) - - COUNT( * ) FROM tab2 AS cor0 WHERE + 47 * - 81 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - AVG ( - 15 ) - - COUNT ( * ) FROM tab2 AS cor0 WHERE + 47 * - 81 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-329
SELECT DISTINCT 68 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT 68 + + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-330
SELECT + 92 * - CAST( + 83 AS SIGNED ) + - col2 col1 FROM tab0
----
-7646
-7683
-7735

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-330
SELECT + 92 * - CAST ( + 83 AS INTEGER ) + - col2 col1 FROM tab0
----
-7646
-7683
-7735

query I rowsort
SELECT col0 + + col0 + + + col0 FROM tab2
----
138
192
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-332
SELECT col2 + + CAST( - 81 AS SIGNED ) * col1 FROM tab1
----
-1038
-346
-3739

skipif mysql # not compatible
query I rowsort label-332
SELECT col2 + + CAST ( - 81 AS INTEGER ) * col1 FROM tab1
----
-1038
-346
-3739

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + 27 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 IN ( + col0 + + 31 + 59, - col1 * col2, - - col0 )
----

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

query I rowsort
SELECT ALL - + 60 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-337
SELECT - COUNT( * ) DIV - SUM( + col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-337
SELECT - COUNT ( * ) / - SUM ( + col2 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-338
SELECT ALL - COUNT( + 57 ), + 16 AS col0 FROM tab0 WHERE NOT ( col1 NOT IN ( col0, 6 ) )
----
0
16

skipif mysql # not compatible
query II rowsort label-338
SELECT ALL - COUNT ( + 57 ), + 16 AS col0 FROM tab0 WHERE NOT ( col1 NOT IN ( col0, 6 ) )
----
0
16

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) = NULL
----

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

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

query I rowsort
SELECT - 16 * - - col1 FROM tab0 cor0
----
-1296
-16
-336

query I rowsort
SELECT DISTINCT - 83 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= col2 * + - col0 * + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT - - 38 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-344
SELECT - - 38 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
114

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-346
SELECT + col2 AS col0, col0 DIV col0 DIV + + 55 AS col0 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-346
SELECT + col2 AS col0, col0 / col0 / + + 55 AS col0 FROM tab2
----
23
0
40
0
58
0

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-348
SELECT - col2 DIV + - CAST( + col2 AS SIGNED ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-348
SELECT - col2 / + - CAST ( + col2 AS INTEGER ) FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 37 * - 68 ) = + col2 + - - 52
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query II rowsort label-350
SELECT - col2, col1 / - 81 + col2 AS col1 FROM tab1
----
-59
59
-68
68
-96
96

query I rowsort
SELECT ALL 59 * + col0 * - col0 AS col0 FROM tab1
----
-153459
-426275
-488579

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

query I rowsort
SELECT - col1 * 25 AS col1 FROM tab2
----
-1275
-1675
-1925

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

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

query I rowsort
SELECT - col1 * col0 - + col1 AS col2 FROM tab1 AS cor0
----
-430
-4324
-728

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-356
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0 WHERE 72 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-356
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0 WHERE 72 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL - col0 + + - 56, col0 FROM tab2 AS cor0
----
-102
46
-120
64
-131
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 17 * col2 >= NULL
----

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

query II rowsort
SELECT DISTINCT - col1 - + col1 + - col1 * - col0 + - col1 * + 49 AS col1, - 87 FROM tab2
----
-255
-87
1001
-87
1608
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT ALL 30 + + + COUNT( * ) AS col1 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL 30 + + + COUNT ( * ) AS col1 FROM tab0
----
33

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

skipif mysql # not compatible
query I rowsort label-362
SELECT - COUNT ( * ) - - 69 + 68 FROM tab2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT ALL 32 - - COUNT( * ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-363
SELECT ALL 32 - - COUNT ( * ) FROM tab1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT 56 + - COUNT( * ) FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-364
SELECT 56 + - COUNT ( * ) FROM tab1
----
53

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-367
SELECT 73 / - COUNT ( * ) col1 FROM tab1 AS cor0
----
-24

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

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

query I rowsort
SELECT DISTINCT + 5 FROM tab1 WHERE NOT ( NULL ) IN ( - col1 * + 62 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 < col1
----

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

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

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

query I rowsort
SELECT DISTINCT col2 - - 8 FROM tab1
----
104
67
76

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 93 * 57 ) NOT IN ( + col1 )
----

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

query I rowsort
SELECT DISTINCT - col2 + ( + 2 + 46 ) AS col0 FROM tab1
----
-11
-20
-48

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND 52 - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-380
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab1 WHERE ( - CAST( col2 AS SIGNED ) ) BETWEEN NULL AND ( CAST( col0 AS SIGNED ) + col0 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-380
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE ( - CAST ( col2 AS INTEGER ) ) BETWEEN NULL AND ( CAST ( col0 AS INTEGER ) + col0 * - col0 )
----
0

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

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

query I rowsort
SELECT + 79 + col0 AS col1 FROM tab1
----
130
164
170

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT - MAX( DISTINCT - 11 ) + + 97 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-384
SELECT - MAX ( DISTINCT - 11 ) + + 97 FROM tab2
----
108

query I rowsort
SELECT ALL col1 * - col1 AS col1 FROM tab1 WHERE NOT NULL > - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT DISTINCT - COUNT( * ) + 64 AS col1 FROM tab0 WHERE NOT 43 / col1 <> col1
----
64

skipif mysql # not compatible
query I rowsort label-386
SELECT DISTINCT - COUNT ( * ) + 64 AS col1 FROM tab0 WHERE NOT 43 / col1 <> col1
----
64

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

query I rowsort
SELECT - 38 * - col2 + - col1 * col2 FROM tab1
----
-612
1947
2304

query I rowsort
SELECT col0 * - col0 + - col1 AS col1 FROM tab1
----
-2615
-7230
-8328

query I rowsort
SELECT DISTINCT ( - col2 ) + - ( - 88 + + 45 ) AS col2 FROM tab2
----
-15
20
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-391
SELECT ALL * FROM tab0 WHERE ( CAST( + ( 47 ) AS SIGNED ) ) / col1 = ( - 0 + + col2 )
----

skipif mysql # not compatible
query III rowsort label-391
SELECT ALL * FROM tab0 WHERE ( CAST ( + ( 47 ) AS INTEGER ) ) / col1 = ( - 0 + + col2 )
----

query I rowsort
SELECT - 39 * + col0 AS col1 FROM tab0
----
-3393
-3783
-585

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

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL 50 - MAX ( + col2 ) FROM tab2
----
-8

query I rowsort
SELECT + 28 * 6 AS col1 FROM tab2
----
168
168
168

query I rowsort
SELECT - 45 + 15 FROM tab0
----
-30
-30
-30

query I rowsort
SELECT - col2 + + col0 * 41 AS col0 FROM tab1
----
1995
3426
3663

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-399
SELECT ALL * FROM tab1 AS cor0 WHERE 44 = CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-399
SELECT ALL * FROM tab1 AS cor0 WHERE 44 = CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-400
SELECT * FROM tab1 AS cor0 WHERE - col0 < ( CAST( col2 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-400
SELECT * FROM tab1 AS cor0 WHERE - col0 < ( CAST ( col2 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 84 * - col1 AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
-1176
-3948
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT - MIN( + col1 ) - 55 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-402
SELECT - MIN ( + col1 ) - 55 FROM tab0
----
-56

query I rowsort
SELECT - 89 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT DISTINCT - - COUNT( * ) + 64 AS col0 FROM tab0 cor0
----
67

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT - - COUNT ( * ) + 64 AS col0 FROM tab0 cor0
----
67

query I rowsort
SELECT ALL + col0 - + 41 AS col1 FROM tab2 AS cor0
----
23
34
5

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT - 89 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-409
SELECT - 89 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT col1 * + col1 FROM tab1 AS cor0 WHERE NULL >= + 64 - - col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT DISTINCT COUNT( * ) - SUM( 18 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT COUNT ( * ) - SUM ( 18 ) AS col0 FROM tab1
----
-51

query I rowsort
SELECT ALL + 31 * + + 95 * + col1 + 82 AS col0 FROM tab1
----
138497
14807
41312

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT - COUNT( * ) * - 67 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-414
SELECT - COUNT ( * ) * - 67 FROM tab2
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-415
SELECT ALL * FROM tab0 WHERE ( - col1 ) IN ( CAST( - ( + col1 ) AS SIGNED ) * 12 + col0 )
----

skipif mysql # not compatible
query III rowsort label-415
SELECT ALL * FROM tab0 WHERE ( - col1 ) IN ( CAST ( - ( + col1 ) AS INTEGER ) * 12 + col0 )
----

query I rowsort
SELECT DISTINCT + 3 - 76 AS col1 FROM tab2
----
-73

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / - 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL - 81 * + COUNT( * ) * MIN( DISTINCT + col2 * 31 ) FROM tab0 AS cor0
----
-75330

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL - 81 * + COUNT ( * ) * MIN ( DISTINCT + col2 * 31 ) FROM tab0 AS cor0
----
-75330

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

query I rowsort
SELECT ALL col2 * col2 + col2 AS col1 FROM tab2 AS cor0
----
1640
3422
552

onlyif mysql # DIV for integer division: 
query I rowsort label-422
SELECT DISTINCT + + 81 DIV col0 + + col2 * - col2 FROM tab1 cor0
----
-3481
-4624
-9215

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT + + 81 / col0 + + col2 * - col2 FROM tab1 cor0
----
-3481
-4624
-9215

query I rowsort
SELECT 97 * + + col0 + + col1 FROM tab1 AS cor0
----
4961
8250
8874

query I rowsort
SELECT + 80 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT DISTINCT + MAX( + 65 ) * - COUNT( * ) FROM tab2, tab0 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-426
SELECT DISTINCT + MAX ( + 65 ) * - COUNT ( * ) FROM tab2, tab0 AS cor0
----
-585

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE + 36 <> - 79
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= + 86 - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, - col0 - - 45 * + col0 FROM tab0 AS cor0
----
10
3828
47
660
99
4268

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-432
SELECT DISTINCT + 69 DIV + CAST( - - col2 AS SIGNED ) + 83 FROM tab0 AS cor0
----
83
84
89

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT + 69 / + CAST ( - - col2 AS INTEGER ) + 83 FROM tab0 AS cor0
----
83
84
89

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT ALL - COUNT( * ) * - - 71 + COUNT( * ) FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL - COUNT ( * ) * - - 71 + COUNT ( * ) FROM tab2 AS cor0
----
-210

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

query I rowsort
SELECT - 17 AS col1 FROM tab2 WHERE NOT col1 * + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 72 ) <> 95
----

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

query I rowsort
SELECT col0 * col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
2601
7225
8281

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

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

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

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

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

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

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

query I rowsort
SELECT + 29 + - col2 * col2 FROM tab1 AS cor0
----
-3452
-4595
-9187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-448
SELECT DISTINCT - 86 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) >= ( - + 38 )
----

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT - 86 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) >= ( - + 38 )
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-450
SELECT - - col2 + + col2 AS col2, + col0 DIV - 46 + 34 FROM tab1 AS cor0
----
118
33
136
33
192
33

skipif mysql # not compatible
query II rowsort label-450
SELECT - - col2 + + col2 AS col2, + col0 / - 46 + 34 FROM tab1 AS cor0
----
118
33
136
33
192
33

query III rowsort
SELECT * FROM tab0 WHERE + + col0 NOT BETWEEN - col2 AND - - 59
----
87
21
10
97
1
99

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

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

query I rowsort
SELECT DISTINCT - 64 + + + 34 AS col0 FROM tab0
----
-30

query I rowsort
SELECT + + 48 * + 43 FROM tab1 AS cor0
----
2064
2064
2064

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 30 IN ( + 37 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-456
SELECT ALL CAST( + ( - col0 ) AS SIGNED ) + - 36 + 0 DIV 41 col1 FROM tab2 AS cor0
----
-100
-111
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-456
SELECT ALL CAST ( + ( - col0 ) AS INTEGER ) + - 36 + 0 / 41 col1 FROM tab2 AS cor0
----
-100
-111
-82

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

skipif mysql # not compatible
query I rowsort label-457
SELECT - 62 / 92 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + 42 * - 5 FROM tab0 AS cor0
----
-210
-210
-210

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-460
SELECT - + col0 DIV + 93 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-460
SELECT - + col0 / + 93 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-461
SELECT + ( 29 ) DIV 27 * - + col0 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-461
SELECT + ( 29 ) / 27 * - + col0 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-462
SELECT + CAST( + 50 AS SIGNED ) * 98 AS col2 FROM tab2 AS cor0 WHERE col2 + - CAST( NULL AS SIGNED ) <= ( - 30 )
----

skipif mysql # not compatible
query I rowsort label-462
SELECT + CAST ( + 50 AS INTEGER ) * 98 AS col2 FROM tab2 AS cor0 WHERE col2 + - CAST ( NULL AS INTEGER ) <= ( - 30 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT ALL COUNT( * ) + + 83 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL COUNT ( * ) + + 83 FROM tab1 AS cor0
----
86

query I rowsort
SELECT + - col0 - 17 FROM tab2 AS cor0
----
-63
-81
-92

query I rowsort
SELECT ALL - 35 + - 2 + + col0 AS col2 FROM tab1 AS cor0
----
14
48
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-467
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN CAST( + + col0 AS SIGNED ) / 34 AND - ( - ( + 51 ) ) AND ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-467
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN CAST ( + + col0 AS INTEGER ) / 34 AND - ( - ( + 51 ) ) AND ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-468
SELECT - + CAST( NULL AS DECIMAL ) + col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-468
SELECT - + CAST ( NULL AS REAL ) + col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-470
SELECT + COUNT ( * ) FROM tab0 WHERE NOT ( + 53 * + col2 * + 73 ) IS NOT NULL
----
0

query II rowsort
SELECT + col2 AS col0, + 93 FROM tab0
----
10
93
47
93
99
93

query II rowsort
SELECT ALL + col0 AS col2, col0 + - - 75 + + col0 FROM tab0
----
15
105
87
249
97
269

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT 30 * - ( - COUNT( * ) ) AS col1 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-473
SELECT 30 * - ( - COUNT ( * ) ) AS col1 FROM tab1
----
90

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

skipif mysql # not compatible
query II rowsort label-474
SELECT ALL col0 AS col2, + ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT ALL + 35 * - - COUNT( * ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL + 35 * - - COUNT ( * ) FROM tab1
----
105

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-478
SELECT ALL - ( + ( - - CAST( - col0 AS SIGNED ) ) ) AS col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL - ( + ( - - CAST ( - col0 AS INTEGER ) ) ) AS col0 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT + 8 * + + col0 FROM tab1 cor0
----
408
680
728

query I rowsort
SELECT - col0 * - - col0 * - 48 FROM tab1
----
124848
346800
397488

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-482
SELECT + - col1 AS col0 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-482
SELECT + - col1 AS col0 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT + col1 / - col1 AS col1 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT col2 * - col2 AS col2 FROM tab0 AS cor0 WHERE NOT 52 IN ( + - col1 + 27 * + 48 * + - 88 )
----
-100
-2209
-9801

query I rowsort
SELECT ALL + col1 * + 15 FROM tab2 AS cor0
----
1005
1155
765

query II rowsort
SELECT ALL - col2 + col2, col1 AS col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

query I rowsort
SELECT DISTINCT + 30 * - + col1 * - col1 AS col2 FROM tab1 AS cor0
----
5880
66270
750

query I rowsort
SELECT DISTINCT 49 + - col0 * - col0 AS col2 FROM tab0 AS cor0
----
274
7618
9458

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( 73, col0 * + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-489
SELECT + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( 73, col0 * + col2 )
----
0

query I rowsort
SELECT ALL + col0 * + 85 + ( - - 18 ) AS col0 FROM tab2 AS cor0
----
3928
5458
6393

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

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

query I rowsort
SELECT + col1 + - 75 FROM tab2
----
-24
-8
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - col1 * - col2 AS col1, 17 col0 FROM tab1
----
1358
17
300
17
3243
17

query I rowsort
SELECT 21 + - 94 AS col2 FROM tab1
----
-73
-73
-73

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT ALL SUM( 30 ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-497
SELECT ALL SUM ( 30 ) FROM tab2
----
90

query I rowsort
SELECT ALL - 35 + - col1 + - col0 FROM tab1
----
-100
-125
-173

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-500
SELECT * FROM tab2 WHERE - - 45 IN ( ( - - CAST( - 60 AS SIGNED ) ) + - 92 )
----

skipif mysql # not compatible
query III rowsort label-500
SELECT * FROM tab2 WHERE - - 45 IN ( ( - - CAST ( - 60 AS INTEGER ) ) + - 92 )
----

query I rowsort
SELECT DISTINCT 73 + - 95 AS col0 FROM tab1 cor0
----
-22

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 NOT BETWEEN - 69 - 11 AND 26 * - 14 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT DISTINCT - 41 + MIN( + + 61 ) AS col2 FROM tab2, tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-503
SELECT DISTINCT - 41 + MIN ( + + 61 ) AS col2 FROM tab2, tab0 AS cor0
----
20

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 NOT BETWEEN - col2 AND - 33 / - 2 + + ( 90 )
----

query I rowsort
SELECT + 39 + - col1 FROM tab0 AS cor0
----
-42
18
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-508
SELECT + CAST( + COUNT( * ) AS SIGNED ) + COUNT( DISTINCT 79 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 * ( + col0 ) + - col0 * + 64 IN ( + 3 )
----
4

skipif mysql # not compatible
query I rowsort label-508
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + COUNT ( DISTINCT 79 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 * ( + col0 ) + - col0 * + 64 IN ( + 3 )
----
4

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 20 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-513
SELECT - col0 AS col2, + ( + - CAST( col1 AS SIGNED ) ) + col0 FROM tab1
----
-51
37
-85
80
-91
44

skipif mysql # not compatible
query II rowsort label-513
SELECT - col0 AS col2, + ( + - CAST ( col1 AS INTEGER ) ) + col0 FROM tab1
----
-51
37
-85
80
-91
44

query I rowsort
SELECT DISTINCT 68 * col1 * + 63 AS col2 FROM tab1
----
201348
21420
59976

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 84 * - 20 BETWEEN + 2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * + + 97 AS col2 FROM tab0
----
1455
8439
9409

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

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

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

query I rowsort
SELECT - + 58 * 77 * col2 + + col2 FROM tab0 AS cor0
----
-209855
-442035
-44650

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 + - col2 IS NULL
----
-46
-64
-75

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

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

query I rowsort
SELECT ( + - 30 ) + - col2 AS col1 FROM tab0 AS cor0
----
-129
-40
-77

query I rowsort
SELECT - col1 + 44 * + col2 + - col2 / - - col1 / - col2 + - - col1 AS col0 FROM tab2 cor0 WHERE - ( + 66 ) IN ( - 83 )
----

query II rowsort
SELECT - col1 AS col2, + 58 FROM tab0 AS cor0
----
-1
58
-21
58
-81
58

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

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

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

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-528
SELECT ALL * FROM tab1 AS cor0 WHERE - 27 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-528
SELECT ALL * FROM tab1 AS cor0 WHERE - 27 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( + + col0 BETWEEN + 25 * col1 * + + col2 * col1 - + 11 + + ( - col1 ) - - col1 AND ( col2 ) + - 59 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + 3 * + 31 * - + col0 * col0 col0 FROM tab1
----
241944
672010
770224

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-534
SELECT col0 + + CAST( 3 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
100
18
90

skipif mysql # not compatible
query I rowsort label-534
SELECT col0 + + CAST ( 3 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
100
18
90

onlyif mysql # DIV for integer division: 
query I rowsort label-535
SELECT - 19 DIV + col2 FROM tab0 AS cor0 WHERE + 16 IS NOT NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-535
SELECT - 19 / + col2 FROM tab0 AS cor0 WHERE + 16 IS NOT NULL
----
-1
0
0

query I rowsort
SELECT DISTINCT + col2 + + 31 - + 86 AS col1 FROM tab1 AS cor0
----
13
4
41

query I rowsort
SELECT + + col1 + 6 FROM tab1 AS cor0
----
11
20
53

query I rowsort
SELECT col2 * + 56 + col0 + - - col2 AS col0 FROM tab1 AS cor0
----
3448
3967
5523

onlyif mysql # aggregate syntax: 
query II rowsort label-539
SELECT + MAX( DISTINCT + col2 ) * - 28, - 0 * - 97 AS col1 FROM tab2 AS cor0
----
-1624
0

skipif mysql # not compatible
query II rowsort label-539
SELECT + MAX ( DISTINCT + col2 ) * - 28, - 0 * - 97 AS col1 FROM tab2 AS cor0
----
-1624
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT ALL + + SUM( DISTINCT + 16 ) AS col1 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL + + SUM ( DISTINCT + 16 ) AS col1 FROM tab2 AS cor0
----
16

query I rowsort
SELECT 99 * + - 29 FROM tab2
----
-2871
-2871
-2871

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT DISTINCT + 41 * COUNT( * ) col0 FROM tab0
----
123

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

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT ALL COUNT( * ) * + 78 * 16 FROM tab2
----
3744

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL COUNT ( * ) * + 78 * 16 FROM tab2
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT ALL + COUNT( * ) * 32 AS col1 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL + COUNT ( * ) * 32 AS col1 FROM tab2
----
96

query I rowsort
SELECT DISTINCT + 34 AS col1 FROM tab0, tab2 AS cor0
----
34

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

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT 38 * - + CAST ( - + MAX ( DISTINCT - col1 ) AS INTEGER ) AS col1 FROM tab0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT ALL - 36 + + + COUNT( * ) * + - 86 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL - 36 + + + COUNT ( * ) * + - 86 FROM tab1
----
-294

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-550
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 + + 90 > ( + - 79 * col0 * ( col1 ) * 5 / col2 * - CAST( + + col0 AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-550
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 + + 90 > ( + - 79 * col0 * ( col1 ) * 5 / col2 * - CAST ( + + col0 AS INTEGER ) + col0 )
----

query I rowsort
SELECT ALL + + col0 * + 39 * + col1 + + 17 AS col1 FROM tab2 AS cor0
----
192209
195992
91511

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IS NULL OR ( + - ( + + col1 ) ) IN ( - col1, ( + ( + 21 ) ) * + 0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT * FROM tab0 WHERE ( + 98 ) <= - col0
----

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

query III rowsort
SELECT * FROM tab1 WHERE + 33 / - col2 NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL COUNT( * ) FROM tab0 WHERE NULL IN ( + col0 + - col2 - - - ( + 22 ) )
----
0

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL COUNT ( * ) FROM tab0 WHERE NULL IN ( + col0 + - col2 - - - ( + 22 ) )
----
0

query I rowsort
SELECT DISTINCT - col1 * - col2 - - col0 FROM tab0
----
196
297
3822

query I rowsort
SELECT - col2 + - col0 - - col2 - - col1 FROM tab2
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-560
SELECT ALL 38 DIV - + col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL 38 / - + col2 FROM tab2
----
-1
0
0

query III rowsort
SELECT * FROM tab1 WHERE - col2 < - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 17 + 20 + col0 * + 65 * + 81 * col0 FROM tab0
----
1184662
39850822
49538422

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 * - - 93 col1 FROM tab0
----
-7812
-7812
-7812

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

onlyif mysql # aggregate syntax: 
query II rowsort label-566
SELECT + ( - - 48 ) AS col1, COUNT( + 72 ) FROM tab2 AS cor0 WHERE ( - + ( 68 ) IS NOT NULL )
----
48
3

skipif mysql # not compatible
query II rowsort label-566
SELECT + ( - - 48 ) AS col1, COUNT ( + 72 ) FROM tab2 AS cor0 WHERE ( - + ( 68 ) IS NOT NULL )
----
48
3

query I rowsort
SELECT DISTINCT - col0 * col2 + + col1 FROM tab0 cor0
----
-624
-849
-9602

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

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

query I rowsort
SELECT - 46 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

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

query I rowsort
SELECT + col2 * col2 - col0 * - col2 AS col0 FROM tab0 AS cor0
----
19404
2914
970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-573
SELECT DISTINCT + - CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-573
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

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

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

query II rowsort
SELECT DISTINCT + - col0 + ( + + col2 ) * - + col2 * + col0, + col0 FROM tab2 WHERE ( NOT NULL >= 16 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT ALL ( + SUM( - 91 ) ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL ( + SUM ( - 91 ) ) FROM tab1
----
-273

query I rowsort
SELECT + 81 + 19 AS col0 FROM tab1
----
100
100
100

query III rowsort
SELECT * FROM tab2 WHERE - 41 IS NULL
----

query II rowsort
SELECT - ( - 61 ) AS col2, 12 FROM tab1 AS cor0
----
61
12
61
12
61
12

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-583
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-583
SELECT + - col1 / + col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col1 + 73 * - ( + col0 ) + + - 99 FROM tab1 AS cor0
----
-3836
-6309
-6789

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-585
SELECT - 76 DIV CAST( - COUNT( DISTINCT - + col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-585
SELECT - 76 / CAST ( - COUNT ( DISTINCT - + col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL + COUNT( * ) + + MIN( ALL + col2 ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL + COUNT ( * ) + + MIN ( ALL + col2 ) FROM tab1 AS cor0
----
62

query I rowsort
SELECT ALL - + col2 + - 8 AS col0 FROM tab0 AS cor0
----
-107
-18
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - - 64 + - + 38 + - 25 * - col1 * 27 col1 FROM tab0 AS cor0
----
14222
54782
702

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

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

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

query I rowsort
SELECT - - col2 + + col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
100
128
31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-594
SELECT ALL col2 DIV - - col1 - - ( + col0 ) AS col1 FROM tab1
----
57
92
96

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL col2 / - - col1 - - ( + col0 ) AS col1 FROM tab1
----
57
92
96

query I rowsort
SELECT DISTINCT col1 + - + 51 FROM tab1
----
-37
-4
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-596
SELECT ALL + CAST( - 35 AS SIGNED ) * - 84 - - - col2 FROM tab1
----
2844
2872
2881

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL + CAST ( - 35 AS INTEGER ) * - 84 - - - col2 FROM tab1
----
2844
2872
2881

query I rowsort
SELECT + 25 * + 40 - + col1 + col2 + - + col1 * - + col0 * 85 * 13 FROM tab2 WHERE + + 77 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT 83 + + + COUNT( * ) + - 42 AS col1 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-599
SELECT 83 + + + COUNT ( * ) + - 42 AS col1 FROM tab0
----
44

query II rowsort
SELECT - 49 AS col0, 68 * + 48 AS col2 FROM tab1
----
-49
3264
-49
3264
-49
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT ALL + MAX( ALL + + 26 ) FROM tab2, tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL + MAX ( ALL + + 26 ) FROM tab2, tab1 AS cor0
----
26

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-603
SELECT + CAST( NULL AS SIGNED ), + col1 - col1 AS col1 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-603
SELECT + CAST ( NULL AS INTEGER ), + col1 - col1 AS col1 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 + + - 36 + - 12 NOT BETWEEN 81 AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN col1 * - 74 AND 40
----

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

query I rowsort
SELECT ALL + + col1 * - ( - col0 ) + - + ( + - col1 ) / + - 72 + + col1 FROM tab2 WHERE col1 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-608
SELECT CAST( - COUNT( * ) AS SIGNED ) FROM tab1 WHERE NOT - col2 + col0 + + 88 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-608
SELECT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NOT - col2 + col0 + + 88 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-609
SELECT 30 DIV + 48 AS col2, col2 + + col1 FROM tab2
----
0
117
0
125
0
74

skipif mysql # not compatible
query II rowsort label-609
SELECT 30 / + 48 AS col2, col2 + + col1 FROM tab2
----
0
117
0
125
0
74

query I rowsort
SELECT col0 * + - 97 AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
-1455
-8439
-9409

query I rowsort
SELECT ALL col1 * col0 AS col1 FROM tab2 WHERE NOT NULL IN ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT col1 + col2 DIV + + 62 + + 91 FROM tab1
----
106
139
96

skipif mysql # not compatible
query I rowsort label-612
SELECT col1 + col2 / + + 62 + + 91 FROM tab1
----
106
139
96

onlyif mysql # DIV for integer division: 
query II rowsort label-613
SELECT DISTINCT - col2 + col2 + - col1 DIV + col0 col0, col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
51
0
85
0
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-613
SELECT DISTINCT - col2 + col2 + - col1 / + col0 col0, col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
51
0
85
0
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-614
SELECT DISTINCT 4 + - ( + CAST( + 63 AS SIGNED ) ) FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT 4 + - ( + CAST ( + 63 AS INTEGER ) ) FROM tab0 AS cor0
----
-59

query I rowsort
SELECT - 44 * - - 18 - + col0 FROM tab1
----
-843
-877
-883

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-617
SELECT DISTINCT + ( 6 ) + col1, col1 DIV - + col2 AS col2 FROM tab2 AS cor0
----
57
-2
73
-1
83
-1

skipif mysql # not compatible
query II rowsort label-617
SELECT DISTINCT + ( 6 ) + col1, col1 / - + col2 AS col2 FROM tab2 AS cor0
----
57
-2
73
-1
83
-1

query I rowsort
SELECT DISTINCT - - 41 * + 61 FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 48 <> NULL
----

query I rowsort
SELECT ALL - 98 - - col1 FROM tab0 cor0
----
-17
-77
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT ALL 80 * - 93 + 35 * - COUNT( * ) * + COUNT( * ) AS col0 FROM tab0
----
-7755

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL 80 * - 93 + 35 * - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0
----
-7755

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

skipif mysql # not compatible
query I rowsort label-622
SELECT - ( MIN ( - col1 ) ) AS col2 FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-623
SELECT DISTINCT + col2 + 38, + 33 DIV - ( - col0 ) AS col0 FROM tab2
----
61
0
78
0
96
0

skipif mysql # not compatible
query II rowsort label-623
SELECT DISTINCT + col2 + 38, + 33 / - ( - col0 ) AS col0 FROM tab2
----
61
0
78
0
96
0

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

skipif mysql # not compatible
query I rowsort label-624
SELECT DISTINCT + col2 FROM tab2 WHERE - col0 * - - CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-625
SELECT DISTINCT 25 * + 76 - - 62 + SUM( - 66 ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT 25 * + 76 - - 62 + SUM ( - 66 ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 68 col0 FROM tab0 WHERE NOT ( NOT - col2 IS NOT NULL )
----
1020
5916
6596

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT DISTINCT 58 - COUNT( * ) - ( + COUNT( * ) ) * COUNT( ALL col0 ) AS col1 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT 58 - COUNT ( * ) - ( + COUNT ( * ) ) * COUNT ( ALL col0 ) AS col1 FROM tab0
----
46

query I rowsort
SELECT + col0 * - col0 * 59 FROM tab2 AS cor0
----
-124844
-241664
-331875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 * 62 col2 FROM tab0 AS cor0
----
-27342
-406782
-62

query I rowsort
SELECT DISTINCT - 48 * - - 31 FROM tab1
----
-1488

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

query I rowsort
SELECT ALL ( + 96 ) * - + col2 AS col1 FROM tab2 AS cor0
----
-2208
-3840
-5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * - 64 col0 FROM tab2 AS cor0
----
-3264
-4288
-4928

query II rowsort
SELECT ( - col1 ) * 50, - col0 AS col1 FROM tab2 AS cor0
----
-2550
-46
-3350
-75
-3850
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-635
SELECT - col2 * + CAST( - + col0 AS SIGNED ) FROM tab1 cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-635
SELECT - col2 * + CAST ( - + col0 AS INTEGER ) FROM tab1 cor0
----
4896
5015
6188

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

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

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

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

query I rowsort
SELECT - ( - 2 ) AS col0 FROM tab1 cor0
----
2
2
2

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

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

query I rowsort
SELECT ALL col1 * - 36 FROM tab0
----
-2916
-36
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL + COUNT( * ) * - MAX( - - col0 ) AS col0 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL + COUNT ( * ) * - MAX ( - - col0 ) AS col0 FROM tab0
----
-291

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-644
SELECT MAX ( DISTINCT - col0 ) col2 FROM tab0
----
-15

query II rowsort
SELECT 57 AS col1, - 33 AS col2 FROM tab2 AS cor0
----
57
-33
57
-33
57
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-646
SELECT - col2 + + CAST( - col2 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-144
-191
-92

skipif mysql # not compatible
query I rowsort label-646
SELECT - col2 + + CAST ( - col2 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-144
-191
-92

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 - + ( - 49 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT DISTINCT + COUNT( * ) * + 43 * 69 * + COUNT( * ) - - COUNT( * ) FROM tab1
----
26706

skipif mysql # not compatible
query I rowsort label-649
SELECT DISTINCT + COUNT ( * ) * + 43 * 69 * + COUNT ( * ) - - COUNT ( * ) FROM tab1
----
26706

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

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

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

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

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

query I rowsort
SELECT col1 * - - 85 - - col0 FROM tab2 AS cor0
----
4381
5770
6609

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

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT SUM( ALL - 14 ) col2 FROM tab2
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-655
SELECT SUM ( ALL - 14 ) col2 FROM tab2
----
-42

query I rowsort
SELECT - 73 * - col1 FROM tab1
----
1022
3431
365

query I rowsort
SELECT ALL ( + col2 ) * + - col1 AS col2 FROM tab0
----
-210
-3807
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT DISTINCT - MAX( + + 50 ) AS col1 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT - MAX ( + + 50 ) AS col1 FROM tab0 AS cor0
----
-50

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

query I rowsort
SELECT ALL col1 * - + col2 * + 46 FROM tab1
----
-13570
-147016
-61824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-662
SELECT ALL - + 86 * - MIN( DISTINCT + CAST( + + 11 AS SIGNED ) ) FROM tab2 AS cor0
----
946

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL - + 86 * - MIN ( DISTINCT + CAST ( + + 11 AS INTEGER ) ) FROM tab2 AS cor0
----
946

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT DISTINCT - 45 + 89 - COUNT( * ) AS col2 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT - 45 + 89 - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
41

query I rowsort
SELECT DISTINCT - col0 * - 32 AS col1 FROM tab1 AS cor0
----
1632
2720
2912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 2 * 34, + 26 + - 37 - + col0 * - col1 col0 FROM tab2 AS cor0 WHERE NOT 94 IS NOT NULL
----

query I rowsort
SELECT ALL + 79 FROM tab1 AS cor0 WHERE NOT NULL <= + 33 * + 4
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL + SUM( + ( + - 70 ) ) FROM tab1 cor0
----
-210

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL + SUM ( + ( + - 70 ) ) FROM tab1 cor0
----
-210

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

query I rowsort
SELECT + 12 + ( + + col2 ) * - - col1 FROM tab2
----
1185
3092
3898

onlyif mysql # DIV for integer division: 
query II rowsort label-671
SELECT 12 + + 90 DIV + 48 + - + col0 * col1 AS col0, 47 DIV - col2 col1 FROM tab2
----
-2333
-2
-4915
-1
-5012
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-671
SELECT 12 + + 90 / + 48 + - + col0 * col1 AS col0, 47 / - col2 col1 FROM tab2
----
-2333
-2
-4915
-1
-5012
0

query I rowsort
SELECT DISTINCT + 77 FROM tab0 WHERE ( NOT NULL NOT IN ( + col1 ) )
----

query I rowsort
SELECT DISTINCT + col0 * + 76 AS col1 FROM tab1
----
3876
6460
6916

query I rowsort
SELECT - + col0 + - - col0 FROM tab1 WHERE ( NULL < ( NULL ) )
----

query I rowsort
SELECT + ( 65 ) + + col1 FROM tab1
----
112
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT 61 + - COUNT( * ) AS col2 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-676
SELECT 61 + - COUNT ( * ) AS col2 FROM tab1
----
58

query II rowsort
SELECT - 14 AS col1, 70 AS col1 FROM tab1 AS cor0
----
-14
70
-14
70
-14
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-678
SELECT ALL 35 + - CAST( ( - + 74 ) AS SIGNED ) + + col0 * + 5 col0 FROM tab0 AS cor0
----
184
544
594

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-678
SELECT ALL 35 + - CAST ( ( - + 74 ) AS INTEGER ) + + col0 * + 5 col0 FROM tab0 AS cor0
----
184
544
594

query I rowsort
SELECT DISTINCT - 4 - - - col2 FROM tab1 cor0
----
-100
-63
-72

query I rowsort
SELECT ALL col1 - + + 46 AS col1 FROM tab0
----
-25
-45
35

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

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

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

query I rowsort
SELECT DISTINCT - col2 * + + 16 + col1 * - 72 FROM tab2 AS cor0
----
-4040
-5752
-6184

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

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) + - + 21 AS col0 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-685
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) + - + 21 AS col0 FROM tab2 AS cor0
----
-15

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-686
SELECT ALL col0 + + CAST ( col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT + 86 * + col2 FROM tab0 cor0
----
4042
8514
860

query I rowsort
SELECT + 94 * + col0 + + 8 + + + col2 + col0 * + - 61 FROM tab0 cor0
----
2889
3308
550

query I rowsort
SELECT + 96 FROM tab1 WHERE NOT NULL <= + 37
----

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

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

query I rowsort
SELECT DISTINCT + ( col0 ) * 88 * + - col0 + + 13 - col2 + + + col2 * - col0 * + 12 FROM tab0
----
-28294
-676509
-943314

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT - - 83 * - COUNT( * ) FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-694
SELECT - - 83 * - COUNT ( * ) FROM tab1 AS cor0
----
-249

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

query II rowsort
SELECT DISTINCT - + col1, col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 - - col1 BETWEEN + col2 * + + 45 / + - col1 AND + col0
----
-51
46
-67
75
-77
64

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

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

query II rowsort
SELECT ALL - col1 * + + ( - + col0 ) AS col2, 26 FROM tab2
----
2346
26
4928
26
5025
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-699
SELECT + - 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-699
SELECT + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT ( + col0 ) * col0 AS col2 FROM tab0
----
225
7569
9409

query I rowsort
SELECT 46 + + col0 * 92 FROM tab1 AS cor0
----
4738
7866
8418

query I rowsort
SELECT - + 58 + 29 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT DISTINCT - SUM( + 16 ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-703
SELECT DISTINCT - SUM ( + 16 ) FROM tab2 AS cor0
----
-48

query I rowsort
SELECT DISTINCT + 69 + 68 FROM tab1 AS cor0
----
137

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

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT + + CAST ( NULL AS REAL ) + - SUM ( ALL + + 92 ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-706
SELECT + 64 AS col2, - COUNT( * ) + COUNT( * ) col0 FROM tab1 AS cor0
----
64
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-706
SELECT + 64 AS col2, - COUNT ( * ) + COUNT ( * ) col0 FROM tab1 AS cor0
----
64
0

query I rowsort
SELECT + col0 * 8 AS col1 FROM tab1 AS cor0
----
408
680
728

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

query I rowsort
SELECT ALL - + 85 + + 79 * - col1 + 43 FROM tab2 AS cor0
----
-4071
-5335
-6125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + col0, - col2 col0 FROM tab1
----
2601
-96
7225
-59
8281
-68

query II rowsort
SELECT DISTINCT col1 * + + col0 AS col0, - 67 AS col2 FROM tab0
----
1215
-67
1827
-67
97
-67

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-713
SELECT ALL + 43 DIV + 77 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL + 43 / + 77 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - 21 IS NULL
----

query I rowsort
SELECT col1 * - 52 FROM tab0
----
-1092
-4212
-52

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

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

query I rowsort
SELECT - - 55 + - 55 * + 55 FROM tab2 AS cor0
----
-2970
-2970
-2970

query I rowsort
SELECT DISTINCT 85 * 82 + + col2 FROM tab0 AS cor0
----
6980
7017
7069

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

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

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

query I rowsort
SELECT + - col2 * - ( - 4 ) * - 67 - - col1 * - 81 AS col0 FROM tab0 AS cor0
----
26451
6035
979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - ( - col0 ) * 11 col1 FROM tab1 AS cor0
----
4675
47047
7854

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN + 41 AND NULL
----
46
51
23
64
77
40

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

skipif mysql # not compatible
query I rowsort label-725
SELECT + COUNT ( * ) / 51 FROM tab0 AS cor0
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 89 > - col2
----
85
5
59
91
47
68

query I rowsort
SELECT + 58 AS col1 FROM tab0 WHERE NOT + - col0 IS NULL
----
58
58
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + + col2 + + - col1 + - - 93 * + 81 AND + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT DISTINCT + 42 * COUNT( * ) FROM tab1 WHERE - col0 * + ( col0 ) + + 48 IS NOT NULL
----
126

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT + 42 * COUNT ( * ) FROM tab1 WHERE - col0 * + ( col0 ) + + 48 IS NOT NULL
----
126

query II rowsort
SELECT DISTINCT - col0 AS col0, col1 - + 36 + - + col0 * col0 + + 58 FROM tab2
----
-46
-2043
-64
-3997
-75
-5536

query I rowsort
SELECT col1 * + 91 + + 7 AS col2 FROM tab2 AS cor0
----
4648
6104
7014

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

query II rowsort
SELECT DISTINCT + + col1 * + col2, 54 AS col2 FROM tab1 cor0
----
1344
54
295
54
3196
54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 <= + col0
----
15
81
47

query I rowsort
SELECT + ( col2 ) * - + 53 AS col1 FROM tab1
----
-3127
-3604
-5088

query II rowsort
SELECT ALL + 91 AS col0, + 13 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to b35dff6d8e59ca77ff17e69c22ce0e21

query I rowsort
SELECT + 59 * - col2 * 7 + - col0 FROM tab0 cor0
----
-19426
-40984
-4217

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-740
SELECT ALL + col1 + + + col2, + CAST( NULL AS SIGNED ) * + col1 * - ( - + col1 ) AS col2 FROM tab0 AS cor0
----
100
NULL
128
NULL
31
NULL

skipif mysql # not compatible
query II rowsort label-740
SELECT ALL + col1 + + + col2, + CAST ( NULL AS INTEGER ) * + col1 * - ( - + col1 ) AS col2 FROM tab0 AS cor0
----
100
NULL
128
NULL
31
NULL

query I rowsort
SELECT DISTINCT + col0 - - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-742
SELECT DISTINCT + col1 + + - CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT + col1 + + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT DISTINCT ( + COUNT( * ) ) + - 40 FROM tab1 AS cor0 WHERE ( + + 25 IS NULL )
----
-40

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT ( + COUNT ( * ) ) + - 40 FROM tab1 AS cor0 WHERE ( + + 25 IS NULL )
----
-40

query I rowsort
SELECT + - 23 + + + col1 * + col1 FROM tab0 AS cor0
----
-22
418
6538

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: SIGNED type: 
query I rowsort label-746
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT + col2 + - + 81 FROM tab2
----
-23
-41
-58

query I rowsort
SELECT col0 * - - col0 + - 77 FROM tab0
----
148
7492
9332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-749
SELECT + col1 * + + CAST( 66 AS SIGNED ) + - 98 + - 38 AS col2 FROM tab0
----
-70
1250
5210

skipif mysql # not compatible
query I rowsort label-749
SELECT + col1 * + + CAST ( 66 AS INTEGER ) + - 98 + - 38 AS col2 FROM tab0
----
-70
1250
5210

onlyif mysql # aggregate syntax: 
query II rowsort label-750
SELECT DISTINCT 67 col2, + MAX( - col0 ) AS col1 FROM tab0
----
67
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-750
SELECT DISTINCT 67 col2, + MAX ( - col0 ) AS col1 FROM tab0
----
67
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-751
SELECT - col0, - col2 DIV + col2 col1 FROM tab0
----
-15
-1
-87
-1
-97
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-751
SELECT - col0, - col2 / + col2 col1 FROM tab0
----
-15
-1
-87
-1
-97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-752
SELECT ALL + 18 + - - CAST( + + col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
64
82
93

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL + 18 + - - CAST ( + + col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
64
82
93

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

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

query I rowsort
SELECT - col1 * col2 * - + 52 - - - 76 * - 20 FROM tab2 cor0
----
161680
203592
62516

query I rowsort
SELECT DISTINCT - + 67 - + col1 AS col0 FROM tab0 AS cor0
----
-148
-68
-88

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

query I rowsort
SELECT 57 - - col1 * col0 FROM tab1
----
4334
482
771

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

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

query I rowsort
SELECT ALL 22 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT DISTINCT - 10 - COUNT( * ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-760
SELECT DISTINCT - 10 - COUNT ( * ) FROM tab1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-761
SELECT DISTINCT + + ( + - col2 ) AS col0, col0 + + col2 + + col0 + - 72 + + - 43 * col2 * + 81 - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-761
SELECT DISTINCT + + ( + - col2 ) AS col0, col0 + + col2 + + col0 + - 72 + + - 43 * col2 * + 81 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
-10
NULL
-47
NULL
-99
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + 60 + - col0 AND + - col1 * + col2 + + - col1 - + - 53 + - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-763
SELECT - CAST( 12 AS SIGNED ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-763
SELECT - CAST ( 12 AS INTEGER ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-36

query I rowsort
SELECT DISTINCT - col0 * - col2 * - 68 AS col2 FROM tab1 AS cor0
----
-332928
-341020
-420784

query I rowsort
SELECT DISTINCT + - 65 * + col0 AS col2 FROM tab0 AS cor0
----
-5655
-6305
-975

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

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

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

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

query I rowsort
SELECT ALL + col2 * - - col1 * + - 47 AS col2 FROM tab2
----
-144760
-182642
-55131

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * - - ( + 30 ) <> + + ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-772
SELECT ALL + CAST( + - ( 43 ) AS SIGNED ) FROM tab2
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL + CAST ( + - ( 43 ) AS INTEGER ) FROM tab2
----
-43
-43
-43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT COUNT( * ) * 45 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-774
SELECT COUNT ( * ) * 45 FROM tab2 AS cor0
----
135

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-777
SELECT - col1 * - col0 AS col2 FROM tab2 cor0 WHERE - col1 * + col2 BETWEEN - col2 AND ( col1 - - - 21 + + + col1 * - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-777
SELECT - col1 * - col0 AS col2 FROM tab2 cor0 WHERE - col1 * + col2 BETWEEN - col2 AND ( col1 - - - 21 + + + col1 * - CAST ( NULL AS REAL ) )
----

query II rowsort
SELECT ALL + col2 AS col1, 70 FROM tab1 AS cor0
----
59
70
68
70
96
70

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

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

query II rowsort
SELECT ALL + 50 + col1, 93 AS col0 FROM tab2 AS cor0
----
101
93
117
93
127
93

query II rowsort
SELECT ALL + - col0 + + 20 AS col1, + col1 * + col1 * + 98 FROM tab0 AS cor0
----
-67
43218
-77
98
5
642978

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

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

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

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

query I rowsort
SELECT DISTINCT + - col0 + - 16 FROM tab2 AS cor0
----
-62
-80
-91

query I rowsort
SELECT - col1 * col0 * 74 AS col2 FROM tab2 AS cor0
----
-173604
-364672
-371850

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT ALL + COUNT( * ) + + - 7 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL + COUNT ( * ) + + - 7 FROM tab1
----
-4

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

query I rowsort
SELECT - - 34 FROM tab1 WHERE NULL IS NULL
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT - COUNT( * ) - MAX( DISTINCT ( + ( 16 ) ) ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-789
SELECT - COUNT ( * ) - MAX ( DISTINCT ( + ( 16 ) ) ) FROM tab0
----
-19

query I rowsort
SELECT - 2 - col2 FROM tab0
----
-101
-12
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT - 79 + MIN( ALL + col0 ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-791
SELECT - 79 + MIN ( ALL + col0 ) FROM tab1 AS cor0
----
-28

query I rowsort
SELECT + ( - - ( + - col1 ) ) + - col2 + + 17 * ( - - col2 ) FROM tab0 cor0
----
139
1583
671

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT COUNT( * ) + 58 * + 67 FROM tab1 AS cor0
----
3889

skipif mysql # not compatible
query I rowsort label-793
SELECT COUNT ( * ) + 58 * + 67 FROM tab1 AS cor0
----
3889

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

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

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

query I rowsort
SELECT - 53 * + 78 * + 78 FROM tab0
----
-322452
-322452
-322452

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * col1 = col1 * - + ( - + 5 ) * + 6
----

query I rowsort
SELECT ALL - 55 * + 86 FROM tab0 AS cor0
----
-4730
-4730
-4730

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT + col2 * + 70 < + col0 + + col0 + + col1
----
15
87
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-800
SELECT DISTINCT MAX ( - - col2 ) col1 FROM tab2 AS cor0
----
58

query II rowsort
SELECT ALL 94 * + 94 + + - col1 AS col0, - 94 AS col2 FROM tab2 AS cor0
----
8759
-94
8769
-94
8785
-94

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

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

query I rowsort
SELECT + 73 + + 33 FROM tab1
----
106
106
106

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT ( + 17 ) + MIN( + 77 ) * + COUNT( * ) * + 71 FROM tab0
----
16418

skipif mysql # not compatible
query I rowsort label-805
SELECT ( + 17 ) + MIN ( + 77 ) * + COUNT ( * ) * + 71 FROM tab0
----
16418

query I rowsort
SELECT DISTINCT - 79 * col0 + - + 33 FROM tab1 AS cor0
----
-4062
-6748
-7222

query I rowsort
SELECT ALL - ( - 58 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-808
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT CAST ( NULL AS REAL ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-809
SELECT + col2 * - CAST( 52 AS SIGNED ) * - - col0 AS col2 FROM tab2
----
-133120
-226200
-55016

skipif mysql # not compatible
query I rowsort label-809
SELECT + col2 * - CAST ( 52 AS INTEGER ) * - - col0 AS col2 FROM tab2
----
-133120
-226200
-55016

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT - SUM( col0 ) + + ( MIN( ( - 21 ) ) ) AS col0 FROM tab1 AS cor0
----
-248

skipif mysql # not compatible
query I rowsort label-810
SELECT - SUM ( col0 ) + + ( MIN ( ( - 21 ) ) ) AS col0 FROM tab1 AS cor0
----
-248

query I rowsort
SELECT DISTINCT + - 88 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + 99 FROM tab1 AS cor0
----
3
31
40

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT + 15 + + COUNT( * ) + + 61 FROM tab2 cor0
----
79

skipif mysql # not compatible
query I rowsort label-813
SELECT + 15 + + COUNT ( * ) + + 61 FROM tab2 cor0
----
79

query I rowsort
SELECT DISTINCT + col1 - col0 + + col0 * + + col2 AS col1 FROM tab2 AS cor0
----
1063
2573
4342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-815
SELECT CAST( + 3 AS SIGNED ) + - + col1 * - col1 AS col1 FROM tab0 AS cor0
----
4
444
6564

skipif mysql # not compatible
query I rowsort label-815
SELECT CAST ( + 3 AS INTEGER ) + - + col1 * - col1 AS col1 FROM tab0 AS cor0
----
4
444
6564

query II rowsort
SELECT + col2 + col2, + col1 AS col1 FROM tab0
----
198
1
20
21
94
81

query I rowsort
SELECT - ( - 66 ) * - col2 FROM tab1
----
-3894
-4488
-6336

onlyif mysql # aggregate syntax: 
query II rowsort label-818
SELECT DISTINCT COUNT( * ) AS col1, SUM( ALL + 7 ) AS col2 FROM tab2
----
3
21

skipif mysql # not compatible
query II rowsort label-818
SELECT DISTINCT COUNT ( * ) AS col1, SUM ( ALL + 7 ) AS col2 FROM tab2
----
3
21

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT ALL + COUNT( * ) - 52 - + COUNT( + 64 ) FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL + COUNT ( * ) - 52 - + COUNT ( + 64 ) FROM tab2
----
-52

query I rowsort
SELECT DISTINCT ( - - col2 ) * col0 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT * FROM tab1 WHERE - col2 NOT BETWEEN + 80 AND + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-822
SELECT DISTINCT + + 44 FROM tab1 WHERE NOT col1 > col2 + + 5 + + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-822
SELECT DISTINCT + + 44 FROM tab1 WHERE NOT col1 > col2 + + 5 + + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT ALL - + SUM( DISTINCT - + col1 ) * - 76 FROM tab0 cor0 WHERE NOT col1 * - col0 / - + col0 * col0 / col2 = - col0
----
-7828

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL - + SUM ( DISTINCT - + col1 ) * - 76 FROM tab0 cor0 WHERE NOT col1 * - col0 / - + col0 * col0 / col2 = - col0
----
-7828

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-824
SELECT ALL col1 / - col1 AS col0 FROM tab2 WHERE + CAST( - col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL col1 / - col1 AS col0 FROM tab2 WHERE + CAST ( - col2 AS REAL ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT + COUNT ( * ) * MAX ( + 68 ) AS col0 FROM tab1
----
204

query I rowsort
SELECT DISTINCT - - col2 * - col2 * + 91 AS col2 FROM tab2 AS cor0
----
-145600
-306124
-48139

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT - + COUNT( DISTINCT - 73 ) AS col1 FROM tab0 AS cor0 WHERE NOT 97 NOT BETWEEN NULL AND + col0 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-827
SELECT - + COUNT ( DISTINCT - 73 ) AS col1 FROM tab0 AS cor0 WHERE NOT 97 NOT BETWEEN NULL AND + col0 * - col2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-829
SELECT SUM( + - col1 ) + - + 60 + - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) * - - ( - 46 ) AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-829
SELECT SUM ( + - col1 ) + - + 60 + - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) * - - ( - 46 ) AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT 58 + - MIN( ALL - 89 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
147

skipif mysql # not compatible
query I rowsort label-830
SELECT 58 + - MIN ( ALL - 89 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
147

query I rowsort
SELECT - + 79 * + col1 * - col2 + 28 AS col1 FROM tab1 AS cor0
----
106204
23333
252512

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT DISTINCT - MIN( ALL + 31 ) FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT - MIN ( ALL + 31 ) FROM tab0 AS cor0
----
-31

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

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

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

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

query I rowsort
SELECT col2 * + 37 FROM tab0
----
1739
3663
370

query I rowsort
SELECT DISTINCT col1 * + - col0 * + col0 * - 44 AS col2 FROM tab2
----
13877248
16582500
4748304

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT DISTINCT + COUNT( * ) * - MAX( - 35 ) AS col0 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT + COUNT ( * ) * - MAX ( - 35 ) AS col0 FROM tab1
----
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab0 WHERE + - col0 * - col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT ALL - 77 DIV + col2 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL - 77 / + col2 FROM tab0
----
-1
-7
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col0 FROM tab0 WHERE + 77 NOT IN ( - col1 )
----
78
78
78

onlyif mysql # DIV for integer division: 
query I rowsort label-841
SELECT - col2 DIV ( col0 ) + - + col2 + col1 + col1 AS col1 FROM tab2 AS cor0
----
114
76
79

skipif mysql # not compatible
query I rowsort label-841
SELECT - col2 / ( col0 ) + - + col2 + col1 + col1 AS col1 FROM tab2 AS cor0
----
114
76
79

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT DISTINCT - 96 * - COUNT( * ) + + COUNT( * ) + + 90 + + + 62 AS col0 FROM tab1 AS cor0
----
443

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT - 96 * - COUNT ( * ) + + COUNT ( * ) + + 90 + + + 62 AS col0 FROM tab1 AS cor0
----
443

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-843
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 31 BETWEEN + - CAST( NULL AS SIGNED ) / - col2 + col2 + + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-843
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 31 BETWEEN + - CAST ( NULL AS INTEGER ) / - col2 + col2 + + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + ( 86 ) + col0 AS col1 FROM tab1
----
137
171
177

query I rowsort
SELECT DISTINCT 25 * - col0 AS col2 FROM tab1
----
-1275
-2125
-2275

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

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

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

query I rowsort
SELECT DISTINCT - 68 * + col0 AS col2 FROM tab2
----
-3128
-4352
-5100

query I rowsort
SELECT DISTINCT - 9 FROM tab0 WHERE NOT col0 + 30 IS NULL
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-850
SELECT - 33 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-850
SELECT - 33 + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 66 + col2 AS col0 FROM tab2
----
-26
-43
-8

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

query III rowsort
SELECT * FROM tab2 WHERE + col0 * col2 IN ( col2 )
----

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

skipif mysql # not compatible
query I rowsort label-854
SELECT + col0 FROM tab0 WHERE NOT NULL IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-855
SELECT col1 DIV + 6 FROM tab0
----
0
13
3

skipif mysql # not compatible
query I rowsort label-855
SELECT col1 / + 6 FROM tab0
----
0
13
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-856
SELECT DISTINCT MIN( col2 ) - - 81 DIV + 48 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT MIN ( col2 ) - - 81 / + 48 FROM tab2
----
24

query I rowsort
SELECT col1 + + 69 FROM tab2
----
120
136
146

query I rowsort
SELECT 16 + - col0 * - col2 AS col1 FROM tab0
----
721
886
9619

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT COUNT( DISTINCT + 97 ) + - 42 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-859
SELECT COUNT ( DISTINCT + 97 ) + - 42 FROM tab1
----
-41

query I rowsort
SELECT 22 * col1 AS col1 FROM tab2
----
1122
1474
1694

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

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

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

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

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

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + col1 * + col0 NOT IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 64 - col2 col1 FROM tab1
----
-3360
-5499
-5892

onlyif mysql # DIV for integer division: 
query I rowsort label-866
SELECT DISTINCT - 55 DIV 28 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT - 55 / 28 AS col1 FROM tab0
----
-1

query I rowsort
SELECT - 15 * + col2 AS col0 FROM tab0
----
-1485
-150
-705

onlyif mysql # DIV for integer division: 
query I rowsort label-868
SELECT DISTINCT 26 DIV 1 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT 26 / 1 FROM tab0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT + 89 DIV 1 FROM tab2 AS cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-869
SELECT + 89 / 1 FROM tab2 AS cor0
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-870
SELECT ALL ( 76 ) * col2 - col1 * + col2 FROM tab0 cor0 WHERE NOT - col1 - - CAST( 66 AS SIGNED ) > 97
----
-235
550
7425

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL ( 76 ) * col2 - col1 * + col2 FROM tab0 cor0 WHERE NOT - col1 - - CAST ( 66 AS INTEGER ) > 97
----
-235
550
7425

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + col2 > ( - col1 )
----

query I rowsort
SELECT - 23 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 <> 64 + - ( - ( 51 ) )
----

query I rowsort
SELECT 54 * col0 FROM tab2 WHERE NOT col1 + + 10 IN ( - col1 )
----
2484
3456
4050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-876
SELECT COUNT( * ) DIV 10 FROM tab0 AS cor0 CROSS JOIN tab2
----
0

skipif mysql # not compatible
query I rowsort label-876
SELECT COUNT ( * ) / 10 FROM tab0 AS cor0 CROSS JOIN tab2
----
0

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - col1 ) NOT BETWEEN ( - 74 ) AND col2
----
64
77
40

query I rowsort
SELECT DISTINCT - 51 FROM tab1 AS cor0 WHERE NOT + 29 - col2 NOT IN ( - col0 )
----

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

query I rowsort
SELECT ALL - + col2 + 23 AS col1 FROM tab1 AS cor0
----
-36
-45
-73

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

query I rowsort
SELECT DISTINCT col1 + 92 * + 61 AS col2 FROM tab0 AS cor0
----
5613
5633
5693

onlyif mysql # DIV for integer division: 
query I rowsort label-885
SELECT DISTINCT - col1 * 17 DIV + ( 11 ) AS col0 FROM tab1
----
-21
-7
-72

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT - col1 * 17 / + ( 11 ) AS col0 FROM tab1
----
-21
-7
-72

query I rowsort
SELECT - ( - 81 ) / col1 FROM tab2 WHERE NOT col0 < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT + 94 + COUNT( * ) * + 76 AS col2 FROM tab2
----
322

skipif mysql # not compatible
query I rowsort label-888
SELECT + 94 + COUNT ( * ) * + 76 AS col2 FROM tab2
----
322

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-890
SELECT + col0 + - ( col0 ) + + col0 DIV + 12 AS col2 FROM tab1
----
4
7
7

skipif mysql # not compatible
query I rowsort label-890
SELECT + col0 + - ( col0 ) + + col0 / + 12 AS col2 FROM tab1
----
4
7
7

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

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

query I rowsort
SELECT col1 * - col2 + - 37 FROM tab2
----
-1210
-3117
-3923

query I rowsort
SELECT ALL + col0 + 94 AS col2 FROM tab1 WHERE + col0 * + 28 IN ( + col0 )
----

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

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

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

query I rowsort
SELECT + col2 + 14 FROM tab0 AS cor0 WHERE 92 = NULL
----

query I rowsort
SELECT DISTINCT - 29 + - - col2 AS col1 FROM tab1 AS cor0
----
30
39
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-899
SELECT - col1 col0 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN col1 * + 33 + CAST( NULL AS SIGNED ) * - col1 AND + ( col1 )
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-899
SELECT - col1 col0 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN col1 * + 33 + CAST ( NULL AS INTEGER ) * - col1 AND + ( col1 )
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-900
SELECT ALL 15 DIV COUNT( * ) * CAST( + 48 AS SIGNED ) FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL 15 / COUNT ( * ) * CAST ( + 48 AS INTEGER ) FROM tab2 AS cor0
----
240

query I rowsort
SELECT ALL col1 * 8 AS col0 FROM tab2
----
408
536
616

query I rowsort
SELECT ALL - col1 * + - 60 * - ( - 35 ) FROM tab2
----
107100
140700
161700

query I rowsort
SELECT - col2 * + 31 * col2 + + 52 AS col1 FROM tab2
----
-104232
-16347
-49548

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

onlyif mysql # DIV for integer division: 
query I rowsort label-905
SELECT - - 6 * - col1 + - col2 DIV + col1 FROM tab2 AS cor0
----
-306
-402
-462

skipif mysql # not compatible
query I rowsort label-905
SELECT - - 6 * - col1 + - col2 / + col1 FROM tab2 AS cor0
----
-306
-402
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT ALL - - ( + + ( COUNT( * ) ) ) + - 82 FROM tab0 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL - - ( + + ( COUNT ( * ) ) ) + - 82 FROM tab0 cor0
----
-79

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT ALL + + 60 + COUNT( * ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL + + 60 + COUNT ( * ) FROM tab1 AS cor0
----
63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-911
SELECT DISTINCT - col1 - + col2 DIV - + 68 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT - col1 - + col2 / - + 68 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 33 AS col0 FROM tab2 WHERE NULL IS NULL
----
33

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 10 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 38 + + col2 + + col0 FROM tab2 AS cor0
----
107
142
171

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

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

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

query I rowsort
SELECT DISTINCT col2 + + - col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-920
SELECT DISTINCT + + 55 AS col2, - SUM( col0 ) AS col1 FROM tab0 AS cor0
----
55
-199

skipif mysql # not compatible
query II rowsort label-920
SELECT DISTINCT + + 55 AS col2, - SUM ( col0 ) AS col1 FROM tab0 AS cor0
----
55
-199

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 * - 22 / + 49 - col1 + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-925
SELECT ALL - COUNT( * ) - CAST( - AVG ( col0 ) AS SIGNED ) AS col2 FROM tab1 WHERE NOT NULL <= + col2 * + - 59 - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL - COUNT ( * ) - CAST ( - AVG ( col0 ) AS INTEGER ) AS col2 FROM tab1 WHERE NOT NULL <= + col2 * + - 59 - - 87
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 82 col0, + col2 AS col2 FROM tab1
----
82
59
82
68
82
96

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-928
SELECT DISTINCT 47 AS col0, + CAST( NULL AS SIGNED ) - COUNT( * ) AS col0 FROM tab0
----
47
NULL

skipif mysql # not compatible
query II rowsort label-928
SELECT DISTINCT 47 AS col0, + CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col0 FROM tab0
----
47
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-929
SELECT col2 DIV + ( col0 ) + + col2 + - - col1 DIV 32 + - ( col1 + 82 ) FROM tab0 AS cor0
----
-111
-93
17

skipif mysql # not compatible
query I rowsort label-929
SELECT col2 / + ( col0 ) + + col2 + - - col1 / 32 + - ( col1 + 82 ) FROM tab0 AS cor0
----
-111
-93
17

query I rowsort
SELECT DISTINCT - col0 + - - col0 AS col0 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT - 97 + + + col0 FROM tab0 AS cor0
----
-10
-82
0

query II rowsort
SELECT + 97 AS col1, col1 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( 77 + - - 48 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT DISTINCT - 52 * 80 + - SUM( - col2 ) FROM tab1 AS cor0
----
-3937

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT - 52 * 80 + - SUM ( - col2 ) FROM tab1 AS cor0
----
-3937

query I rowsort
SELECT ALL - - 92 * + + col2 + + col1 + 0 - + col1 * + + col2 + - col0 * col1 AS col1 FROM tab0 AS cor0
----
-1096
-617
8913

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, + col1 * - 65 col2 FROM tab1
----
14
-910
47
-3055
5
-325

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

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

query I rowsort
SELECT DISTINCT - ( + 1 ) AS col0 FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-942
SELECT - CAST( - 58 AS SIGNED ) AS col1 FROM tab0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-942
SELECT - CAST ( - 58 AS INTEGER ) AS col1 FROM tab0
----
58
58
58

query I rowsort
SELECT - 1 * - - 38 FROM tab2
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col2 FROM tab2 AS cor0
----
42

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col2 ) col1 FROM tab0 AS cor0
----
-10
-47
-99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-948
SELECT DISTINCT + col0 DIV + ( + 30 ) + - + 62 FROM tab1 AS cor0
----
-59
-60
-61

skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT + col0 / + ( + 30 ) + - + 62 FROM tab1 AS cor0
----
-59
-60
-61

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

skipif mysql # not compatible
query I rowsort label-949
SELECT - + MIN ( col0 ) + + COUNT ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 72 * - col0 <= - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT ALL ( + COUNT( * ) ) + - + SUM( - + col1 ) + + - ( + COUNT( * ) ) * - 3 FROM tab2 cor0
----
207

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL ( + COUNT ( * ) ) + - + SUM ( - + col1 ) + + - ( + COUNT ( * ) ) * - 3 FROM tab2 cor0
----
207

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

query I rowsort
SELECT DISTINCT + col1 + - 78 AS col0 FROM tab1
----
-31
-64
-73

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

skipif mysql # not compatible
query I rowsort label-953
SELECT + 20 * - COUNT ( * ) + - MAX ( ALL - col0 ) FROM tab1
----
-9

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

query I rowsort
SELECT - col1 * + + 37 * ( + + 63 ) FROM tab1
----
-109557
-11655
-32634

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-956
SELECT 90 + + col1 col0 FROM tab1 WHERE col1 + - col0 + + CAST( + col0 AS SIGNED ) >= + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-956
SELECT 90 + + col1 col0 FROM tab1 WHERE col1 + - col0 + + CAST ( + col0 AS INTEGER ) >= + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-957
SELECT - MAX( - CAST( - col0 AS SIGNED ) ) * - 35 FROM tab0 AS cor0
----
3395

skipif mysql # not compatible
query I rowsort label-957
SELECT - MAX ( - CAST ( - col0 AS INTEGER ) ) * - 35 FROM tab0 AS cor0
----
3395

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-958
SELECT * FROM tab1 AS cor0 WHERE col0 NOT IN ( - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + - 22, CAST( NULL AS SIGNED ) / - 97 )
----

skipif mysql # not compatible
query III rowsort label-958
SELECT * FROM tab1 AS cor0 WHERE col0 NOT IN ( - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + - 22, CAST ( NULL AS INTEGER ) / - 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT COUNT( ALL col0 ) - + - COUNT( DISTINCT + - col1 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-959
SELECT COUNT ( ALL col0 ) - + - COUNT ( DISTINCT + - col1 ) FROM tab0
----
6

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-961
SELECT 17 DIV 37 - - COUNT( * ) - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-961
SELECT 17 / 37 - - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL - 50 FROM ( tab2 cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

onlyif mysql # DIV for integer division: 
query I rowsort label-963
SELECT - - 73 + - + 35 + - ( ( col1 ) ) + - ( 0 ) DIV + + col2 FROM tab1 cor0
----
-9
24
33

skipif mysql # not compatible
query I rowsort label-963
SELECT - - 73 + - + 35 + - ( ( col1 ) ) + - ( 0 ) / + + col2 FROM tab1 cor0
----
-9
24
33

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

onlyif mysql # DIV for integer division: 
query II rowsort label-965
SELECT DISTINCT + + col1 AS col2, 89 DIV - - col2 AS col0 FROM tab1 AS cor0
----
14
0
47
1
5
1

skipif mysql # not compatible
query II rowsort label-965
SELECT DISTINCT + + col1 AS col2, 89 / - - col2 AS col0 FROM tab1 AS cor0
----
14
0
47
1
5
1

query I rowsort
SELECT - + col0 * + - col0 AS col0 FROM tab0 AS cor0
----
225
7569
9409

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

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT + SUM ( - - 0 ) FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - 56 + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( - 61 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-969
SELECT - col2 AS col1, col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-969
SELECT - col2 AS col1, col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT DISTINCT ( 4 ) FROM tab0 AS cor0
----
4

query I rowsort
SELECT ALL - col2 * - 30 FROM tab1 AS cor0
----
1770
2040
2880

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-974
SELECT DISTINCT 26 * + ( + 15 ) col0, + COUNT( * ) AS col2 FROM tab1
----
390
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-974
SELECT DISTINCT 26 * + ( + 15 ) col0, + COUNT ( * ) AS col2 FROM tab1
----
390
3

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

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

query I rowsort
SELECT DISTINCT + ( + + 19 ) * + 10 AS col0 FROM tab0
----
190

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

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

query I rowsort
SELECT DISTINCT - 65 * + col0 AS col0 FROM tab0 AS cor0
----
-5655
-6305
-975

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

query I rowsort
SELECT ALL + col1 * - 5 AS col0 FROM tab0
----
-105
-405
-5

query I rowsort
SELECT ALL + col0 * col0 * + + col0 AS col2 FROM tab1 AS cor0
----
132651
614125
753571

query I rowsort
SELECT DISTINCT - + ( + + 85 ) * col1 * col1 FROM tab0 AS cor0
----
-37485
-557685
-85

query I rowsort
SELECT DISTINCT col0 + - - 93 FROM tab2 AS cor0
----
139
157
168

query I rowsort
SELECT ALL + + col1 + + 52 + 55 - + col1 * + 10 FROM tab1 AS cor0
----
-19
-316
62

query I rowsort
SELECT DISTINCT + col0 + - - ( + col2 ) * 10 AS col1 FROM tab1 AS cor0
----
1011
675
771

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * - + 98 - - + 47 * + col2 BETWEEN NULL AND ( - ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + - 93, + col0 * + col0 FROM tab1 WHERE NOT 11 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + - + 67 FROM tab1
----
-20
-53
-62

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 99 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + + col2 ) col1 FROM tab2 AS cor0 WHERE + 24 <= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-996
SELECT col0 AS col2 FROM tab2 WHERE NOT col1 / col0 IN ( + CAST( - col2 AS SIGNED ) * - - 50 + - ( - 40 ) + - col0 - col1 / col2 - - + col0 )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-996
SELECT col0 AS col2 FROM tab2 WHERE NOT col1 / col0 IN ( + CAST ( - col2 AS INTEGER ) * - - 50 + - ( - 40 ) + - col0 - col1 / col2 - - + col0 )
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + col2 col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

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

query I rowsort
SELECT - 98 * + + col2 FROM tab0 AS cor0
----
-4606
-9702
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 78 / + col1 NOT IN ( + col1, 97 )
----
0

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 78 / + col1 NOT IN ( + col1, 97 )
----
0

query I rowsort
SELECT DISTINCT - 88 / - 25 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT - 4 NOT IN ( + col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT DISTINCT MAX( 83 ) AS col2 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT MAX ( 83 ) AS col2 FROM tab2
----
83

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

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL + - MIN ( + - col1 ) AS col0 FROM tab0 WHERE col1 IS NULL
----
NULL

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

query I rowsort
SELECT DISTINCT + col1 * + ( + + 12 ) FROM tab0
----
12
252
972

query I rowsort
SELECT ALL - ( 80 ) * - col2 FROM tab2
----
1840
3200
4640

query II rowsort
SELECT + col2 AS col0, - col0 * + + col0 FROM tab2
----
23
-2116
40
-4096
58
-5625

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

query II rowsort
SELECT col2, ( col2 ) + - col1 AS col2 FROM tab0
----
10
-11
47
-34
99
98

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1014
SELECT - CAST( NULL AS DECIMAL ) * - MIN( col1 ) / - CAST( 44 AS SIGNED ) - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT - CAST ( NULL AS REAL ) * - MIN ( col1 ) / - CAST ( 44 AS INTEGER ) - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 33 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ALL - 44 * + col0 + - 86 + - col0 * 60 AS col1 FROM tab2 AS cor0
----
-4870
-6742
-7886

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT - 81 + + COUNT( * ) + - 87 * - 49 FROM tab0 AS cor0
----
4185

skipif mysql # not compatible
query I rowsort label-1018
SELECT - 81 + + COUNT ( * ) + - 87 * - 49 FROM tab0 AS cor0
----
4185

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT SUM( DISTINCT - - col2 ) * + 82 * 47 FROM tab1 AS cor0 WHERE 46 >= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1019
SELECT SUM ( DISTINCT - - col2 ) * + 82 * 47 FROM tab1 AS cor0 WHERE 46 >= col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1021
SELECT DISTINCT col0 DIV col0 - - + col1 AS col0 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT col0 / col0 - - + col1 AS col0 FROM tab2
----
52
68
78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 4 = - + col0
----

query I rowsort
SELECT - col1 * + col1 * - 22 - + + 71 FROM tab2 cor0
----
130367
57151
98687

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT DISTINCT + - COUNT( * ) * - + 35 + COUNT( - col2 ) * 60 AS col2 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT + - COUNT ( * ) * - + 35 + COUNT ( - col2 ) * 60 AS col2 FROM tab2 AS cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT + COUNT( * ) * + 49 AS col0 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-1025
SELECT + COUNT ( * ) * + 49 AS col0 FROM tab0 AS cor0
----
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 89 col1 FROM tab1 AS cor0
----
4539
7565
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1 AS cor0 WHERE NOT NULL >= + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1028
SELECT - CAST( 90 AS SIGNED ) * + SUM( DISTINCT CAST( 59 AS SIGNED ) ) AS col0 FROM tab1 cor0
----
-5310

skipif mysql # not compatible
query I rowsort label-1028
SELECT - CAST ( 90 AS INTEGER ) * + SUM ( DISTINCT CAST ( 59 AS INTEGER ) ) AS col0 FROM tab1 cor0
----
-5310

query I rowsort
SELECT + - 16 * + - 53 AS col0 FROM tab1 AS cor0
----
848
848
848

query II rowsort
SELECT ALL col2 AS col2, 84 FROM tab1
----
59
84
68
84
96
84

query I rowsort
SELECT DISTINCT - ( + col2 ) * - - 57 - + col1 FROM tab1
----
-3368
-3923
-5486

query I rowsort
SELECT ALL - col2 * 23 AS col2 FROM tab0
----
-1081
-2277
-230

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1033
SELECT DISTINCT * FROM tab2 WHERE - - col1 + col2 + + col1 * - - col2 + - CAST( - + ( + col0 ) AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1033
SELECT DISTINCT * FROM tab2 WHERE - - col1 + col2 + + col1 * - - col2 + - CAST ( - + ( + col0 ) AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT ALL COUNT( DISTINCT - - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL COUNT ( DISTINCT - - col0 ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 - - col2 * + + col1 - - + ( 89 ) BETWEEN + ( + + 68 ) / + col1 AND NULL
----

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

query I rowsort
SELECT ALL - 22 + col0 AS col1 FROM tab1 AS cor0
----
29
63
69

query I rowsort
SELECT 29 + - col2 FROM tab2 cor0
----
-11
-29
6

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN NULL AND - 33
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( NULL ) <> + 72 * 80 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, + 22 + + + col0 col0 FROM tab1
----
14
73
47
113
5
107

query II rowsort
SELECT ALL col0 AS col0, + col0 + - 36 FROM tab0
----
15
-21
87
51
97
61

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + col0 + 47
----

query I rowsort
SELECT DISTINCT + col1 + - 49 + - + col0 * + + col1 FROM tab2 AS cor0
----
-2344
-4900
-5007

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1045
SELECT ALL 67 + col2 AS col0, col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
126
NULL
135
NULL
163
NULL

skipif mysql # not compatible
query II rowsort label-1045
SELECT ALL 67 + col2 AS col0, col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
126
NULL
135
NULL
163
NULL

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

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

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

query I rowsort
SELECT DISTINCT + - 66 + - col1 AS col2 FROM tab2 cor0
----
-117
-133
-143

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> 84 * - - 91
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1050
SELECT + col1 AS col2, CAST( + col0 AS SIGNED ) * - ( 61 ) + + ( + + 57 ) DIV + - col1 + - col1 DIV col0 FROM tab2 AS cor0
----
51
-2808
67
-4575
77
-3905

skipif mysql # not compatible
query II rowsort label-1050
SELECT + col1 AS col2, CAST ( + col0 AS INTEGER ) * - ( 61 ) + + ( + + 57 ) / + - col1 + - col1 / col0 FROM tab2 AS cor0
----
51
-2808
67
-4575
77
-3905

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

query I rowsort
SELECT DISTINCT - ( + - 51 ) * + col1 + - 29 FROM tab2
----
2572
3388
3898

query III rowsort
SELECT * FROM tab0 WHERE NOT 98 IN ( col0, - 95, + - 76 ) AND NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT DISTINCT COUNT( * ) * COUNT( * ) * + 98 - 4 AS col0 FROM tab0
----
878

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * + 98 - 4 AS col0 FROM tab0
----
878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1055
SELECT col0 FROM tab2 WHERE + CAST( - col1 AS SIGNED ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1055
SELECT col0 FROM tab2 WHERE + CAST ( - col1 AS INTEGER ) IS NOT NULL
----
46
64
75

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

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

query I rowsort
SELECT 16 * 42 + col2 FROM tab2
----
695
712
730

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

query I rowsort
SELECT - 58 + + - col0 AS col2 FROM tab0 WHERE NOT ( + - 15 ) IS NULL
----
-145
-155
-73

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT - COUNT( * ) * 12 * MIN( - col1 ) AS col2 FROM tab0
----
2916

skipif mysql # not compatible
query I rowsort label-1061
SELECT - COUNT ( * ) * 12 * MIN ( - col1 ) AS col2 FROM tab0
----
2916

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1063
SELECT DISTINCT + - 13 * + 54 + + CAST( + 60 AS SIGNED ) FROM tab1 AS cor0
----
-642

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT + - 13 * + 54 + + CAST ( + 60 AS INTEGER ) FROM tab1 AS cor0
----
-642

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

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

query I rowsort
SELECT + + 29 FROM tab2 WHERE NOT NULL IS NOT NULL
----
29
29
29

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 <> + 78
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 37 + + + col0 FROM tab1
----
122
128
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1069
SELECT + col2 DIV - col0 + 48 FROM tab0
----
45
47
48

skipif mysql # not compatible
query I rowsort label-1069
SELECT + col2 / - col0 + 48 FROM tab0
----
45
47
48

query I rowsort
SELECT 83 * col1 + + col1 AS col0 FROM tab1
----
1176
3948
420

query I rowsort
SELECT col0 + col0 + + - col1 AS col2 FROM tab1
----
135
165
88

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 6 col2 FROM tab1
----
102
65
74

query I rowsort
SELECT col0 + - 32 * + ( - ( - col2 ) ) FROM tab2
----
-1216
-1781
-690

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1076
SELECT DISTINCT 5 AS col2, + ( col1 ) + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE col0 - col2 IS NOT NULL
----
5
NULL

skipif mysql # not compatible
query II rowsort label-1076
SELECT DISTINCT 5 AS col2, + ( col1 ) + CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE col0 - col2 IS NOT NULL
----
5
NULL

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

query II rowsort
SELECT DISTINCT + col2, + 91 FROM tab0
----
10
91
47
91
99
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT ALL SUM( - 94 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-846

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL SUM ( - 94 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1080
SELECT 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-1080
SELECT col0 + - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE + col0 + 20 BETWEEN NULL AND - + col0 * - col2 / + 31
----
0

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 + 20 BETWEEN NULL AND - + col0 * - col2 / + 31
----
0

query I rowsort
SELECT + 5 FROM tab1 AS cor0 WHERE + col2 * - 99 IS NULL
----

query I rowsort
SELECT - ( 52 ) AS col2 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT DISTINCT SUM( + col0 ) - + 13 AS col1 FROM tab2
----
172

skipif mysql # not compatible
query I rowsort label-1084
SELECT DISTINCT SUM ( + col0 ) - + 13 AS col1 FROM tab2
----
172

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1086
SELECT ALL CAST ( - - col0 AS INTEGER ) col0 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT col0 - - 91 AS col2 FROM tab2
----
137
155
166

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1088
SELECT * FROM tab0 WHERE + col0 * col1 / - - CAST( NULL AS SIGNED ) * + + 70 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1088
SELECT * FROM tab0 WHERE + col0 * col1 / - - CAST ( NULL AS INTEGER ) * + + 70 IS NOT NULL
----

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

query I rowsort
SELECT ALL - col2 * - 56 AS col1 FROM tab2
----
1288
2240
3248

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT ALL - col0 DIV - 99 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL - col0 / - 99 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1092
SELECT ALL - ( - col2 ) * col1 DIV col0 AS col1 FROM tab2 AS cor0
----
25
48
51

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL - ( - col2 ) * col1 / col0 AS col1 FROM tab2 AS cor0
----
25
48
51

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

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

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

query I rowsort
SELECT DISTINCT - ( - + 29 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
29

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT ALL + COUNT( * ) * - 28 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL + COUNT ( * ) * - 28 FROM tab2 AS cor0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * col1, 17 col1 FROM tab0 AS cor0
----
210
17
3807
17
99
17

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1101
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1101
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1102
SELECT ALL - 68 + - COUNT( * ), - MAX( ALL + 65 ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-1102
SELECT ALL - 68 + - COUNT ( * ), - MAX ( ALL + 65 ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
-68
NULL

query II rowsort
SELECT ALL + col1 AS col2, col2 + col0 FROM tab1
----
14
147
47
159
5
144

query II rowsort
SELECT - 39 * + - ( col2 ) AS col0, - 15 * - + col1 FROM tab2
----
1560
1155
2262
1005
897
765

query II rowsort
SELECT + col1, - col1 - + 54 + - col1 FROM tab0
----
1
-56
21
-96
81
-216

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE - col1 < - 59
----
-1

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE - col1 < - 59
----
-1

query I rowsort
SELECT ALL - col1 * - 9 FROM tab0 AS cor0
----
189
729
9

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

query I rowsort
SELECT - 33 * + col2 * col1 AS col1 FROM tab2 cor0
----
-101640
-128238
-38709

query I rowsort
SELECT DISTINCT - col0 * - col0 * + col2 FROM tab1 AS cor0
----
249696
426275
563108

query I rowsort
SELECT + ( - + col2 ) - - 91 AS col0 FROM tab1 AS cor0
----
-5
23
32

query I rowsort
SELECT - col2 - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-125
-192
-194

query I rowsort
SELECT + + col2 * + 46 - - 94 AS col1 FROM tab0 AS cor0
----
2256
4648
554

query I rowsort
SELECT DISTINCT 94 FROM tab0, tab0 AS cor0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, 45 col1 FROM tab2 WHERE NULL = NULL
----

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

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

query I rowsort
SELECT col1 * - + 95 AS col0 FROM tab2
----
-4845
-6365
-7315

query I rowsort
SELECT ALL - col2 * - 61 * + + col0 * + col0 FROM tab1
----
15231456
26002775
34349588

query I rowsort
SELECT DISTINCT + col1 * - col1 + - col0 AS col1 FROM tab0 WHERE - col2 IS NOT NULL
----
-528
-6576
-98

query I rowsort
SELECT + + 13 * col0 FROM tab2 AS cor0
----
598
832
975

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, + 13 - col0 col1 FROM tab2
----
23
-33
40
-51
58
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1125
SELECT CAST( 29 AS SIGNED ) FROM tab2 cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-1125
SELECT CAST ( 29 AS INTEGER ) FROM tab2 cor0
----
29
29
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT DISTINCT + COUNT( * ) + 62 * 24 FROM tab2 AS cor0
----
1491

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT + COUNT ( * ) + 62 * 24 FROM tab2 AS cor0
----
1491

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

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

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT 69 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1130
SELECT DISTINCT - COUNT( * ) AS col0, 52 + ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1130
SELECT DISTINCT - COUNT ( * ) AS col0, 52 + ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
-3
NULL

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

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 69 * 70 >= NULL
----

query I rowsort
SELECT DISTINCT + 67 * - - 5 AS col1 FROM tab1
----
335

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - col2 * col0 * - col0 + + - 36 * + 72 * - + 15 AS col2 FROM tab1 cor0
----
288576
465155
601988

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1139
SELECT + col0 - + + 71 DIV + - col0, - 94 AS col0 FROM tab1
----
52
-94
85
-94
91
-94

skipif mysql # not compatible
query II rowsort label-1139
SELECT + col0 - + + 71 / + - col0, - 94 AS col0 FROM tab1
----
52
-94
85
-94
91
-94

query I rowsort
SELECT + 82 * + col0 * - col1 - - - 45 AS col1 FROM tab1
----
-34895
-350759
-58593

query I rowsort
SELECT col1 - - col1 * + ( - - col0 ) * + col2 AS col0 FROM tab0
----
18291
57186
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL <> + 95
----
0

skipif mysql # not compatible
query I rowsort label-1142
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL <> + 95
----
0

query I rowsort
SELECT DISTINCT + - 82 + + col1 FROM tab1 AS cor0
----
-35
-68
-77

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

query I rowsort
SELECT ALL col2 + + - 84 AS col1 FROM tab0 AS cor0
----
-37
-74
15

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 col2, + 17 - col1 col2 FROM tab0 cor0
----
-15
-64
-87
-4
-97
16

onlyif mysql # DIV for integer division: 
query II rowsort label-1148
SELECT + col0 col2, col2 DIV + - 88 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1148
SELECT + col0 col2, col2 / + - 88 FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1149
SELECT + - ( + + SUM( DISTINCT + - col1 ) ) AS col1 FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) ) > 33 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1149
SELECT + - ( + + SUM ( DISTINCT + - col1 ) ) AS col1 FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) > 33 + + col2
----
NULL

query I rowsort
SELECT DISTINCT - 89 + col1 + - + col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

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

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

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

query I rowsort
SELECT + col0 + - ( - col1 ) FROM tab2 WHERE NOT NULL > + col2
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1157
SELECT + + COUNT( + col2 ) DIV - 50 + 46 FROM tab2 cor0 WHERE NOT col2 + - col2 DIV + 43 IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-1157
SELECT + + COUNT ( + col2 ) / - 50 + 46 FROM tab2 cor0 WHERE NOT col2 + - col2 / + 43 IS NULL
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1158
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 35 / - col2 * col1 * - CAST( NULL AS SIGNED ) * + col1 <> NULL
----

skipif mysql # not compatible
query III rowsort label-1158
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 35 / - col2 * col1 * - CAST ( NULL AS INTEGER ) * + col1 <> NULL
----

query I rowsort
SELECT - 56 + + - col1 + + col2 * + col0 FROM tab0 AS cor0 WHERE NOT ( NOT + - col0 * + col2 >= + col1 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1161
SELECT - col1 DIV - 92 * col1 + col0 col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1161
SELECT - col1 / - 92 * col1 + col0 col1 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IS NOT NULL OR - + 49 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + - col0 col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1164
SELECT ALL col1 DIV - - 12 FROM tab2
----
4
5
6

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL col1 / - - 12 FROM tab2
----
4
5
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= + 48
----

query II rowsort
SELECT ALL + col2 * - ( 56 ), + col2 FROM tab1 AS cor0
----
-3304
59
-3808
68
-5376
96

query I rowsort
SELECT DISTINCT ( + col0 ) * - col2 AS col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1168
SELECT - MAX( DISTINCT col2 ) col0 FROM tab0 WHERE CAST( col2 AS SIGNED ) <> - + col2
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1168
SELECT - MAX ( DISTINCT col2 ) col0 FROM tab0 WHERE CAST ( col2 AS INTEGER ) <> - + col2
----
-99

query I rowsort
SELECT ALL col0 * - col1 * - 63 + + ( + col2 ) AS col0 FROM tab1
----
26834
269519
45078

onlyif mysql # DIV for integer division: 
query I rowsort label-1170
SELECT ALL 20 DIV + 83 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL 20 / + 83 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1171
SELECT ALL 52, SUM( 90 ) AS col1 FROM tab1
----
52
270

skipif mysql # not compatible
query II rowsort label-1171
SELECT ALL 52, SUM ( 90 ) AS col1 FROM tab1
----
52
270

query I rowsort
SELECT DISTINCT + 35 * + col0 + col2 AS col2 FROM tab0
----
3055
3494
572

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 59 = + 72 + - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1176
SELECT + + CAST( NULL AS SIGNED ) * 41 / + 63 * COUNT( * ) * CAST( 50 AS SIGNED ) + - COUNT( * ) * + 67 + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1176
SELECT + + CAST ( NULL AS INTEGER ) * 41 / + 63 * COUNT ( * ) * CAST ( 50 AS INTEGER ) + - COUNT ( * ) * + 67 + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1177
SELECT ALL + MIN( - col1 ) + - - 24 + - - CAST( + 10 AS SIGNED ) * - ( - COUNT( * ) ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL + MIN ( - col1 ) + - - 24 + - - CAST ( + 10 AS INTEGER ) * - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 13 + + - col2 col2 FROM tab0 cor0
----
-34
-86
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT + 3 + + MAX( - 18 ) AS col1 FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1179
SELECT + 3 + + MAX ( - 18 ) AS col1 FROM tab2 cor0
----
-15

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1181
SELECT - MIN( + + ( col2 ) ) AS col2, MAX( + col1 ) FROM tab2 AS cor0
----
-23
77

skipif mysql # not compatible
query II rowsort label-1181
SELECT - MIN ( + + ( col2 ) ) AS col2, MAX ( + col1 ) FROM tab2 AS cor0
----
-23
77

query I rowsort
SELECT DISTINCT + 62 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT DISTINCT + + 74 + - COUNT( * ) + 65 col1 FROM tab2 cor0 WHERE NOT col2 * + - 23 IS NULL
----
136

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1183
SELECT DISTINCT + + 74 + - COUNT ( * ) + 65 col1 FROM tab2 cor0 WHERE NOT col2 * + - 23 IS NULL
----
136

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

skipif mysql # not compatible
query I rowsort label-1184
SELECT COUNT ( * ) / + + MIN ( ALL 41 ) AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 14 <= + + col0
----

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

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

query I rowsort
SELECT ALL col2 FROM tab2 WHERE + col2 * + + ( - col2 ) * - + col0 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1188
SELECT ALL col0 DIV ( + col0 ) AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL col0 / ( + col0 ) AS col1 FROM tab1
----
1
1
1

query II rowsort
SELECT DISTINCT col2, col0 * col0 FROM tab2
----
23
2116
40
4096
58
5625

query II rowsort
SELECT + col0, + 31 * + 82 AS col2 FROM tab0
----
15
2542
87
2542
97
2542

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

query I rowsort
SELECT 88 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

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

query I rowsort
SELECT DISTINCT - 71 * + 79 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-5609

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT ALL - COUNT( * ) * - 70 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
630

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL - COUNT ( * ) * - 70 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
630

query I rowsort
SELECT DISTINCT - col1 + + - 58 * + col2 * - col2 FROM tab1 AS cor0
----
201893
268145
534514

query I rowsort
SELECT DISTINCT + col2 + - - col2 * - 66 - - 82 AS col1 FROM tab1 AS cor0
----
-3753
-4338
-6158

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 63 NOT BETWEEN NULL AND + ( + col0 )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT ALL 55 + COUNT( * ) * + 38 col0 FROM tab0 AS cor0
----
169

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1200
SELECT ALL 55 + COUNT ( * ) * + 38 col0 FROM tab0 AS cor0
----
169

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1202
SELECT col0 + - col2 + CAST( NULL AS DECIMAL ) / + - col1, col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-1202
SELECT col0 + - col2 + CAST ( NULL AS REAL ) / + - col1, col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-1203
SELECT - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT 55 + + - 78 FROM tab2
----
-23
-23
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-1205
SELECT ALL - 91 DIV 18 * + 2 AS col0, col2 AS col0 FROM tab1
----
-10
59
-10
68
-10
96

skipif mysql # not compatible
query II rowsort label-1205
SELECT ALL - 91 / 18 * + 2 AS col0, col2 AS col0 FROM tab1
----
-10
59
-10
68
-10
96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1206
SELECT COUNT ( DISTINCT ( - col1 ) ) + - + COUNT ( * ) col0 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1207
SELECT + COUNT( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1207
SELECT + COUNT ( CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
0

query I rowsort
SELECT 3 * - 41 AS col0 FROM tab0
----
-123
-123
-123

query I rowsort
SELECT ALL col1 + 58 AS col1 FROM tab1
----
105
63
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT SUM( - ( - col1 ) ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-1210
SELECT SUM ( - ( - col1 ) ) FROM tab0 AS cor0
----
103

query II rowsort
SELECT DISTINCT + col0 * + + 35 + - col2 - col0 + col2, col2 * + + col1 AS col0 FROM tab2 cor0
----
1564
1173
2176
3080
2550
3886

query I rowsort
SELECT DISTINCT 36 + - ( - + col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
117
37
57

query I rowsort
SELECT DISTINCT - col1 + - - col1 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT - col2 - + 27 AS col0 FROM tab0 AS cor0
----
-126
-37
-74

query I rowsort
SELECT ALL + + col0 + - + 78 + col0 * - + 96 + - 29 FROM tab1 AS cor0
----
-4952
-8182
-8752

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT MAX( DISTINCT - col1 ) * COUNT( * ) - - 56 AS col0 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-1217
SELECT MAX ( DISTINCT - col1 ) * COUNT ( * ) - - 56 AS col0 FROM tab0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT + COUNT( * ) + - + MAX( - + col2 ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-1218
SELECT + COUNT ( * ) + - + MAX ( - + col2 ) FROM tab2
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
27

query II rowsort
SELECT - col0 AS col2, 14 * + - col0 * col1 AS col2 FROM tab1 cor0
----
-51
-9996
-85
-5950
-91
-59878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 + + 79 + + - col2, + col1 col2 FROM tab0 AS cor0 WHERE NOT - 25 < col0 / col0
----

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE NOT col1 * col1 < + 39 * col2 * + col0 / col1
----
-81

query II rowsort
SELECT + 33, col2 * 52 AS col1 FROM tab1 AS cor0
----
33
3068
33
3536
33
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT MAX( 10 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1224
SELECT MAX ( 10 ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT - + COUNT( DISTINCT - col1 ) * - MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-1225
SELECT - + COUNT ( DISTINCT - col1 ) * - MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
-141

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1228
SELECT 51 DIV col0 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1228
SELECT 51 / col0 AS col0 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1229
SELECT col0 DIV 28 * - col1 AS col2 FROM tab1
----
-14
-141
-15

skipif mysql # not compatible
query I rowsort label-1229
SELECT col0 / 28 * - col1 AS col2 FROM tab1
----
-14
-141
-15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT + COUNT( * ) + + COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-1231
SELECT + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
18

query I rowsort
SELECT + col0 * 50 + 26 FROM tab0 AS cor0
----
4376
4876
776

onlyif mysql # DIV for integer division: 
query I rowsort label-1233
SELECT col0 + + + col2 DIV + - col2 + - + 96 FROM tab1
----
-12
-46
-6

skipif mysql # not compatible
query I rowsort label-1233
SELECT col0 + + + col2 / + - col2 + - + 96 FROM tab1
----
-12
-46
-6

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1236
SELECT DISTINCT CAST( NULL AS DECIMAL ), - 72 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-1236
SELECT DISTINCT CAST ( NULL AS REAL ), - 72 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1237
SELECT + col2 AS col0 FROM tab2 cor0 WHERE - 65 * 58 < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1237
SELECT + col2 AS col0 FROM tab2 cor0 WHERE - 65 * 58 < CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT MIN( DISTINCT 40 ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-1238
SELECT MIN ( DISTINCT 40 ) FROM tab0 AS cor0
----
40

query II rowsort
SELECT 95 AS col1, 94 FROM tab1 AS cor0
----
95
94
95
94
95
94

query I rowsort
SELECT DISTINCT ( + col0 ) * + 70 * + - col0 + - 31 + + 81 * - col0 FROM tab2 AS cor0
----
-151877
-291935
-399856

query I rowsort
SELECT ( - 6 ) FROM tab1 AS cor0
----
-6
-6
-6

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

query II rowsort
SELECT - 81 AS col0, 94 * col1 FROM tab2 AS cor0
----
-81
4794
-81
6298
-81
7238

query I rowsort
SELECT + + col1 AS col0 FROM tab2 cor0 WHERE - col0 * - + 1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - 71 AS col1 FROM tab2 WHERE NULL IS NULL
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT DISTINCT - 73 + + COUNT( * ) FROM tab1 WHERE NOT - 47 IN ( - 5, col0 * - - 41 * - ( - col2 ), - col2, col1 )
----
-70

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT - 73 + + COUNT ( * ) FROM tab1 WHERE NOT - 47 IN ( - 5, col0 * - - 41 * - ( - col2 ), - col2, col1 )
----
-70

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

query I rowsort
SELECT + 61 + + - 2 AS col1 FROM tab1
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( + col0 ) * + 68 + - ( - 3 ) col0 FROM tab2
----
143891
278531
382503

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT ALL - COUNT( * ) * + 4 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL - COUNT ( * ) * + 4 FROM tab2
----
-12

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

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

query I rowsort
SELECT - col2 + - col1 + - 54 FROM tab2 cor0
----
-128
-171
-179

query I rowsort
SELECT ALL + 19 + + 12 * - + 87 * - col0 AS col2 FROM tab2 cor0
----
48043
66835
78319

query II rowsort
SELECT ALL - 89 - - col2 AS col2, col0 FROM tab1 AS cor0
----
-21
91
-30
85
7
51

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

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

query I rowsort
SELECT ALL col1 * + + 28 AS col1 FROM tab2
----
1428
1876
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT DISTINCT + 50 * + - COUNT( * ) AS col0 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT + 50 * + - COUNT ( * ) AS col0 FROM tab0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT COUNT( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= - 51
----
0

skipif mysql # not compatible
query I rowsort label-1258
SELECT COUNT ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= - 51
----
0

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

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

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

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

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

query I rowsort
SELECT + 97 * - col0 AS col2 FROM tab2
----
-4462
-6208
-7275

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1263
SELECT ALL CAST( NULL AS DECIMAL ) * col0 AS col2, + 31 AS col0 FROM tab1
----
NULL
31
NULL
31
NULL
31

skipif mysql # not compatible
query II rowsort label-1263
SELECT ALL CAST ( NULL AS REAL ) * col0 AS col2, + 31 AS col0 FROM tab1
----
NULL
31
NULL
31
NULL
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT DISTINCT + COUNT( * ) * 18 AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT + COUNT ( * ) * 18 AS col2 FROM tab0
----
54

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

query I rowsort
SELECT col2 + + 19 * - + 25 FROM tab1
----
-379
-407
-416

query I rowsort
SELECT + 79 + + col0 AS col2 FROM tab1
----
130
164
170

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT MAX( - 37 ) + - 38 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-1269
SELECT MAX ( - 37 ) + - 38 FROM tab2
----
-75

query I rowsort
SELECT - col0 + + 83 AS col1 FROM tab2
----
19
37
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1271
SELECT ALL + 10 + col0 DIV + col0 - - col1 AS col0 FROM tab1 WHERE col2 + - - col2 * + col2 IS NOT NULL
----
16
25
58

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL + 10 + col0 / + col0 - - col1 AS col0 FROM tab1 WHERE col2 + - - col2 * + col2 IS NOT NULL
----
16
25
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1272
SELECT + 98 DIV - - col0 FROM tab0
----
1
1
6

skipif mysql # not compatible
query I rowsort label-1272
SELECT + 98 / - - col0 FROM tab0
----
1
1
6

query I rowsort
SELECT ALL col0 * + + 13 + col1 AS col1 FROM tab0 AS cor0
----
1152
1262
276

query I rowsort
SELECT ALL - + 16 + + col2 AS col0 FROM tab2 AS cor0
----
24
42
7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 39 / - 37 * - 76 + 27 AND col1
----

query I rowsort
SELECT + col1 * - - ( + + col2 ) AS col0 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT + col0 + + 1 FROM tab1
----
52
86
92

query I rowsort
SELECT + 96 + + - col1 * - col1 * 53 FROM tab1
----
10484
117173
1421

query I rowsort
SELECT DISTINCT ( - 50 ) + col2 FROM tab1 AS cor0
----
18
46
9

query II rowsort
SELECT ALL - col0 + + + col2 + col0 AS col0, - 77 * + - ( - + col2 ) + - col2 FROM tab0 cor0
----
10
-780
47
-3666
99
-7722

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 38 + - - col1 * - 21 IS NULL
----

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

query I rowsort
SELECT DISTINCT 21 + + ( + col2 ) FROM tab2 AS cor0 WHERE + ( + ( - col0 ) ) IS NULL
----

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

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

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

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

query I rowsort
SELECT col1 * ( - 8 ) * + ( 79 ) FROM tab1
----
-29704
-3160
-8848

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col1, - col1 col2 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # DIV for integer division: 
query II rowsort label-1290
SELECT ALL + col2 * - col0 - + col0 AS col2, col2 DIV - col0 AS col2 FROM tab2
----
-1104
0
-2624
0
-4425
0

skipif mysql # not compatible
query II rowsort label-1290
SELECT ALL + col2 * - col0 - + col0 AS col2, col2 / - col0 AS col2 FROM tab2
----
-1104
0
-2624
0
-4425
0

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 29 + - col1 FROM tab0 WHERE NOT ( - col1 IS NULL )
----
-52
28
8

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

query II rowsort
SELECT ALL + 61, ( ( + 87 ) ) AS col2 FROM tab0 AS cor0
----
61
87
61
87
61
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT DISTINCT - COUNT( * ) * + 87 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-783

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT - COUNT ( * ) * + 87 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-783

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1299
SELECT ( col2 ) * ( 96 + col1 ) + CAST( col1 AS SIGNED ) FROM tab2
----
3432
6997
9521

skipif mysql # not compatible
query I rowsort label-1299
SELECT ( col2 ) * ( 96 + col1 ) + CAST ( col1 AS INTEGER ) FROM tab2
----
3432
6997
9521

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

query III rowsort
SELECT * FROM tab2 WHERE 24 BETWEEN NULL AND 60 + col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT + 35 * COUNT( * ) FROM tab1 WHERE NOT - col0 * - col1 - col2 > - ( - col2 ) / + 76 - + 70
----
0

skipif mysql # not compatible
query I rowsort label-1303
SELECT + 35 * COUNT ( * ) FROM tab1 WHERE NOT - col0 * - col1 - col2 > - ( - col2 ) / + 76 - + 70
----
0

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

query I rowsort
SELECT ALL - AVG ( ALL + col1 ) FROM tab0 WHERE NOT NULL <> ( NULL )
----
NULL

query I rowsort
SELECT 55 + 18 * col2 AS col0 FROM tab2
----
1099
469
775

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

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT NULL BETWEEN - 39 AND 93 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE - col0 NOT IN ( 18 )
----
-3

skipif mysql # not compatible
query I rowsort label-1309
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE - col0 NOT IN ( 18 )
----
-3

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

query I rowsort
SELECT + 74 AS col0 FROM tab0 WHERE NOT ( 74 ) IN ( 9 )
----
74
74
74

query I rowsort
SELECT + col1 * 66 + + col0 FROM tab1
----
3193
415
975

query I rowsort
SELECT - ( 67 ) FROM tab0
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT ALL + ( - 29 ) - COUNT( * ) FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL + ( - 29 ) - COUNT ( * ) FROM tab2
----
-32

query I rowsort
SELECT ALL 9 + col1 * col2 FROM tab2
----
1182
3089
3895

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 <> - 28 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1317
SELECT DISTINCT 74 AS col0 FROM tab0 WHERE + col2 * CAST( 34 AS SIGNED ) - + 20 <= col1 * - col0
----

skipif mysql # not compatible
query I rowsort label-1317
SELECT DISTINCT 74 AS col0 FROM tab0 WHERE + col2 * CAST ( 34 AS INTEGER ) - + 20 <= col1 * - col0
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE col2 >= - col1
----
14
47
5

query I rowsort
SELECT - ( 3 ) + + 22 FROM tab0
----
19
19
19

query I rowsort
SELECT DISTINCT - 66 + + 54 AS col1 FROM tab0
----
-12

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

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

query I rowsort
SELECT 96 - + col2 FROM tab2
----
38
56
73

query I rowsort
SELECT 34 + + 66 FROM tab0
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT ALL MIN( - col1 ) col0 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1324
SELECT ALL MIN ( - col1 ) col0 FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1325
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + - 2 AS col1 FROM tab1
----
-61
-70
-98

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + - 2 AS col1 FROM tab1
----
-61
-70
-98

query I rowsort
SELECT DISTINCT 27 / + col0 FROM tab0 WHERE NOT ( 1 * col2 - + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 * col0 > ( - ( col2 ) * - 64 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT MIN( ALL - 34 ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-1328
SELECT MIN ( ALL - 34 ) FROM tab1
----
-34

query I rowsort
SELECT DISTINCT - 67 * ( + col1 * col0 ) FROM tab2 AS cor0
----
-157182
-330176
-336675

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE + col0 NOT IN ( + 74 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT - 28 + + COUNT( * ) FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1331
SELECT - 28 + + COUNT ( * ) FROM tab0 AS cor0
----
-25

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

query I rowsort
SELECT + col2 * col0 + + col2 * 26 FROM tab1 AS cor0
----
6549
7392
7956

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= 86
----

query I rowsort
SELECT DISTINCT 74 * col0 AS col0 FROM tab0
----
1110
6438
7178

query III rowsort
SELECT * FROM tab1 WHERE col0 <= 79
----
51
14
96

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

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

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE ( - col1 * - 73 + col0 ) = 22
----

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

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

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

query I rowsort
SELECT ALL 88 * col2 + - 39 AS col1 FROM tab1 AS cor0
----
5153
5945
8409

query I rowsort
SELECT + 48 - 83 AS col1 FROM tab1 AS cor0
----
-35
-35
-35

query I rowsort
SELECT ALL - col1 + + 4 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + 84 / ( col2 ) - - 90 / + col1
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1345
SELECT DISTINCT + col0 DIV - + col2 - 53 * col0 FROM tab1
----
-2703
-4506
-4824

skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT + col0 / - + col2 - 53 * col0 FROM tab1
----
-2703
-4506
-4824

query I rowsort
SELECT + 30 FROM tab0 WHERE ( - col0 ) > 72
----

query I rowsort
SELECT DISTINCT ( - - 21 ) + + 91 AS col1 FROM tab2
----
112

query I rowsort
SELECT ALL 34 - - 49 * + col2 AS col0 FROM tab1
----
2925
3366
4738

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( col0 - 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT + MIN( DISTINCT col2 ) AS col1 FROM tab1 WHERE NULL IN ( + 77 * - 9 + col0 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1350
SELECT + MIN ( DISTINCT col2 ) AS col1 FROM tab1 WHERE NULL IN ( + 77 * - 9 + col0 * col1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1351
SELECT - col2 * col1 + 92 DIV col1 AS col2 FROM tab1
----
-1338
-277
-3195

skipif mysql # not compatible
query I rowsort label-1351
SELECT - col2 * col1 + 92 / col1 AS col2 FROM tab1
----
-1338
-277
-3195

query I rowsort
SELECT DISTINCT 32 - - col2 FROM tab0
----
131
42
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE col0 NOT BETWEEN ( 68 ) AND ( 29 * 47 )
----
1

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE col0 NOT BETWEEN ( 68 ) AND ( 29 * 47 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT 96 * + MIN( col0 ) FROM tab2 AS cor0
----
4416

skipif mysql # not compatible
query I rowsort label-1354
SELECT 96 * + MIN ( col0 ) FROM tab2 AS cor0
----
4416

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 = - 99 / + 18 + - col2
----

query I rowsort
SELECT + 79 AS col2 FROM tab0 AS cor0 WHERE NOT - 75 * col1 BETWEEN ( NULL ) AND 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT ALL + 51 + - COUNT( * ) * COUNT( col1 ) * - 77 FROM tab0 AS cor0
----
744

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL + 51 + - COUNT ( * ) * COUNT ( col1 ) * - 77 FROM tab0 AS cor0
----
744

onlyif mysql # DIV for integer division: 
query I rowsort label-1360
SELECT DISTINCT - col0 DIV + col2 + ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 ) > col2
----
44
63
74

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT - col0 / + col2 + ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 ) > col2
----
44
63
74

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 ) NOT IN ( 70 )
----

query I rowsort
SELECT + col1 + - col1 + - col1 * - col2 * + 95 AS col2 FROM tab1
----
127680
28025
303620

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - 61 BETWEEN ( ( 83 ) + 38 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + ( - col1 ) * + col1 * - 17 + + col2 AS col2 FROM tab1
----
3428
37621
484

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 64 ) >= - 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT + 71 + ( + MIN( - 76 ) ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-1370
SELECT + 71 + ( + MIN ( - 76 ) ) FROM tab2
----
-5

query I rowsort
SELECT - 38 * - col1 * + - col2 * - + col0 FROM tab0
----
2169990
364914
694260

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT + - SUM( 92 ) FROM tab2 cor0
----
-276

skipif mysql # not compatible
query I rowsort label-1374
SELECT + - SUM ( 92 ) FROM tab2 cor0
----
-276

query I rowsort
SELECT DISTINCT + 85 + + col0 / + col2 AS col0 FROM tab0 cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT - MAX( DISTINCT 9 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1376
SELECT - MAX ( DISTINCT 9 ) FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1377
SELECT ALL col1 + + col2 + + CAST( col1 AS SIGNED ) + + 55 AS col2 FROM tab2 AS cor0
----
180
247
249

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL col1 + + col2 + + CAST ( col1 AS INTEGER ) + + 55 AS col2 FROM tab2 AS cor0
----
180
247
249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - - col2 + + - col1 + + col1 + - col2 * + 37 col1 FROM tab1 AS cor0
----
1344
2832
3672

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

query I rowsort
SELECT - + 60 AS col2 FROM tab0 cor0
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 + - 36 col0 FROM tab0 AS cor0
----
-96
-96
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT DISTINCT + COUNT( col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 2 * col0 + + col2 / + col0 ) IN ( col2 * 81 )
----
3

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT + COUNT ( col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 2 * col0 + + col2 / + col0 ) IN ( col2 * 81 )
----
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - + col1 + col2 col1 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT DISTINCT - 58 + col2 AS col2 FROM tab1 cor0
----
1
10
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1387
SELECT ALL CAST( NULL AS DECIMAL ) - - col0 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1387
SELECT ALL CAST ( NULL AS REAL ) - - col0 col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT ALL - SUM( + 76 ) FROM tab2 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL - SUM ( + 76 ) FROM tab2 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT - col0 * - + 98 AS col2 FROM tab2
----
4508
6272
7350

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT + SUM( - 53 ) FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-1390
SELECT + SUM ( - 53 ) FROM tab2
----
-159

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1393
SELECT ALL - + col2 DIV - ( - 79 ) + + col0, col2 FROM tab0 cor0
----
15
47
87
10
96
99

skipif mysql # not compatible
query II rowsort label-1393
SELECT ALL - + col2 / - ( - 79 ) + + col0, col2 FROM tab0 cor0
----
15
47
87
10
96
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN ( 43 + + col1 ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - - 82, col0 AS col0 FROM tab1 AS cor0
----
82
51
82
85
82
91

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

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

query II rowsort
SELECT ( + col1 ) AS col2, col1 * 16 AS col1 FROM tab0
----
1
16
21
336
81
1296

query I rowsort
SELECT ALL + col0 * col1 * - 43 FROM tab2
----
-100878
-211904
-216075

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 64 = NULL
----

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

query I rowsort
SELECT ALL - + col1 * col0 + - 65 + + col2 * + col2 + + 4 AS col2 FROM tab1 AS cor0
----
286
2995
8441

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT + MIN( ALL - - col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1402
SELECT + MIN ( ALL - - col2 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - 14 * - + ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-1134
-14
-294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1404
SELECT ALL + ( - - 98 ) / - CAST( NULL AS SIGNED ) + col2 * + col1 AS col1 FROM tab2 cor0 WHERE NOT ( NOT + 93 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL + ( - - 98 ) / - CAST ( NULL AS INTEGER ) + col2 * + col1 AS col1 FROM tab2 cor0 WHERE NOT ( NOT + 93 IS NULL )
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT + 19 IS NOT NULL
----

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

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

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

query I rowsort
SELECT + + col2 * col0 + + - col0 - - ( col2 ) FROM tab1 cor0
----
4941
4989
6165

query I rowsort
SELECT col2 + + - col0 + - - col2 FROM tab0 AS cor0
----
-67
101
79

query I rowsort
SELECT - col0 + - 79 + - col0 AS col0 FROM tab2 AS cor0
----
-171
-207
-229

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT ALL + MIN( + - col0 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL + MIN ( + - col0 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-88

query I rowsort
SELECT - 49 + + 37 * + col1 FROM tab1 AS cor0
----
136
1690
469

query I rowsort
SELECT ALL + 4 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ALL - + 32 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT + 5 AS col2 FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 29 - + + col2 FROM tab2 AS cor0
----
-11
-29
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 34 - col2 AS col0, - ( + col0 ) * - col0 col2 FROM tab1 AS cor0
----
-102
8281
-130
2601
-93
7225

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

query II rowsort
SELECT - 38 - + + 83, col1 AS col1 FROM tab0 AS cor0
----
-121
1
-121
21
-121
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT + MAX( ALL 82 ) * - 96 FROM tab0 AS cor0
----
-7872

skipif mysql # not compatible
query I rowsort label-1421
SELECT + MAX ( ALL 82 ) * - 96 FROM tab0 AS cor0
----
-7872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1422
SELECT ALL - + 48 DIV + COUNT( * ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL - + 48 / + COUNT ( * ) FROM tab0 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT 58 * COUNT( * ) FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-1423
SELECT 58 * COUNT ( * ) FROM tab0 AS cor0
----
174

query I rowsort
SELECT DISTINCT - 15 * - col0 AS col1 FROM tab2 AS cor0
----
1125
690
960

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT DISTINCT + MAX( DISTINCT 52 ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT + MAX ( DISTINCT 52 ) FROM tab0
----
52

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 5 + col0 * - - col1 + + + col2 AS col0 FROM tab1 AS cor0
----
4350
489
815

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1435
SELECT ALL + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - col2 * + col0 AND ( + + col0 / + - col1 )
----
0

query I rowsort
SELECT DISTINCT + + 60 + + - col1 AS col2 FROM tab2 cor0
----
-17
-7
9

query I rowsort
SELECT 45 + - + col0 FROM tab0
----
-42
-52
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT COUNT( * ) + - - 36 AS col2 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-1439
SELECT COUNT ( * ) + - - 36 AS col2 FROM tab1
----
39

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

query II rowsort
SELECT 12, col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
12
10
12
47
12
99

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE + col1 + + 10 NOT IN ( - col2, 58 - - col1 * 74, 21 * + col0 )
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1443
SELECT ALL - + 58 DIV + - col2 + col1 AS col2 FROM tab2 cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL - + 58 / + - col2 + col1 AS col2 FROM tab2 cor0
----
53
68
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1444
SELECT col2 * + col1 + CAST( - - ( - 95 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1078
2985
3791

skipif mysql # not compatible
query I rowsort label-1444
SELECT col2 * + col1 + CAST ( - - ( - 95 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1078
2985
3791

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1446
SELECT ALL + SUM( ALL + - CAST( NULL AS SIGNED ) ) / - + COUNT( * ) AS col2, 57 AS col1 FROM tab2 AS cor0
----
NULL
57

skipif mysql # not compatible
query II rowsort label-1446
SELECT ALL + SUM ( ALL + - CAST ( NULL AS INTEGER ) ) / - + COUNT ( * ) AS col2, 57 AS col1 FROM tab2 AS cor0
----
NULL
57

query II rowsort
SELECT DISTINCT + col2 AS col0, col1 AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT ( - ( col2 ) ) * + + 22 FROM tab1 AS cor0
----
-1298
-1496
-2112

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

query I rowsort
SELECT col0 * - 98 FROM tab0 cor0
----
-1470
-8526
-9506

query I rowsort
SELECT DISTINCT - - 96 AS col0 FROM tab2 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + - col0, - 70 col2 FROM tab1
----
-2601
-70
-7225
-70
-8281
-70

query I rowsort
SELECT 77 * - - 32 FROM tab0
----
2464
2464
2464

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

query I rowsort
SELECT + 38 * 93 * + + 60 FROM tab0 AS cor0
----
212040
212040
212040

onlyif mysql # DIV for integer division: 
query I rowsort label-1456
SELECT DISTINCT col0 * + col2 + - 8 + - 17 DIV - ( col0 ) - + - col1 FROM tab2 AS cor0
----
1101
2629
4409

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT col0 * + col2 + - 8 + - 17 / - ( col0 ) - + - col1 FROM tab2 AS cor0
----
1101
2629
4409

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT col0 * + col2 + - - ( col1 ) + - col1 DIV col0 FROM tab2 AS cor0
----
1108
2636
4417

skipif mysql # not compatible
query I rowsort label-1457
SELECT col0 * + col2 + - - ( col1 ) + - col1 / col0 FROM tab2 AS cor0
----
1108
2636
4417

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 22 IS NULL
----

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

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

query I rowsort
SELECT + - 85 AS col2 FROM tab1 AS cor0
----
-85
-85
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 * + + col0 * + col1 * + col2 + + + col0 + - col1 * - ( + + col0 ) + - ( + + 0 ) col1 FROM tab2 cor0
----
-14779008
-21853650
-4044458

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT + COUNT( - - col2 ) * + + COUNT( * ) * - ( - 78 ) FROM tab1 cor0 WHERE col2 IS NOT NULL
----
702

skipif mysql # not compatible
query I rowsort label-1463
SELECT + COUNT ( - - col2 ) * + + COUNT ( * ) * - ( - 78 ) FROM tab1 cor0 WHERE col2 IS NOT NULL
----
702

onlyif mysql # DIV for integer division: 
query II rowsort label-1464
SELECT ALL - col0 col2, + 6 DIV col2 AS col0 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1464
SELECT ALL - col0 col2, + 6 / col2 AS col0 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT ALL - COUNT( * ) + 46 AS col2 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL - COUNT ( * ) + 46 AS col2 FROM tab0 AS cor0
----
43

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1467
SELECT DISTINCT CAST( + 9 AS SIGNED ) + col1 col2 FROM tab0 AS cor0
----
10
30
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1467
SELECT DISTINCT CAST ( + 9 AS INTEGER ) + col1 col2 FROM tab0 AS cor0
----
10
30
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 91 > + col2
----
85
5
59
91
47
68

query II rowsort
SELECT ALL col1 - + 14, - col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL < + col2 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1471
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2, - ( - - CAST( + + col2 AS SIGNED ) ) AS col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-1471
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2, - ( - - CAST ( + + col2 AS INTEGER ) ) AS col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

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

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

query III rowsort
SELECT * FROM tab2 WHERE - 64 = - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + - 26 col1 FROM tab1
----
-12
-21
21

query I rowsort
SELECT DISTINCT ( 77 ) AS col1 FROM tab1
----
77

query I rowsort
SELECT + 61 + - col1 AS col1 FROM tab0
----
-20
40
60

query I rowsort
SELECT - - 14 + - 81 + + + ( col0 ) FROM tab2 AS cor0
----
-21
-3
8

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1478
SELECT ALL + col1 + + col2 / + 61 col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT DISTINCT COUNT( DISTINCT + col2 ) + + 45 - - 12 AS col1 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT COUNT ( DISTINCT + col2 ) + + 45 - - 12 AS col1 FROM tab0 AS cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + col0 col0 FROM tab2
----
-2116
-4096
-5625

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

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

query I rowsort
SELECT - ( - col0 ) * - - 33 FROM tab2 cor0
----
1518
2112
2475

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

query I rowsort
SELECT ( col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - col2 * - 97 * - col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

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

skipif mysql # not compatible
query I rowsort label-1488
SELECT - col0 / + col0 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1489
SELECT DISTINCT - MAX( + CAST( + + 75 AS SIGNED ) ) * + 89 AS col2 FROM tab0
----
-6675

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT - MAX ( + CAST ( + + 75 AS INTEGER ) ) * + 89 AS col2 FROM tab0
----
-6675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 49 AS col1, 41 * + col1 col1 FROM tab1
----
-49
1927
-49
205
-49
574

query II rowsort
SELECT + 65 AS col2, - col0 AS col2 FROM tab1
----
65
-51
65
-85
65
-91

query I rowsort
SELECT ALL col0 * + col2 * - - col2 * - + 88 FROM tab0
----
-2915880
-765600
-83661336

onlyif mysql # DIV for integer division: 
query II rowsort label-1493
SELECT - col0 col2, - 7 DIV col1 AS col0 FROM tab1 AS cor0
----
-51
0
-85
-1
-91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1493
SELECT - col0 col2, - 7 / col1 AS col0 FROM tab1 AS cor0
----
-51
0
-85
-1
-91
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT DISTINCT + + 46 + SUM( DISTINCT col2 ) FROM tab1 AS cor0
----
269

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT + + 46 + SUM ( DISTINCT col2 ) FROM tab1 AS cor0
----
269

onlyif mysql # DIV for integer division: 
query I rowsort label-1496
SELECT DISTINCT + col0 DIV - 93 + - col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT + col0 / - 93 + - col2 FROM tab1 AS cor0
----
-59
-68
-96

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

query II rowsort
SELECT ALL + ( 60 ) * + 74 * + col0, - col0 AS col1 FROM tab0
----
386280
-87
430680
-97
66600
-15

query II rowsort
SELECT ALL ( col1 ) * - + 70 * 6 AS col1, col2 FROM tab2
----
-21420
23
-28140
58
-32340
40

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1501
SELECT ALL + CAST( NULL AS DECIMAL ) * + - col1 + col2 + + col1 AS col1, - 94 FROM tab0 AS cor0
----
NULL
-94
NULL
-94
NULL
-94

skipif mysql # not compatible
query II rowsort label-1501
SELECT ALL + CAST ( NULL AS REAL ) * + - col1 + col2 + + col1 AS col1, - 94 FROM tab0 AS cor0
----
NULL
-94
NULL
-94
NULL
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1502
SELECT DISTINCT + col2 + + - col2 * 2 DIV 26 FROM tab0 AS cor0
----
10
44
92

skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT + col2 + + - col2 * 2 / 26 FROM tab0 AS cor0
----
10
44
92

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NULL = col0
----

query I rowsort
SELECT ALL + 7 + ( - + col2 ) + col0 * ( - 15 ) AS col1 FROM tab2 cor0
----
-1176
-706
-993

query I rowsort
SELECT - col2 + col1 + + col1 FROM tab1 AS cor0
----
-49
-68
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT ALL 66 - + + SUM( + - col1 ) AS col1 FROM tab0 AS cor0
----
169

skipif mysql # not compatible
query I rowsort label-1506
SELECT ALL 66 - + + SUM ( + - col1 ) AS col1 FROM tab0 AS cor0
----
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( DISTINCT + 49 ) col2 FROM tab0 WHERE 28 NOT BETWEEN - 91 AND NULL
----
NULL

query I rowsort
SELECT col0 FROM tab0 WHERE - 1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT COUNT( * ) * - 16 AS col0 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-1509
SELECT COUNT ( * ) * - 16 AS col0 FROM tab2
----
-48

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

query II rowsort
SELECT col0 * + ( - + 58 ) * - ( + 50 ) + 23, ( + + col2 ) FROM tab0
----
252323
10
281323
99
43523
47

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1512
SELECT DISTINCT - col1 / + col0 col0 FROM tab0
----
-5
0

query II rowsort
SELECT - ( - 21 ) * - + col1 AS col2, + col1 AS col0 FROM tab2
----
-1071
51
-1407
67
-1617
77

query I rowsort
SELECT - 52 * 77 FROM tab2
----
-4004
-4004
-4004

query I rowsort
SELECT col0 / + col1 FROM tab1 WHERE ( + 94 + + ( - 1 ) ) IS NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1518
SELECT - 19 * + + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1539

query I rowsort
SELECT - - 11 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

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

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

query I rowsort
SELECT DISTINCT + col1 + - - 29 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
34
43
76

query II rowsort
SELECT - 16 AS col2, 91 + - + col1 * + + 67 AS col1 FROM tab0 AS cor0
----
-16
-1316
-16
-5336
-16
24

query I rowsort
SELECT + - col0 * - + 11 * 37 FROM tab1 AS cor0
----
20757
34595
37037

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT - COUNT( * ) * COUNT( + 88 ) col1 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1525
SELECT - COUNT ( * ) * COUNT ( + 88 ) col1 FROM tab0
----
-9

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT 9 * + col0 BETWEEN - - 51 - + ( - + 37 ) AND - - 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT DISTINCT SUM( DISTINCT + 20 ) * + + MAX( - + 90 ) FROM tab2
----
-1800

skipif mysql # not compatible
query I rowsort label-1528
SELECT DISTINCT SUM ( DISTINCT + 20 ) * + + MAX ( - + 90 ) FROM tab2
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT ALL MIN( 29 ) FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL MIN ( 29 ) FROM tab0
----
29

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - col1 NOT BETWEEN - + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col1 AS col1, - col0 * + col2 * - col0 + + col2 FROM tab2 AS cor0
----
-51
48691
-67
326308
-77
163880

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1533
SELECT DISTINCT + + CAST( 64 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-1533
SELECT DISTINCT + + CAST ( 64 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT DISTINCT - 89 + + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT - 89 + + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-92

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

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

query II rowsort
SELECT + - 78, 54 AS col2 FROM tab0 AS cor0
----
-78
54
-78
54
-78
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT + SUM( - 41 ) FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-1537
SELECT + SUM ( - 41 ) FROM tab0 AS cor0
----
-123

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1539
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL = NULL
----
0

query I rowsort
SELECT ALL 25 + - - 49 + - 25 AS col1 FROM tab2 cor0
----
49
49
49

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

query I rowsort
SELECT - col0 FROM tab1 WHERE - - col0 IS NOT NULL
----
-51
-85
-91

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

query I rowsort
SELECT ALL - 87 FROM tab1 WHERE NOT - 8 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1545
SELECT 8 DIV + - col1 + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1545
SELECT 8 / + - col1 + - col0 FROM tab2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1546
SELECT ALL ( - col0 ) * ( + col1 ) DIV + 82 AS col1 FROM tab0 AS cor0
----
-1
-14
-22

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL ( - col0 ) * ( + col1 ) / + 82 AS col1 FROM tab0 AS cor0
----
-1
-14
-22

query I rowsort
SELECT DISTINCT + ( - col1 ) AS col1 FROM tab2 WHERE + 21 = + + 16 + + - col0 - + + 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT - MAX( + 2 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-1548
SELECT - MAX ( + 2 ) FROM tab2
----
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT DISTINCT - - 94 * - SUM( - col1 ) * + 73 FROM tab1 AS cor0
----
452892

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT - - 94 * - SUM ( - col1 ) * + 73 FROM tab1 AS cor0
----
452892

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT DISTINCT + - SUM( DISTINCT - 26 ) AS col2 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT + - SUM ( DISTINCT - 26 ) AS col2 FROM tab1 AS cor0
----
26

query I rowsort
SELECT 35 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= + col0
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT SUM( + col2 ) + - 41 FROM tab0
----
115

skipif mysql # not compatible
query I rowsort label-1555
SELECT SUM ( + col2 ) + - 41 FROM tab0
----
115

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT IN ( - col1 / col1 )
----

query I rowsort
SELECT - 7 + - - col0 - 6 FROM tab2
----
33
51
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1559
SELECT 66 DIV + - COUNT( * ) + + - COUNT( * ) AS col0 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-1559
SELECT 66 / + - COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab1
----
-25

query I rowsort
SELECT - ( + - 59 ) * - col1 + 11 FROM tab2
----
-2998
-3942
-4532

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + - 27 col0 FROM tab1 AS cor0
----
-123
-86
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT DISTINCT - MIN( ( + - col0 ) ) AS col1 FROM tab0 AS cor0 WHERE + 85 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT - MIN ( ( + - col0 ) ) AS col1 FROM tab0 AS cor0 WHERE + 85 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + + 57 * 44 AS col2 FROM tab1 AS cor0
----
2508

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( ( + 18 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT DISTINCT + 30 * + - COUNT( DISTINCT 85 ) col2 FROM tab1, tab0 cor0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1568
SELECT DISTINCT + 30 * + - COUNT ( DISTINCT 85 ) col2 FROM tab1, tab0 cor0
----
-30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN - col2 * - + col0 + - ( - - 6 ) + - - col0 AND + 57
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1571
SELECT DISTINCT - 92 * ( + col2 ) AS col2, - 77 DIV - col1 FROM tab2 AS cor0
----
-2116
1
-3680
1
-5336
1

skipif mysql # not compatible
query II rowsort label-1571
SELECT DISTINCT - 92 * ( + col2 ) AS col2, - 77 / - col1 FROM tab2 AS cor0
----
-2116
1
-3680
1
-5336
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 43 * col2 * col2 * col1 + 19 * + 12 * + ( - 83 ) + 62 * - + col2 col2 FROM tab1 cor0
----
5523207
725918
9322055

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 98 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-1573
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 98 * + col2
----
0

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

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

query I rowsort
SELECT col2 + - 23 + - col1 FROM tab1 AS cor0
----
-2
31
59

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

query II rowsort
SELECT ALL - + col0 + - 28, + 65 + + col1 AS col0 FROM tab0 cor0
----
-115
86
-125
66
-43
146

query I rowsort
SELECT ( + + col1 ) + - col0 AS col2 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN - + 36 AND NULL
----
-96
66

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

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

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

query I rowsort
SELECT + + col1 + col1 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col2, 45 + col1 FROM tab0
----
10
66
47
126
99
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1583
SELECT - CAST( NULL AS SIGNED ) col1, + 46 AS col1 FROM tab2
----
NULL
46
NULL
46
NULL
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1583
SELECT - CAST ( NULL AS INTEGER ) col1, + 46 AS col1 FROM tab2
----
NULL
46
NULL
46
NULL
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT DISTINCT 26 - - COUNT( * ) AS col0 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT 26 - - COUNT ( * ) AS col0 FROM tab0
----
29

query III rowsort
SELECT * FROM tab0 WHERE NOT - 96 * col1 IS NOT NULL
----

query II rowsort
SELECT ALL + col1 * + ( + col1 ), 36 * + ( + col2 ) + - col0 + 87 AS col1 FROM tab1
----
196
3492
2209
2444
25
2126

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

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

query I rowsort
SELECT ALL 37 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1589
SELECT ALL + 38 * + CAST( NULL AS SIGNED ) * + 71 col2, + 78 AS col1 FROM tab2 AS cor0
----
NULL
78
NULL
78
NULL
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1589
SELECT ALL + 38 * + CAST ( NULL AS INTEGER ) * + 71 col2, + 78 AS col1 FROM tab2 AS cor0
----
NULL
78
NULL
78
NULL
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT + MIN( ALL + 6 ) AS col1 FROM tab1 AS cor0 WHERE NOT + 49 + + ( + 68 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1590
SELECT + MIN ( ALL + 6 ) AS col1 FROM tab1 AS cor0 WHERE NOT + 49 + + ( + 68 ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL ( + - col1 ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT + MIN( + 78 ) FROM tab2 cor0
----
78

skipif mysql # not compatible
query I rowsort label-1592
SELECT + MIN ( + 78 ) FROM tab2 cor0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1593
SELECT ALL - COUNT( * ) DIV 11 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL - COUNT ( * ) / 11 AS col0 FROM tab1 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1595
SELECT ALL 67 DIV - - col0 + - - col0 FROM tab0 AS cor0
----
19
87
97

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL 67 / - - col0 + - - col0 FROM tab0 AS cor0
----
19
87
97

query I rowsort
SELECT DISTINCT - + 70 + - + col1 + 66 AS col0 FROM tab0 AS cor0
----
-25
-5
-85

query I rowsort
SELECT + 7 - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-74
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT DISTINCT col1 DIV 30 AS col1 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT col1 / 30 AS col1 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT ALL - ( + - col2 ) - + - 92 FROM tab2 cor0 WHERE NOT - ( - - 94 ) IS NULL
----
115
132
150

query I rowsort
SELECT - col0 * 87 FROM tab0 AS cor0
----
-1305
-7569
-8439

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 3 col0, 43 col1 FROM tab1
----
3
43
3
43
3
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT 15 + - - COUNT( * ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-1602
SELECT 15 + - - COUNT ( * ) FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT ALL + MIN( ALL + 53 ) + 22 AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL + MIN ( ALL + 53 ) + 22 AS col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL - + col1 + - - 25 FROM tab2 AS cor0
----
-26
-42
-52

query I rowsort
SELECT 75 * + 14 * - 11 + - + 79 + 4 + + 38 FROM tab1 AS cor0
----
-11587
-11587
-11587

query II rowsort
SELECT - col0 * col0, ( + 36 ) - 2 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN - + col1 AND NULL
----

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

query I rowsort
SELECT ALL + + 97 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT 79 <> + 93
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 / + + 97 = + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 34 - + col1 * - col1 col2 FROM tab1 cor0
----
-9
162
2175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - col0 - - 53 col1 FROM tab1 AS cor0
----
-4843
-4962
-6135

query I rowsort
SELECT - col1 - + 82 AS col0 FROM tab0 AS cor0
----
-103
-163
-83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1614
SELECT - col1 - + col1, CAST( col2 AS SIGNED ) DIV + + col1 AS col1 FROM tab2 AS cor0
----
-102
0
-134
0
-154
0

skipif mysql # not compatible
query II rowsort label-1614
SELECT - col1 - + col1, CAST ( col2 AS INTEGER ) / + + col1 AS col1 FROM tab2 AS cor0
----
-102
0
-134
0
-154
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1617
SELECT ( CAST( + + col1 AS SIGNED ) ) - - 61 FROM tab1 AS cor0
----
108
66
75

skipif mysql # not compatible
query I rowsort label-1617
SELECT ( CAST ( + + col1 AS INTEGER ) ) - - 61 FROM tab1 AS cor0
----
108
66
75

query I rowsort
SELECT ALL 64 + + + col1 AS col0 FROM tab1 AS cor0
----
111
69
78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1620
SELECT ALL MAX( ALL + CAST( - + col2 AS SIGNED ) ) FROM tab1
----
-59

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

query I rowsort
SELECT - 22 * - 93 * - + col1 * + col2 FROM tab0
----
-202554
-429660
-7789122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1622
SELECT DISTINCT - 20 * ( - CAST( - col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-1180
-1360
-1920

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT - 20 * ( - CAST ( - col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-1180
-1360
-1920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1623
SELECT ALL + + CAST( + MIN( DISTINCT - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL + + CAST ( + MIN ( DISTINCT - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT - - 71 * ( - ( + col0 ) ) * - ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-347616
-356065
-439348

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1626
SELECT DISTINCT - ( - 24 ) * + ( + COUNT( * ) ) AS col1, COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
216
9

skipif mysql # not compatible
query II rowsort label-1626
SELECT DISTINCT - ( - 24 ) * + ( + COUNT ( * ) ) AS col1, COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
216
9

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

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

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

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

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

query I rowsort
SELECT ALL - ( - col2 ) + col2 + + + col1 * - + col0 * - + col2 * + - col2 * - 92 + 84 + - 8 + col1 AS col2 FROM tab2 AS cor0
----
114175301
1555177459
725401833

query I rowsort
SELECT DISTINCT + 57 + + col2 AS col0 FROM tab1 cor0
----
116
125
153

onlyif mysql # DIV for integer division: 
query I rowsort label-1632
SELECT ALL 98 DIV - col0 + - col2 * + + col0 FROM tab0 AS cor0
----
-711
-871
-9604

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL 98 / - col0 + - col2 * + + col0 FROM tab0 AS cor0
----
-711
-871
-9604

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 30 * + 24 FROM tab2
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT AVG ( - 2 ) + + MIN( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 AND - + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1637
SELECT AVG ( - 2 ) + + MIN ( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 AND - + 80
----
NULL

query I rowsort
SELECT DISTINCT col2 * 19 + - + col0 FROM tab2 AS cor0
----
1027
391
696

query II rowsort
SELECT DISTINCT - col2 + - col2 + + col1 AS col2, + ( - col1 ) FROM tab1 AS cor0 WHERE col2 < NULL
----

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

query I rowsort
SELECT - col1 - + ( - 22 ) AS col1 FROM tab2
----
-29
-45
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT + SUM( + 77 ) + + - SUM( - - col2 ) * - - SUM( ALL 54 ) + - MAX( ALL - col0 ) AS col1 FROM tab0
----
-25026

skipif mysql # not compatible
query I rowsort label-1643
SELECT + SUM ( + 77 ) + + - SUM ( - - col2 ) * - - SUM ( ALL 54 ) + - MAX ( ALL - col0 ) AS col1 FROM tab0
----
-25026

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 68 + 82 / col1 BETWEEN - ( - + col0 ) AND + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1645
SELECT COUNT( * ) AS col0, - ( + 91 ) AS col2 FROM tab1 AS cor0 WHERE NULL IN ( - col2, + col0, + - col1 )
----
0
-91

skipif mysql # not compatible
query II rowsort label-1645
SELECT COUNT ( * ) AS col0, - ( + 91 ) AS col2 FROM tab1 AS cor0 WHERE NULL IN ( - col2, + col0, + - col1 )
----
0
-91

query II rowsort
SELECT DISTINCT - + 76 AS col0, - col1 + + 74 AS col1 FROM tab1 cor0
----
-76
27
-76
60
-76
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT - - MAX( ALL + 67 ) AS col0 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-1648
SELECT - - MAX ( ALL + 67 ) AS col0 FROM tab1 AS cor0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1649
SELECT - 62 DIV + col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1649
SELECT - 62 / + col1 FROM tab2 AS cor0
----
-1
0
0

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

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

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

query II rowsort
SELECT col0, - 56 * - + ( + col0 ) FROM tab0
----
15
840
87
4872
97
5432

query I rowsort
SELECT ALL + 9 * + col2 FROM tab2
----
207
360
522

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1654
SELECT DISTINCT - 9 col0, - CAST( - col1 AS SIGNED ) FROM tab2
----
-9
51
-9
67
-9
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1654
SELECT DISTINCT - 9 col0, - CAST ( - col1 AS INTEGER ) FROM tab2
----
-9
51
-9
67
-9
77

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT - + col1 BETWEEN - col1 * + - 26 + - 64 - - col2 / - col2 AND - + col0
----
15
87
97

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

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

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT + - col2 * - 35 * - col2 + 90 + + 40 * col1 + CAST ( NULL AS INTEGER ) FROM tab1 WHERE + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col0 * + + col1 - 9 FROM tab0 AS cor0
----
1206
1818
88

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

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

skipif mysql # not compatible
query I rowsort label-1660
SELECT + 7 / + - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 72 + + col1 * + col2 FROM tab0
----
171
282
3879

query I rowsort
SELECT + 85 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT DISTINCT 34 * - + col1 FROM tab1 AS cor0
----
-1598
-170
-476

query I rowsort
SELECT ALL + col0 * + - col1 + + 53 + + + ( + 18 ) + - col2 + - col2 * - col1 FROM tab0 AS cor0
----
-1556
-26
2616

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1666
SELECT - COUNT( col1 ), 5 AS col2 FROM tab0 AS cor0
----
-3
5

skipif mysql # not compatible
query II rowsort label-1666
SELECT - COUNT ( col1 ), 5 AS col2 FROM tab0 AS cor0
----
-3
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + - col2 col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL col2 + 2 AS col1 FROM tab2 AS cor0
----
25
42
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT + COUNT( * ) * - - 65 AS col0 FROM tab0 cor0
----
195

skipif mysql # not compatible
query I rowsort label-1669
SELECT + COUNT ( * ) * - - 65 AS col0 FROM tab0 cor0
----
195

query I rowsort
SELECT DISTINCT + - col0 + + col0 * + 60 - - col0 AS col1 FROM tab1 AS cor0
----
3060
5100
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NOT 58 IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-1671
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NOT 58 IS NULL )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT ALL col2 DIV col0 * + - col0 FROM tab0 AS cor0
----
-45
-97
0

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL col2 / col0 * + - col0 FROM tab0 AS cor0
----
-45
-97
0

query I rowsort
SELECT DISTINCT - col0 * + ( - + col2 ) FROM tab0
----
705
870
9603

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 * - + 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL COUNT( * ) * - + 57 AS col1 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL COUNT ( * ) * - + 57 AS col1 FROM tab2
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1677
SELECT DISTINCT - CAST( + - col1 AS SIGNED ) * + ( - 61 ) FROM tab2
----
-3111
-4087
-4697

skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT - CAST ( + - col1 AS INTEGER ) * + ( - 61 ) FROM tab2
----
-3111
-4087
-4697

query I rowsort
SELECT DISTINCT - 57 * - col0 AS col2 FROM tab1
----
2907
4845
5187

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1679
SELECT - col1 + - col1 * - + 42 - 37 + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1679
SELECT - col1 + - col1 * - + 42 - 37 + + + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 37 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT DISTINCT col0 DIV + + 50 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT col0 / + + 50 FROM tab1
----
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + - col2 col2 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT - 18 * - col1 * + col0 + - ( col2 ) + col2 + + + 78 * - - 62 + - 75 AS col2 FROM tab2 cor0
----
46989
93465
95211

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE 49 * - - col0 >= - + col2
----
14
47
5

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

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

query I rowsort
SELECT DISTINCT - col1 * - + ( col1 ) FROM tab2 AS cor0 WHERE NULL >= - ( - 43 ) * 6
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < NULL
----

query II rowsort
SELECT DISTINCT ( - col2 ) - ( - - 56 ) AS col0, col2 FROM tab2
----
-114
58
-79
23
-96
40

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

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

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

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

query I rowsort
SELECT ALL + - 76 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE + ( - - 73 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT COUNT( * ) * - 48 col1 FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1693
SELECT COUNT ( * ) * - 48 col1 FROM tab0 AS cor0
----
-144

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + + 9 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT - COUNT( * ) * - 7 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-1697
SELECT - COUNT ( * ) * - 7 FROM tab0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 11 col2 FROM tab0 AS cor0 WHERE col2 - col2 - + + col0 + - col0 + + - col1 - col2 * - col1 <> col2
----
11
11
11

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

skipif mysql # not compatible
query I rowsort label-1699
SELECT - + COUNT ( * ) * - COUNT ( DISTINCT - col1 ) / - 47 + + 11 FROM tab1 AS cor0
----
11

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col0 * - col1 FROM tab2
----
51
-2346
67
-5025
77
-4928

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

query II rowsort
SELECT - col2 AS col2, col1 * - col2 FROM tab2
----
-23
-1173
-40
-3080
-58
-3886

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

query I rowsort
SELECT - col1 + + col0 + 31 * 11 AS col1 FROM tab1 cor0
----
378
385
421

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

query II rowsort
SELECT DISTINCT - 30 + + 42, + col2 FROM tab1
----
12
59
12
68
12
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT + COUNT( * ) * - SUM( + col2 ) AS col1 FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-1708
SELECT + COUNT ( * ) * - SUM ( + col2 ) AS col1 FROM tab1
----
-669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * col1 col1, + col1 + 10 FROM tab2
----
1173
61
3080
87
3886
77

query I rowsort
SELECT ALL 40 - col0 * - col2 - - - col2 AS col1 FROM tab0
----
698
900
9544

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1711
SELECT + col2 * - col0 col0, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-4896
NULL
-5015
NULL
-6188
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1711
SELECT + col2 * - col0 col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-4896
NULL
-5015
NULL
-6188
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 93 * + + 42 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT + 73 FROM tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT - MAX( - col2 ) * - - ( - ( + 1 ) ) AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND - col0 + - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT - MAX ( - col2 ) * - - ( - ( + 1 ) ) AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND - col0 + - - col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 * + col2 col0 FROM tab1
----
-2478
-2856
-4032

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

query I rowsort
SELECT ALL - 24 + 7 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-17
-17
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col2 FROM tab1 AS cor0 WHERE NOT - col2 > + col0 / - col1
----
47
47
47

query I rowsort
SELECT DISTINCT 82 * 24 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( + 70 ) + - 62 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1723
SELECT col0 * - col0 + col2 + col0 - - - 41 DIV + 15 FROM tab2 AS cor0
----
-2049
-3994
-5494

skipif mysql # not compatible
query I rowsort label-1723
SELECT col0 * - col0 + col2 + col0 - - - 41 / + 15 FROM tab2 AS cor0
----
-2049
-3994
-5494

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT + 70 IS NULL )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1727
SELECT + col0 DIV 43 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1727
SELECT + col0 / 43 AS col2 FROM tab2
----
1
1
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1728
SELECT + CAST ( 1 AS INTEGER ) col0 FROM tab0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + + - col2 - - 16 * + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1730
SELECT + - 0 AS col1, 44 * + COUNT( * ) col0 FROM tab1 WHERE NOT + 0 IS NULL
----
0
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1730
SELECT + - 0 AS col1, 44 * + COUNT ( * ) col0 FROM tab1 WHERE NOT + 0 IS NULL
----
0
132

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 96 >= NULL
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( ( + col0 <= ( - col0 + + + 89 ) ) )
----
15
81
47

query I rowsort
SELECT ALL + 83 * 7 + col0 FROM tab2 WHERE NOT NULL <= + + 64
----

query I rowsort
SELECT DISTINCT - 14 AS col1 FROM tab1 WHERE NOT NULL > + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1737
SELECT - 96 DIV - col2 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1737
SELECT - 96 / - col2 FROM tab2 AS cor0
----
1
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ALL - 85 + - + COUNT( * ) FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL - 85 + - + COUNT ( * ) FROM tab2 AS cor0
----
-88

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1744
SELECT ALL 89 * 61 + col2 / + + CAST( NULL AS DECIMAL ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1744
SELECT ALL 89 * 61 + col2 / + + CAST ( NULL AS REAL ) col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - - 10 AS col1, - col1 FROM tab0 WHERE col1 / + col1 / col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1746
SELECT DISTINCT - ( - + CAST( - col2 AS SIGNED ) ) AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT - ( - + CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab1
----
-59
-68
-96

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

query I rowsort
SELECT DISTINCT - 54 * + col2 * + col0 FROM tab2
----
-138240
-234900
-57132

query II rowsort
SELECT col0 + - - col1 * ( + col1 ), - col0 AS col1 FROM tab1
----
110
-85
2300
-91
247
-51

query III rowsort
SELECT * FROM tab2 WHERE - - 93 + - col0 - + 42 * - 41 * + - col1 > NULL
----

query I rowsort
SELECT + 49 + 44 AS col0 FROM tab1 AS cor0
----
93
93
93

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

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

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

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

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

query I rowsort
SELECT ALL - 81 * - - col2 FROM tab1
----
-4779
-5508
-7776

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

query I rowsort
SELECT + 71 * + col1 FROM tab2
----
3621
4757
5467

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1760
SELECT DISTINCT - col1 DIV - col2 + 50 - + col0 FROM tab2 AS cor0
----
-13
-24
6

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT - col1 / - col2 + 50 - + col0 FROM tab2 AS cor0
----
-13
-24
6

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 / 5 ) BETWEEN NULL AND col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT COUNT( * ) + - - ( - 3 ) * + + COUNT( 10 ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-1765
SELECT COUNT ( * ) + - - ( - 3 ) * + + COUNT ( 10 ) AS col2 FROM tab0
----
-6

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

query I rowsort
SELECT ALL col1 * ( + + col0 ) * - 73 AS col2 FROM tab1
----
-31025
-312221
-52122

onlyif mysql # DIV for integer division: 
query I rowsort label-1768
SELECT ALL 69 DIV col1 - col2 + - + ( 70 ) FROM tab0 AS cor0
----
-100
-117
-77

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL 69 / col1 - col2 + - + ( 70 ) FROM tab0 AS cor0
----
-100
-117
-77

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 - col0 / - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT + COUNT( DISTINCT 49 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1771
SELECT + COUNT ( DISTINCT 49 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT - COUNT( * ) + 10 * COUNT( * ) AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-1772
SELECT - COUNT ( * ) + 10 * COUNT ( * ) AS col0 FROM tab2
----
27

query I rowsort
SELECT DISTINCT 19 * 40 AS col1 FROM tab2
----
760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1774
SELECT - CAST( - 95 AS SIGNED ) FROM tab0
----
95
95
95

skipif mysql # not compatible
query I rowsort label-1774
SELECT - CAST ( - 95 AS INTEGER ) FROM tab0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT ALL COUNT( - 40 ) + - 49 * 86 FROM tab2 WHERE NOT NULL <= ( NULL )
----
-4214

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL COUNT ( - 40 ) + - 49 * 86 FROM tab2 WHERE NOT NULL <= ( NULL )
----
-4214

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 5 > ( + col0 * - 42 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1778
SELECT ALL 9 * MIN( ALL + col2 ) + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL 9 * MIN ( ALL + col2 ) + CAST ( NULL AS REAL ) FROM tab0
----
NULL

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

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

query I rowsort
SELECT 42 * + col0 AS col2 FROM tab2
----
1932
2688
3150

onlyif mysql # DIV for integer division: 
query I rowsort label-1782
SELECT DISTINCT 54 DIV col0 + col2 AS col0 FROM tab1
----
59
68
97

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT 54 / col0 + col2 AS col0 FROM tab1
----
59
68
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1783
SELECT - col0 DIV 13 + ( 53 + col2 * col1 ) AS col1 FROM tab1
----
1394
3242
342

skipif mysql # not compatible
query I rowsort label-1783
SELECT - col0 / 13 + ( 53 + col2 * col1 ) AS col1 FROM tab1
----
1394
3242
342

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1784
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) > NULL
----
0

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1787
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS DECIMAL ) < - 45 * + CAST( col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1787
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS REAL ) < - 45 * + CAST ( col0 AS REAL )
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL < + col0
----

query I rowsort
SELECT - 41 + ( + col2 ) * + col2 FROM tab0
----
2168
59
9760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 * + col2 col1 FROM tab0
----
2679
5643
570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1791
SELECT CAST( NULL AS SIGNED ) + 47 FROM tab1 WHERE NOT ( col2 ) NOT IN ( col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1791
SELECT CAST ( NULL AS INTEGER ) + 47 FROM tab1 WHERE NOT ( col2 ) NOT IN ( col2 )
----
NULL
NULL
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1794
SELECT ALL + 77 DIV - col1 FROM tab0
----
-3
-77
0

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL + 77 / - col1 FROM tab0
----
-3
-77
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT 26 + COUNT( * ) AS col0 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-1797
SELECT 26 + COUNT ( * ) AS col0 FROM tab2
----
29

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

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT - col1 + col1 * - ( col0 ) IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ALL 14 * + MAX( + col2 ) AS col1 FROM tab2 AS cor0
----
812

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL 14 * + MAX ( + col2 ) AS col1 FROM tab2 AS cor0
----
812

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT - 47 * + COUNT( col0 / + col1 ) FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-1801
SELECT - 47 * + COUNT ( col0 / + col1 ) FROM tab2 AS cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT - 19 * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
171

skipif mysql # not compatible
query I rowsort label-1802
SELECT - 19 * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
171

query I rowsort
SELECT DISTINCT + 43 AS col1 FROM tab2 WHERE NOT ( NULL ) IN ( 49 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 + 15 IS NULL
----

query I rowsort
SELECT 94 FROM tab1 WHERE NOT 29 NOT BETWEEN NULL AND + 13 / - 29
----

query I rowsort
SELECT 59 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

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

query I rowsort
SELECT - - col2 * - 73 FROM tab2 AS cor0
----
-1679
-2920
-4234

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

skipif mysql # not compatible
query I rowsort label-1809
SELECT + 58 / col0 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT + ( 14 ) * + col1 FROM tab0 AS cor0
----
1134
14
294

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

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

query I rowsort
SELECT ALL + 87 * - 86 FROM tab2
----
-7482
-7482
-7482

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT DISTINCT + MAX( + col1 ) * + 8 FROM tab2
----
616

skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT + MAX ( + col1 ) * + 8 FROM tab2
----
616

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1815
SELECT ( - ( - 68 ) ) DIV col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1815
SELECT ( - ( - 68 ) ) / col0 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT - col2 * col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-3481
-4624
-9216

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE - col1 * col0 IS NOT NULL
----
15
87
97

query I rowsort
SELECT col2 * + - 94 * - col0 AS col2 FROM tab0
----
66270
81780
902682

query I rowsort
SELECT - 58 * + col1 FROM tab1 WHERE NOT NULL = - 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT DISTINCT 51 * - - COUNT( DISTINCT col1 ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT 51 * - - COUNT ( DISTINCT col1 ) FROM tab1
----
153

query I rowsort
SELECT DISTINCT 20 + - 86 - - col0 FROM tab2
----
-2
-20
9

query I rowsort
SELECT ALL + 36 + + col0 + - 70 AS col2 FROM tab2
----
12
30
41

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

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

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

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

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

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE - col0 * - col1 IS NOT NULL
----
1
21
81

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

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL + CAST ( NULL AS REAL ) / + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT DISTINCT 0 DIV - col2 + col0 + col2 FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT 0 / - col2 + col0 + col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT + MAX( + col0 ) + 96 AS col2 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-1829
SELECT + MAX ( + col0 ) + 96 AS col2 FROM tab2 AS cor0
----
171

query I rowsort
SELECT DISTINCT ( - col1 ) * ( col1 ) + - col0 AS col1 FROM tab0 AS cor0
----
-528
-6576
-98

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

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT DISTINCT + SUM( ( 27 ) ) + 72 AS col0 FROM tab2 cor0
----
153

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT + SUM ( ( 27 ) ) + 72 AS col0 FROM tab2 cor0
----
153

query II rowsort
SELECT ALL - 44 AS col0, - 13 AS col1 FROM tab2
----
-44
-13
-44
-13
-44
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1835
SELECT 21 DIV + 47 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1835
SELECT 21 / + 47 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1836
SELECT DISTINCT 64 DIV ( col0 ) * col0 col0 FROM tab0 AS cor0
----
0
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1836
SELECT DISTINCT 64 / ( col0 ) * col0 col0 FROM tab0 AS cor0
----
0
60

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

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

query I rowsort
SELECT - col1 * + + col0 * - - col2 - ( - col0 - col1 ) FROM tab2 AS cor0
----
-196979
-291308
-53861

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL + + SUM( ALL - col0 ) + 67 FROM tab1 AS cor0
----
-160

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL + + SUM ( ALL - col0 ) + 67 FROM tab1 AS cor0
----
-160

query I rowsort
SELECT ALL - + 66 + col0 AS col1 FROM tab1 AS cor0
----
-15
19
25

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1842
SELECT DISTINCT + 67 + - 11 DIV - MAX( col1 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-1842
SELECT DISTINCT + 67 + - 11 / - MAX ( col1 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
64

query I rowsort
SELECT DISTINCT + col2 + + 68 * + 8 FROM tab1
----
603
612
640

query I rowsort
SELECT 25 * ( - col2 ) FROM tab1 AS cor0
----
-1475
-1700
-2400

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * 43 >= 81 * 69 + - 18 / + col2
----

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

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

query I rowsort
SELECT - 96 * 3 AS col0 FROM tab1
----
-288
-288
-288

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1849
SELECT ALL * FROM tab2 WHERE ( + CAST( - + 66 AS SIGNED ) * col2 * col0 + + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1849
SELECT ALL * FROM tab2 WHERE ( + CAST ( - + 66 AS INTEGER ) * col2 * col0 + + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 33 col2, 40 FROM tab1 AS cor0
----
33
40
33
40
33
40

query I rowsort
SELECT DISTINCT + 13 AS col0 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1852
SELECT CAST( - col2 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col0 + - col1 + - col0 + 48 / + 22 * - col2 ) IS NULL
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-1852
SELECT CAST ( - col2 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col0 + - col1 + - col0 + 48 / + 22 * - col2 ) IS NULL
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT + col2 * - col1 * - col2 * + 72 FROM tab1 AS cor0
----
1253160
15647616
9289728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1854
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT IN ( + CAST( NULL AS SIGNED ), + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT IN ( + CAST ( NULL AS INTEGER ), + col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1855
SELECT ALL col0, - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1855
SELECT ALL col0, - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

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

query I rowsort
SELECT - 55 + - col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 90 <= - col2 * - 7
----

query I rowsort
SELECT - col1 + + 10 AS col1 FROM tab1
----
-37
-4
5

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

query I rowsort
SELECT - 30 * - col0 AS col2 FROM tab1
----
1530
2550
2730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - 48 AS col2, ( + 75 ) col2 FROM tab2
----
-1104
75
-1920
75
-2784
75

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

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

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

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

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

query I rowsort
SELECT ALL + - 33 AS col0 FROM tab1 cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT ALL + ( - 65 ) * - + 74 * + 34 + + ( COUNT( * ) ) + - 95 FROM tab0 AS cor0
----
163448

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL + ( - 65 ) * - + 74 * + 34 + + ( COUNT ( * ) ) + - 95 FROM tab0 AS cor0
----
163448

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

query I rowsort
SELECT + 19 * - col0 AS col1 FROM tab1 AS cor0
----
-1615
-1729
-969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 23 * + col2 - col2 * + col0 col0 FROM tab0 cor0
----
-640
-7326
376

onlyif mysql # aggregate syntax: 
query II rowsort label-1871
SELECT SUM( col1 ), 22 AS col0 FROM tab0 AS cor0
----
103
22

skipif mysql # not compatible
query II rowsort label-1871
SELECT SUM ( col1 ), 22 AS col0 FROM tab0 AS cor0
----
103
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1872
SELECT DISTINCT + 69 DIV + 49 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT + 69 / + 49 FROM tab2
----
1

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

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

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

skipif mysql # not compatible
query III rowsort label-1874
SELECT ALL * FROM tab0 WHERE NULL <= ( CAST ( + - col2 AS REAL ) / + ( + 99 ) + CAST ( NULL AS INTEGER ) * - 28 * col1 + + col0 )
----

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

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

query II rowsort
SELECT 1 AS col1, - 87 AS col2 FROM tab0 AS cor0
----
1
-87
1
-87
1
-87

query I rowsort
SELECT 19 * 40 AS col1 FROM tab2 AS cor0
----
760
760
760

query I rowsort
SELECT ALL - 94 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 55 * + - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( 48 )
----

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

query I rowsort
SELECT DISTINCT + col2 + + col0 * + col1 AS col1 FROM tab1 AS cor0
----
4345
484
810

query II rowsort
SELECT DISTINCT - - col1 * col2 AS col0, + col0 * + 6 FROM tab0 AS cor0
----
210
522
3807
90
99
582

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1884
SELECT ALL SUM( 38 ) + 12 + + COUNT( * ) DIV + 20 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL SUM ( 38 ) + 12 + + COUNT ( * ) / + 20 FROM tab0 AS cor0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT ( + 76 * col1 * - + col2 ) < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT ( + 76 * col1 * - + col2 ) < ( NULL )
----
0

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

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

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

query I rowsort
SELECT ( + - 84 ) FROM tab2 WHERE - col0 / - col0 + 6 + col2 IS NOT NULL
----
-84
-84
-84

query I rowsort
SELECT DISTINCT ( + 56 ) FROM tab1
----
56

query I rowsort
SELECT ALL 27 + - - 56 AS col1 FROM tab2
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT + + COUNT( ALL - - col0 ) FROM tab2 WHERE - ( - + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1891
SELECT + + COUNT ( ALL - - col0 ) FROM tab2 WHERE - ( - + col1 ) IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1892
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT + col2 + + col1 + - 49 * - col2 * col1 IN ( - 11, - CAST( NULL AS SIGNED ) * + 23 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT + col2 + + col1 + - 49 * - col2 * col1 IN ( - 11, - CAST ( NULL AS INTEGER ) * + 23 * - col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 23 col0, - 7 FROM tab1 cor0
----
23
-7
23
-7
23
-7

query I rowsort
SELECT - + col1 + 79 AS col2 FROM tab0 AS cor0
----
-2
58
78

query I rowsort
SELECT + + col2 * - + 46 + + + col0 FROM tab2 AS cor0
----
-1012
-1776
-2593

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT DISTINCT - 52 * + - 54 - MIN( + 41 ) FROM tab0
----
2767

skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT - 52 * + - 54 - MIN ( + 41 ) FROM tab0
----
2767

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT - - MAX( ALL 50 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
50

skipif mysql # not compatible
query I rowsort label-1897
SELECT - - MAX ( ALL 50 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
50

query II rowsort
SELECT - 69 AS col0, 76 * - + 30 * + col0 AS col1 FROM tab1
----
-69
-116280
-69
-193800
-69
-207480

query I rowsort
SELECT + col2 - - col2 - col0 FROM tab0
----
-67
101
79

query I rowsort
SELECT col2 - 52 + - - col0 FROM tab1 cor0
----
107
92
95

query I rowsort
SELECT col1 - - col0 AS col2 FROM tab2 cor0
----
141
142
97

query III rowsort
SELECT * FROM tab0 cor0 WHERE 7 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT ALL CAST( NULL AS SIGNED ) * col2 * - col0 * - col0 - col1 * 18 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL CAST ( NULL AS INTEGER ) * col2 * - col0 * - col0 - col1 * 18 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 18 * - + 81 AS col1 FROM tab2 AS cor0
----
1458

onlyif mysql # DIV for integer division: 
query II rowsort label-1905
SELECT ALL + col2 DIV + 54 AS col1, - col1 col2 FROM tab1 AS cor0
----
1
-14
1
-47
1
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1905
SELECT ALL + col2 / + 54 AS col1, - col1 col2 FROM tab1 AS cor0
----
1
-14
1
-47
1
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT ALL + SUM( DISTINCT + - col0 ) * - COUNT( * ) * 62 FROM tab2 cor0
----
34410

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL + SUM ( DISTINCT + - col0 ) * - COUNT ( * ) * 62 FROM tab2 cor0
----
34410

query II rowsort
SELECT DISTINCT + - col1 AS col1, col2 AS col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT - - col2 / - col2 FROM tab2 WHERE NOT - + 34 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1910
SELECT ALL + + COUNT( * ) col1, - COUNT( * ) FROM tab2 WHERE + 90 IN ( + 13 * col1, - col2 + + col1, CAST( - col0 AS SIGNED ) )
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1910
SELECT ALL + + COUNT ( * ) col1, - COUNT ( * ) FROM tab2 WHERE + 90 IN ( + 13 * col1, - col2 + + col1, CAST ( - col0 AS INTEGER ) )
----
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + 68 * - col2 + + + col1 ) IS NOT NULL
----

query I rowsort
SELECT + ( - - 4 ) AS col1 FROM tab0
----
4
4
4

query I rowsort
SELECT DISTINCT col1 * + 33 FROM tab2 AS cor0
----
1683
2211
2541

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1914
SELECT ALL + 87 / - + CAST( NULL AS SIGNED ) col1, col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1914
SELECT ALL + 87 / - + CAST ( NULL AS INTEGER ) col1, col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1915
SELECT ALL COUNT( + ( - col0 ) ) * CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + - col1 AND - col1 * - 68 + - 70
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1915
SELECT ALL COUNT ( + ( - col0 ) ) * CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + - col1 AND - col1 * - 68 + - 70
----
NULL

query I rowsort
SELECT DISTINCT + 37 FROM tab0 cor0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, ( + + col0 ) AS col1 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT ALL col0 FROM tab2 WHERE - col2 + - + 48 >= 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT ALL ( - + MIN( ALL - col2 ) ) + + - 6 + + COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL ( - + MIN ( ALL - col2 ) ) + + - 6 + + COUNT ( * ) FROM tab0 AS cor0
----
96

query I rowsort
SELECT + + 63 + - - col0 AS col2 FROM tab1 cor0
----
114
148
154

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE col1 + - 31 * + col0 * ( - + col0 ) / + + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1922
SELECT ALL CAST( NULL AS SIGNED ) * - col1 * - + col0 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 * - + col0 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT + MIN( ALL + col0 ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col1 * - 16, col0 * col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT + MIN ( ALL + col0 ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col1 * - 16, col0 * col0 )
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + + col1 + - 45 FROM tab1 AS cor0
----
-20
151
2164

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT DISTINCT + SUM( DISTINCT - - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT + SUM ( DISTINCT - - col0 ) FROM tab1
----
227

query I rowsort
SELECT col1 * + 4 AS col2 FROM tab1
----
188
20
56

onlyif mysql # aggregate syntax: 
query II rowsort label-1927
SELECT MAX( DISTINCT + + col1 ) col2, - 34 FROM tab0
----
81
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1927
SELECT MAX ( DISTINCT + + col1 ) col2, - 34 FROM tab0
----
81
-34

query I rowsort
SELECT + col2 * - col2 AS col1 FROM tab1 AS cor0 WHERE - 71 <= NULL
----

query I rowsort
SELECT ALL + col0 + + 78 AS col0 FROM tab0 AS cor0
----
165
175
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1930
SELECT - + COUNT( * ) + SUM( DISTINCT + + 26 ) col1, CAST( NULL AS SIGNED ) / 64 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
17
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1930
SELECT - + COUNT ( * ) + SUM ( DISTINCT + + 26 ) col1, CAST ( NULL AS INTEGER ) / 64 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
17
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1931
SELECT ALL 55 * - col2 * - CAST( - - col1 AS SIGNED ) AS col2 FROM tab1
----
16225
175780
73920

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL 55 * - col2 * - CAST ( - - col1 AS INTEGER ) AS col2 FROM tab1
----
16225
175780
73920

onlyif mysql # DIV for integer division: 
query I rowsort label-1932
SELECT DISTINCT 36 DIV - col2 FROM tab0 WHERE NOT ( NOT ( NULL IS NULL ) )
----
-3
0

skipif mysql # not compatible
query I rowsort label-1932
SELECT DISTINCT 36 / - col2 FROM tab0 WHERE NOT ( NOT ( NULL IS NULL ) )
----
-3
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 56 )
----

query I rowsort
SELECT + ( + col0 ) * + + col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1935
SELECT ( - CAST( NULL AS SIGNED ) ) * - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT ( - CAST ( NULL AS INTEGER ) ) * - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * + + col2 AS col2 FROM tab1 cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT + - ( + MAX( 77 ) ) * - COUNT( * ) FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-1937
SELECT + - ( + MAX ( 77 ) ) * - COUNT ( * ) FROM tab1 AS cor0
----
231

query I rowsort
SELECT ALL + 82 * col2 AS col2 FROM tab0
----
3854
8118
820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1939
SELECT col2 / + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT col2 / + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= 33
----

query II rowsort
SELECT ( col2 ) AS col2, 43 FROM tab0
----
10
43
47
43
99
43

query II rowsort
SELECT - col1 AS col0, col1 * + + 96 FROM tab1
----
-14
1344
-47
4512
-5
480

query I rowsort
SELECT DISTINCT col1 * + 83 FROM tab2
----
4233
5561
6391

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + ( + 38 ) ) col2 FROM tab0
----
38
38
38

query I rowsort
SELECT ALL - - col2 * + 33 + - col1 FROM tab1 AS cor0
----
1942
2197
3154

query I rowsort
SELECT DISTINCT col1 * - col1 - col1 FROM tab0 AS cor0
----
-2
-462
-6642

onlyif mysql # DIV for integer division: 
query I rowsort label-1947
SELECT + - col2 * col1 DIV 41 FROM tab1 cor0
----
-32
-7
-77

skipif mysql # not compatible
query I rowsort label-1947
SELECT + - col2 * col1 / 41 FROM tab1 cor0
----
-32
-7
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT COUNT( - col2 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1948
SELECT COUNT ( - col2 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1949
SELECT - col2 + + CAST( + col0 AS SIGNED ) FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-1949
SELECT - col2 + + CAST ( + col0 AS INTEGER ) FROM tab1
----
-45
23
26

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NOT + 86 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + col2 + - col2 AS col2 FROM tab0 WHERE - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT MAX( DISTINCT - - col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-1952
SELECT MAX ( DISTINCT - - col1 ) FROM tab1 cor0
----
47

query II rowsort
SELECT ALL col1 + + + 37, col1 FROM tab1 AS cor0
----
42
5
51
14
84
47

query II rowsort
SELECT DISTINCT + 37 + col0, + col2 AS col0 FROM tab0 AS cor0
----
124
10
134
99
52
47

query I rowsort
SELECT ALL ( - - col2 ) + - + col0 FROM tab2 AS cor0
----
-17
-23
-24

query III rowsort
SELECT ALL * FROM tab1 WHERE - 64 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL + col1 - ( - col1 ) FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT - COUNT( * ) FROM tab1 WHERE ( NULL IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-1958
SELECT - COUNT ( * ) FROM tab1 WHERE ( NULL IS NULL )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1959
SELECT CAST( NULL AS SIGNED ) * 82 + + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1959
SELECT CAST ( NULL AS INTEGER ) * 82 + + - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT - COUNT( * ) col2 FROM tab2 WHERE + col2 <> + col0 * - col2 * - col1 + + col1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1960
SELECT - COUNT ( * ) col2 FROM tab2 WHERE + col2 <> + col0 * - col2 * - col1 + + col1
----
-3

query I rowsort
SELECT + 61 * + + 75 + - col1 + - + col2 AS col1 FROM tab1
----
4460
4465
4511

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 66 BETWEEN + ( + col2 ) AND + col1 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1963
SELECT + col1 + + CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-1963
SELECT + col1 + + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT - + 33 AS col1 FROM tab1 AS cor0 WHERE NOT 58 IS NOT NULL OR NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 NOT IN ( + col1 * col0, - col0, + 76 - + - col2 + + - col2 * + - 25 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1966
SELECT DISTINCT + col0 * col2 + - ( + - col0 ) DIV - - ( - col1 ) - 30 AS col2 FROM tab0 AS cor0
----
675
836
9476

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT + col0 * col2 + - ( + - col0 ) / - - ( - col1 ) - 30 AS col2 FROM tab0 AS cor0
----
675
836
9476

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 86 IS NULL
----

query I rowsort
SELECT + col1 + + col2 AS col0 FROM tab2 cor0 WHERE NOT - 88 IN ( + col0 + - 0 * 63, - col2 )
----
117
125
74

query I rowsort
SELECT 54 * + - 89 + 82 AS col1 FROM tab0 AS cor0
----
-4724
-4724
-4724

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1970
SELECT + col2 col1, CAST( NULL AS SIGNED ) * col0 col1 FROM tab2 AS cor0 WHERE NOT - col1 * + col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1970
SELECT + col2 col1, CAST ( NULL AS INTEGER ) * col0 col1 FROM tab2 AS cor0 WHERE NOT - col1 * + col0 IS NOT NULL
----

query II rowsort
SELECT + col2 * 10, col0 AS col1 FROM tab1 AS cor0
----
590
85
680
91
960
51

query I rowsort
SELECT ALL + - 12 * + col1 FROM tab2 AS cor0
----
-612
-804
-924

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 4, + 16 * - + col1, col0, - col0 )
----

query I rowsort
SELECT + col0 * ( 51 ) AS col0 FROM tab2 AS cor0
----
2346
3264
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT DISTINCT COUNT( * ) * + - 61 AS col2 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT COUNT ( * ) * + - 61 AS col2 FROM tab1
----
-183

query I rowsort
SELECT DISTINCT - col0 + - + 75 FROM tab2 WHERE NULL IS NULL
----
-121
-139
-150

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + col1 + - col0 + + col1 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 20 * - + 87 AS col0 FROM tab2 AS cor0
----
-1740
-1740
-1740

query II rowsort
SELECT ALL + + col1, col0 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL 56 * - + COUNT( * ) AS col1 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL 56 * - + COUNT ( * ) AS col1 FROM tab1
----
-168

onlyif mysql # DIV for integer division: 
query II rowsort label-1981
SELECT - ( - col2 ) * + col1 + - + col0 + - - 14 * col1 DIV + col1 + 83 - - col0 AS col1, 90 AS col0 FROM tab0 AS cor0
----
196
90
307
90
3904
90

skipif mysql # not compatible
query II rowsort label-1981
SELECT - ( - col2 ) * + col1 + - + col0 + - - 14 * col1 / + col1 + 83 - - col0 AS col1, 90 AS col0 FROM tab0 AS cor0
----
196
90
307
90
3904
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1982
SELECT DISTINCT + col1 DIV - + col1 AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1982
SELECT DISTINCT + col1 / - + col1 AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col1 + - 22 * - col0 AS col1 FROM tab0 AS cor0
----
1893
2133
249

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT ALL ( + COUNT( * ) ) + + + ( - 12 ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL ( + COUNT ( * ) ) + + + ( - 12 ) AS col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + - 72 + 28 FROM tab2 cor0
----
-44

query I rowsort
SELECT ALL + + 75 + - ( + - 26 ) FROM tab1 AS cor0
----
101
101
101

query II rowsort
SELECT ALL + 10 + + - 86 * - - ( - 66 ) * - + ( + ( + 3 ) ) AS col0, col1 FROM tab1 AS cor0
----
-17018
14
-17018
47
-17018
5

query I rowsort
SELECT DISTINCT + + ( + + col2 ) + 71 AS col2 FROM tab0 AS cor0
----
118
170
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT DISTINCT - COUNT( * ) + - + MIN( ALL - col1 ) * + - ( - - 73 ) FROM tab0
----
-5916

skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT - COUNT ( * ) + - + MIN ( ALL - col1 ) * + - ( - - 73 ) FROM tab0
----
-5916

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT - COUNT( * ) * - 24 col2 FROM tab1
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1990
SELECT - COUNT ( * ) * - 24 col2 FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1991
SELECT + COUNT( * ) * - COUNT( * ) AS col2, 35 FROM tab1
----
-9
35

skipif mysql # not compatible
query II rowsort label-1991
SELECT + COUNT ( * ) * - COUNT ( * ) AS col2, 35 FROM tab1
----
-9
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1992
SELECT * FROM tab0 WHERE col0 >= - + col0 * - col1 * - CAST( - ( + col2 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1992
SELECT * FROM tab0 WHERE col0 >= - + col0 * - col1 * - CAST ( - ( + col2 ) AS INTEGER )
----

query I rowsort
SELECT DISTINCT + ( - ( 39 ) ) AS col1 FROM tab2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1994
SELECT + CAST( NULL AS SIGNED ) - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT + CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - 17 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT - + 15 + + ( + 90 ) FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT - 16 * col1 * + - col0 AS col1 FROM tab1
----
11424
6800
68432

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT ALL + COUNT( * ) * 45 * + + 91 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
36855

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL + COUNT ( * ) * 45 * + + 91 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
36855

onlyif mysql # aggregate syntax: 
query II rowsort label-1999
SELECT + COUNT( * ) AS col2, + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-1999
SELECT + COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

query II rowsort
SELECT + col1, + col0 * + - 35 + - col0 AS col0 FROM tab0
----
1
-3492
21
-3132
81
-540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2001
SELECT DISTINCT - + CAST( - + col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT - + CAST ( - + col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2002
SELECT - 15 * + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-1020
-1440
-885

skipif mysql # not compatible
query I rowsort label-2002
SELECT - 15 * + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-1020
-1440
-885

query I rowsort
SELECT DISTINCT + - 27 AS col2 FROM tab2 cor0
----
-27

query I rowsort
SELECT + col1 * - 46 AS col1 FROM tab1 AS cor0
----
-2162
-230
-644

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2005
SELECT * FROM tab1 cor0 WHERE NOT + col2 * col2 * - CAST( NULL AS SIGNED ) / col2 NOT BETWEEN NULL AND + ( - - 78 )
----

skipif mysql # not compatible
query III rowsort label-2005
SELECT * FROM tab1 cor0 WHERE NOT + col2 * col2 * - CAST ( NULL AS INTEGER ) / col2 NOT BETWEEN NULL AND + ( - - 78 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2006
SELECT + 12 DIV + COUNT( * ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-2006
SELECT + 12 / + COUNT ( * ) FROM tab2
----
4

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2008
SELECT col1 + + col1 DIV - col2 * - col1 + - 66 DIV - 1 + ( ( + ( - 59 ) ) ) FROM tab1 AS cor0
----
12
21
54

skipif mysql # not compatible
query I rowsort label-2008
SELECT col1 + + col1 / - col2 * - col1 + - 66 / - 1 + ( ( + ( - 59 ) ) ) FROM tab1 AS cor0
----
12
21
54

query I rowsort
SELECT ALL - col2 + - 44 FROM tab1
----
-103
-112
-140

onlyif mysql # aggregate syntax: 
query II rowsort label-2010
SELECT - + COUNT( * ) AS col1, - 45 + + ( + ( - COUNT( * ) ) ) FROM tab1 AS cor0
----
-3
-48

skipif mysql # not compatible
query II rowsort label-2010
SELECT - + COUNT ( * ) AS col1, - 45 + + ( + ( - COUNT ( * ) ) ) FROM tab1 AS cor0
----
-3
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-2011
SELECT + + col0 AS col2, + col1 DIV - col0 * + + 6 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-2011
SELECT + + col0 AS col2, + col1 / - col0 * + + 6 FROM tab1 AS cor0
----
51
0
85
0
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT + SUM( DISTINCT + - 66 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2012
SELECT + SUM ( DISTINCT + - 66 ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 89 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * 26 + + col1 + - - col2 * + col0 + col1 AS col0 FROM tab0 AS cor0
----
1172
12179
2089

query I rowsort
SELECT DISTINCT - col0 + + 3 FROM tab2 AS cor0
----
-43
-61
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT DISTINCT + + COUNT( * ) - 30 col2 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2016
SELECT DISTINCT + + COUNT ( * ) - 30 col2 FROM tab1 AS cor0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2017
SELECT ALL + MAX( ALL - col0 ) * - MIN( ALL - col0 ) - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - 79 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL + MAX ( ALL - col0 ) * - MIN ( ALL - col0 ) - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - 79 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT DISTINCT - 89 DIV - + 52 + ( - 81 ) FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT - 89 / - + 52 + ( - 81 ) FROM tab1 AS cor0
----
-80

query II rowsort
SELECT ALL col1 + + 14 AS col1, ( - col1 ) AS col1 FROM tab1
----
19
-5
28
-14
61
-47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( col0 + - 67 )
----

query I rowsort
SELECT - - 36 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + + 22 )
----

query I rowsort
SELECT 30 * col1 + - col1 FROM tab2
----
1479
1943
2233

query I rowsort
SELECT ( - 36 ) AS col2 FROM tab0 AS cor0
----
-36
-36
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2025
SELECT ALL - - 35, - COUNT( * ) * - COUNT( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
35
0

skipif mysql # not compatible
query II rowsort label-2025
SELECT ALL - - 35, - COUNT ( * ) * - COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT DISTINCT + + COUNT( - - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT + + COUNT ( - - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + + SUM( - - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2027
SELECT + + SUM ( - - col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT + - 31 AS col0 FROM tab1 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT - COUNT( - col1 ) * - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2029
SELECT - COUNT ( - col1 ) * - COUNT ( * ) FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( + col0 ), - 76 * col2 * col2 + + + ( - col2 ) col0 FROM tab2 AS cor0
----
46
-40227
64
-121640
75
-255722

query I rowsort
SELECT - col0 * col2 * 93 * - - col2 AS col0 FROM tab0 AS cor0
----
-3081555
-809100
-88414821

query I rowsort
SELECT ALL + - col0 + ( col2 ) FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT DISTINCT + + 98 AS col1 FROM tab0 cor0
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * + 84 * col0 col1, + col1 + + + col2 + + 35 FROM tab1
----
-35700
99
-359268
150
-59976
145

onlyif mysql # DIV for integer division: 
query I rowsort label-2035
SELECT + col2 DIV - + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2035
SELECT + col2 / - + col0 AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL + col1 AS col1, col2 + - 20 + + - col0 * + ( 83 ) AS col2 FROM tab0
----
1
-7972
21
-7231
81
-1218

query I rowsort
SELECT 94 * - col0 FROM tab1
----
-4794
-7990
-8554

query I rowsort
SELECT - + ( - + col2 ) AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT + 40 * 8 + - COUNT( - + 8 ) FROM tab2
----
317

skipif mysql # not compatible
query I rowsort label-2039
SELECT + 40 * 8 + - COUNT ( - + 8 ) FROM tab2
----
317

query I rowsort
SELECT + col0 + - - col1 + - col1 * + - col1 * 55 AS col2 FROM tab2 AS cor0
----
143152
247037
326236

query I rowsort
SELECT DISTINCT - col1 + + - col0 * + - col1 AS col1 FROM tab0 AS cor0
----
1134
1806
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 28 <> - 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2043
SELECT ( - 81 ) AS col2, COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NULL
----
-81
3

skipif mysql # not compatible
query II rowsort label-2043
SELECT ( - 81 ) AS col2, COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NULL
----
-81
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL MIN( DISTINCT - + ( - col2 ) ) * + SUM( DISTINCT - 75 ) - - 98 - - MIN( DISTINCT + + col2 ) AS col2 FROM tab0
----
-642

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL MIN ( DISTINCT - + ( - col2 ) ) * + SUM ( DISTINCT - 75 ) - - 98 - - MIN ( DISTINCT + + col2 ) AS col2 FROM tab0
----
-642

query I rowsort
SELECT DISTINCT - col0 - - - col2 AS col0 FROM tab1
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query II rowsort label-2046
SELECT DISTINCT 42 AS col1, - ( - + COUNT( * ) ) FROM tab2
----
42
3

skipif mysql # not compatible
query II rowsort label-2046
SELECT DISTINCT 42 AS col1, - ( - + COUNT ( * ) ) FROM tab2
----
42
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 88 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 * 55 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 * 55 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 58 NOT BETWEEN - 58 / + col1 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-2049
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 58 NOT BETWEEN - 58 / + col1 AND - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT DISTINCT - 0 * - - MIN( + - col2 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT - 0 * - - MIN ( + - col2 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2051
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2051
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2052
SELECT col2 / - col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2052
SELECT col2 / - col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 14 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # aggregate syntax: 
query III rowsort label-2054
SELECT - SUM( + col1 ) AS col0, - COUNT( - 79 ) AS col0, 80 col0 FROM tab0 AS cor0
----
-103
-3
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2054
SELECT - SUM ( + col1 ) AS col0, - COUNT ( - 79 ) AS col0, 80 col0 FROM tab0 AS cor0
----
-103
-3
80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 75 <> + - col0
----

query I rowsort
SELECT ALL - col2 * col0 + - col2 + + - 43 FROM tab1 AS cor0
----
-5035
-5117
-6299

onlyif mysql # DIV for integer division: 
query I rowsort label-2058
SELECT ALL + - ( col2 ) DIV + - col1 * + + 87 - + col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL + - ( col2 ) / + - col1 * + + 87 - + col2 FROM tab2 cor0
----
-23
-40
-58

query II rowsort
SELECT + + 16 * col0 * - ( 4 ) AS col0, + 77 * + 97 + - - col2 AS col2 FROM tab0 AS cor0
----
-5568
7479
-6208
7568
-960
7516

query I rowsort
SELECT DISTINCT 78 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 + + col1 AND NULL
----

query I rowsort
SELECT - col1 * + col0 + + + col0 AS col1 FROM tab1 cor0
----
-340
-4186
-663

query II rowsort
SELECT ALL col1 AS col1, 59 * col2 * + + 73 FROM tab1 AS cor0
----
14
413472
47
292876
5
254113

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( - + col0 ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT + ( - ( COUNT( * ) ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2065
SELECT + ( - ( COUNT ( * ) ) ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IS NULL OR NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2067
SELECT DISTINCT * FROM tab0 WHERE CAST( - + ( - ( col2 ) ) AS SIGNED ) - + col0 + - + col2 <= + 94 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2067
SELECT DISTINCT * FROM tab0 WHERE CAST ( - + ( - ( col2 ) ) AS INTEGER ) - + col0 + - + col2 <= + 94 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT - + COUNT( * ) AS col0 FROM tab1 WHERE NULL >= + col0
----
0

skipif mysql # not compatible
query I rowsort label-2068
SELECT - + COUNT ( * ) AS col0 FROM tab1 WHERE NULL >= + col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT col1 + - 13 DIV col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2069
SELECT col1 + - 13 / col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT ALL - COUNT( * ) + - SUM( - col2 ) AS col0 FROM tab2 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL - COUNT ( * ) + - SUM ( - col2 ) AS col0 FROM tab2 AS cor0
----
118

query I rowsort
SELECT 58 + + 90 FROM tab0 AS cor0
----
148
148
148

query I rowsort
SELECT + - 87 * - 42 * ( + + col2 ) AS col2 FROM tab2 AS cor0 WHERE - ( + col1 ) IS NOT NULL
----
146160
211932
84042

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT DISTINCT - 12 DIV - col2 + - 20 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT - 12 / - col2 + - 20 FROM tab1 AS cor0
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2074
SELECT DISTINCT col1 + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT col1 + + + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + ( - 94 ) * - col1 + col0 + col2 FROM tab1 AS cor0
----
1463
4577
614

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + + col1 + col2 + - - col0 FROM tab0 AS cor0 WHERE NOT NULL = - col0 / ( 10 ) + ( - - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2078
SELECT DISTINCT + col2 + 62 DIV - + col1 col1 FROM tab2 AS cor0
----
22
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2078
SELECT DISTINCT + col2 + 62 / - + col1 col1 FROM tab2 AS cor0
----
22
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT DISTINCT + + COUNT( * ) - + + 97 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT + + COUNT ( * ) - + + 97 FROM tab0 AS cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2080
SELECT ALL col0 + - col2 + ( CAST( NULL AS SIGNED ) ) + + + 46 * 39 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL col0 + - col2 + ( CAST ( NULL AS INTEGER ) ) + + + 46 * 39 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL - COUNT( * ) AS col1 FROM tab0 cor0 WHERE + col1 + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE + col1 + col2 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 WHERE NULL IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 * - + col1 col1 FROM tab1 WHERE + - 20 + - col2 >= - ( - 88 )
----

query I rowsort
SELECT ( 8 ) FROM tab0
----
8
8
8

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2085
SELECT * FROM tab0 WHERE NOT + col2 >= col1 + ( + + col1 ) + + 40 - 22 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2085
SELECT * FROM tab0 WHERE NOT + col2 >= col1 + ( + + col1 ) + + 40 - 22 * CAST ( NULL AS REAL )
----

query II rowsort
SELECT - ( + col0 ) AS col2, col1 * + + 25 AS col1 FROM tab1 cor0
----
-51
350
-85
125
-91
1175

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT DISTINCT + COUNT( * ) + - 76 AS col2 FROM tab0 AS cor0 WHERE ( - col0 IS NULL )
----
-76

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT + COUNT ( * ) + - 76 AS col2 FROM tab0 AS cor0 WHERE ( - col0 IS NULL )
----
-76

query I rowsort
SELECT ALL + col2 * - + 20 AS col2 FROM tab1
----
-1180
-1360
-1920

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2089
SELECT CAST( NULL AS DECIMAL ) / - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2089
SELECT CAST ( NULL AS REAL ) / - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2090
SELECT CAST( + 88 AS SIGNED ) AS col2 FROM tab1
----
88
88
88

skipif mysql # not compatible
query I rowsort label-2090
SELECT CAST ( + 88 AS INTEGER ) AS col2 FROM tab1
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT ALL + + COUNT( * ) + 92 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL + + COUNT ( * ) + 92 FROM tab2 AS cor0
----
95

query I rowsort
SELECT DISTINCT + col0 * ( col0 ) FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - - 54 * ( - 3 ) * col1 + 17 FROM tab2 AS cor0
----
-10837
-12457
-8245

query I rowsort
SELECT col1 * + col0 + 78 AS col2 FROM tab0 AS cor0
----
1293
175
1905

query I rowsort
SELECT ALL + col2 + + 34 AS col0 FROM tab1 AS cor0
----
102
130
93

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN + 29 AND - - col0 * col0
----

query I rowsort
SELECT DISTINCT col2 + + - col2 * - col1 * + col2 FROM tab0 AS cor0
----
178976
2110
9900

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT + ( + - COUNT( * ) ) AS col0 FROM tab1 WHERE ( NOT NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2098
SELECT + ( + - COUNT ( * ) ) AS col0 FROM tab1 WHERE ( NOT NULL IS NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2099
SELECT ALL + col2 * + CAST( - + col2 AS SIGNED ) AS col2 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL + col2 * + CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0
----
-100
-2209
-9801

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 < ( + + ( - - 9 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT NULL BETWEEN ( col1 ) AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2102
SELECT col1 DIV - 35 AS col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2102
SELECT col1 / - 35 AS col2 FROM tab0
----
-2
0
0

query I rowsort
SELECT ALL 37 * col1 AS col0 FROM tab0
----
2997
37
777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2104
SELECT 63 / + + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT 63 / + + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2105
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) - + 97 * + 81 * + + col2 * + 42 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2105
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) - + 97 * + 81 * + + col2 * + 42 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE - col2 * + + 59 + - - col0 NOT BETWEEN - col0 AND + + 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2107
SELECT * FROM tab2 AS cor0 WHERE + col2 NOT IN ( col2 + col0, col0, - - ( - 20 ), CAST( + - 92 AS SIGNED ), 61 - col1 + - col1, ( + - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2107
SELECT * FROM tab2 AS cor0 WHERE + col2 NOT IN ( col2 + col0, col0, - - ( - 20 ), CAST ( + - 92 AS INTEGER ), 61 - col1 + - col1, ( + - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT COUNT( * ) + - + ( + 28 ) FROM tab1 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT COUNT ( * ) + - + ( + 28 ) FROM tab1 cor0
----
-25

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT 25, - col1 AS col0 FROM tab0
----
25
-1
25
-21
25
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-2111
SELECT col2 DIV col1 * - - 70 AS col1, col2 AS col2 FROM tab1
----
420
96
70
68
770
59

skipif mysql # not compatible
query II rowsort label-2111
SELECT col2 / col1 * - - 70 AS col1, col2 AS col2 FROM tab1
----
420
96
70
68
770
59

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE NULL IS NULL OR NOT NULL >= NULL
----
51
67
77

query I rowsort
SELECT ALL + 99 * + 96 FROM tab1
----
9504
9504
9504

query II rowsort
SELECT col2, + 65 * col2 FROM tab0
----
10
650
47
3055
99
6435

query I rowsort
SELECT ALL - 72 * 63 AS col2 FROM tab0
----
-4536
-4536
-4536

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL IN ( - col0 + + col2, + col2 + + 0 + - col0, + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 * + - 54 col2 FROM tab1 AS cor0
----
-1404
-1404
-1404

query I rowsort
SELECT 86 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL + col0 * + + col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT 48 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT ALL 62 * + + col2 AS col0 FROM tab2
----
1426
2480
3596

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2122
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * - - ( + - col2 ) * - CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2122
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * - - ( + - col2 ) * - CAST ( + col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT COUNT( * ) * SUM( - + col0 ) + - SUM( DISTINCT + 48 ) AS col2 FROM tab1 AS cor0
----
-729

skipif mysql # not compatible
query I rowsort label-2123
SELECT COUNT ( * ) * SUM ( - + col0 ) + - SUM ( DISTINCT + 48 ) AS col2 FROM tab1 AS cor0
----
-729

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT - 45 * + COUNT( * ) FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-2124
SELECT - 45 * + COUNT ( * ) FROM tab0 AS cor0
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2125
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 - + 4 + - - 96 - + + col1 col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2125
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 - + 4 + - - 96 - + + col1 col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT + + COUNT( - ( - + col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2126
SELECT + + COUNT ( - ( - + col0 ) ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT + - col2 + - - col1, - col1 * - col2 AS col0 FROM tab2 AS cor0
----
28
1173
37
3080
9
3886

query I rowsort
SELECT ALL + col2 + - - ( - 75 ) AS col2 FROM tab1 AS cor0
----
-16
-7
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT ALL + MIN( col2 ) + + COUNT( * ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL + MIN ( col2 ) + + COUNT ( * ) FROM tab0 AS cor0
----
13

query I rowsort
SELECT - + 1 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT - 1 * MAX( ALL col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2131
SELECT - 1 * MAX ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL col1 * 42 AS col1 FROM tab2
----
2142
2814
3234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2133
SELECT ALL ( - col1 ) + - 79 + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - 12 * - - col2 = - col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL ( - col1 ) + - 79 + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - 12 * - - col2 = - col1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - 27 + + - col1 FROM tab0
----
-93
39
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT DISTINCT col1 DIV + + 72 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT col1 / + + 72 FROM tab1
----
0

query I rowsort
SELECT ALL 1 * + - col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT MIN( 50 ) + + + 57 AS col1 FROM tab0
----
107

skipif mysql # not compatible
query I rowsort label-2137
SELECT MIN ( 50 ) + + + 57 AS col1 FROM tab0
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2138
SELECT DISTINCT - 38 DIV + - COUNT( ALL + + col2 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT - 38 / + - COUNT ( ALL + + col2 ) FROM tab1
----
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2139
SELECT CAST( + - col2 AS SIGNED ) * - col0 + + col0 + ( + col0 ) + - col2 + - + col2 DIV + col0 AS col2 FROM tab1 WHERE - 44 IS NOT NULL
----
4901
5126
6302

skipif mysql # not compatible
query I rowsort label-2139
SELECT CAST ( + - col2 AS INTEGER ) * - col0 + + col0 + ( + col0 ) + - col2 + - + col2 / + col0 AS col2 FROM tab1 WHERE - 44 IS NOT NULL
----
4901
5126
6302

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT ALL ( - MAX( DISTINCT - + col0 ) ) DIV - - SUM( + col1 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL ( - MAX ( DISTINCT - + col0 ) ) / - - SUM ( + col1 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2141
SELECT + + col2 AS col2, + 65 DIV ( col0 ) * - 11 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
-11

skipif mysql # not compatible
query II rowsort label-2141
SELECT + + col2 AS col2, + 65 / ( col0 ) * - 11 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2142
SELECT ALL col1 * + col1 + col2 DIV + col0 + - col0 + - CAST( - col0 AS SIGNED ) DIV + - col0 FROM tab2 AS cor0
----
2554
4413
5864

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL col1 * + col1 + col2 / + col0 + - col0 + - CAST ( - col0 AS INTEGER ) / + - col0 FROM tab2 AS cor0
----
2554
4413
5864

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT ALL col1 DIV - 1 AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL col1 / - 1 AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT - COUNT( * ) - + - 73 + + MIN( ( + 59 ) ) AS col0 FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-2144
SELECT - COUNT ( * ) - + - 73 + + MIN ( ( + 59 ) ) AS col0 FROM tab1
----
129

query I rowsort
SELECT + col1 * + col1 * + 35 AS col2 FROM tab2
----
157115
207515
91035

query I rowsort
SELECT ALL 81 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1, ( 88 ) col1 FROM tab1 AS cor0
----
-14
88
-47
88
-5
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 39, 50 * + 5 * - col1 col2 FROM tab0 AS cor0
----
39
-20250
39
-250
39
-5250

query I rowsort
SELECT + + col1 * + ( - 0 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN - col1 * + - col1 + + col0 + - col1 AND - 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT - MAX( 94 ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-2150
SELECT - MAX ( 94 ) FROM tab2
----
-94

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT + col2 * + ( + CAST( + col1 AS SIGNED ) ) * col1 + + 74 + - 81 - - col1 FROM tab0 AS cor0
----
308441
4424
93

skipif mysql # not compatible
query I rowsort label-2152
SELECT + col2 * + ( + CAST ( + col1 AS INTEGER ) ) * col1 + + 74 + - 81 - - col1 FROM tab0 AS cor0
----
308441
4424
93

query I rowsort
SELECT DISTINCT col2 * + 8 FROM tab2
----
184
320
464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2154
SELECT DISTINCT - 15 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT - 15 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT col0 + + - 60 + - col1 FROM tab1
----
-16
-23
20

query I rowsort
SELECT ALL - 34 + + ( - col1 ) FROM tab1 AS cor0
----
-39
-48
-81

query II rowsort
SELECT col0 + 18 + - - 19 AS col0, - col0 * + 40 FROM tab2 AS cor0
----
101
-2560
112
-3000
83
-1840

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL + 71 + COUNT( * ) AS col0 FROM tab0 cor0
----
74

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + 71 + COUNT ( * ) AS col0 FROM tab0 cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2159
SELECT * FROM tab1 AS cor0 WHERE col1 <> + col2 + + - CAST( col0 AS SIGNED ) * + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2159
SELECT * FROM tab1 AS cor0 WHERE col1 <> + col2 + + - CAST ( col0 AS INTEGER ) * + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 70 * + ( 23 ) FROM tab2 AS cor0
----
-1610
-1610
-1610

query I rowsort
SELECT col1 * + 83 FROM tab2
----
4233
5561
6391

onlyif mysql # aggregate syntax: 
query II rowsort label-2162
SELECT DISTINCT + 11 + - SUM( + 67 ) + 75 col0, + COUNT( * ) * + - 69 AS col0 FROM tab1
----
-115
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2162
SELECT DISTINCT + 11 + - SUM ( + 67 ) + 75 col0, + COUNT ( * ) * + - 69 AS col0 FROM tab1
----
-115
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2163
SELECT DISTINCT + 5 / + 40 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT + 5 / + 40 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2164
SELECT ( - SUM( DISTINCT - col0 ) ) * + 84 * + + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2164
SELECT ( - SUM ( DISTINCT - col0 ) ) * + 84 * + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT + col0 DIV + - col1 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2165
SELECT + col0 / + - col1 AS col2 FROM tab2
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 col1 FROM tab1
----
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2167
SELECT CAST( NULL AS DECIMAL ) * + col0 * - col1 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2167
SELECT CAST ( NULL AS REAL ) * + col0 * - col1 col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0 + + col1 AS col0, + col1 AS col0 FROM tab0
----
108
21
96
81
98
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2169
SELECT DISTINCT - + ( COUNT( * ) ) + + - COUNT( * ) DIV CAST( + + AVG ( DISTINCT - col0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT - + ( COUNT ( * ) ) + + - COUNT ( * ) / CAST ( + + AVG ( DISTINCT - col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + 72 - + - col0 FROM tab0 AS cor0
----
159
169
87

query I rowsort
SELECT 51 - - 4 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab0 WHERE ( + col2 = - 18 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 <= col2
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 85 + col0 IS NOT NULL
----

query I rowsort
SELECT - AVG ( ALL + + 45 ) FROM tab0 AS cor0 WHERE NOT NULL < + col2 * col1 * - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL + + COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL + + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 10 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 10 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT + col0 DIV - 66 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT + col0 / - 66 AS col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - 70 FROM tab1 AS cor0 WHERE NOT col1 >= - col0
----

query I rowsort
SELECT - + 93 * + - 64 FROM tab2 cor0
----
5952
5952
5952

onlyif mysql # aggregate syntax: 
query II rowsort label-2181
SELECT DISTINCT - SUM( ALL - + 96 ) AS col1, COUNT( * ) FROM tab1
----
288
3

skipif mysql # not compatible
query II rowsort label-2181
SELECT DISTINCT - SUM ( ALL - + 96 ) AS col1, COUNT ( * ) FROM tab1
----
288
3

query I rowsort
SELECT ALL - 51 * - + col1 FROM tab1
----
2397
255
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2183
SELECT ALL + CAST( col2 AS SIGNED ) * + + col1 AS col1 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL + CAST ( col2 AS INTEGER ) * + + col1 AS col1 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT DISTINCT COUNT( * ) col0 FROM tab2 WHERE NULL BETWEEN - col2 * 74 AND - col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2184
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 WHERE NULL BETWEEN - col2 * 74 AND - col1
----
0

query I rowsort
SELECT ALL - col0 + - col1 + - col0 FROM tab1 cor0
----
-116
-175
-229

query I rowsort
SELECT - - ( ( - + col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL - - col1 + + + 13 + - col0 + col1 * col1 FROM tab0 AS cor0
----
-82
388
6640

query III rowsort
SELECT * FROM tab2 WHERE + - col1 IN ( col0, col1 * - col1 + - col0, - ( 45 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2189
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + - 58 * + col0 - CAST( NULL AS SIGNED ) - - col2 + col1 * - - col1 NOT BETWEEN 17 AND - 61 * col2 * col0
----

skipif mysql # not compatible
query III rowsort label-2189
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + - 58 * + col0 - CAST ( NULL AS INTEGER ) - - col2 + col1 * - - col1 NOT BETWEEN 17 AND - 61 * col2 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col2 FROM tab2 AS cor0
----
-22
-22
-22

query I rowsort
SELECT - col0 * + 94 + + col1 FROM tab0 AS cor0
----
-1329
-8157
-9117

query I rowsort
SELECT col1 * + col1 / - 42 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2193
SELECT COUNT( ALL - + col0 ) col0, + MAX( - col0 ) AS col1 FROM tab0 AS cor0
----
3
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2193
SELECT COUNT ( ALL - + col0 ) col0, + MAX ( - col0 ) AS col1 FROM tab0 AS cor0
----
3
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2194
SELECT + + 89 - + + ( + CAST( - col0 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
135
153
164

skipif mysql # not compatible
query I rowsort label-2194
SELECT + + 89 - + + ( + CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
135
153
164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - - col2 col0, col1 + - + col0 + + col0 FROM tab1 AS cor0
----
144
5
147
14
159
47

query I rowsort
SELECT ALL - col1 + - 75 AS col0 FROM tab2
----
-126
-142
-152

query III rowsort
SELECT * FROM tab2 WHERE + + ( - 69 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( col2 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2199
SELECT - 26 + col0 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2199
SELECT - 26 + col0 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT DISTINCT SUM( - + col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT SUM ( - + col1 ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT ALL - 33 + + + MIN( ALL + - col2 ) * + - 23 AS col0 FROM tab2 cor0
----
1301

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - 33 + + + MIN ( ALL + - col2 ) * + - 23 AS col0 FROM tab2 cor0
----
1301

query II rowsort
SELECT - 81 AS col2, 65 FROM tab1 AS cor0
----
-81
65
-81
65
-81
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2203
SELECT DISTINCT - - 90 DIV ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT - - 90 / ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2204
SELECT DISTINCT MAX( DISTINCT - col0 ) AS col0 FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-46

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT MAX ( DISTINCT - col0 ) AS col0 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-46

query III rowsort
SELECT ALL * FROM tab2 WHERE - 6 NOT BETWEEN + col0 AND - 35 - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE col1 < col1
----

query I rowsort
SELECT DISTINCT ( + 8 ) + col0 * + 55 FROM tab0
----
4793
5343
833

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT SUM( DISTINCT 60 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-2208
SELECT SUM ( DISTINCT 60 ) FROM tab2
----
60

query I rowsort
SELECT ALL - 91 + + col2 FROM tab1
----
-23
-32
5

query I rowsort
SELECT ( ( - 5 ) ) AS col0 FROM tab0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT DISTINCT - 1 + + COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT - 1 + + COUNT ( * ) FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT 8 * - COUNT( * ) AS col1 FROM tab2 WHERE NOT - ( col2 ) IS NULL
----
-24

skipif mysql # not compatible
query I rowsort label-2212
SELECT 8 * - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - ( col2 ) IS NULL
----
-24

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + col2 + + 42 * col2 AS col2 FROM tab0
----
2021
4257
430

onlyif mysql # DIV for integer division: 
query I rowsort label-2215
SELECT 28 + ( + col0 ) DIV 51 FROM tab0
----
28
29
29

skipif mysql # not compatible
query I rowsort label-2215
SELECT 28 + ( + col0 ) / 51 FROM tab0
----
28
29
29

query I rowsort
SELECT 34 + - 98 FROM tab2
----
-64
-64
-64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT MIN( DISTINCT + col0 ) + - 8 AS col0 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-2218
SELECT MIN ( DISTINCT + col0 ) + - 8 AS col0 FROM tab0
----
7

query I rowsort
SELECT DISTINCT - 38 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT ALL - ( - COUNT( * ) ) + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL - ( - COUNT ( * ) ) + COUNT ( * ) AS col1 FROM tab1
----
6

query I rowsort
SELECT ALL ( col2 ) + + col0 FROM tab0 WHERE NOT ( col2 ) NOT IN ( col2 * ( - col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2222
SELECT col0 * col2 + 42 DIV 88 AS col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-2222
SELECT col0 * col2 + 42 / 88 AS col2 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT * FROM tab2 WHERE - col2 > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2224
SELECT ALL - 70 + - COUNT( - col2 ) * CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2224
SELECT ALL - 70 + - COUNT ( - col2 ) * CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT 49 >= col2
----
75
67
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND ( - col0 / + col1 )
----

query I rowsort
SELECT DISTINCT col1 * - 37 + col0 * col0 FROM tab0
----
-2772
6792
9372

query I rowsort
SELECT ALL - 85 * + col1 FROM tab0
----
-1785
-6885
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2229
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + CAST( NULL AS SIGNED ) AND - 51
----

skipif mysql # not compatible
query III rowsort label-2229
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + CAST ( NULL AS INTEGER ) AND - 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT ALL 59 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL 59 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ( + MIN( col2 ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2231
SELECT ( + MIN ( col2 ) ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT + 26 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN - 22 / - col1 AND col0 / 26
----

query I rowsort
SELECT DISTINCT 75 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT DISTINCT 33 + - COUNT( * ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT 33 + - COUNT ( * ) FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT DISTINCT + MAX( col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT + MAX ( col1 ) AS col1 FROM tab1
----
47

query I rowsort
SELECT - col0 + + 75 FROM tab2
----
0
11
29

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > col2 * col2
----

query I rowsort
SELECT DISTINCT + - ( + col1 ) + 13 AS col2 FROM tab2 AS cor0
----
-38
-54
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT DISTINCT COUNT( * ) + COUNT( * ) FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) FROM tab2 cor0
----
6

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NOT NULL OR ( col0 ) > ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + col2 * - 62
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + 29 AND col2
----

query I rowsort
SELECT - 52 FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT ALL + 10 - + - 1 * COUNT( * ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL + 10 - + - 1 * COUNT ( * ) FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT - SUM( ALL - - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2246
SELECT - SUM ( ALL - - col0 ) AS col1 FROM tab1
----
-227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2247
SELECT + 18 - - COUNT( * ) DIV + ( - COUNT( * ) ) AS col1 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-2247
SELECT + 18 - - COUNT ( * ) / + ( - COUNT ( * ) ) AS col1 FROM tab1
----
17

query I rowsort
SELECT ALL - 83 - + ( + col0 ) + - col1 * + 42 AS col2 FROM tab0
----
-1052
-222
-3500

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT COUNT( * ) - 79 AS col0 FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-2249
SELECT COUNT ( * ) - 79 AS col0 FROM tab0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2250
SELECT * FROM tab0 WHERE NOT CAST( - 83 AS SIGNED ) IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2250
SELECT * FROM tab0 WHERE NOT CAST ( - 83 AS INTEGER ) IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) BETWEEN - 13 + 37 / - ( 83 ) AND NULL
----
0
0
0

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2253
SELECT DISTINCT + 28 - + 52 FROM tab1 AS cor0 WHERE NOT col1 - - CAST( NULL AS SIGNED ) * + 30 IN ( 90 )
----

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT + 28 - + 52 FROM tab1 AS cor0 WHERE NOT col1 - - CAST ( NULL AS INTEGER ) * + 30 IN ( 90 )
----

query I rowsort
SELECT ALL + - 7 AS col0 FROM tab2 cor0
----
-7
-7
-7

query I rowsort
SELECT 15 FROM tab0 AS cor0 WHERE NOT ( - col0 + 67 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 29 col2, - col0 FROM tab1
----
29
-51
29
-85
29
-91

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT col1 + + col0 <> - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT 46 * - col1 = 65
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT ALL SUM( ALL 62 ) AS col0 FROM tab2 WHERE + - col2 + col0 * col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL SUM ( ALL 62 ) AS col0 FROM tab2 WHERE + - col2 + col0 * col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2261
SELECT 81 AS col0, ( + MIN( ALL col1 ) ) AS col1 FROM tab0
----
81
1

skipif mysql # not compatible
query II rowsort label-2261
SELECT 81 AS col0, ( + MIN ( ALL col1 ) ) AS col1 FROM tab0
----
81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT DISTINCT 63 * + - 54 * + SUM( DISTINCT + col2 ) FROM tab1 AS cor0
----
-758646

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT 63 * + - 54 * + SUM ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-758646

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT DISTINCT COUNT( * ) * + - 58 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT COUNT ( * ) * + - 58 FROM tab2 AS cor0
----
-174

query II rowsort
SELECT ALL + 86, 97 - + 82 AS col2 FROM tab2 cor0
----
86
15
86
15
86
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT DISTINCT + 12 * + MIN( DISTINCT col2 ) AS col1 FROM tab2 cor0
----
276

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT + 12 * + MIN ( DISTINCT col2 ) AS col1 FROM tab2 cor0
----
276

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 51 * - col0 * - 26 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + ( - + col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 col1, + col1 AS col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT - CAST( + - 23 AS SIGNED ) * + + ( - col2 ) - + 1 FROM tab0 AS cor0
----
-1082
-2278
-231

skipif mysql # not compatible
query I rowsort label-2269
SELECT - CAST ( + - 23 AS INTEGER ) * + + ( - col2 ) - + 1 FROM tab0 AS cor0
----
-1082
-2278
-231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, col0 * - 81 col2 FROM tab1 AS cor0
----
51
-4131
85
-6885
91
-7371

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2271
SELECT * FROM tab0 AS cor0 WHERE - + CAST( + 84 AS SIGNED ) - - 39 IS NOT NULL OR NOT NULL IN ( - 61 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2271
SELECT * FROM tab0 AS cor0 WHERE - + CAST ( + 84 AS INTEGER ) - - 39 IS NOT NULL OR NOT NULL IN ( - 61 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT COUNT( * ) * - SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-2272
SELECT COUNT ( * ) * - SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
363

query I rowsort
SELECT 49 * 26 FROM tab2
----
1274
1274
1274

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 * + ( + + ( 7 ) ) col0 FROM tab1
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT 90 * + COUNT( * ) AS col1 FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-2275
SELECT 90 * + COUNT ( * ) AS col1 FROM tab2
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT ALL + MAX( - ( - 90 ) ) * COUNT( * ) AS col1 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL + MAX ( - ( - 90 ) ) * COUNT ( * ) AS col1 FROM tab0
----
270

query I rowsort
SELECT + ( - col0 ) + 1 AS col1 FROM tab1 AS cor0
----
-50
-84
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT - + COUNT( * ) + 8 AS col1 FROM tab0 cor0
----
5

skipif mysql # not compatible
query I rowsort label-2278
SELECT - + COUNT ( * ) + 8 AS col1 FROM tab0 cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 62 ) IS NULL
----

query I rowsort
SELECT - ( col2 ) AS col1 FROM tab1 WHERE NULL > ( - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + + col2 * 75 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( - 36 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2284
SELECT 66 * - - col0 + + - CAST( - + 47 AS SIGNED ) FROM tab2 AS cor0
----
3083
4271
4997

skipif mysql # not compatible
query I rowsort label-2284
SELECT 66 * - - col0 + + - CAST ( - + 47 AS INTEGER ) FROM tab2 AS cor0
----
3083
4271
4997

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col0, 51 )
----

query II rowsort
SELECT DISTINCT col2 AS col0, 74 FROM tab2 AS cor0
----
23
74
40
74
58
74

query I rowsort
SELECT col1 * - 62 - + + 98 FROM tab0 cor0
----
-1400
-160
-5120

query I rowsort
SELECT - col0 - + 99 AS col0 FROM tab2 AS cor0
----
-145
-163
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL MIN( 35 ) + - COUNT( * ) * - COUNT( * ) - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL MIN ( 35 ) + - COUNT ( * ) * - COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT + - MAX( - 97 ) + - 46 * 20 col1 FROM tab0 AS cor0
----
-823

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2290
SELECT + - MAX ( - 97 ) + - 46 * 20 col1 FROM tab0 AS cor0
----
-823

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT ALL 15 - COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL 15 - COUNT ( * ) FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT + COUNT( col2 ) FROM tab0 WHERE NOT NULL > - ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2293
SELECT + COUNT ( col2 ) FROM tab0 WHERE NOT NULL > - ( - col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2294
SELECT DISTINCT * FROM tab2 WHERE NOT ( 95 * - 92 - + CAST( NULL AS SIGNED ) ) IN ( col1 + col1 )
----

skipif mysql # not compatible
query III rowsort label-2294
SELECT DISTINCT * FROM tab2 WHERE NOT ( 95 * - 92 - + CAST ( NULL AS INTEGER ) ) IN ( col1 + col1 )
----

query II rowsort
SELECT ALL + 71, col1 FROM tab2
----
71
51
71
67
71
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT DISTINCT - COUNT( * ) * - 8 FROM tab0 WHERE NOT NULL = ( - col2 * + - col1 * - + col2 - + 8 * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT - COUNT ( * ) * - 8 FROM tab0 WHERE NOT NULL = ( - col2 * + - col1 * - + col2 - + 8 * col0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2297
SELECT - 53 col2, CAST( + 40 AS SIGNED ) * - MAX( + CAST( - col2 AS SIGNED ) ) + 34 col2 FROM tab0
----
-53
434

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2297
SELECT - 53 col2, CAST ( + 40 AS INTEGER ) * - MAX ( + CAST ( - col2 AS INTEGER ) ) + 34 col2 FROM tab0
----
-53
434

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT - - MAX( - col2 ) * + + 19 + + MAX( ALL + 40 ) + - 43 FROM tab0 AS cor0
----
-193

skipif mysql # not compatible
query I rowsort label-2298
SELECT - - MAX ( - col2 ) * + + 19 + + MAX ( ALL + 40 ) + - 43 FROM tab0 AS cor0
----
-193

query I rowsort
SELECT DISTINCT + 76 * - col2 - + col2 + - - 31 AS col0 FROM tab2 AS cor0
----
-1740
-3049
-4435

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 93 + - col0 - - + 93 * + 49 * col1 * - + col0 IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) * - - 53 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) * - - 53 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2302
SELECT ALL + 55 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL + 55 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col2 ) NOT IN ( + col2 * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2304
SELECT DISTINCT MIN( ALL 62 ) + - + CAST( - 97 AS SIGNED ) AS col1 FROM tab2 cor0
----
159

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT MIN ( ALL 62 ) + - + CAST ( - 97 AS INTEGER ) AS col1 FROM tab2 cor0
----
159

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT ( ( NULL ) NOT IN ( + ( + col0 ) / + 49 * - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT DISTINCT ( + COUNT( DISTINCT - 21 ) ) FROM tab0 WHERE NOT 59 NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT ( + COUNT ( DISTINCT - 21 ) ) FROM tab0 WHERE NOT 59 NOT IN ( col0 )
----
0

query I rowsort
SELECT + ( - + 7 ) + ( + ( col0 ) ) FROM tab1
----
44
78
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT - - COUNT( * ) FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2308
SELECT - - COUNT ( * ) FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT MAX( ALL + col0 ) * COUNT( * ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-2309
SELECT MAX ( ALL + col0 ) * COUNT ( * ) FROM tab2
----
225

query III rowsort
SELECT * FROM tab0 WHERE + 98 * + + 63 NOT IN ( + + col0 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT DISTINCT + ( col2 ) + col0 + - 62 * + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT + ( col2 ) + col0 + - 62 * + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2312
SELECT DISTINCT - col1 / col0 * + CAST( NULL AS DECIMAL ) * + - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT - col1 / col0 * + CAST ( NULL AS REAL ) * + - col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2313
SELECT + ( CAST( 99 AS SIGNED ) ), 37 + 63 col0 FROM tab1
----
99
100
99
100
99
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2313
SELECT + ( CAST ( 99 AS INTEGER ) ), 37 + 63 col0 FROM tab1
----
99
100
99
100
99
100

onlyif mysql # DIV for integer division: 
query I rowsort label-2314
SELECT - 6 DIV + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2314
SELECT - 6 / + col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 * 10 col2 FROM tab1
----
670
670
670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT DISTINCT CAST( col2 AS SIGNED ) + - 59 + + 97 + + - 42 AS col2 FROM tab2
----
19
36
54

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT CAST ( col2 AS INTEGER ) + - 59 + + 97 + + - 42 AS col2 FROM tab2
----
19
36
54

query I rowsort
SELECT DISTINCT - 73 AS col1 FROM tab1 AS cor0 WHERE + col1 <> - col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2318
SELECT CAST( - - col2 AS SIGNED ) * 46 FROM tab1 AS cor0 WHERE col0 <= ( 17 * - ( + - col2 ) + + col0 )
----
2714
3128
4416

skipif mysql # not compatible
query I rowsort label-2318
SELECT CAST ( - - col2 AS INTEGER ) * 46 FROM tab1 AS cor0 WHERE col0 <= ( 17 * - ( + - col2 ) + + col0 )
----
2714
3128
4416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2319
SELECT - 62 DIV - - MAX( col0 ) - - COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2319
SELECT - 62 / - - MAX ( col0 ) - - COUNT ( * ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT DISTINCT - - MIN( ( col1 ) ) col1 FROM tab1 cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2320
SELECT DISTINCT - - MIN ( ( col1 ) ) col1 FROM tab1 cor0
----
5

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 / col1 - col1 + + col2 AND + ( + col1 ) * ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT ( - - MIN( - + col0 ) ) + + - 98 + + + 84 * + 75 AS col1 FROM tab1 AS cor0
----
6111

skipif mysql # not compatible
query I rowsort label-2322
SELECT ( - - MIN ( - + col0 ) ) + + - 98 + + + 84 * + 75 AS col1 FROM tab1 AS cor0
----
6111

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 BETWEEN + - 47 AND 45
----
87
21
10

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN - + 61 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT SUM( ALL - col0 ) col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2326
SELECT SUM ( ALL - col0 ) col0 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2327
SELECT ALL CAST( + 96 AS SIGNED ) AS col0 FROM tab2
----
96
96
96

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL CAST ( + 96 AS INTEGER ) AS col0 FROM tab2
----
96
96
96

query I rowsort
SELECT - col0 * ( + + col2 ) + - col1 / col1 / + col0 FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 65 AS col0, + col0 * - col2 col2 FROM tab0
----
65
-705
65
-870
65
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT 40 * - MIN( DISTINCT - col0 ) AS col1 FROM tab0
----
3880

skipif mysql # not compatible
query I rowsort label-2330
SELECT 40 * - MIN ( DISTINCT - col0 ) AS col1 FROM tab0
----
3880

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 65 + - 85 ) NOT BETWEEN NULL AND + 21
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2332
SELECT - COUNT( * ) AS col1, + 72 AS col0 FROM tab2
----
-3
72

skipif mysql # not compatible
query II rowsort label-2332
SELECT - COUNT ( * ) AS col1, + 72 AS col0 FROM tab2
----
-3
72

query I rowsort
SELECT ALL 95 + + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
100
109
142

query II rowsort
SELECT ALL - 43 AS col2, + 22 FROM tab1 AS cor0
----
-43
22
-43
22
-43
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT DISTINCT + MIN( + + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 59 IS NULL
----
10

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT + MIN ( + + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 59 IS NULL
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2336
SELECT + 93, COUNT( * ) * + MAX( - col0 ) DIV - + MAX( DISTINCT - 39 ) + 66 DIV + + 4 AS col1 FROM tab1 AS cor0
----
93
13

skipif mysql # not compatible
query II rowsort label-2336
SELECT + 93, COUNT ( * ) * + MAX ( - col0 ) / - + MAX ( DISTINCT - 39 ) + 66 / + + 4 AS col1 FROM tab1 AS cor0
----
93
13

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - col0 + + ( 69 ) * ( - + 78 ) ) BETWEEN 97 + - - col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + - - 89 + - + col2 * + - 23 < + 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 73 AS col0, col0 AS col0 FROM tab2 AS cor0 WHERE - col2 * + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0, col1 * + 29, + 88 + - 42 / + col1 * - col0 + + + 89 )
----

query II rowsort
SELECT 80 AS col1, + col2 FROM tab2 AS cor0
----
80
23
80
40
80
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2342
SELECT DISTINCT - ( - col2 ) DIV - ( + - 38 ) + - - ( + + col2 ) + + + 75 AS col2 FROM tab1 AS cor0
----
135
144
173

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT - ( - col2 ) / - ( + - 38 ) + - - ( + + col2 ) + + + 75 AS col2 FROM tab1 AS cor0
----
135
144
173

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT + MAX( DISTINCT + - col2 ) AS col0 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2343
SELECT + MAX ( DISTINCT + - col2 ) AS col0 FROM tab1 cor0
----
-59

query II rowsort
SELECT 96 * - + 92, 6 * + - col0 * - col0 AS col2 FROM tab0 AS cor0
----
-8832
1350
-8832
45414
-8832
56454

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2345
SELECT CAST( CAST( NULL AS SIGNED ) 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-2345
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT + 94 * - SUM( - 1 ) AS col1 FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-2346
SELECT + 94 * - SUM ( - 1 ) AS col1 FROM tab1 AS cor0
----
282

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> col2 + - col0
----

query I rowsort
SELECT 39 + - col1 + 90 - col0 * - col2 FROM tab1
----
5011
5139
6270

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NULL <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2350
SELECT CAST( NULL AS SIGNED ) + - 52 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2350
SELECT CAST ( NULL AS INTEGER ) + - 52 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <= + 67 - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2352
SELECT DISTINCT COUNT( * ) - - ( AVG ( ALL + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT COUNT ( * ) - - ( AVG ( ALL + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 - - - col2 FROM tab1
----
-21
-54
-82

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 28 ) = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ( - + COUNT( * ) ) AS col1 FROM tab2 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-2355
SELECT ( - + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2356
SELECT + col1 * - col0 - - + 88 DIV + col0 AS col0 FROM tab2
----
-2345
-4927
-5024

skipif mysql # not compatible
query I rowsort label-2356
SELECT + col1 * - col0 - - + 88 / + col0 AS col0 FROM tab2
----
-2345
-4927
-5024

query I rowsort
SELECT + + col1 - - 0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT ALL - SUM( DISTINCT col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2358
SELECT ALL - SUM ( DISTINCT col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2359
SELECT ALL col1 + + CAST( + 88 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
109
169
89

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL col1 + + CAST ( + 88 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
109
169
89

query I rowsort
SELECT - 2 - 12 FROM tab2 cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT - 6 * COUNT( * ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2361
SELECT - 6 * COUNT ( * ) FROM tab1 AS cor0
----
-18

query I rowsort
SELECT ( + col1 ) * - + 45 FROM tab2 AS cor0
----
-2295
-3015
-3465

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - col0 * + + col0 * col2 / - 71 BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT 86 * + 8 AS col1 FROM tab2 AS cor0
----
688

query I rowsort
SELECT 1 + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
52
68
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - 39 col0, - col2 AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 97 * + 32 + 2 + - + 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2368
SELECT DISTINCT ( + 50 ) AS col2, - COUNT( * ) AS col0 FROM tab0
----
50
-3

skipif mysql # not compatible
query II rowsort label-2368
SELECT DISTINCT ( + 50 ) AS col2, - COUNT ( * ) AS col0 FROM tab0
----
50
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT DISTINCT - COUNT( + + ( - col1 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT - COUNT ( + + ( - col1 ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT - 66 AS col1 FROM tab1 WHERE NOT ( + 39 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 15 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2372
SELECT - col0 * + col1 DIV + col1 AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2372
SELECT - col0 * + col1 / + col1 AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT ALL - 48 * - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
432

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL - 48 * - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
432

query I rowsort
SELECT DISTINCT ( + ( - 85 ) ) AS col0 FROM tab2
----
-85

query I rowsort
SELECT DISTINCT + 79 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
79

query I rowsort
SELECT ALL col0 + - - 42 - - col1 * col2 - + col2 + - 25 + + - ( + 36 ) FROM tab0
----
268
3756
78

query I rowsort
SELECT 84 + - col1 FROM tab0 AS cor0
----
3
63
83

query I rowsort
SELECT + col0 + + - 83 AS col1 FROM tab0 cor0
----
-68
14
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2380
SELECT ALL + + 91 DIV ( - 78 ) + + col2 col2 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2380
SELECT ALL + + 91 / ( - 78 ) + + col2 col2 FROM tab1 AS cor0
----
58
67
95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 + - col2 ) IS NULL
----

query II rowsort
SELECT ALL 24, + 43 AS col2 FROM tab1
----
24
43
24
43
24
43

query II rowsort
SELECT + col2 AS col1, + col0 + + col1 FROM tab1
----
59
90
68
138
96
65

query I rowsort
SELECT - 27 * 90 FROM tab2
----
-2430
-2430
-2430

query I rowsort
SELECT - 59 * col2 FROM tab1
----
-3481
-4012
-5664

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT DISTINCT - MAX( + - ( - - col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT - MAX ( + - ( - - col0 ) ) FROM tab2
----
46

query III rowsort
SELECT * FROM tab2 WHERE ( - + col0 ) <= - col1
----
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2388
SELECT + CAST( NULL AS SIGNED ) AS col1, 31 FROM tab2
----
NULL
31
NULL
31
NULL
31

skipif mysql # not compatible
query II rowsort label-2388
SELECT + CAST ( NULL AS INTEGER ) AS col1, 31 FROM tab2
----
NULL
31
NULL
31
NULL
31

query I rowsort
SELECT + - 79 FROM tab1 WHERE NULL BETWEEN + col0 + col2 AND - 10
----

query I rowsort
SELECT - - 8 FROM tab2 cor0 WHERE - 87 / - col2 + + 90 NOT BETWEEN + - col1 AND - - ( + - 40 )
----
8
8
8

query I rowsort
SELECT - - 32 - - + col0 * 86 AS col0 FROM tab1 AS cor0
----
4418
7342
7858

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT + - 78 + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2393
SELECT + - 78 + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT col2 + 64 - col0 FROM tab2
----
40
41
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT DISTINCT SUM( - 81 ) FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT SUM ( - 81 ) FROM tab0 AS cor0
----
-243

query I rowsort
SELECT 47 * + 32 AS col2 FROM tab2 AS cor0
----
1504
1504
1504

query I rowsort
SELECT DISTINCT - 3 * - col2 + 3 AS col2 FROM tab0 AS cor0
----
144
300
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2398
SELECT ALL COUNT( DISTINCT + - 51 ) DIV - ( + + COUNT( + - 14 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL COUNT ( DISTINCT + - 51 ) / - ( + + COUNT ( + - 14 ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT 40 * 45 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 6c23d5567e03887df36b22dab0e868fe

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ( - 41 ) * - COUNT( * ) AS col2 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-2400
SELECT ( - 41 ) * - COUNT ( * ) AS col2 FROM tab0
----
123

query I rowsort
SELECT DISTINCT + col1 * + - 79 FROM tab2
----
-4029
-5293
-6083

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2402
SELECT DISTINCT CAST( NULL AS SIGNED ) * 82 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 82 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT ALL COUNT( * ) FROM tab1 WHERE NULL IN ( - 20 + - col0, + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL COUNT ( * ) FROM tab1 WHERE NULL IN ( - 20 + - col0, + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT DISTINCT MAX( + ( - + col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT MAX ( + ( - + col1 ) ) FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2406
SELECT - - col0 DIV - col2 + - + col2 - - - 46 AS col2 FROM tab1 AS cor0
----
-106
-115
-142

skipif mysql # not compatible
query I rowsort label-2406
SELECT - - col0 / - col2 + - + col2 - - - 46 AS col2 FROM tab1 AS cor0
----
-106
-115
-142

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2408
SELECT + - col2 DIV - + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2408
SELECT + - col2 / - + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
1
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 53 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2410
SELECT - 48 FROM tab0 AS cor0 WHERE NULL BETWEEN - 88 AND + 61 + - col1 * col0 + + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2410
SELECT - 48 FROM tab0 AS cor0 WHERE NULL BETWEEN - 88 AND + 61 + - col1 * col0 + + + CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2411
SELECT ALL - col2 * - col1 DIV + + col1 + - - 72 AS col1 FROM tab1 AS cor0
----
131
140
168

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL - col2 * - col1 / + + col1 + - - 72 AS col1 FROM tab1 AS cor0
----
131
140
168

query I rowsort
SELECT DISTINCT + 27 * + + 91 + col1 - + col2 - 72 AS col2 FROM tab0 AS cor0
----
2287
2396
2419

query I rowsort
SELECT - + col0 + col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-26
45

query II rowsort
SELECT DISTINCT col1 AS col1, + col1 FROM tab1 AS cor0 WHERE NOT - col0 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2415
SELECT + 31 - COUNT( * ) + 81 * CAST( NULL AS DECIMAL ) / 22 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2415
SELECT + 31 - COUNT ( * ) + 81 * CAST ( NULL AS REAL ) / 22 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col0 + col2 AS col1 FROM tab1 cor0
----
144
147
159

query I rowsort
SELECT DISTINCT 57 - - - col1 AS col0 FROM tab0
----
-24
36
56

query I rowsort
SELECT 26 FROM tab0 WHERE ( col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col1 AND col1 / - - 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT COUNT( * ) + 22 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-2420
SELECT COUNT ( * ) + 22 FROM tab2
----
25

query III rowsort
SELECT * FROM tab0 WHERE - - col1 NOT BETWEEN NULL AND - - 97 - - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT - SUM( ALL + 35 ) FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-2422
SELECT - SUM ( ALL + 35 ) FROM tab0 AS cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT ALL SUM( ALL + 9 ) AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL SUM ( ALL + 9 ) AS col0 FROM tab1
----
27

query II rowsort
SELECT 37 AS col1, + ( + col0 ) * + - col1 AS col0 FROM tab2
----
37
-2346
37
-4928
37
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-2425
SELECT 32 DIV - col0 AS col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2425
SELECT 32 / - col0 AS col2 FROM tab0
----
-2
0
0

query I rowsort
SELECT - col2 * + 19 FROM tab2 AS cor0
----
-1102
-437
-760

query I rowsort
SELECT ALL + ( + col1 ) * - + 25 AS col2 FROM tab0 AS cor0
----
-2025
-25
-525

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 = + col0 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 32 AS col1, col0 - + col2 FROM tab2 AS cor0
----
-32
17
-32
23
-32
24

query I rowsort
SELECT + col1 * col2 + 51 * + 54 FROM tab2 AS cor0
----
3927
5834
6640

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT DISTINCT - col1 DIV - ( col0 ) AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2431
SELECT DISTINCT - col1 / - ( col0 ) AS col1 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT - MIN( DISTINCT 8 ) * 99 AS col1 FROM tab0 AS cor0
----
-792

skipif mysql # not compatible
query I rowsort label-2432
SELECT - MIN ( DISTINCT 8 ) * 99 AS col1 FROM tab0 AS cor0
----
-792

query I rowsort
SELECT - col1 * + + col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT + 5 IS NULL
----
1
21
81

query II rowsort
SELECT ALL - col0 AS col0, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2436
SELECT ALL - col0, col1 + - - CAST( NULL AS SIGNED ) + - col1 col0 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2436
SELECT ALL - col0, col1 + - - CAST ( NULL AS INTEGER ) + - col1 col0 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + - col2 ) - 65 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2438
SELECT ALL - ( + col0 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL - ( + col0 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2439
SELECT ALL - CAST( NULL AS SIGNED ) * + + 40 * - - ( - 39 ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 40 * - - ( - 39 ) * COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT ALL COUNT( * ) * + 20 AS col2 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL COUNT ( * ) * + 20 AS col2 FROM tab1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2441
SELECT COUNT( * ) DIV COUNT( + + 17 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2441
SELECT COUNT ( * ) / COUNT ( + + 17 ) AS col2 FROM tab2
----
1

query I rowsort
SELECT - - col0 AS col2 FROM tab0 WHERE NOT + 12 = + + col1
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT DISTINCT - - COUNT( col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT - - COUNT ( col0 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT + - col0 + col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 6 BETWEEN - + 66 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT ALL - COUNT( * ) * 47 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-423

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL - COUNT ( * ) * 47 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-423

query III rowsort
SELECT * FROM tab0 WHERE NULL <> col1 + - - ( 61 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2448
SELECT ALL - col0 DIV 53 col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2448
SELECT ALL - col0 / 53 col0 FROM tab1
----
-1
-1
0

query II rowsort
SELECT DISTINCT - col1 AS col1, - 43 * - + col0 AS col2 FROM tab0 cor0
----
-1
4171
-21
3741
-81
645

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT ALL - 26 DIV + + col1 + - ( - col0 ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL - 26 / + + col1 + - ( - col0 ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT - - 32 + col2 FROM tab2 AS cor0
----
55
72
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT DISTINCT - 62 + - COUNT( * ) FROM tab0 cor0
----
-65

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT - 62 + - COUNT ( * ) FROM tab0 cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT COUNT( * ) + - 90 AS col1 FROM tab1 AS cor0 WHERE - col2 - + col1 IS NULL
----
-90

skipif mysql # not compatible
query I rowsort label-2453
SELECT COUNT ( * ) + - 90 AS col1 FROM tab1 AS cor0 WHERE - col2 - + col1 IS NULL
----
-90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2454
SELECT ALL MIN( + CAST( NULL AS DECIMAL ) ) - + + MIN( + 12 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL MIN ( + CAST ( NULL AS REAL ) ) - + + MIN ( + 12 ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT - ( ( MIN( col2 ) ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2455
SELECT - ( ( MIN ( col2 ) ) ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT - - COUNT( * ) AS col1 FROM tab0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2456
SELECT - - COUNT ( * ) AS col1 FROM tab0 WHERE NULL <= NULL
----
0

query I rowsort
SELECT ALL col2 * - col1 - + + 83 + 1 AS col2 FROM tab1
----
-1426
-3278
-377

query I rowsort
SELECT col2 * - + 83 AS col1 FROM tab2
----
-1909
-3320
-4814

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT COUNT( * ) - + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2459
SELECT COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT - SUM( 95 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT - SUM ( 95 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 28 + ( col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT DISTINCT - CAST( 21 AS SIGNED ) FROM tab1 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT - CAST ( 21 AS INTEGER ) FROM tab1 cor0
----
-21

query I rowsort
SELECT ALL + + 30 AS col0 FROM tab2 cor0
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-73
-73
-73

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 AS cor0 WHERE NOT 74 >= + col2
----
1

query I rowsort
SELECT 76 * + 44 * 4 * col0 FROM tab0 AS cor0 WHERE NOT + col0 * + - col2 IS NULL
----
1163712
1297472
200640

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT DISTINCT + - COUNT( + 62 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT + - COUNT ( + 62 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT ALL + - COUNT( + 19 ) col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2468
SELECT ALL + - COUNT ( + 19 ) col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT + + col1 * - col1 + + 69 FROM tab0 AS cor0
----
-372
-6492
68

query I rowsort
SELECT - + col2 * + + 58 FROM tab0 AS cor0
----
-2726
-5742
-580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2471
SELECT + - COUNT( * ) DIV + 2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2471
SELECT + - COUNT ( * ) / + 2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - col0 * 22 AS col0 FROM tab0
----
-1914
-2134
-330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, + 28 * - + col0 FROM tab0
----
10
-2436
47
-420
99
-2716

onlyif mysql # DIV for integer division: 
query I rowsort label-2474
SELECT DISTINCT 72 * 86 DIV col2 DIV + col0 AS col1 FROM tab2
----
1
2
5

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT 72 * 86 / col2 / + col0 AS col1 FROM tab2
----
1
2
5

query I rowsort
SELECT DISTINCT - col2 * - - col2 * - col2 AS col0 FROM tab0
----
1000
103823
970299

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2476
SELECT + - col1 + + - 75 + - 52 * col1 AS col1 FROM tab2 AS cor0 WHERE + CAST( - 37 AS DECIMAL ) * col2 * + ( - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2476
SELECT + - col1 + + - 75 + - 52 * col1 AS col1 FROM tab2 AS cor0 WHERE + CAST ( - 37 AS REAL ) * col2 * + ( - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2477
SELECT - 60 * - CAST( NULL AS DECIMAL ) + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2477
SELECT - 60 * - CAST ( NULL AS REAL ) + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 + + col1 AS col2, col2 FROM tab1 cor0
----
138
68
65
96
90
59

query I rowsort
SELECT + - col2 + - 58 * - col1 + - col0 FROM tab0 AS cor0
----
-138
1121
4636

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( NULL ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2481
SELECT DISTINCT 51 AS col1, COUNT( * ) AS col0 FROM tab1, tab2 AS cor0
----
51
9

skipif mysql # not compatible
query II rowsort label-2481
SELECT DISTINCT 51 AS col1, COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0
----
51
9

query II rowsort
SELECT ALL 1 + + - col2, col1 AS col1 FROM tab0 AS cor0
----
-46
81
-9
21
-98
1

query I rowsort
SELECT + 61 * - col2 - + col2 FROM tab2 AS cor0
----
-1426
-2480
-3596

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < - col2
----

query I rowsort
SELECT - - col2 * 81 - - col2 FROM tab2 AS cor0
----
1886
3280
4756

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT ALL SUM( DISTINCT 81 ) - + 23 FROM tab1 AS cor0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL SUM ( DISTINCT 81 ) - + 23 FROM tab1 AS cor0 WHERE NULL <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT DISTINCT - COUNT( * ) + - COUNT( - - col1 ) col2 FROM tab1 cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2487
SELECT DISTINCT - COUNT ( * ) + - COUNT ( - - col1 ) col2 FROM tab1 cor0
----
-6

query I rowsort
SELECT 54 + + col2 AS col0 FROM tab0
----
101
153
64

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT IN ( + - 5 + + col0 * - 57 + col0, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT COUNT( ALL + col0 ) + - - 82 AS col1 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-2490
SELECT COUNT ( ALL + col0 ) + - - 82 AS col1 FROM tab2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2491
SELECT DISTINCT col2 - + col1 + + - col0 AS col0 FROM tab1 WHERE NOT ( ( + CAST( NULL AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2491
SELECT DISTINCT col2 - + col1 + + - col0 AS col0 FROM tab1 WHERE NOT ( ( + CAST ( NULL AS INTEGER ) ) ) IS NULL
----

query I rowsort
SELECT 72 + 92 FROM tab2
----
164
164
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2493
SELECT + 48 DIV MIN( + + col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2493
SELECT + 48 / MIN ( + + col0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT + + COUNT( DISTINCT + 44 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2494
SELECT + + COUNT ( DISTINCT + 44 ) AS col0 FROM tab2 AS cor0
----
1

query II rowsort
SELECT - col2 AS col0, + 77 * - col1 + - - 49 FROM tab0 AS cor0
----
-10
-1568
-47
-6188
-99
-28

query I rowsort
SELECT ( + - col1 ) AS col1 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT - + col0 FROM tab2 WHERE NOT - col0 BETWEEN col2 AND NULL
----
-46
-64
-75

query I rowsort
SELECT - - ( 23 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
23
23
23

query II rowsort
SELECT col2 * - - col2, col1 AS col0 FROM tab0 AS cor0
----
100
21
2209
81
9801
1

query I rowsort
SELECT DISTINCT col1 * + col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - col1 ) / + col1 FROM tab0 AS cor0 WHERE NOT 55 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2502
SELECT CAST( NULL AS DECIMAL ) * 26 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2502
SELECT CAST ( NULL AS REAL ) * 26 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 42 * + - col2 + + 71 FROM tab0 AS cor0 WHERE NOT ( + 92 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT + COUNT( * ) + + 85 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-2504
SELECT + COUNT ( * ) + + 85 FROM tab2 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL + SUM( DISTINCT col1 ) AS col1 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + SUM ( DISTINCT col1 ) AS col1 FROM tab2 cor0
----
195

query I rowsort
SELECT DISTINCT col1 * - 53 FROM tab1
----
-2491
-265
-742

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT ALL MIN( ALL 48 ) * + - COUNT( * ) AS col0 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL MIN ( ALL 48 ) * + - COUNT ( * ) AS col0 FROM tab1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT DISTINCT + COUNT( - + col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT + COUNT ( - + col0 ) AS col0 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2509
SELECT - col2 DIV + 56 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2509
SELECT - col2 / + 56 AS col1 FROM tab2
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - 10 + - 19 + - - col1 FROM tab0
----
-15
52
-87
-8
-97
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col1 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE - + ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2513
SELECT * FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) < + col0 * + 22
----

skipif mysql # not compatible
query III rowsort label-2513
SELECT * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) < + col0 * + 22
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2514
SELECT - + CAST( NULL AS SIGNED ) * MAX( ALL + - col1 ) FROM tab1 WHERE col1 + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT - + CAST ( NULL AS INTEGER ) * MAX ( ALL + - col1 ) FROM tab1 WHERE col1 + + col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * 77 FROM tab2
----
3927
5159
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2516
SELECT 39 + - + CAST( + + col1 AS SIGNED ) FROM tab0
----
-42
18
38

skipif mysql # not compatible
query I rowsort label-2516
SELECT 39 + - + CAST ( + + col1 AS INTEGER ) FROM tab0
----
-42
18
38

query I rowsort
SELECT DISTINCT + ( - 36 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-36

query I rowsort
SELECT DISTINCT - 32 * - col2 + 28 * + col1 FROM tab2
----
2164
3436
3732

query I rowsort
SELECT 87 + - - 20 * - col1 FROM tab1
----
-13
-193
-853

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT + 7 + + + 60 * 33 + + ( COUNT( * ) ) FROM tab0
----
1990

skipif mysql # not compatible
query I rowsort label-2520
SELECT + 7 + + + 60 * 33 + + ( COUNT ( * ) ) FROM tab0
----
1990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2521
SELECT DISTINCT + 0 * 39 * - AVG ( DISTINCT + col2 ) + + + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT + 0 * 39 * - AVG ( DISTINCT + col2 ) + + + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT DISTINCT - - ( MIN( + 69 ) ) AS col2 FROM tab1 cor0
----
69

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT - - ( MIN ( + 69 ) ) AS col2 FROM tab1 cor0
----
69

query II rowsort
SELECT - col1 AS col1, col1 AS col0 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT DISTINCT col1 * 30 + - 69 AS col1 FROM tab2 cor0
----
1461
1941
2241

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 + + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT ALL + 14 - - COUNT( * ) + - ( 42 ) * + - 93 FROM tab1 AS cor0
----
3923

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL + 14 - - COUNT ( * ) + - ( 42 ) * + - 93 FROM tab1 AS cor0
----
3923

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT DISTINCT - - SUM( + - col1 ) + + - SUM( ALL + + col1 ) AS col1 FROM tab2 AS cor0
----
-390

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT - - SUM ( + - col1 ) + + - SUM ( ALL + + col1 ) AS col1 FROM tab2 AS cor0
----
-390

query I rowsort
SELECT DISTINCT - col0 * - + 74 FROM tab0
----
1110
6438
7178

onlyif mysql # DIV for integer division: 
query I rowsort label-2529
SELECT 0 * - + 19 DIV + 43 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2529
SELECT 0 * - + 19 / + 43 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - 40 * + col1 FROM tab0
----
-3240
-40
-840

onlyif mysql # DIV for integer division: 
query I rowsort label-2531
SELECT DISTINCT - - 38 DIV + + col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - - 38 / + + col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT DISTINCT + COUNT( ALL + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT + COUNT ( ALL + col2 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL + 64 AS col1, + 30 - + - 54 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * - - col2 * + 20 IS NULL
----
64
84
64
84
64
84

query I rowsort
SELECT ALL col0 * + 68 FROM tab0 AS cor0
----
1020
5916
6596

query II rowsort
SELECT + 35, 21 * + col1 * - col0 * - - 91 AS col2 FROM tab1 WHERE NOT - ( + + col0 ) / - + ( - ( + - 2 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2536
SELECT DISTINCT + col2 AS col0, 89 * col2 + - + CAST( NULL AS DECIMAL ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-2536
SELECT DISTINCT + col2 AS col0, 89 * col2 + - + CAST ( NULL AS REAL ) FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE - col1 > ( + - col0 )
----
-59
-68
-96

query II rowsort
SELECT - col0, + ( + - ( - + col2 ) ) - col2 AS col1 FROM tab2
----
-46
0
-64
0
-75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT DISTINCT - SUM( + + col2 ) AS col0 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT - SUM ( + + col2 ) AS col0 FROM tab2 cor0
----
-121

query II rowsort
SELECT col1, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT COUNT( - 57 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2541
SELECT COUNT ( - 57 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - col0 * - + col2 + - col0 AS col2 FROM tab2 AS cor0
----
1012
2496
4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, - ( + 93 ) FROM tab0 AS cor0
----
1
-93
21
-93
81
-93

query I rowsort
SELECT + col0 * 2 + - 46 AS col1 FROM tab0 cor0
----
-16
128
148

query I rowsort
SELECT + col2 + + 61 + + - col2 AS col2 FROM tab0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT COUNT( * ) + - ( + COUNT( * ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2547
SELECT COUNT ( * ) + - ( + COUNT ( * ) ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL - + ( + COUNT( * ) ) + 63 + - 69 + - 94 AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL - + ( + COUNT ( * ) ) + 63 + - 69 + - 94 AS col0 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT + ( - + col0 ) + + + col2 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + + col2 + - 28 AS col0 FROM tab2 AS cor0
----
-5
12
30

query I rowsort
SELECT DISTINCT + + 73 - + - col0 * col1 FROM tab1 AS cor0
----
4350
498
787

query I rowsort
SELECT + - col2 AS col2 FROM tab1 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + ( - col2 ) + + + col2 col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT col1 - - 4 FROM tab0 AS cor0
----
25
5
85

query I rowsort
SELECT - - col0 - + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT - COUNT( * ) + + + 58 + + 40 AS col1 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2556
SELECT - COUNT ( * ) + + + 58 + + 40 AS col1 FROM tab2 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT DISTINCT - COUNT( * ) * - - 67 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT - COUNT ( * ) * - - 67 FROM tab2 AS cor0
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2558
SELECT ALL + CAST( NULL AS SIGNED ) + - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL + CAST ( NULL AS INTEGER ) + - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1, - 80 AS col2 FROM tab1
----
14
-80
47
-80
5
-80

query II rowsort
SELECT + col2, - ( + col2 ) FROM tab0 WHERE NOT col0 IS NULL
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE col0 / - col0 + - 43 + 32 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE col0 / - col0 + - 43 + 32 IS NULL
----
0

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT col2 * - col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 * - col2 col1 FROM tab2
----
-1311
-2280
-3306

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT - COUNT( * ) * MAX( - col1 ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-2564
SELECT - COUNT ( * ) * MAX ( - col1 ) AS col0 FROM tab1
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2565
SELECT ALL + CAST( NULL AS DECIMAL ) * - - 32 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL + CAST ( NULL AS REAL ) * - - 32 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL - 11 + + ( COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 + col0 + + ( + + col0 ) IN ( - + 77, - col2 * - col1, + + col2 )
----
-8

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL - 11 + + ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 + col0 + + ( + + col0 ) IN ( - + 77, - col2 * - col1, + + col2 )
----
-8

query II rowsort
SELECT 13 AS col0, - col1 AS col1 FROM tab0 cor0
----
13
-1
13
-21
13
-81

query I rowsort
SELECT - 92 * - - col1 FROM tab2 cor0
----
-4692
-6164
-7084

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + + - 17 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - ( 36 ), + col2 AS col2 FROM tab2 AS cor0
----
-36
23
-36
40
-36
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT MAX( + 50 ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-2571
SELECT MAX ( + 50 ) FROM tab0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2572
SELECT * FROM tab1 WHERE NOT + - col0 * col0 / + - col1 NOT BETWEEN ( - - CAST( NULL AS SIGNED ) + - col2 ) AND 27
----

skipif mysql # not compatible
query III rowsort label-2572
SELECT * FROM tab1 WHERE NOT + - col0 * col0 / + - col1 NOT BETWEEN ( - - CAST ( NULL AS INTEGER ) + - col2 ) AND 27
----

query I rowsort
SELECT DISTINCT + col1 * 79 AS col2 FROM tab0
----
1659
6399
79

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - - col1 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT DISTINCT - - COUNT( - col2 ) FROM tab1 cor0 WHERE col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT - - COUNT ( - col2 ) FROM tab1 cor0 WHERE col1 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT SUM( ALL + 95 ) + MAX( + col1 ) FROM tab1 AS cor0
----
332

skipif mysql # not compatible
query I rowsort label-2576
SELECT SUM ( ALL + 95 ) + MAX ( + col1 ) FROM tab1 AS cor0
----
332

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT - 92 + - COUNT( * ) FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT - 92 + - COUNT ( * ) FROM tab1 AS cor0
----
-95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN + 99 AND col0
----

query I rowsort
SELECT - - col0 + - col1 + - col2 * - col0 + + col0 AS col0 FROM tab2 AS cor0
----
1099
2611
4433

query I rowsort
SELECT ALL - + col1 + - - ( col1 ) * - col0 + 84 + - col0 * + col2 * + col1 FROM tab0 AS cor0
----
-20034
-58317
-9617

query I rowsort
SELECT DISTINCT - - ( - col2 ) * + - 57 AS col2 FROM tab1 AS cor0
----
3363
3876
5472

query I rowsort
SELECT + 6 * - + col1 + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( 38 ) AS col0 FROM tab1
----
38

query II rowsort
SELECT DISTINCT + 19, 23 AS col2 FROM tab0
----
19
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2585
SELECT CAST( NULL AS SIGNED ) * - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2585
SELECT CAST ( NULL AS INTEGER ) * - - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( - + 94 ) FROM tab0
----
-94
-94
-94

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 33 <= - + 67
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2588
SELECT col0 DIV + 28 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2588
SELECT col0 / + 28 FROM tab2
----
1
2
2

onlyif mysql # DIV for integer division: 
query II rowsort label-2589
SELECT ALL - + 74 DIV ( - + col2 ) * 27, col0 FROM tab0 cor0
----
0
97
189
87
27
15

skipif mysql # not compatible
query II rowsort label-2589
SELECT ALL - + 74 / ( - + col2 ) * 27, col0 FROM tab0 cor0
----
0
97
189
87
27
15

query I rowsort
SELECT DISTINCT - + 79 + + ( - + 89 ) - 3 + + col2 * - 9 AS col0 FROM tab2 AS cor0
----
-378
-531
-693

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2591
SELECT * FROM tab0 cor0 WHERE NOT CAST( NULL AS DECIMAL ) * col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2591
SELECT * FROM tab0 cor0 WHERE NOT CAST ( NULL AS REAL ) * col2 IS NULL
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT 40 * + 77 IS NULL
----
10
47
99

query I rowsort
SELECT ALL - 92 + - 70 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT COUNT( * ) * - 6 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2594
SELECT COUNT ( * ) * - 6 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT + 73 + + col2 AS col2 FROM tab1 WHERE NOT 69 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 79 NOT IN ( + col2 * col2 * col0, 6 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * 77 AS col1 FROM tab1
----
4543
5236
7392

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL col1 * + - 40 * + ( - + ( + + 13 ) ) AS col2 FROM tab0
----
10920
42120
520

query II rowsort
SELECT ALL - 71, - 97 AS col1 FROM tab2
----
-71
-97
-71
-97
-71
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2602
SELECT + + CAST( NULL AS SIGNED ) + - - 33 col2 FROM tab2 AS cor0 WHERE NOT ( NOT + + CAST( NULL AS SIGNED ) / - + col1 / - col0 BETWEEN - col1 * - col2 * + col0 AND NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2602
SELECT + + CAST ( NULL AS INTEGER ) + - - 33 col2 FROM tab2 AS cor0 WHERE NOT ( NOT + + CAST ( NULL AS INTEGER ) / - + col1 / - col0 BETWEEN - col1 * - col2 * + col0 AND NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 12 NOT BETWEEN NULL AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 7 + col1 + - 60 AS col0 FROM tab0 AS cor0
----
-32
-52
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT + + MIN( - - 38 ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-2605
SELECT + + MIN ( - - 38 ) FROM tab2 AS cor0
----
38

query I rowsort
SELECT ALL - col1 + + col0 * + col2 * + 55 * + col0 AS col2 FROM tab2 AS cor0
----
17943683
2676689
9011123

query I rowsort
SELECT DISTINCT 15 + + 62 AS col2 FROM tab2 cor0
----
77

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE col2 + col2 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT - + COUNT( col1 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2609
SELECT - + COUNT ( col1 ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2610
SELECT - - col2 AS col0, CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2610
SELECT - - col2 AS col0, CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT ALL - 51 * + col0 * + - 61 FROM tab2 AS cor0
----
143106
199104
233325

query II rowsort
SELECT ALL - 11 + - col2 AS col2, col1 FROM tab0 AS cor0
----
-110
1
-21
21
-58
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2613
SELECT DISTINCT CAST( col0 AS SIGNED ) * col2 - + col0 - - 85 col1 FROM tab2
----
1097
2581
4360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2613
SELECT DISTINCT CAST ( col0 AS INTEGER ) * col2 - + col0 - - 85 col1 FROM tab2
----
1097
2581
4360

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT COUNT( * ) + MIN( + col0 ) AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-2614
SELECT COUNT ( * ) + MIN ( + col0 ) AS col1 FROM tab2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2615
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COUNT( * ) * + 69 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2615
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COUNT ( * ) * + 69 col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT DISTINCT 86 - MAX( DISTINCT - col0 ) AS col1 FROM tab1
----
137

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT 86 - MAX ( DISTINCT - col0 ) AS col1 FROM tab1
----
137

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT DISTINCT + MAX( DISTINCT - + col1 ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2618
SELECT DISTINCT + MAX ( DISTINCT - + col1 ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT col0 * col1 + + + col1 + + col2 FROM tab2 AS cor0
----
2420
5045
5150

query I rowsort
SELECT - 52 * - col0 + - col0 FROM tab1 AS cor0
----
2601
4335
4641

query II rowsort
SELECT DISTINCT - col2 + - 44, + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-102
-3886
-67
-1173
-84
-3080

query II rowsort
SELECT ALL + + col0 + - col2 AS col1, - col2 AS col2 FROM tab2 AS cor0
----
17
-58
23
-23
24
-40

query I rowsort
SELECT DISTINCT - col0 - - + col0 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT DISTINCT + MAX( ALL - 46 ) + - COUNT( * ) FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT + MAX ( ALL - 46 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-49

query III rowsort
SELECT * FROM tab2 WHERE col1 / + - 5 NOT BETWEEN - + col0 AND + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT - 17 + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-8

skipif mysql # not compatible
query I rowsort label-2626
SELECT - 17 + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT ALL MIN( DISTINCT - col2 ) col0 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2627
SELECT ALL MIN ( DISTINCT - col2 ) col0 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT COUNT( * ) * + MAX( DISTINCT 70 ) FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-2628
SELECT COUNT ( * ) * + MAX ( DISTINCT 70 ) FROM tab0 AS cor0
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-2629
SELECT - 7 DIV + - col0 * col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2629
SELECT - 7 / + - col0 * col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT + col0 * - + 73 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2630
SELECT + col0 * - + 73 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2631
SELECT - CAST( - - 23 AS SIGNED ) FROM tab1 AS cor0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-2631
SELECT - CAST ( - - 23 AS INTEGER ) FROM tab1 AS cor0
----
-23
-23
-23

query II rowsort
SELECT + 7, col2 FROM tab0 AS cor0
----
7
10
7
47
7
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT DISTINCT MAX( ALL 20 ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT MAX ( ALL 20 ) FROM tab2 AS cor0
----
20

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE ( NOT col2 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2635
SELECT - 58 DIV - 58 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2635
SELECT - 58 / - 58 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT + - 10 AS col2 FROM tab2 WHERE - col0 - + + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2637
SELECT DISTINCT COUNT( ALL 11 ) * + COUNT( * ) + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT COUNT ( ALL 11 ) * + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT ALL col2 * col1 * - 85 + + col0 DIV - col1 col0 FROM tab1 cor0
----
-114243
-25092
-271661

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2638
SELECT ALL col2 * col1 * - 85 + + col0 / - col1 col0 FROM tab1 cor0
----
-114243
-25092
-271661

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - + 78 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - 19 FROM tab2 cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT ALL 18 * - COUNT( * ) col0 FROM tab1
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2641
SELECT ALL 18 * - COUNT ( * ) col0 FROM tab1
----
-54

query I rowsort
SELECT ALL + 40 * col1 AS col2 FROM tab1
----
1880
200
560

query I rowsort
SELECT ALL col1 * - 96 + + col0 FROM tab1
----
-1293
-395
-4421

query I rowsort
SELECT col0 * col2 * + - col0 + + col2 AS col2 FROM tab1
----
-249600
-426216
-563040

query I rowsort
SELECT ALL ( + col0 ) + + + col2 AS col0 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT ALL - col2 + + 38 + + 24 * + col2 FROM tab0 AS cor0 WHERE NULL > col2
----

query I rowsort
SELECT ALL + col2 * col1 + + ( col1 ) AS col2 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT DISTINCT - ( - 46 ) + - 94 AS col0 FROM tab0 cor0
----
-48

query I rowsort
SELECT + col1 * - col2 + + col1 FROM tab0 AS cor0 WHERE + 56 + - + col1 + - + 83 BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT ALL - 29 + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL = ( NULL )
----
-29

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL - 29 + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL = ( NULL )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2651
SELECT + 70 * CAST( NULL AS SIGNED ) * - ( - COUNT( col0 ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT + 70 * CAST ( NULL AS INTEGER ) * - ( - COUNT ( col0 ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( + + col2 ) AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
-23
-40
-58

query II rowsort
SELECT col0 AS col2, + col0 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT - 21 * + + col2 * col0 FROM tab1
----
-102816
-105315
-129948

query I rowsort
SELECT + 70 * - col2 FROM tab2
----
-1610
-2800
-4060

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT - COUNT( DISTINCT + + col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2656
SELECT - COUNT ( DISTINCT + + col0 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT + 88 * - MAX( - + col0 ) AS col2 FROM tab2
----
4048

skipif mysql # not compatible
query I rowsort label-2657
SELECT + 88 * - MAX ( - + col0 ) AS col2 FROM tab2
----
4048

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT + col0 - + col2 DIV col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2658
SELECT + col0 - + col2 / col1 FROM tab2
----
46
64
75

query II rowsort
SELECT ALL col0, + col2 AS col1 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT + col2 + - col2 - - - col1 AS col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2661
SELECT COUNT( * ) AS col2, + 15 FROM tab0 AS cor0
----
3
15

skipif mysql # not compatible
query II rowsort label-2661
SELECT COUNT ( * ) AS col2, + 15 FROM tab0 AS cor0
----
3
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2662
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT ALL + - 78 * - 61 AS col1 FROM tab0 AS cor0
----
4758
4758
4758

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT ALL - MAX( DISTINCT col1 ) AS col1 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL - MAX ( DISTINCT col1 ) AS col1 FROM tab1 cor0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 <= NULL
----

query I rowsort
SELECT ALL - + col1 + ( 42 ) FROM tab2 AS cor0 WHERE NOT 97 + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 3 * + 92 FROM tab2 AS cor0
----
276

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2669
SELECT + col0 DIV + + col1 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2669
SELECT + col0 / + + col1 FROM tab2 cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT - 70 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-2670
SELECT - 70 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, ( + 6 ) col2 FROM tab0
----
1
6
21
6
81
6

query I rowsort
SELECT 74 * + col0 AS col0 FROM tab1
----
3774
6290
6734

query I rowsort
SELECT ALL - col1 * - - col2 AS col0 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT + + 1 * 80 FROM tab2 WHERE ( + - col1 ) + + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2675
SELECT ALL + 80 AS col0, COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 25 IS NOT NULL
----
80
0

skipif mysql # not compatible
query II rowsort label-2675
SELECT ALL + 80 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 25 IS NOT NULL
----
80
0

query I rowsort
SELECT + 11 + - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-2335
-4917
-5014

query I rowsort
SELECT 91 + col0 FROM tab0 WHERE NULL IS NULL
----
106
178
188

query I rowsort
SELECT + col0 * + col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col2 + col0 * col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 * - col2 AS col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 79 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2682
SELECT - ( CAST( + 59 AS SIGNED ) ) FROM tab1
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-2682
SELECT - ( CAST ( + 59 AS INTEGER ) ) FROM tab1
----
-59
-59
-59

query III rowsort
SELECT * FROM tab2 WHERE - ( 67 ) > ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT DISTINCT + col2 + 51 FROM tab1 WHERE NOT + col0 * CAST( - col0 AS SIGNED ) NOT BETWEEN col1 AND ( + ( col0 ) )
----

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT + col2 + 51 FROM tab1 WHERE NOT + col0 * CAST ( - col0 AS INTEGER ) NOT BETWEEN col1 AND ( + ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT DISTINCT COUNT( DISTINCT 49 ) * 0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT COUNT ( DISTINCT 49 ) * 0 FROM tab0
----
0

query I rowsort
SELECT ALL ( col0 ) * + col2 AS col1 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL + col1 - 48 FROM tab1
----
-1
-34
-43

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 >= - 25 + + col0
----
85
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2689
SELECT DISTINCT + CAST( NULL AS SIGNED ) - col0 * + 66 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - col0 * + 66 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE - col0 >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT COUNT( ALL - col0 ) + 84 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2691
SELECT COUNT ( ALL - col0 ) + 84 FROM tab0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2692
SELECT 47 * CAST( NULL AS SIGNED ) + - AVG ( col2 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2692
SELECT 47 * CAST ( NULL AS INTEGER ) + - AVG ( col2 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT 93 * ( + ( 48 ) ) AS col2 FROM tab1
----
4464
4464
4464

query I rowsort
SELECT ALL 72 * col1 + - col1 FROM tab2
----
3621
4757
5467

query I rowsort
SELECT DISTINCT - 34 * col0 + - col1 AS col2 FROM tab1
----
-1748
-2895
-3141

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab0 WHERE NULL IN ( 50 * + 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT + ( - MAX( ALL col1 ) ) * 8 FROM tab1
----
-376

skipif mysql # not compatible
query I rowsort label-2698
SELECT + ( - MAX ( ALL col1 ) ) * 8 FROM tab1
----
-376

query I rowsort
SELECT DISTINCT - col0 * + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT + COUNT( * ) + 70 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-2700
SELECT + COUNT ( * ) + 70 FROM tab0
----
73

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( col2 ) + ( - col0 ) NOT BETWEEN NULL AND ( 52 + 7 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 / + col1 = NULL
----

query I rowsort
SELECT - 64 * - col0 AS col2 FROM tab1 cor0
----
3264
5440
5824

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 11 ) IS NOT NULL
----

query I rowsort
SELECT - 53 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT + SUM( - 79 ) FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-2706
SELECT + SUM ( - 79 ) FROM tab0 AS cor0
----
-237

query I rowsort
SELECT ( col0 ) FROM tab0 cor0 WHERE NOT ( NULL ) >= ( 69 )
----

query I rowsort
SELECT DISTINCT - col2 * 16 AS col0 FROM tab1 AS cor0
----
-1088
-1536
-944

onlyif mysql # DIV for integer division: 
query I rowsort label-2709
SELECT DISTINCT - + 10 DIV 99 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT - + 10 / 99 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 23 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col1 + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT DISTINCT + MAX( ALL 5 ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT + MAX ( ALL 5 ) FROM tab2 AS cor0
----
5

query I rowsort
SELECT ALL 46 + - col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ALL + SUM( ALL + col1 ) AS col1 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL + SUM ( ALL + col1 ) AS col1 FROM tab1 cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2715
SELECT 35 DIV + col0 AS col1 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2715
SELECT 35 / + col0 AS col1 FROM tab0
----
0
0
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 68 ) BETWEEN NULL AND ( col2 * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - - col2 ) * col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT 51 + - 9 FROM tab2
----
42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN 44 AND + ( + ( 41 ) ) * 51
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT + col0 + + col2 + col1 FROM tab1 AS cor0
----
149
161
206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 col1 FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT + COUNT( ALL + 34 ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2722
SELECT + COUNT ( ALL + 34 ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 / - col2 IS NULL
----

query I rowsort
SELECT ALL col1 * 25 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
2025
25
525

query I rowsort
SELECT - col0 + col0 + ( col0 ) AS col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT + COUNT( * ) + - 39 col0 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2726
SELECT + COUNT ( * ) + - 39 col0 FROM tab0 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2727
SELECT ALL + + CAST( 51 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL + + CAST ( 51 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
51
51
51

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT col0 + + col0 + col1 AS col1 FROM tab0 AS cor0
----
111
195
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2730
SELECT 80 * - col0 FROM tab2 AS cor0 WHERE 74 NOT BETWEEN 89 AND CAST( NULL AS SIGNED )
----
-3680
-5120
-6000

skipif mysql # not compatible
query I rowsort label-2730
SELECT 80 * - col0 FROM tab2 AS cor0 WHERE 74 NOT BETWEEN 89 AND CAST ( NULL AS INTEGER )
----
-3680
-5120
-6000

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2731
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) NOT IN ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-2731
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 - + col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2733
SELECT ALL - + col2 + CAST( NULL AS SIGNED ) + - 59 * 98 * + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL - + col2 + CAST ( NULL AS INTEGER ) + - 59 * 98 * + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + col0 * - - 44 * - col1 + col0 FROM tab2 cor0
----
-12823725
-2374106
-8673216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 - col2 * - - col1 col0 FROM tab1 AS cor0
----
-1433
-3285
-384

query I rowsort
SELECT ALL 26 + - - col2 FROM tab1 AS cor0
----
122
85
94

query I rowsort
SELECT 40 - 66 * + col1 FROM tab1 cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2738
SELECT DISTINCT - col1 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT - col1 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL 43 + 35 FROM tab2
----
78
78
78

query I rowsort
SELECT 65 - - + 56 AS col2 FROM tab1
----
121
121
121

query I rowsort
SELECT DISTINCT + col2 * - 44 AS col0 FROM tab0
----
-2068
-4356
-440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2742
SELECT DISTINCT CAST( + ( + + 66 ) AS SIGNED ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT CAST ( + ( + + 66 ) AS INTEGER ) FROM tab0
----
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + col2 * + + col1 + - col2 ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT - + MIN( ALL - 41 ) FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-2744
SELECT - + MIN ( ALL - 41 ) FROM tab1 AS cor0
----
41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 40 IN ( - + 69 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT + + MIN( DISTINCT + - col2 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2746
SELECT + + MIN ( DISTINCT + - col2 ) FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * + 64 IS NULL OR NULL BETWEEN - col1 AND ( 50 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - ( + ( + col2 ) ) ) FROM tab0
----
10
47
99

query I rowsort
SELECT ALL + col2 * + + 73 * + 99 AS col1 FROM tab2
----
166221
289080
419166

query I rowsort
SELECT DISTINCT + + col0 - col1 FROM tab1 WHERE ( 76 ) >= 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT - + SUM( DISTINCT - col0 ) col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2752
SELECT - + SUM ( DISTINCT - col0 ) col2 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2753
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-2753
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT ALL + + COUNT( * ) * + - MIN( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT 34 / 70 IS NULL
----
273

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL + + COUNT ( * ) * + - MIN ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT 34 / 70 IS NULL
----
273

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - col0 * + col0 * + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2756
SELECT ALL ( + col2 ) AS col0 FROM tab1 cor0 WHERE NOT col2 + - col2 > col0 + - CAST( col0 AS SIGNED )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL ( + col2 ) AS col0 FROM tab1 cor0 WHERE NOT col2 + - col2 > col0 + - CAST ( col0 AS INTEGER )
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 col0 FROM tab0 AS cor0
----
-81
-81
-81

query II rowsort
SELECT - 89 AS col2, col2 FROM tab2 cor0
----
-89
23
-89
40
-89
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT ALL + COUNT( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT + 5 * - col1 * + - 92 * col0 / - col1 < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL + COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT + 5 * - col1 * + - 92 * col0 / - col1 < ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT - 46 * - COUNT( * ) AS col1 FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-2760
SELECT - 46 * - COUNT ( * ) AS col1 FROM tab0
----
138

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2761
SELECT ALL - MIN( - CAST( 10 AS DECIMAL ) ) * + + CAST( NULL AS DECIMAL ) * - - 65 * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL - MIN ( - CAST ( 10 AS REAL ) ) * + + CAST ( NULL AS REAL ) * - - 65 * - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL 61 * col1 FROM tab0
----
1281
4941
61

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2763
SELECT ALL * FROM tab0 WHERE NOT - + CAST( - + 75 AS DECIMAL ) + + - 88 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2763
SELECT ALL * FROM tab0 WHERE NOT - + CAST ( - + 75 AS REAL ) + + - 88 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, col1 AS col2 FROM tab0
----
15
81
87
21
97
1

query II rowsort
SELECT DISTINCT 49 AS col2, + 64 FROM tab0
----
49
64

query III rowsort
SELECT * FROM tab1 WHERE col2 + + ( + + 44 ) > ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + + col0 + + col1 * - + 32 NOT BETWEEN NULL AND ( + col1 * + col1 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( - 27 * + 81 * 43 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2768
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( - 27 * + 81 * 43 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2769
SELECT + col1 * - - col2 + - col1 + + col1 DIV col0 * + col2 AS col0 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - col2 IS NULL
----
189
3961
98

skipif mysql # not compatible
query I rowsort label-2769
SELECT + col1 * - - col2 + - col1 + + col1 / col0 * + col2 AS col0 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - col2 IS NULL
----
189
3961
98

query I rowsort
SELECT ALL - col1 + - col0 + - col2 AS col0 FROM tab2 AS cor0
----
-120
-181
-200

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 90 BETWEEN NULL AND + - col2
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT SUM( ALL + col0 ) - + MIN( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-2772
SELECT SUM ( ALL + col0 ) - + MIN ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 - + 99 AS col0, 19 * 60 + + ( + - 94 ) col1 FROM tab2 AS cor0
----
-122
1046
-139
1046
-157
1046

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 27 / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT + + SUM( + ( + col1 ) ) * + - COUNT( * ) - + COUNT( col2 ) + - COUNT( * ) - 36 AS col1 FROM tab0 cor0
----
-351

skipif mysql # not compatible
query I rowsort label-2775
SELECT + + SUM ( + ( + col1 ) ) * + - COUNT ( * ) - + COUNT ( col2 ) + - COUNT ( * ) - 36 AS col1 FROM tab0 cor0
----
-351

query I rowsort
SELECT + 44 + 72 * 53 AS col1 FROM tab1 cor0 WHERE ( NOT + col2 <= ( - 16 + + 90 ) )
----
3860

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT MAX( ALL - 41 ) + COUNT( * ) FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-2777
SELECT MAX ( ALL - 41 ) + COUNT ( * ) FROM tab1 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT ALL - 17 - - MAX( ALL + col0 ) * - COUNT( * ) FROM tab1 AS cor0
----
-290

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - 17 - - MAX ( ALL + col0 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT DISTINCT + COUNT( * ) - 82 AS col0 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT + COUNT ( * ) - 82 AS col0 FROM tab0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT - SUM( 97 ) FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-2780
SELECT - SUM ( 97 ) FROM tab1
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT ALL - MAX( + 12 ) AS col0 FROM tab2 WHERE + 38 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL - MAX ( + 12 ) AS col0 FROM tab2 WHERE + 38 IS NULL
----
NULL

query II rowsort
SELECT 8, - col1 * + + col1 AS col2 FROM tab2
----
8
-2601
8
-4489
8
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - col0 col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT + - COUNT( DISTINCT ( - + col1 ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2784
SELECT + - COUNT ( DISTINCT ( - + col1 ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col1 * + - ( 11 ) AS col1 FROM tab2 AS cor0
----
561
737
847

query I rowsort
SELECT ( col2 ) * 25 + + + col1 AS col1 FROM tab0 AS cor0
----
1256
2476
271

query I rowsort
SELECT ALL - ( - 11 ) * ( + + 98 ) FROM tab2
----
1078
1078
1078

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2788
SELECT - 31 DIV - 95 * + 6, MIN( ALL - + col0 ) AS col1 FROM tab2
----
0
-75

skipif mysql # not compatible
query II rowsort label-2788
SELECT - 31 / - 95 * + 6, MIN ( ALL - + col0 ) AS col1 FROM tab2
----
0
-75

query II rowsort
SELECT DISTINCT + col2 * - 90 * + 81 * - - col0 * + 11 AS col2, - col0 AS col1 FROM tab1
----
-392610240
-51
-402152850
-85
-496215720
-91

query II rowsort
SELECT + ( - - col1 ) * - 84 AS col0, - 29 FROM tab0
----
-1764
-29
-6804
-29
-84
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2791
SELECT - 76 * - - MIN( DISTINCT CAST( 48 AS SIGNED ) ) + + 92 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2791
SELECT - 76 * - - MIN ( DISTINCT CAST ( 48 AS INTEGER ) ) + + 92 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 79 * + 78 AS col1 FROM tab1
----
-6162
-6162
-6162

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT - COUNT( * ) * + + 23 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-2793
SELECT - COUNT ( * ) * + + 23 FROM tab1
----
-69

query I rowsort
SELECT + 95 * + col1 * + col0 FROM tab2
----
222870
468160
477375

onlyif mysql # DIV for integer division: 
query I rowsort label-2795
SELECT ALL + col2 DIV 3 AS col2 FROM tab1 AS cor0
----
19
22
32

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL + col2 / 3 AS col2 FROM tab1 AS cor0
----
19
22
32

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 95 + col1 FROM tab2 AS cor0
----
-18
-28
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT ALL - ( + COUNT( + col1 ) ) AS col2 FROM tab0 WHERE NOT + col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL - ( + COUNT ( + col1 ) ) AS col2 FROM tab0 WHERE NOT + col2 = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 3 col2 FROM tab1
----
17
50
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2800
SELECT COUNT( * ) + + COUNT( * ), 61 col1 FROM tab2
----
6
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2800
SELECT COUNT ( * ) + + COUNT ( * ), 61 col1 FROM tab2
----
6
61

query III rowsort
SELECT * FROM tab1 WHERE - col1 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2802
SELECT - COUNT( * ) / - SUM( DISTINCT + 9 ) * - COUNT( * ) FROM tab0 WHERE + col1 NOT IN ( CAST( NULL AS SIGNED ) * ( - - col1 ) * + 1 + + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2802
SELECT - COUNT ( * ) / - SUM ( DISTINCT + 9 ) * - COUNT ( * ) FROM tab0 WHERE + col1 NOT IN ( CAST ( NULL AS INTEGER ) * ( - - col1 ) * + 1 + + 95 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2803
SELECT ALL - + col1 / + CAST( NULL AS SIGNED ), + 13 FROM tab1 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query II rowsort label-2803
SELECT ALL - + col1 / + CAST ( NULL AS INTEGER ), + 13 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL 47 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT + col0 * + 84 AS col0 FROM tab2 AS cor0
----
3864
5376
6300

query I rowsort
SELECT DISTINCT + + ( - - col1 ) + 44 FROM tab2 cor0
----
111
121
95

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 IN ( + col0 * col2 - + 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT DISTINCT + + COUNT( - 62 ) + - 52 AS col2 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-2808
SELECT DISTINCT + + COUNT ( - 62 ) + - 52 AS col2 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT - 91 * 53 FROM tab2 AS cor0
----
-4823
-4823
-4823

query II rowsort
SELECT + - col1 AS col2, col1 AS col0 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT ( MIN( - - 49 ) ) col0 FROM tab2
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2812
SELECT ( MIN ( - - 49 ) ) col0 FROM tab2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2813
SELECT ALL col0 * + col1 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL col0 * + col1 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 AS col0, + col0 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2815
SELECT ALL * FROM tab1 cor0 WHERE NOT 58 NOT IN ( - col2, CAST( - col1 AS SIGNED ), + 2 * - ( - 46 ) - + col1 - + + col1 - CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2815
SELECT ALL * FROM tab1 cor0 WHERE NOT 58 NOT IN ( - col2, CAST ( - col1 AS INTEGER ), + 2 * - ( - 46 ) - + col1 - + + col1 - CAST ( col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL - SUM( + col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL - SUM ( + col2 ) AS col1 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL 68 - - + col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT DISTINCT - ( 9 ) + MIN( DISTINCT + - ( - + col1 ) ) AS col1 FROM tab1 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT - ( 9 ) + MIN ( DISTINCT + - ( - + col1 ) ) AS col1 FROM tab1 cor0
----
-4

query II rowsort
SELECT + 27, col0 FROM tab0 cor0
----
27
15
27
87
27
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2820
SELECT + col2 AS col1, CAST( + + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

skipif mysql # not compatible
query II rowsort label-2820
SELECT + col2 AS col1, CAST ( + + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2821
SELECT - 83, - col0 + col1 - - 55 * col0 * - CAST( - col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
-83
38841
-83
47784
-83
528069

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2821
SELECT - 83, - col0 + col1 - - 55 * col0 * - CAST ( - col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
-83
38841
-83
47784
-83
528069

query I rowsort
SELECT ALL - + 42 + + - 79 AS col0 FROM tab0 AS cor0
----
-121
-121
-121

query I rowsort
SELECT ALL - + 43 * 68 + + 59 AS col0 FROM tab2 AS cor0
----
-2865
-2865
-2865

onlyif mysql # aggregate syntax: 
query II rowsort label-2824
SELECT 75 * - MAX( DISTINCT + 69 ) AS col1, 7 AS col1 FROM tab0 AS cor0
----
-5175
7

skipif mysql # not compatible
query II rowsort label-2824
SELECT 75 * - MAX ( DISTINCT + 69 ) AS col1, 7 AS col1 FROM tab0 AS cor0
----
-5175
7

query II rowsort
SELECT ALL + 57 * - col2 + + 62, col0 AS col1 FROM tab2 AS cor0
----
-1249
46
-2218
64
-3244
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT ALL 38 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL 38 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
114

query III rowsort
SELECT * FROM tab2 WHERE + 75 * - + ( - 11 ) + + col2 = + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2829
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) >= col2 + col0
----

skipif mysql # not compatible
query III rowsort label-2829
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) >= col2 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2830
SELECT - col2 + CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
28
37
9

skipif mysql # not compatible
query I rowsort label-2830
SELECT - col2 + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT ALL COUNT( * ) * 95 AS col1 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL COUNT ( * ) * 95 AS col1 FROM tab2
----
285

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE 39 * 37 * 49 IS NULL
----

query I rowsort
SELECT ALL 14 + - 51 AS col1 FROM tab2 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT DISTINCT + 86 + - ( + + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT + 86 + - ( + + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT 81 + + MAX( DISTINCT - 27 ) + - - COUNT( * ) + + 42 col1 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2835
SELECT 81 + + MAX ( DISTINCT - 27 ) + - - COUNT ( * ) + + 42 col1 FROM tab2 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT DISTINCT - + 42 + - - COUNT( * ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT - + 42 + - - COUNT ( * ) FROM tab1 AS cor0
----
-39

query I rowsort
SELECT DISTINCT 18 - - col2 FROM tab2 AS cor0
----
41
58
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2838
SELECT ALL - - 73 DIV - 86 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - - 73 / - 86 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT SUM( + - 8 ) FROM tab2, tab1 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2839
SELECT SUM ( + - 8 ) FROM tab2, tab1 cor0
----
-72

query I rowsort
SELECT + + 44 + - col0 AS col0 FROM tab1 WHERE NOT col0 * + - 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT DISTINCT + MAX( DISTINCT - col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT + MAX ( DISTINCT - col0 ) FROM tab1 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT ALL - COUNT( * ) * + - 36 + 81 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL - COUNT ( * ) * + - 36 + 81 FROM tab0 AS cor0
----
189

query I rowsort
SELECT + + col2 * + - 91 * - + 56 * - + col2 FROM tab0 AS cor0
----
-11257064
-49945896
-509600

query I rowsort
SELECT DISTINCT + col0 * + + 37 FROM tab2 AS cor0
----
1702
2368
2775

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT DISTINCT - - COUNT( * ) * 22 AS col2 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT - - COUNT ( * ) * 22 AS col2 FROM tab2 AS cor0
----
66

query I rowsort
SELECT DISTINCT 38 - + col1 * col2 * + ( col1 ) * 13 + - col0 AS col0 FROM tab2 cor0 WHERE NOT col0 / - col2 IS NOT NULL
----

query I rowsort
SELECT - - ( + ( + - col2 ) ) * - col0 * + col2 FROM tab2 AS cor0
----
102400
24334
252300

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NOT - 76 / - - ( - 77 ) + - 68 IN ( - + col2, col1 )
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2849
SELECT DISTINCT + col1 DIV - CAST( - - col0 AS SIGNED ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT + col1 / - CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2850
SELECT DISTINCT - col2 AS col2, 56 DIV - col1 FROM tab0
----
-10
-2
-47
0
-99
-56

skipif mysql # not compatible
query II rowsort label-2850
SELECT DISTINCT - col2 AS col2, 56 / - col1 FROM tab0
----
-10
-2
-47
0
-99
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col1, + 74 + - - 19 col0 FROM tab1
----
14
93
47
93
5
93

query III rowsort
SELECT * FROM tab2 WHERE NULL < 75 * - col1 AND NOT 20 = NULL
----

query II rowsort
SELECT + 35 AS col2, col0 FROM tab2
----
35
46
35
64
35
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2854
SELECT - CAST( NULL AS DECIMAL ) * 48 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2854
SELECT - CAST ( NULL AS REAL ) * 48 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 0 + - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 6 col0, 87 AS col1 FROM tab2 AS cor0
----
6
87
6
87
6
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT ALL - - ( - COUNT( DISTINCT - col0 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL - - ( - COUNT ( DISTINCT - col0 ) ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 76 * - 33 AS col2 FROM tab0 cor0
----
-2508
-2508
-2508

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT ALL + + COUNT( ALL 11 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL + + COUNT ( ALL 11 ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 77, + col0 - - col0 * - col2 col1 FROM tab1 AS cor0
----
77
-4845
77
-4930
77
-6097

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT + COUNT( * ) FROM tab0 WHERE NOT - + ( - col1 ) / - - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2862
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - + ( - col1 ) / - - col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL + 39 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL + - 33 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL - 79 * - - COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - 79 * - - COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2866
SELECT DISTINCT + SUM( - col2 ) * + + CAST( + AVG ( CAST( NULL AS SIGNED ) ) AS SIGNED ) + 39 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT + SUM ( - col2 ) * + + CAST ( + AVG ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) + 39 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2867
SELECT col2 * - CAST( - 16 AS SIGNED ) AS col1 FROM tab0
----
1584
160
752

skipif mysql # not compatible
query I rowsort label-2867
SELECT col2 * - CAST ( - 16 AS INTEGER ) AS col1 FROM tab0
----
1584
160
752

onlyif mysql # DIV for integer division: 
query II rowsort label-2868
SELECT 9 DIV - col2 * + col1 AS col1, col1 FROM tab0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-2868
SELECT 9 / - col2 * + col1 AS col1, col1 FROM tab0
----
0
1
0
21
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT COUNT( * ) * MAX( DISTINCT 59 ) AS col2 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-2869
SELECT COUNT ( * ) * MAX ( DISTINCT 59 ) AS col2 FROM tab2
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, + col1 + + col0 FROM tab1
----
59
90
68
138
96
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT - col0 DIV + 64 - 39 + + 59 FROM tab0
----
19
19
20

skipif mysql # not compatible
query I rowsort label-2871
SELECT - col0 / + 64 - 39 + + 59 FROM tab0
----
19
19
20

query I rowsort
SELECT + col1 - + + 43 AS col1 FROM tab0 AS cor0
----
-22
-42
38

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE ( + + 86 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + - col2 AND + col2 * + ( + col1 ) + + col1
----

query I rowsort
SELECT + col0 * + 19 + - 19 AS col0 FROM tab0 cor0
----
1634
1824
266

onlyif mysql # DIV for integer division: 
query I rowsort label-2876
SELECT ALL 57 DIV - col1 - - + 39 + + 59 AS col2 FROM tab2
----
97
98
98

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL 57 / - col1 - - + 39 + + 59 AS col2 FROM tab2
----
97
98
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2877
SELECT - - 74 * COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2877
SELECT - - 74 * COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 * - 12 AS col2 FROM tab1 cor0
----
-1020
-1092
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT ALL - - 22 * + COUNT( ALL - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL - - 22 * + COUNT ( ALL - col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2880
SELECT DISTINCT + + col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT + + col0 / + col2 AS col0 FROM tab0 AS cor0
----
0
8

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 BETWEEN NULL AND - + 29
----

query I rowsort
SELECT - 31 * + col2 FROM tab2 AS cor0
----
-1240
-1798
-713

query I rowsort
SELECT ALL + ( - ( + - 69 ) ) FROM tab1 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT DISTINCT COUNT( * ) * + + 39 AS col0 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT COUNT ( * ) * + + 39 AS col0 FROM tab2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT DISTINCT + SUM( DISTINCT 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT + SUM ( DISTINCT 0 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT + - col2 * - + col2 AS col0 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2887
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 37, - 53 * - 41, + 69, + CAST( 45 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2887
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 37, - 53 * - 41, + 69, + CAST ( 45 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 72 * - col0 IS NOT NULL
----

query I rowsort
SELECT + 53 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL 75 * + 11 + - 6 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 249d20e6597c0b0ebe1dc36a4c362f10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2891
SELECT ALL - + col2 + - CAST( 9 AS SIGNED ) FROM tab0 AS cor0
----
-108
-19
-56

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL - + col2 + - CAST ( 9 AS INTEGER ) FROM tab0 AS cor0
----
-108
-19
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2892
SELECT ALL - MAX( ALL - + col1 ) DIV + + COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL - MAX ( ALL - + col1 ) / + + COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
14

query I rowsort
SELECT - 97 + - 10 FROM tab2 AS cor0
----
-107
-107
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT DISTINCT 28 + - MIN( ALL 76 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-48

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT 28 + - MIN ( ALL 76 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2895
SELECT DISTINCT + 37, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
37
-3

skipif mysql # not compatible
query II rowsort label-2895
SELECT DISTINCT + 37, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
37
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2896
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 - - CAST( NULL AS SIGNED ) + - - col0 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2896
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 - - CAST ( NULL AS INTEGER ) + - - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2897
SELECT CAST( NULL AS SIGNED ) / - col1 + - 90 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT CAST ( NULL AS INTEGER ) / - col1 + - 90 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 48 - + + col0 FROM tab0
----
-39
-49
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT COUNT( * ) + - - 47 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-2899
SELECT COUNT ( * ) + - - 47 FROM tab2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT DISTINCT 33 - + + MIN( col0 ) AS col1 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT 33 - + + MIN ( col0 ) AS col1 FROM tab2
----
-13

query I rowsort
SELECT ALL - 76 - 62 FROM tab2
----
-138
-138
-138

query I rowsort
SELECT col0 + - ( + 89 ) FROM tab2
----
-14
-25
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2903
SELECT DISTINCT - - 67 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) <> col1
----

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT - - 67 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) <> col1
----

query I rowsort
SELECT ALL col0 * - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT COUNT( * ) * + + SUM( - col2 ) FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-2905
SELECT COUNT ( * ) * + + SUM ( - col2 ) FROM tab0
----
-468

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + - + col1 - + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2907
SELECT ALL + - 50 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL + - 50 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2908
SELECT + 84 AS col1, MAX( + 27 ) FROM tab1
----
84
27

skipif mysql # not compatible
query II rowsort label-2908
SELECT + 84 AS col1, MAX ( + 27 ) FROM tab1
----
84
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT + - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2909
SELECT + - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL - 67 * col1 AS col2 FROM tab0 AS cor0
----
-1407
-5427
-67

query I rowsort
SELECT - + col2 * - 34 FROM tab2 AS cor0
----
1360
1972
782

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT - + COUNT( * ) * + - 4 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2912
SELECT - + COUNT ( * ) * + - 4 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2913
SELECT - 14 DIV - 29 * - - col2 * + 26 * ( - 19 ) + - + col0 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2913
SELECT - 14 / - 29 * - - col2 * + 26 * ( - 19 ) + - + col0 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT ALL - + col0 * col2 DIV - 87 AS col2 FROM tab1 AS cor0
----
56
57
71

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL - + col0 * col2 / - 87 AS col2 FROM tab1 AS cor0
----
56
57
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT ALL + + SUM( - + 97 ) AS col2 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL + + SUM ( - + 97 ) AS col2 FROM tab0 AS cor0
----
-291

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 83 * - - col1 AS col1 FROM tab2 cor0
----
4233
5561
6391

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2918
SELECT DISTINCT - - ( - - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT - - ( - - CAST ( NULL AS REAL ) ) AS col0 FROM tab2 cor0
----
NULL

query II rowsort
SELECT ALL + col1 * - 94, - col1 AS col0 FROM tab1
----
-1316
-14
-4418
-47
-470
-5

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab1 WHERE NULL BETWEEN + - col2 AND col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( - col1 ) + + 94 < + 25 - + + col2 * - col1
----

query I rowsort
SELECT ALL 40 * + - 54 AS col0 FROM tab2
----
-2160
-2160
-2160

query I rowsort
SELECT DISTINCT - col1 * + ( col1 ) AS col0 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT DISTINCT MIN( + - ( - col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT MIN ( + - ( - col1 ) ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT COUNT( * ) * + COUNT( * ) + 80 AS col0 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-2926
SELECT COUNT ( * ) * + COUNT ( * ) + 80 AS col0 FROM tab1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2927
SELECT DISTINCT + col0 FROM tab1 WHERE NULL IS NOT NULL AND + 3 IN ( - 79 * col1 + - CAST( - - col0 AS SIGNED ) * - - col2 - - col2 + col2 )
----

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT + col0 FROM tab1 WHERE NULL IS NOT NULL AND + 3 IN ( - 79 * col1 + - CAST ( - - col0 AS INTEGER ) * - - col2 - - col2 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2928
SELECT col0 + - col0 + col1 + + CAST( NULL AS SIGNED ) - col2 * - 5 * - col2 * - col1 + - + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2928
SELECT col0 + - col0 + col1 + + CAST ( NULL AS INTEGER ) - col2 * - 5 * - col2 * - col1 + - + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 94 + + col0 + col2 FROM tab1 AS cor0
----
50
53
65

query I rowsort
SELECT DISTINCT + col1 * - col1 + + col1 + - col1 - - col0 + col2 AS col2 FROM tab1 AS cor0
----
-2050
-49
119

query III rowsort
SELECT * FROM tab0 WHERE NULL < + col1 / - col0
----

query II rowsort
SELECT 3, + 28 AS col1 FROM tab1
----
3
28
3
28
3
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT - COUNT( ALL + - 66 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2933
SELECT - COUNT ( ALL + - 66 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT 40 - + col0 AS col2 FROM tab0
----
-47
-57
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT DISTINCT ( - COUNT( * ) ) - 65 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-2935
SELECT DISTINCT ( - COUNT ( * ) ) - 65 FROM tab2
----
-68

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + col1, - col2 * + 20, + 29, col2 + 9 * + col2, 17 + ( - col0 ), 47 * - 8 )
----

query I rowsort
SELECT + 23 - - col2 * + + col1 AS col0 FROM tab2
----
1196
3103
3909

query I rowsort
SELECT 37 - + col1 * + 73 + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2939
SELECT DISTINCT - + COUNT( * ), 65 AS col1 FROM tab1 cor0
----
-3
65

skipif mysql # not compatible
query II rowsort label-2939
SELECT DISTINCT - + COUNT ( * ), 65 AS col1 FROM tab1 cor0
----
-3
65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT col0 * + 26 AS col0 FROM tab2 AS cor0
----
1196
1664
1950

query I rowsort
SELECT - col2 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 2 * + col0 * + col2 IS NULL
----
1344
295
3196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + col0 + - - col1 * col0 IS NOT NULL
----

query I rowsort
SELECT - 87 * 98 FROM tab1 AS cor0
----
-8526
-8526
-8526

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT - COUNT( * ) * COUNT( * ) AS col2 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2946
SELECT - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-2947
SELECT + 72 * - + 11 AS col2, - COUNT( * ) + - + COUNT( * ) * - COUNT( * ) + COUNT( DISTINCT 40 ) FROM tab2 AS cor0
----
-792
7

skipif mysql # not compatible
query II rowsort label-2947
SELECT + 72 * - + 11 AS col2, - COUNT ( * ) + - + COUNT ( * ) * - COUNT ( * ) + COUNT ( DISTINCT 40 ) FROM tab2 AS cor0
----
-792
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2948
SELECT CAST( NULL AS SIGNED ), - COUNT( * ) AS col0 FROM tab1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-2948
SELECT CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col0 FROM tab1
----
NULL
-3

query I rowsort
SELECT ALL - 63 FROM tab1 WHERE NOT - - ( - col2 ) IS NULL
----
-63
-63
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-2950
SELECT - ( col2 ) DIV col2 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2950
SELECT - ( col2 ) / col2 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT MIN( 16 ) AS col1 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-2951
SELECT MIN ( 16 ) AS col1 FROM tab2
----
16

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * - - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 65, - AVG ( 63 ) * + 40 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
-65
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2954
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT + CAST ( NULL AS REAL ) * - col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL + 25 + + COUNT( * ) * - COUNT( * ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL + 25 + + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
16

query I rowsort
SELECT - + col2 - - 35 AS col2 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-12
-64
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col0 FROM tab1 WHERE + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2958
SELECT ALL - CAST( 23 AS SIGNED ) DIV + 31 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL - CAST ( 23 AS INTEGER ) / + 31 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 98 col1 FROM tab1 AS cor0
----
98
98
98

query II rowsort
SELECT 10 - - + col1 AS col0, 70 FROM tab1 AS cor0
----
15
70
24
70
57
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2961
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) - - ( + - 26 ) + + CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2961
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) - - ( + - 26 ) + + CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT + MIN( DISTINCT 38 ) * + + COUNT( * ) - - - MAX( - 26 ) + + + 96 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
239

skipif mysql # not compatible
query I rowsort label-2962
SELECT + MIN ( DISTINCT 38 ) * + + COUNT ( * ) - - - MAX ( - 26 ) + + + 96 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
239

query I rowsort
SELECT col2 - + 33 * - col0 FROM tab0 AS cor0
----
2881
3300
542

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT ALL + COUNT( ALL + ( + col1 ) ) + 73 + - + COUNT( * ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL + COUNT ( ALL + ( + col1 ) ) + 73 + - + COUNT ( * ) FROM tab2 AS cor0
----
73

query I rowsort
SELECT DISTINCT - - 88 + + ( + + col0 ) FROM tab2 cor0
----
134
152
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2966
SELECT DISTINCT 19 * - + CAST( - - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE - col2 BETWEEN ( NULL ) AND col2 AND NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT 19 * - + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE - col2 BETWEEN ( NULL ) AND col2 AND NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT + + 48 + + ( + - 8 ) + + COUNT( * ) FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-2967
SELECT + + 48 + + ( + - 8 ) + + COUNT ( * ) FROM tab1 AS cor0
----
43

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN ( + col2 - + - 50 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col2 - + 82 AS col2 FROM tab2
----
-24
-42
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-2970
SELECT - 67 + + col0 DIV + + col2 AS col1, col0 AS col1 FROM tab2
----
-65
46
-66
64
-66
75

skipif mysql # not compatible
query II rowsort label-2970
SELECT - 67 + + col0 / + + col2 AS col1, col0 AS col1 FROM tab2
----
-65
46
-66
64
-66
75

query I rowsort
SELECT DISTINCT 68 - + ( + 79 ) FROM tab1
----
-11

query I rowsort
SELECT - 41 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2973
SELECT ALL SUM( - 12 ) DIV - - 13 AS col1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL SUM ( - 12 ) / - - 13 AS col1 FROM tab0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2974
SELECT - + CAST( NULL AS SIGNED ) / + col2 / 10 * 12 AS col1 FROM tab2 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT - + CAST ( NULL AS INTEGER ) / + col2 / 10 * 12 AS col1 FROM tab2 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT DISTINCT COUNT( ALL 0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT COUNT ( ALL 0 ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT + - col2, + col0 FROM tab2 cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT - COUNT( ALL + + col2 ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2977
SELECT - COUNT ( ALL + + col2 ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query II rowsort
SELECT DISTINCT + col0, col0 * - + col1 FROM tab1
----
51
-714
85
-425
91
-4277

query I rowsort
SELECT - 68 AS col1 FROM tab0 WHERE NOT + ( 12 ) IS NULL
----
-68
-68
-68

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 + - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT ALL ( - COUNT( 24 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL ( - COUNT ( 24 ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + 13 * - - ( - col2 ) FROM tab1 AS cor0
----
-1248
-767
-884

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 97 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT DISTINCT - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL >= col1
----
0

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL >= col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT - MAX( DISTINCT - + col0 ) * - 80 AS col1 FROM tab1
----
-4080

skipif mysql # not compatible
query I rowsort label-2985
SELECT - MAX ( DISTINCT - + col0 ) * - 80 AS col1 FROM tab1
----
-4080

onlyif mysql # aggregate syntax: 
query II rowsort label-2986
SELECT + 65 * - COUNT( * ) AS col1, 25 FROM tab1
----
-195
25

skipif mysql # not compatible
query II rowsort label-2986
SELECT + 65 * - COUNT ( * ) AS col1, 25 FROM tab1
----
-195
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2987
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ), COUNT( * ) AS col0 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2987
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0 FROM tab0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2988
SELECT ALL 13 + + CAST( - col2 AS SIGNED ) - + - col0 AS col2 FROM tab1
----
-32
36
39

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL 13 + + CAST ( - col2 AS INTEGER ) - + - col0 AS col2 FROM tab1
----
-32
36
39

query I rowsort
SELECT col2 * - 69 AS col1 FROM tab2
----
-1587
-2760
-4002

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2990
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT - CAST ( NULL AS REAL ) + - col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 * + 39 + - col1 + - col2 AS col1 FROM tab1 cor0
----
1879
3251
3434

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2992
SELECT ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( + + 62 IS NOT NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT 43 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
43

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col0 ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= + col2 * + 82 + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2998
SELECT ALL 14 DIV + col0 - + + 4 * + 64 FROM tab2 cor0
----
-256
-256
-256

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL 14 / + col0 - + + 4 * + 64 FROM tab2 cor0
----
-256
-256
-256

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 18 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * 79 * - col0 - + col0 AS col1 FROM tab1 AS cor0
----
205428
570690
654108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3001
SELECT DISTINCT - CAST( - - 27 AS SIGNED ) * + - COUNT( * ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT - CAST ( - - 27 AS INTEGER ) * + - COUNT ( * ) AS col0 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3002
SELECT ALL + col0 DIV + CAST( col2 AS SIGNED ) FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL + col0 / + CAST ( col2 AS INTEGER ) FROM tab2
----
1
1
2

query I rowsort
SELECT - col2 + - col2 AS col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 32 * - col0 FROM tab0
----
-2784
-3104
-480

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 41 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT + SUM( - 64 ) AS col2 FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-3006
SELECT + SUM ( - 64 ) AS col2 FROM tab0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL - SUM( DISTINCT + + col0 ) AS col1 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL - SUM ( DISTINCT + + col0 ) AS col1 FROM tab0 cor0
----
-199

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 > - - 95 * col2 * + - 64 * + 3 + - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 90 + - 38 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + col1 + - - col0 col1 FROM tab2 AS cor0
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT DISTINCT MIN( DISTINCT + + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT MIN ( DISTINCT + + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 + + + 55 AS col2 FROM tab0 AS cor0
----
136
56
76

query II rowsort
SELECT DISTINCT - - col2, + col0 FROM tab0 AS cor0 WHERE NOT 82 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( ( - col2 ) ) FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + col0 col2 FROM tab0
----
-690
-783
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT ALL MAX( ALL + col0 ) col2 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3016
SELECT ALL MAX ( ALL + col0 ) col2 FROM tab1
----
91

query I rowsort
SELECT DISTINCT col1 + ( + 44 ) AS col0 FROM tab0
----
125
45
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT + + COUNT( * ) AS col1 FROM tab1 WHERE ( + col2 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3018
SELECT + + COUNT ( * ) AS col1 FROM tab1 WHERE ( + col2 IS NOT NULL )
----
3

query II rowsort
SELECT - col2 + col1 AS col0, col1 FROM tab2 cor0
----
28
51
37
77
9
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3020
SELECT ALL - - 87, CAST( NULL AS SIGNED ) / - col0 * - + col2 AS col1 FROM tab0 AS cor0
----
87
NULL
87
NULL
87
NULL

skipif mysql # not compatible
query II rowsort label-3020
SELECT ALL - - 87, CAST ( NULL AS INTEGER ) / - col0 * - + col2 AS col1 FROM tab0 AS cor0
----
87
NULL
87
NULL
87
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3021
SELECT DISTINCT AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 cor0 WHERE NOT ( - col2 ) NOT IN ( - 90 / - - ( - - ( + - 25 ) ), - col2 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT - + 32 - - - MAX( - 4 ) AS col0 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3023
SELECT - + 32 - - - MAX ( - 4 ) AS col0 FROM tab1 AS cor0
----
-28

query I rowsort
SELECT ALL + - 27 * 88 FROM tab2 AS cor0
----
-2376
-2376
-2376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3025
SELECT DISTINCT 43 * COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT 43 * COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( - 93, col1, + col1 )
----

query I rowsort
SELECT DISTINCT - col2 * + 43 + + + col2 + 21 FROM tab1 AS cor0
----
-2457
-2835
-4011

query I rowsort
SELECT - 65 - - col2 FROM tab0 WHERE NOT - col1 + - - col2 IS NULL
----
-18
-55
34

query II rowsort
SELECT ALL col1, col2 AS col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT 50 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3031
SELECT CAST( col0 AS SIGNED ) * + + 31, col0 FROM tab1
----
1581
51
2635
85
2821
91

skipif mysql # not compatible
query II rowsort label-3031
SELECT CAST ( col0 AS INTEGER ) * + + 31, col0 FROM tab1
----
1581
51
2635
85
2821
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3032
SELECT ALL 18 AS col0, COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1
----
18
NULL

skipif mysql # not compatible
query II rowsort label-3032
SELECT ALL 18 AS col0, COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
18
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 88 NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + col1 * - - 14 + + col0 + + + col0
----

query II rowsort
SELECT DISTINCT - 76, col1 * - col1 AS col0 FROM tab1 AS cor0
----
-76
-196
-76
-2209
-76
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3036
SELECT MIN( col2 ) AS col2, COUNT( * ) col0 FROM tab0
----
10
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3036
SELECT MIN ( col2 ) AS col2, COUNT ( * ) col0 FROM tab0
----
10
3

query I rowsort
SELECT - + col2 + + + col0 * - col1 FROM tab2 AS cor0
----
-2369
-4968
-5083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * + col2 col1 FROM tab1 AS cor0
----
1330
290
3149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3039
SELECT ALL COUNT( * ) + + COUNT( * ) DIV - COUNT( * ) col1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3039
SELECT ALL COUNT ( * ) + + COUNT ( * ) / - COUNT ( * ) col1 FROM tab1 AS cor0
----
2

query I rowsort
SELECT DISTINCT + ( - + col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT + COUNT( ALL - col2 ) + - 90 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3041
SELECT + COUNT ( ALL - col2 ) + - 90 FROM tab2 AS cor0
----
-87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT DISTINCT - + MIN( ALL - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT - + MIN ( ALL - col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT 92 * + col1 AS col0 FROM tab0
----
1932
7452
92

query II rowsort
SELECT col1 AS col2, + ( - col0 ) FROM tab2
----
51
-46
67
-75
77
-64

query I rowsort
SELECT ( - ( + + 37 ) ) FROM tab0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-3047
SELECT ALL - COUNT( * ), - COUNT( * ) * COUNT( + + col1 ) AS col1 FROM tab1
----
-3
-9

skipif mysql # not compatible
query II rowsort label-3047
SELECT ALL - COUNT ( * ), - COUNT ( * ) * COUNT ( + + col1 ) AS col1 FROM tab1
----
-3
-9

query I rowsort
SELECT ALL col1 * 70 AS col2 FROM tab1
----
3290
350
980

query I rowsort
SELECT DISTINCT + col2 + - - col0 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT 41 * MIN( ALL + 23 ) FROM tab1
----
943

skipif mysql # not compatible
query I rowsort label-3050
SELECT 41 * MIN ( ALL + 23 ) FROM tab1
----
943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT + + 11 - + col0 + - col1 FROM tab2 AS cor0 WHERE CAST( - 66 AS SIGNED ) * + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3051
SELECT + + 11 - + col0 + - col1 FROM tab2 AS cor0 WHERE CAST ( - 66 AS INTEGER ) * + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3052
SELECT ALL + ( + CAST( - COUNT( * ) AS SIGNED ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL - COUNT( * ) + + COUNT( * ) - - 83 FROM tab0 cor0
----
83

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL - COUNT ( * ) + + COUNT ( * ) - - 83 FROM tab0 cor0
----
83

query I rowsort
SELECT DISTINCT - col2 + - col2 * 93 AS col2 FROM tab1 AS cor0
----
-5546
-6392
-9024

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3055
SELECT DISTINCT - 98 * - - 88 - CAST( - - CAST( NULL AS DECIMAL ) AS DECIMAL ) + - col0 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT - 98 * - - 88 - CAST ( - - CAST ( NULL AS REAL ) AS REAL ) + - col0 AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - - ( - + col0 ) + col2 AS col0 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT DISTINCT + 60 * - COUNT( * ) AS col0 FROM tab1 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT + 60 * - COUNT ( * ) AS col0 FROM tab1 cor0
----
-180

query I rowsort
SELECT ALL 2 * + col0 AS col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT DISTINCT + - col1 * - + col1 * - - 5 FROM tab0 cor0
----
2205
32805
5

query I rowsort
SELECT - 75 AS col2 FROM tab0 AS cor0 WHERE NOT 5 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3061
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 > + CAST( 28 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3061
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 > + CAST ( 28 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT DISTINCT - - SUM( - - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT - - SUM ( - - col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT + + MIN( DISTINCT + + ( 34 ) ) AS col0 FROM tab0 cor0
----
34

skipif mysql # not compatible
query I rowsort label-3063
SELECT + + MIN ( DISTINCT + + ( 34 ) ) AS col0 FROM tab0 cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3064
SELECT + 15 * - col1 FROM tab0 WHERE NOT ( NOT ( NOT + 33 NOT BETWEEN - CAST( NULL AS SIGNED ) AND + 87 ) )
----

skipif mysql # not compatible
query I rowsort label-3064
SELECT + 15 * - col1 FROM tab0 WHERE NOT ( NOT ( NOT + 33 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND + 87 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT CAST( - ( - + 62 ) AS SIGNED ) FROM tab0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-3065
SELECT CAST ( - ( - + 62 ) AS INTEGER ) FROM tab0
----
62
62
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3066
SELECT ALL col1 * col2 DIV col2 AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL col1 * col2 / col2 AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL - 61 * + + col1 FROM tab1
----
-2867
-305
-854

query I rowsort
SELECT DISTINCT + - ( 21 ) * - col2 FROM tab0 WHERE NOT ( + col0 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 / col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT DISTINCT + 87 * + COUNT( * ) col2 FROM tab1
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3070
SELECT DISTINCT + 87 * + COUNT ( * ) col2 FROM tab1
----
261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3071
SELECT ALL + + COUNT( * ) DIV - 48 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL + + COUNT ( * ) / - 48 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - col2 * 52 + + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-2988
-3492
-4955

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT MAX( - - col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3073
SELECT MAX ( - - col0 ) AS col0 FROM tab2
----
75

query I rowsort
SELECT DISTINCT + col2 * - - col0 + - col2 FROM tab0
----
658
860
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT + ( - COUNT( * ) ) * - MIN( - col0 ) AS col0 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-3075
SELECT + ( - COUNT ( * ) ) * - MIN ( - col0 ) AS col0 FROM tab2 AS cor0
----
-225

query I rowsort
SELECT DISTINCT - ( + + col1 ) + - + ( + + col1 ) FROM tab1 AS cor0
----
-10
-28
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 0 ) col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - ( - 6 ) * - col0 AS col1 FROM tab0 AS cor0
----
-522
-582
-90

query I rowsort
SELECT ALL - 43 * + ( - 9 ) + + - ( - - ( - + col1 ) ) FROM tab0 AS cor0
----
388
408
468

query I rowsort
SELECT + 63 + - - col1 AS col0 FROM tab0 AS cor0
----
144
64
84

query I rowsort
SELECT - col0 + + + 41 FROM tab1 AS cor0
----
-10
-44
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 94 * - col2 col0 FROM tab0
----
19740
357858
9306

query I rowsort
SELECT ALL - 92 * - 65 AS col1 FROM tab2
----
5980
5980
5980

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3084
SELECT * 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-3084
SELECT * FROM tab1 AS cor0 WHERE col1 * CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - ( + 49 ) AS col1 FROM tab2 AS cor0
----
-49
-49
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3086
SELECT - CAST( - 80 AS SIGNED ) AS col1, COUNT( * ) * + + 74 col1 FROM tab2 WHERE NOT NULL <= - col1
----
80
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3086
SELECT - CAST ( - 80 AS INTEGER ) AS col1, COUNT ( * ) * + + 74 col1 FROM tab2 WHERE NOT NULL <= - col1
----
80
0

query II rowsort
SELECT DISTINCT + col1 / + + 27 + + 45 * 72 + + col1 AS col0, - col2 * - - col1 FROM tab1 WHERE NULL <= col1 * col1 * + - col2 + + 56
----

query II rowsort
SELECT col0, 19 AS col2 FROM tab0 AS cor0
----
15
19
87
19
97
19

query I rowsort
SELECT - - 62 AS col1 FROM tab0 cor0
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3090
SELECT - 9 * 13 + + col2 col2, + 85 + + + CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0
----
-59
160
-77
149
-94
131

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3090
SELECT - 9 * 13 + + col2 col2, + 85 + + + CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0
----
-59
160
-77
149
-94
131

query I rowsort
SELECT - col0 * + 49 FROM tab0 AS cor0
----
-4263
-4753
-735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3092
SELECT - - col1 / + col1 * col2 * + col0 * 22 / - col2 * 34 col2 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL ) OR NOT NULL <= + ( - + col1 ) * + - col1 / + CAST( NULL AS SIGNED ) + - + ( + col1 ) * - - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3092
SELECT - - col1 / + col1 * col2 * + col0 * 22 / - col2 * 34 col2 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL ) OR NOT NULL <= + ( - + col1 ) * + - col1 / + CAST ( NULL AS INTEGER ) + - + ( + col1 ) * - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, col0 AS col0 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ALL 21 * + - 22 FROM tab0
----
-462
-462
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT SUM( DISTINCT ( - + 42 ) ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-3095
SELECT SUM ( DISTINCT ( - + 42 ) ) FROM tab0
----
-42

query II rowsort
SELECT - col1 AS col0, 95 AS col1 FROM tab0 WHERE NOT + col1 BETWEEN + col2 AND - - 77
----
-1
95
-81
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL + COUNT( * ) * + - 62 AS col1 FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + COUNT ( * ) * + - 62 AS col1 FROM tab0
----
-186

query I rowsort
SELECT + ( + 32 ) * - col0 AS col1 FROM tab0
----
-2784
-3104
-480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, - col0 AS col2 FROM tab2
----
-23
-46
-40
-64
-58
-75

query II rowsort
SELECT DISTINCT col2, - col2 AS col0 FROM tab2
----
23
-23
40
-40
58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col2 * + col0 + 47 FROM tab0 AS cor0
----
10
917
47
752
99
9650

onlyif mysql # aggregate syntax: 
query II rowsort label-3102
SELECT ALL COUNT( * ), 19 AS col1 FROM tab1 AS cor0
----
3
19

skipif mysql # not compatible
query II rowsort label-3102
SELECT ALL COUNT ( * ), 19 AS col1 FROM tab1 AS cor0
----
3
19

query I rowsort
SELECT DISTINCT + 96 * - col0 AS col1 FROM tab1 AS cor0
----
-4896
-8160
-8736

query I rowsort
SELECT - - 5 / col0 - - + 78 FROM tab0 WHERE 69 IS NULL
----

query I rowsort
SELECT ( - 62 ) * col0 + - col1 AS col1 FROM tab1 AS cor0
----
-3176
-5275
-5689

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3106
SELECT ALL - + col2 * - CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL - + col2 * - CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND - col2
----

query I rowsort
SELECT DISTINCT col0 + - 31 - col0 AS col2 FROM tab0 AS cor0
----
-31

query I rowsort
SELECT + 71 + col0 * - 79 AS col1 FROM tab0 cor0
----
-1114
-6802
-7592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3110
SELECT ALL + col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT + - COUNT( - - 14 ) * - 31 * - COUNT( * ) FROM tab0 cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3111
SELECT + - COUNT ( - - 14 ) * - 31 * - COUNT ( * ) FROM tab0 cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT + col1 * col1 + - - 15 + - - col1 - + - col1 * - col1 AS col1 FROM tab0 AS cor0
----
16
36
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = - 22
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE - col0 / 3 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 76 + + ( + ( + - 57 ) ) AS col1 FROM tab2 AS cor0
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 col0 FROM tab0 AS cor0 WHERE NOT + col2 <= 12 / - col0 + - 6 - + 29 / + - col1 + - col0 * + col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT DISTINCT + + COUNT( * ) + + 4 AS col2 FROM tab1 cor0
----
7

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT + + COUNT ( * ) + + 4 AS col2 FROM tab1 cor0
----
7

query I rowsort
SELECT + col1 * 1 * - col1 * col2 FROM tab0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT DISTINCT 40 - - 16 * - ( - - COUNT( * ) ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT 40 - - 16 * - ( - - COUNT ( * ) ) FROM tab2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT DISTINCT SUM( + + col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT SUM ( + + col0 ) AS col0 FROM tab1
----
227

query I rowsort
SELECT ALL 58 * + - col2 AS col0 FROM tab1
----
-3422
-3944
-5568

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3122
SELECT - CAST( NULL AS DECIMAL ) - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT - CAST ( NULL AS REAL ) - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3123
SELECT col2 - - CAST( - + col2 AS SIGNED ) - col2 * + 97 FROM tab1
----
-5723
-6596
-9312

skipif mysql # not compatible
query I rowsort label-3123
SELECT col2 - - CAST ( - + col2 AS INTEGER ) - col2 * + 97 FROM tab1
----
-5723
-6596
-9312

query II rowsort
SELECT DISTINCT 47 * + - col2 * - col1 - 96 AS col2, + 75 AS col0 FROM tab0
----
178833
75
4557
75
9774
75

query I rowsort
SELECT ALL col0 + + 9 * + col1 AS col1 FROM tab1 cor0
----
130
177
514

query II rowsort
SELECT DISTINCT - 49 AS col2, + col1 AS col2 FROM tab1 cor0
----
-49
14
-49
47
-49
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT 10 - COUNT( * ) FROM tab1 WHERE 19 - col0 IN ( col0 / - col2 + - 25 )
----
10

skipif mysql # not compatible
query I rowsort label-3127
SELECT 10 - COUNT ( * ) FROM tab1 WHERE 19 - col0 IN ( col0 / - col2 + - 25 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3128
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT CAST( col2 AS DECIMAL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3128
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT CAST ( col2 AS REAL ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 * col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT ALL MIN( DISTINCT col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL MIN ( DISTINCT col2 ) AS col0 FROM tab0
----
10

query III rowsort
SELECT * FROM tab1 WHERE + col0 <> - 62 * col2 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 <> 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT MAX( DISTINCT + 71 ) AS col2 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-3133
SELECT MAX ( DISTINCT + 71 ) AS col2 FROM tab0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT DISTINCT + SUM( 32 ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT + SUM ( 32 ) FROM tab2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3135
SELECT ALL * FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) NOT IN ( col2 / + col1 + 17 * col0 )
----

skipif mysql # not compatible
query III rowsort label-3135
SELECT ALL * FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) NOT IN ( col2 / + col1 + 17 * col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE 66 NOT BETWEEN ( NULL ) AND col1 * 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3137
SELECT + CAST( + ( col1 ) AS SIGNED ) AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3137
SELECT + CAST ( + ( col1 ) AS INTEGER ) AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT col0 + + 23 FROM tab0
----
110
120
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3139
SELECT DISTINCT col1 / + col2 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT col1 / + col2 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3140
SELECT + 39 * + 44 + + 61 * SUM( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT + 39 * + 44 + + 61 * SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT COUNT( * ) + 46 * + COUNT( * ) AS col2 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-3141
SELECT COUNT ( * ) + 46 * + COUNT ( * ) AS col2 FROM tab1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT MIN( col2 ) AS col0 FROM tab1 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3143
SELECT MIN ( col2 ) AS col0 FROM tab1 WHERE NULL > NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 37 NOT BETWEEN + ( - col1 ) + - col1 AND col1
----
15
81
47
87
21
10

query I rowsort
SELECT - col2 + 42 AS col2 FROM tab0
----
-5
-57
32

query I rowsort
SELECT + col2 - + col2 * + col0 AS col1 FROM tab2
----
-1035
-2520
-4292

query I rowsort
SELECT - 16 + - 4 FROM tab0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT SUM( ALL - 54 ) FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-3148
SELECT SUM ( ALL - 54 ) FROM tab1
----
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-3149
SELECT col2 DIV col1 - + 84 FROM tab2
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-3149
SELECT col2 / col1 - + 84 FROM tab2
----
-84
-84
-84

query I rowsort
SELECT - ( 71 ) * - ( 46 * - 65 ) FROM tab1
----
-212290
-212290
-212290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3151
SELECT + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 + CAST( NULL AS SIGNED ) AND ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-3151
SELECT + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 + CAST ( NULL AS INTEGER ) AND ( + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 - col1 <> + 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <> 68 + - 76
----

query I rowsort
SELECT DISTINCT ( 59 ) * 32 AS col1 FROM tab2
----
1888

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * - col2 < + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 32 * + col1 ) > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 13 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 - col1 * - col0 IN ( + 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + col1 ) * - col2 + + 75 FROM tab2 AS cor0
----
-1098
-3005
-3811

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3160
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3160
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col0 * - 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT + - MAX( col0 ) + COUNT( * ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-3162
SELECT + - MAX ( col0 ) + COUNT ( * ) FROM tab1 AS cor0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-3163
SELECT + 23 DIV col0 + 70 AS col2 FROM tab1 cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-3163
SELECT + 23 / col0 + 70 AS col2 FROM tab1 cor0
----
70
70
70

query I rowsort
SELECT 12 + 66 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT ALL 25 + col2 AS col0 FROM tab2 AS cor0
----
48
65
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3166
SELECT + + CAST( COUNT( * ) AS SIGNED ) + 93 AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3166
SELECT + + CAST ( COUNT ( * ) AS INTEGER ) + 93 AS col2 FROM tab1 AS cor0
----
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 IN ( 42 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3168
SELECT ALL + CAST( col2 AS SIGNED ) * + col0 + ( - 30 ) AS col1 FROM tab2 AS cor0
----
1028
2530
4320

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL + CAST ( col2 AS INTEGER ) * + col0 + ( - 30 ) AS col1 FROM tab2 AS cor0
----
1028
2530
4320

query I rowsort
SELECT ALL - - 38 FROM tab0 cor0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3170
SELECT - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3170
SELECT - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT ALL + CAST( - - col2 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL + CAST ( - - col2 AS INTEGER ) FROM tab2
----
23
40
58

query I rowsort
SELECT ALL ( + 18 ) * col2 FROM tab1
----
1062
1224
1728

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN 15 AND + 44 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT + SUM( ALL + 41 ) AS col1 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-3174
SELECT + SUM ( ALL + 41 ) AS col1 FROM tab1 AS cor0
----
123

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3175
SELECT + col2 DIV + - CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3175
SELECT + col2 / + - CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3176
SELECT DISTINCT - col0 DIV - - col1 AS col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT - col0 / - - col1 AS col1 FROM tab0 AS cor0
----
-4
-97
0

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT + col1 + 35 IN ( 85 )
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3178
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST( 23 AS SIGNED ) ) BETWEEN 37 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3178
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST ( 23 AS INTEGER ) ) BETWEEN 37 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN ( NULL ) AND - ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 55 <> + col1 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT MIN( - + 64 ) AS col1 FROM tab0, tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-3181
SELECT MIN ( - + 64 ) AS col1 FROM tab0, tab2 AS cor0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3182
SELECT - col2, - col0 * + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-3182
SELECT - col2, - col0 * + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3183
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN ( 56 * CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-3183
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN ( 56 * CAST ( NULL AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT DISTINCT col1 * - + 4 AS col2 FROM tab1
----
-188
-20
-56

query I rowsort
SELECT 7 * + col0 AS col1 FROM tab1
----
357
595
637

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT ALL MAX( + col1 ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
81

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL MAX ( + col1 ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
81

query I rowsort
SELECT + ( + - 55 ) AS col2 FROM tab0 AS cor0
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 46 AS col0, + ( + 43 ) + - col2 col1 FROM tab1 cor0
----
-46
-16
-46
-25
-46
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, + col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3190
SELECT - col2 AS col2, - 66 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-3190
SELECT - col2 AS col2, - 66 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3191
SELECT - col1 DIV CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3191
SELECT - col1 / CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3192
SELECT ALL 29 DIV - - CAST( SUM( DISTINCT col0 ) AS SIGNED ) * MIN( DISTINCT - 53 DIV + col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL 29 / - - CAST ( SUM ( DISTINCT col0 ) AS INTEGER ) * MIN ( DISTINCT - 53 / + col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT DISTINCT 64 * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
192

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT 64 * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
192

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - + ( - col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT + col2 DIV - col0 * - 64 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3196
SELECT + col2 / - col0 * - 64 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + 77 + - col1 < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 85 * - ( - 0 ) * 78 + col0 + 71 FROM tab0
----
158
168
86

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE + col1 IS NOT NULL
----
46
64
75

query I rowsort
SELECT - 19 FROM tab0 AS cor0 WHERE NULL > ( - 75 * + ( - col1 ) + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - 50 + - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( col0 ) + - - ( + - 75 ) FROM tab0 AS cor0
----
-162
-172
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3203
SELECT ALL + col1 + + ( + ( - CAST( col0 AS SIGNED ) ) ) col1 FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3203
SELECT ALL + col1 + + ( + ( - CAST ( col0 AS INTEGER ) ) ) col1 FROM tab0 AS cor0
----
-66
-96
66

query II rowsort
SELECT DISTINCT col0 + col1 AS col0, - col2 FROM tab2 AS cor0
----
141
-40
142
-58
97
-23

query III rowsort
SELECT * FROM tab1 WHERE - ( col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 95 + + - 15 FROM tab1
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT DISTINCT COUNT( * ) + 88 AS col2 FROM tab0 WHERE NOT + 0 NOT BETWEEN + + 67 AND - col0
----
88

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT COUNT ( * ) + 88 AS col2 FROM tab0 WHERE NOT + 0 NOT BETWEEN + + 67 AND - col0
----
88

query I rowsort
SELECT + 15 + col2 AS col0 FROM tab2
----
38
55
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3209
SELECT * FROM tab2 cor0 WHERE - ( + + CAST( col2 AS SIGNED ) ) >= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3209
SELECT * FROM tab2 cor0 WHERE - ( + + CAST ( col2 AS INTEGER ) ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - + 32 * - col2 FROM tab2 AS cor0 WHERE NOT NULL = col2 + - - ( + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3212
SELECT DISTINCT - + 16 DIV - + col0 + + - col1 + + col1 AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT - + 16 / - + col0 + + - col1 + + col1 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL 0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT - - SUM( + + ( + 49 ) ) FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-3214
SELECT - - SUM ( + + ( + 49 ) ) FROM tab2 AS cor0
----
147

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 / col2 NOT BETWEEN col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT DISTINCT + CAST( - col2 AS SIGNED ) * + + col2 - col0 + + + col0 FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * + + col2 - col0 + + + col0 FROM tab1
----
-3481
-4624
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 * 79 - + col0 + + 24 * - col1 * - col0 col2 FROM tab1
----
108640
16198
23168

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT - 19 - + 5 - 82 * + SUM( + col2 ) FROM tab0
----
-12816

skipif mysql # not compatible
query I rowsort label-3218
SELECT - 19 - + 5 - 82 * + SUM ( + col2 ) FROM tab0
----
-12816

query I rowsort
SELECT ALL - col0 * - + ( + + 54 ) AS col0 FROM tab0
----
4698
5238
810

query I rowsort
SELECT + 86 * - col2 FROM tab0
----
-4042
-8514
-860

onlyif mysql # DIV for integer division: 
query II rowsort label-3221
SELECT col2 AS col1, - 53 DIV + 71 + + + col0 + col1 col1 FROM tab2
----
23
97
40
141
58
142

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3221
SELECT col2 AS col1, - 53 / + 71 + + + col0 + col1 col1 FROM tab2
----
23
97
40
141
58
142

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 16 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * - ( + - col0 ) BETWEEN NULL AND ( + ( col2 ) / + 88 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 54, + col0 FROM tab0 cor0
----
-54
15
-54
87
-54
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3225
SELECT - col1 * 30 + + 82 AS col1 FROM tab2 AS cor0 WHERE NOT + 5 + + CAST( - col0 AS DECIMAL ) * - - col0 * + + col1 / 31 - col1 IS NULL
----
-1448
-1928
-2228

skipif mysql # not compatible
query I rowsort label-3225
SELECT - col1 * 30 + + 82 AS col1 FROM tab2 AS cor0 WHERE NOT + 5 + + CAST ( - col0 AS REAL ) * - - col0 * + + col1 / 31 - col1 IS NULL
----
-1448
-1928
-2228

query I rowsort
SELECT DISTINCT - col2 * - col2 * - col0 + + + col0 + col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 92 BETWEEN ( - col2 ) AND ( - col2 ) AND ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3228
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NULL >= + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3228
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NULL >= + - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 * + ( + col2 ) * + col0 col1 FROM tab0 cor0
----
22560
27840
307296

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3231
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( - - col1 - + + col1 )
----

skipif mysql # not compatible
query III rowsort label-3231
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( - - col1 - + + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN 28 + col0 - + 13 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT + MIN( DISTINCT col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-3233
SELECT + MIN ( DISTINCT col0 ) FROM tab2 cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3234
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( - ( + CAST( NULL AS SIGNED ) ) ) = col0 )
----

skipif mysql # not compatible
query III rowsort label-3234
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( - ( + CAST ( NULL AS INTEGER ) ) ) = col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT COUNT( * ) * + 90 AS col2 FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-3235
SELECT COUNT ( * ) * + 90 AS col2 FROM tab2
----
270

query I rowsort
SELECT 4 * + - 61 AS col1 FROM tab2
----
-244
-244
-244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 70 col2 FROM tab1
----
117
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT MAX( 68 ) + COUNT( * ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-3238
SELECT MAX ( 68 ) + COUNT ( * ) FROM tab2
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 - + 19 col2 FROM tab0
----
11
155
175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - ( col2 ) col1 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 NOT IN ( + col0 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= + 45
----

query I rowsort
SELECT ALL - + col0 * - + col1 - + col2 AS col0 FROM tab0 AS cor0
----
-2
1168
1817

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT - COUNT( * ) * + 82 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-3245
SELECT - COUNT ( * ) * + 82 FROM tab1 AS cor0
----
-246

query I rowsort
SELECT DISTINCT col0 * - col2 - + 13 FROM tab2
----
-1071
-2573
-4363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3247
SELECT DISTINCT ( + CAST( + 91 AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
91

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT ( + CAST ( + 91 AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT DISTINCT SUM( DISTINCT ( + 78 ) ) col2 FROM tab2
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3248
SELECT DISTINCT SUM ( DISTINCT ( + 78 ) ) col2 FROM tab2
----
78

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 * col2 NOT BETWEEN ( + - col0 * 48 * - col2 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL = NULL )
----

query I rowsort
SELECT - col1 - - + 37 * - col2 FROM tab1 AS cor0
----
-2188
-2563
-3566

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3252
SELECT + col1 AS col1, + ( + 69 ) AS col2 FROM tab1 cor0 WHERE NULL BETWEEN + CAST( NULL AS DECIMAL ) AND + col1
----

skipif mysql # not compatible
query II rowsort label-3252
SELECT + col1 AS col1, + ( + 69 ) AS col2 FROM tab1 cor0 WHERE NULL BETWEEN + CAST ( NULL AS REAL ) AND + col1
----

query I rowsort
SELECT - col1 + - 29 AS col1 FROM tab0 AS cor0
----
-110
-30
-50

query I rowsort
SELECT DISTINCT + - col0 + - col1 - + col0 AS col2 FROM tab0 AS cor0
----
-111
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3255
SELECT ALL + CAST( AVG ( DISTINCT col2 ) AS SIGNED ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL + CAST ( AVG ( DISTINCT col2 ) AS INTEGER ) FROM tab0 AS cor0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3256
SELECT ALL - col2 * + col2 + + col1 * 53 DIV + col1 - col2 FROM tab2 AS cor0
----
-1587
-3369
-499

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL - col2 * + col2 + + col1 * 53 / + col1 - col2 FROM tab2 AS cor0
----
-1587
-3369
-499

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT ALL + - COUNT( * ) + - MAX( - col1 ) AS col0 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL + - COUNT ( * ) + - MAX ( - col1 ) AS col0 FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT MAX( + col1 ) + + + 95 FROM tab1 AS cor0
----
142

skipif mysql # not compatible
query I rowsort label-3258
SELECT MAX ( + col1 ) + + + 95 FROM tab1 AS cor0
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3259
SELECT col1 * - col0 + 5 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3259
SELECT col1 * - col0 + 5 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - col0 + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3261
SELECT DISTINCT + col2 + + ( col0 ) * CAST( NULL AS DECIMAL ) AS col2, + 39 AS col0 FROM tab1 cor0
----
NULL
39

skipif mysql # not compatible
query II rowsort label-3261
SELECT DISTINCT + col2 + + ( col0 ) * CAST ( NULL AS REAL ) AS col2, + 39 AS col0 FROM tab1 cor0
----
NULL
39

query II rowsort
SELECT col0 AS col1, + col0 + col0 FROM tab2
----
46
92
64
128
75
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT + + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN + - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3263
SELECT + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN + - col1 AND NULL
----
0

query II rowsort
SELECT DISTINCT + 46 AS col2, 31 FROM tab2 AS cor0
----
46
31

query I rowsort
SELECT ALL - - ( - - 1 ) AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT + - COUNT( * ) * 40 + + 88 AS col0 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-3266
SELECT + - COUNT ( * ) * 40 + + 88 AS col0 FROM tab2 AS cor0
----
-32

query II rowsort
SELECT + + col0 * - 11 * col2 - - - col0 + - 90 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
-53997
96
-55340
59
-68249
68

onlyif mysql # DIV for integer division: 
query II rowsort label-3268
SELECT ALL col1, col2 DIV col2 AS col1 FROM tab0
----
1
1
21
1
81
1

skipif mysql # not compatible
query II rowsort label-3268
SELECT ALL col1, col2 / col2 AS col1 FROM tab0
----
1
1
21
1
81
1

query I rowsort
SELECT DISTINCT 35 * - col0 FROM tab0
----
-3045
-3395
-525

query II rowsort
SELECT - - 80 + - 28 AS col0, - 61 - - col1 AS col1 FROM tab2 AS cor0
----
52
-10
52
16
52
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3271
SELECT - COUNT( * ) + COUNT( * ) * + - 36 DIV + + COUNT( * ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3271
SELECT - COUNT ( * ) + COUNT ( * ) * + - 36 / + + COUNT ( * ) FROM tab0 AS cor0
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3272
SELECT ALL CAST( NULL AS DECIMAL ) + 49, col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3272
SELECT ALL CAST ( NULL AS REAL ) + 49, col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < - 24
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3274
SELECT + 79 + col1 DIV + 33 col2 FROM tab1 AS cor0
----
79
79
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3274
SELECT + 79 + col1 / + 33 col2 FROM tab1 AS cor0
----
79
79
80

query I rowsort
SELECT - 84 + + 78 * - 2 FROM tab0 AS cor0
----
-240
-240
-240

query I rowsort
SELECT ALL 33 FROM tab0 AS cor0 WHERE NOT NULL <= col1
----

query III rowsort
SELECT * FROM tab2 WHERE NULL >= 2 + + 45
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3278
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 * - col2 * 63 + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 * - col2 * 63 + col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT ( + MIN( - - 31 ) ) col1 FROM tab2
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3279
SELECT ( + MIN ( - - 31 ) ) col1 FROM tab2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3280
SELECT ALL + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 54 + - col2 * - col0 FROM tab1
----
4950
5069
6242

query I rowsort
SELECT ALL - AVG ( - col0 ) FROM tab2 WHERE NOT + - ( - col0 ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 87 + + col2 col1, - col0 + 4 FROM tab0 AS cor0
----
-40
-11
-77
-83
12
-93

query II rowsort
SELECT DISTINCT + col2 + + - col2 AS col1, - col0 + - + 36 + + - 29 + + col2 AS col2 FROM tab2 AS cor0
----
0
-82
0
-88
0
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 - 10 * col1 col1 FROM tab1 AS cor0
----
-143
-473
-53

query I rowsort
SELECT + 73 + - col2 AS col2 FROM tab0
----
-26
26
63

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 47 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3288
SELECT - + CAST( + 0 AS DECIMAL ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3288
SELECT - + CAST ( + 0 AS REAL ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 91 + + 17 FROM tab2 AS cor0
----
108

query I rowsort
SELECT ALL - - col2 / + col2 FROM tab1 cor0 WHERE NULL <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, 53 col2 FROM tab2 AS cor0
----
46
53
64
53
75
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL + COUNT( + - 24 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL + COUNT ( + - 24 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3293
SELECT + - 58 AS col1, + SUM( ALL + 86 ) FROM tab1 AS cor0
----
-58
258

skipif mysql # not compatible
query II rowsort label-3293
SELECT + - 58 AS col1, + SUM ( ALL + 86 ) FROM tab1 AS cor0
----
-58
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT DISTINCT - ( + + CAST( - + 2 AS SIGNED ) ) * - col2 FROM tab1
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT - ( + + CAST ( - + 2 AS INTEGER ) ) * - col2 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT ALL - + col1 * col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + ( - 86 ) AS col2 FROM tab0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3297
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS SIGNED ) * + + col1 + - ( - + 98 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3297
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) * + + col1 + - ( - + 98 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND + + col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE + col0 - - 19 * - + ( - col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE + col0 - - 19 * - + ( - col1 ) IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - - col1 ) AS col1, - 28 col0 FROM tab2
----
-51
-28
-67
-28
-77
-28

query I rowsort
SELECT ALL - ( 3 ) * col0 AS col1 FROM tab1
----
-153
-255
-273

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 59 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT - COUNT( * ) * + 92 AS col1 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-3303
SELECT - COUNT ( * ) * + 92 AS col1 FROM tab1
----
-276

query I rowsort
SELECT ALL + 50 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT - col0 * + - col2 + - - col0 AS col1 FROM tab1
----
4947
5100
6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab2 AS cor0 WHERE col0 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3307
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + CAST( + col2 AS SIGNED ) AS col1, - 39 FROM tab0 AS cor0
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-3307
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + CAST ( + col2 AS INTEGER ) AS col1, - 39 FROM tab0 AS cor0
----
NULL
-39

query I rowsort
SELECT ALL ( col2 ) * + col1 + + col2 FROM tab2 AS cor0
----
1196
3120
3944

query I rowsort
SELECT + 11 + - - 38 FROM tab1
----
49
49
49

query III rowsort
SELECT * FROM tab2 WHERE + 37 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + 9 + + 32 AS col1 FROM tab1
----
-427
-733
-787

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3312
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * + 92 BETWEEN NULL AND + + col0 AND NOT NULL IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3312
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * + 92 BETWEEN NULL AND + + col0 AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 30 * + - col2 * - col2 FROM tab2
----
100920
15870
48000

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT - SUM( DISTINCT - 27 ) AS col0 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3314
SELECT - SUM ( DISTINCT - 27 ) AS col0 FROM tab0 AS cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3315
SELECT DISTINCT - col2 + + col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
-2
-47
-6

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT - col2 + + col0 / + col1 AS col0 FROM tab0 AS cor0
----
-2
-47
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3316
SELECT col2 * - + CAST( NULL AS DECIMAL ) AS col2, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-3316
SELECT col2 * - + CAST ( NULL AS REAL ) AS col2, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3317
SELECT + + col0 + 13 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 * CAST( + + col1 AS SIGNED ) + - 3
----

skipif mysql # not compatible
query I rowsort label-3317
SELECT + + col0 + 13 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 * CAST ( + + col1 AS INTEGER ) + - 3
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - - col2 <> - 73
----

query II rowsort
SELECT ALL + col1 * + 82, col1 FROM tab0 AS cor0
----
1722
21
6642
81
82
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 IN ( - - 37 * + col1, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3321
SELECT DISTINCT + + col1 DIV + + 52 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT + + col1 / + + 52 FROM tab0 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ALL - COUNT( * ) * 75 + + 31 FROM tab2 WHERE ( NOT 66 IS NOT NULL )
----
31

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL - COUNT ( * ) * 75 + + 31 FROM tab2 WHERE ( NOT 66 IS NOT NULL )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3323
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + - CAST( col1 AS SIGNED ) / - col0 - - + 91 AND + col2
----

skipif mysql # not compatible
query III rowsort label-3323
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + - CAST ( col1 AS INTEGER ) / - col0 - - + 91 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT + - ( + COUNT( * ) ) + - + 1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-4

skipif mysql # not compatible
query I rowsort label-3324
SELECT + - ( + COUNT ( * ) ) + - + 1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 45 AND - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3326
SELECT + CAST( NULL AS DECIMAL ) * - + col0 * 35 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3326
SELECT + CAST ( NULL AS REAL ) * - + col0 * 35 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT 89 + - COUNT( * ) AS col2 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-3327
SELECT 89 + - COUNT ( * ) AS col2 FROM tab1
----
86

query I rowsort
SELECT DISTINCT + col0 + col0 + - - col0 FROM tab2 AS cor0
----
138
192
225

query I rowsort
SELECT ALL + col2 * - 10 * + 83 + - - col1 + 62 * + col2 FROM tab1 AS cor0
----
-45307
-52177
-73714

query I rowsort
SELECT 78 + + 28 AS col2 FROM tab0 AS cor0
----
106
106
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3331
SELECT DISTINCT col1 + - col0 - + col2 + - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-184
-203
-224

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT col1 + - col0 - + col2 + - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-184
-203
-224

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + - 50 NOT BETWEEN - 81 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3333
SELECT ALL + col0 + + 8 AS col2, col0 DIV col1 FROM tab0 cor0
----
105
97
23
0
95
4

skipif mysql # not compatible
query II rowsort label-3333
SELECT ALL + col0 + + 8 AS col2, col0 / col1 FROM tab0 cor0
----
105
97
23
0
95
4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + col2 * + col2 + + col2 + - col2 > - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3335
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) + + COUNT( ALL col0 ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( ALL col0 ) AS col1 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3336
SELECT * FROM tab0 WHERE - CAST( - col1 AS SIGNED ) * + 71 * - 11 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3336
SELECT * FROM tab0 WHERE - CAST ( - col1 AS INTEGER ) * + 71 * - 11 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT DISTINCT + MIN( + 19 ) * + COUNT( + + col1 ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT + MIN ( + 19 ) * + COUNT ( + + col1 ) FROM tab1
----
57

query III rowsort
SELECT * FROM tab2 WHERE 31 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 - 71 FROM tab0
----
-118
-170
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 78 * + - col1 + + col1 + + + col2 + - col2 * - col2 IS NOT NULL
----

query I rowsort
SELECT - 27 * - 25 FROM tab0
----
675
675
675

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3342
SELECT 64 * - col2 - + CAST( NULL AS SIGNED ) / - + col0 * - col2 AS col1, + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3342
SELECT 64 * - col2 - + CAST ( NULL AS INTEGER ) / - + col0 * - col2 AS col1, + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT - COUNT( * ) - - 6 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3343
SELECT - COUNT ( * ) - - 6 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3344
SELECT 31 DIV + col1 - 72 * 58 AS col2 FROM tab1
----
-4170
-4174
-4176

skipif mysql # not compatible
query I rowsort label-3344
SELECT 31 / + col1 - 72 * 58 AS col2 FROM tab1
----
-4170
-4174
-4176

query I rowsort
SELECT DISTINCT + + 7 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * - col2 - + col0 + - 65 col2 FROM tab1 AS cor0
----
-4752
-5460
-7604

query II rowsort
SELECT - 66 + + ( - 90 ) * 17 * - - col1 AS col1, 77 + 4 FROM tab2 AS cor0
----
-102576
81
-117876
81
-78096
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3348
SELECT * FROM tab0 WHERE NOT - col1 * + + col1 + - + col1 + col2 NOT IN ( - col0, - col2 - col1, + + ( 43 ), - - 52 - + CAST( NULL AS SIGNED ), - 68 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-3348
SELECT * FROM tab0 WHERE NOT - col1 * + + col1 + - + col1 + col2 NOT IN ( - col0, - col2 - col1, + + ( 43 ), - - 52 - + CAST ( NULL AS INTEGER ), - 68 * + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3349
SELECT DISTINCT + + 89 col0 FROM tab2 WHERE NOT - + CAST( NULL AS DECIMAL ) <= - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3349
SELECT DISTINCT + + 89 col0 FROM tab2 WHERE NOT - + CAST ( NULL AS REAL ) <= - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT 55 + - ( - + COUNT( * ) ) AS col2 FROM tab1 WHERE NOT ( ( ( + col0 IS NULL ) ) )
----
58

skipif mysql # not compatible
query I rowsort label-3350
SELECT 55 + - ( - + COUNT ( * ) ) AS col2 FROM tab1 WHERE NOT ( ( ( + col0 IS NULL ) ) )
----
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= 15
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3352
SELECT ALL + col2 * col1 DIV 57 col2 FROM tab2 AS cor0
----
20
54
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3352
SELECT ALL + col2 * col1 / 57 col2 FROM tab2 AS cor0
----
20
54
68

query I rowsort
SELECT DISTINCT + + 50 * - 91 + + col1 AS col2 FROM tab0 AS cor0
----
-4469
-4529
-4549

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3354
SELECT DISTINCT - 84 DIV - + SUM( DISTINCT - col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT - 84 / - + SUM ( DISTINCT - col2 ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3355
SELECT ALL + col1 DIV col0 * 77 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL + col1 / col0 * 77 FROM tab1
----
0
0
0

query II rowsort
SELECT col1 * - col0 * col1 AS col2, + col0 FROM tab1
----
-201019
91
-2125
85
-9996
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3357
SELECT - ( 59 ) col0, - COUNT( * ) AS col2 FROM tab1
----
-59
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3357
SELECT - ( 59 ) col0, - COUNT ( * ) AS col2 FROM tab1
----
-59
-3

query I rowsort
SELECT + 73 + col0 - - 71 + - + col1 * 7 AS col1 FROM tab2 AS cor0
----
-167
-250
-331

query II rowsort
SELECT ALL col0, col0 AS col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3360
SELECT ALL - CAST( - 83 AS SIGNED ) * 80 * + + COUNT( * ) + - - 31 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
59791

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL - CAST ( - 83 AS INTEGER ) * 80 * + + COUNT ( * ) + - - 31 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
59791

query I rowsort
SELECT DISTINCT + 40 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3362
SELECT ALL - CAST( NULL AS SIGNED ) + col2 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + - 71 AS col0 FROM tab0 cor0
----
-152
-72
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3364
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) + + + col1 AS col0, ( + 70 ) FROM tab1 AS cor0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-3364
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) + + + col1 AS col0, ( + 70 ) FROM tab1 AS cor0
----
NULL
70

query I rowsort
SELECT + 98 + col0 + - + col2 * - col2 FROM tab1 AS cor0
----
3664
4813
9365

query I rowsort
SELECT ALL - 40 + 73 AS col1 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT col0 + col0 + col2 + col2 FROM tab0
----
124
194
392

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( col2 ) - - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT DISTINCT 37 + - COUNT( + col2 ) AS col0 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT 37 + - COUNT ( + col2 ) AS col0 FROM tab1
----
34

query I rowsort
SELECT DISTINCT - 92 - + - ( + - 38 ) + 40 FROM tab0 AS cor0 WHERE 5 IS NULL
----

query II rowsort
SELECT + col1, col1 * - col0 * - 30 FROM tab0
----
1
2910
21
54810
81
36450

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - + col0 * - + col1 * 88 / + + col1 AND ( NULL )
----

query I rowsort
SELECT - 0 * - + col2 * + 25 * - 96 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + col0 * 43 + + col0 FROM tab0 AS cor0
----
3828
4268
660

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3375
SELECT ALL + CAST( NULL AS DECIMAL ) * + - 44 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL + CAST ( NULL AS REAL ) * + - 44 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT - MIN( ALL - col1 ) * 43 AS col1 FROM tab0 AS cor0
----
3483

skipif mysql # not compatible
query I rowsort label-3377
SELECT - MIN ( ALL - col1 ) * 43 AS col1 FROM tab0 AS cor0
----
3483

query I rowsort
SELECT DISTINCT col1 * + 40 * - - col1 * + + ( - col2 ) FROM tab1
----
-59000
-6008480
-752640

query I rowsort
SELECT DISTINCT - 68 FROM tab2 WHERE col0 + col0 BETWEEN NULL AND + ( 45 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + + 69 col1 FROM tab2
----
3519
4623
5313

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL 77 + + + COUNT( * ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL 77 + + + COUNT ( * ) FROM tab1
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 54 * + 69 * col0 * - col2 col1, - col0 AS col2 FROM tab1 AS cor0
----
-18242496
-51
-18685890
-85
-23056488
-91

query II rowsort
SELECT + col0, col1 * - - col2 FROM tab1 AS cor0
----
51
1344
85
295
91
3196

query I rowsort
SELECT ALL - - 73 + col1 AS col0 FROM tab2 AS cor0
----
124
140
150

query III rowsort
SELECT * FROM tab2 WHERE ( - 31 < + col1 * col0 * - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3386
SELECT COUNT( * ) FROM tab2 WHERE 41 * - col0 NOT BETWEEN + + col0 AND + + CAST( NULL AS DECIMAL )
----
3

skipif mysql # not compatible
query I rowsort label-3386
SELECT COUNT ( * ) FROM tab2 WHERE 41 * - col0 NOT BETWEEN + + col0 AND + + CAST ( NULL AS REAL )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col1 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3388
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + COUNT( * ) / + 65 * - ( - 72 ) - + MIN( ALL - col0 ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3388
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) / + 65 * - ( - 72 ) - + MIN ( ALL - col0 ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT - SUM( - 16 ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3389
SELECT - SUM ( - 16 ) FROM tab0 AS cor0
----
48

query I rowsort
SELECT DISTINCT + col2 - + - 3 AS col1 FROM tab1 cor0
----
62
71
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - ( + 70 ) col1, col0 + + 93 FROM tab1
----
-11
178
-2
184
26
144

query I rowsort
SELECT DISTINCT col0 - - - 96 + + 13 + - - col0 FROM tab2
----
45
67
9

query I rowsort
SELECT + col2 * + col1 - + + col1 AS col1 FROM tab2
----
1122
3003
3819

query I rowsort
SELECT ( - + 94 ) - - 49 AS col2 FROM tab1
----
-45
-45
-45

query I rowsort
SELECT 65 - + + 54 AS col2 FROM tab0
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 66 AS col0, col2 * - col0 col1 FROM tab0 AS cor0
----
66
-705
66
-870
66
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL + MAX( ALL col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL + MAX ( ALL col0 ) FROM tab1 cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3398
SELECT + CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NOT col2 + + - 17 + - col1 * + - col1 + + 96 * - col2 + col0 - - col1 * col0 IN ( + col0, + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-3398
SELECT + CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NOT col2 + + - 17 + - col1 * + - col1 + + 96 * - col2 + col0 - - col1 * col0 IN ( + col0, + col2 ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 * - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + + 24 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * + col2 * + 73 AS col0 FROM tab0 AS cor0
----
-51465
-63510
-701019

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT - 20 + + - COUNT( - - col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-20

skipif mysql # not compatible
query I rowsort label-3402
SELECT - 20 + + - COUNT ( - - col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-20

query I rowsort
SELECT ALL + - 4 * - col2 FROM tab0 AS cor0
----
188
396
40

query I rowsort
SELECT + - col1 * 98 FROM tab0 AS cor0
----
-2058
-7938
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-3405
SELECT DISTINCT - COUNT( * ) * 58 AS col1, 49 FROM tab0 AS cor0
----
-174
49

skipif mysql # not compatible
query II rowsort label-3405
SELECT DISTINCT - COUNT ( * ) * 58 AS col1, 49 FROM tab0 AS cor0
----
-174
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3406
SELECT - MAX( DISTINCT - col0 ) DIV + - 85 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3406
SELECT - MAX ( DISTINCT - col0 ) / + - 85 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3407
SELECT 15 DIV col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3407
SELECT 15 / col0 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL + col2 * - 21 AS col2 FROM tab1
----
-1239
-1428
-2016

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 < - col1 * + 22 * + 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT 63 + - - COUNT( * ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3410
SELECT 63 + - - COUNT ( * ) FROM tab1
----
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( NOT col2 NOT BETWEEN - - ( + - 93 ) AND col1 + + col1 ) )
----
97
1
99

query I rowsort
SELECT - 37 AS col1 FROM tab1 WHERE + 49 IS NOT NULL
----
-37
-37
-37

query II rowsort
SELECT + 67, col0 AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
67
15
67
87
67
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3414
SELECT ALL SUM( DISTINCT + + 84 ) + 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-3414
SELECT ALL SUM ( DISTINCT + + 84 ) + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col2 * - + col0 AS col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT - + COUNT( ALL + 81 ) AS col1 FROM tab2 WHERE NOT + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT - + COUNT ( ALL + 81 ) AS col1 FROM tab2 WHERE NOT + col2 IS NULL
----
-3

query I rowsort
SELECT DISTINCT 19 * col1 + + col1 + col1 * - col2 AS col2 FROM tab0
----
-2187
-79
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3418
SELECT col0 * + + 3 / ( 90 ) * - - col1 + + CAST( NULL AS SIGNED ) * - + col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT col0 * + + 3 / ( 90 ) * - - col1 + + CAST ( NULL AS INTEGER ) * - + col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3419
SELECT ALL + - col1 DIV 40 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL + - col1 / 40 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT DISTINCT 73 + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT 73 + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 22 col0 FROM tab1 AS cor0
----
-25
17
8

query I rowsort
SELECT + 51 + 78 + - + 29 * - col0 FROM tab2 AS cor0
----
1463
1985
2304

query I rowsort
SELECT ALL + 25 + - + ( - ( + + col2 ) ) * + col2 AS col0 FROM tab1 AS cor0
----
3506
4649
9241

query I rowsort
SELECT - 58 + + 70 * col1 * - col2 AS col1 FROM tab2 AS cor0
----
-215658
-272078
-82168

query I rowsort
SELECT DISTINCT col0 + - + ( 68 ) AS col0 FROM tab0 AS cor0
----
-53
19
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT ALL - SUM( ALL 21 ) + - + COUNT( * ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL - SUM ( ALL 21 ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3427
SELECT + col0 + col0 * + 2 + + 40 * - + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1408
-2095
-782

skipif mysql # not compatible
query I rowsort label-3427
SELECT + col0 + col0 * + 2 + + 40 * - + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1408
-2095
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT COUNT( * ) + - 33 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-3428
SELECT COUNT ( * ) + - 33 FROM tab0
----
-30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 66 + - - col0 AS col2 FROM tab0 WHERE NOT + 54 IS NULL
----
153
163
81

query I rowsort
SELECT DISTINCT ( - + 11 ) FROM tab2
----
-11

query I rowsort
SELECT ALL 53 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
53
53
53

query I rowsort
SELECT col1 * - col0 * - + col1 AS col2 FROM tab0
----
38367
97
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT 34 * COUNT( * ) AS col0 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-3434
SELECT 34 * COUNT ( * ) AS col0 FROM tab1
----
102

query I rowsort
SELECT - col0 * 64 * col0 AS col1 FROM tab2 AS cor0
----
-135424
-262144
-360000

query I rowsort
SELECT 68 * - 46 AS col0 FROM tab1 AS cor0 WHERE NOT + 28 + - + col0 + - col0 IS NOT NULL
----

query I rowsort
SELECT col0 * - + col2 * + - col2 + col0 AS col2 FROM tab2 AS cor0
----
102464
24380
252375

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ALL COUNT( ALL col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL COUNT ( ALL col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT 34 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3439
SELECT 34 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
102

query II rowsort
SELECT - - 80, col1 FROM tab2 AS cor0
----
80
51
80
67
80
77

query I rowsort
SELECT DISTINCT - col0 FROM tab1 cor0 WHERE ( - col0 ) + - 77 IS NOT NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3442
SELECT + + col0 DIV 16 + + col2 * + + col2 AS col2 FROM tab0 AS cor0
----
105
2209
9807

skipif mysql # not compatible
query I rowsort label-3442
SELECT + + col0 / 16 + + col2 * + + col2 AS col2 FROM tab0 AS cor0
----
105
2209
9807

query II rowsort
SELECT col2 + - 61 * - col0 AS col0, + col0 - - + col1 + col1 AS col0 FROM tab2 AS cor0
----
2829
148
3944
218
4633
209

query II rowsort
SELECT DISTINCT 42 AS col0, col0 FROM tab0 AS cor0
----
42
15
42
87
42
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - - col2 * - col0 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT - COUNT( * ) * 40 AS col2 FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-3446
SELECT - COUNT ( * ) * 40 AS col2 FROM tab0 AS cor0
----
-120

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 <> + ( + 46 )
----
46
51
23

query I rowsort
SELECT ALL - ( + 89 ) AS col2 FROM tab1
----
-89
-89
-89

query I rowsort
SELECT ALL col1 * + - col2 * + col2 FROM tab0
----
-178929
-2100
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT DISTINCT MIN( + col2 ) * - - COUNT( * ) AS col1 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT MIN ( + col2 ) * - - COUNT ( * ) AS col1 FROM tab2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3451
SELECT + COUNT( * ) FROM tab0 WHERE ( col1 ) NOT BETWEEN - CAST( + + col1 AS SIGNED ) + + ( + - col2 ) / ( col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3451
SELECT + COUNT ( * ) FROM tab0 WHERE ( col1 ) NOT BETWEEN - CAST ( + + col1 AS INTEGER ) + + ( + - col2 ) / ( col2 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT DISTINCT COUNT( * ) * - 59 AS col0 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT COUNT ( * ) * - 59 AS col0 FROM tab2
----
-177

query I rowsort
SELECT DISTINCT - 40 + - col0 FROM tab0
----
-127
-137
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3454
SELECT + CAST( + AVG ( - + col2 ) AS SIGNED ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-3454
SELECT + CAST ( + AVG ( - + col2 ) AS INTEGER ) FROM tab1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT ALL MAX( DISTINCT 49 ) * + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL MAX ( DISTINCT 49 ) * + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
147

query II rowsort
SELECT ALL - - col2 + - col0, + col2 * - col1 AS col2 FROM tab1 cor0
----
-23
-3196
-26
-295
45
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT ALL SUM( col1 ) FROM tab2 AS cor0 WHERE 23 = - + 48 * + col2 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL SUM ( col1 ) FROM tab2 AS cor0 WHERE 23 = - + 48 * + col2 + + col2
----
NULL

query I rowsort
SELECT DISTINCT col2 * + col1 + + col2 FROM tab0 AS cor0
----
198
220
3854

query I rowsort
SELECT - 23 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT ALL + col0 + ( - 93 ) + col0 FROM tab1
----
77
89
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3461
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL + - 46 * COUNT( * ) FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL + - 46 * COUNT ( * ) FROM tab0 AS cor0
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3463
SELECT - CAST( + 86 AS SIGNED ) * - + COUNT( * ) AS col0 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-3463
SELECT - CAST ( + 86 AS INTEGER ) * - + COUNT ( * ) AS col0 FROM tab2
----
258

query I rowsort
SELECT + 75 * + 39 AS col2 FROM tab1
----
2925
2925
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT - SUM( ALL - - col1 ) * 12 FROM tab0
----
-1236

skipif mysql # not compatible
query I rowsort label-3465
SELECT - SUM ( ALL - - col1 ) * 12 FROM tab0
----
-1236

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3466
SELECT * FROM tab0 WHERE NOT CAST( + + col1 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3466
SELECT * FROM tab0 WHERE NOT CAST ( + + col1 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 59, 42 * + col1 col1 FROM tab2
----
59
2142
59
2814
59
3234

query I rowsort
SELECT DISTINCT col0 * + col0 * - col1 * col0 AS col0 FROM tab1 cor0
----
-1857114
-3070625
-35417837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3469
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE - - CAST( NULL AS SIGNED ) = - col1 / - col2 OR NOT - - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE - - CAST ( NULL AS INTEGER ) = - col1 / - col2 OR NOT - - col1 IS NULL
----
NULL

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) < col0 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3471
SELECT col0 AS col1, - CAST( NULL AS SIGNED ) + + - col0 AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-3471
SELECT col0 AS col1, - CAST ( NULL AS INTEGER ) + + - col0 AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 AS col1, 45 col2 FROM tab2 cor0
----
46
45
64
45
75
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT ALL COUNT( * ) - + ( + 46 ) FROM tab0 WHERE col2 < + col2
----
-46

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL COUNT ( * ) - + ( + 46 ) FROM tab0 WHERE col2 < + col2
----
-46

query I rowsort
SELECT ALL 43 + + + col1 FROM tab2 AS cor0
----
110
120
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> ( 2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3476
SELECT DISTINCT CAST( + - 71 AS SIGNED ) * - + col1 + 73 + - - ( - col0 ) FROM tab1 cor0
----
1016
3319
343

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT CAST ( + - 71 AS INTEGER ) * - + col1 + 73 + - - ( - col0 ) FROM tab1 cor0
----
1016
3319
343

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 99 + - - col0, + col1 AS col2 FROM tab0 AS cor0
----
114
81
186
21
196
1

query I rowsort
SELECT 7 + - - col2 FROM tab0
----
106
17
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3480
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 * + col0 * + col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 * + col0 * + col2 AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3481
SELECT ALL + MAX( - col1 ) * - MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL + MAX ( - col1 ) * - MIN ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

query I rowsort
SELECT - 8 * 41 * + - col2 + - 62 * 89 AS col2 FROM tab0
----
-2238
26954
9898

query I rowsort
SELECT - 46 + - ( + 51 ) * + - col0 AS col0 FROM tab2
----
2300
3218
3779

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3484
SELECT * FROM tab2 WHERE - CAST( NULL AS DECIMAL ) >= + - col0
----

skipif mysql # not compatible
query III rowsort label-3484
SELECT * FROM tab2 WHERE - CAST ( NULL AS REAL ) >= + - col0
----

query I rowsort
SELECT DISTINCT + 40 + 83 FROM tab0 cor0
----
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 50 ) col1 FROM tab0 AS cor0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, - col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query II rowsort
SELECT ALL - col0 + + col0 * + 96, + col2 FROM tab2 AS cor0
----
4370
23
6080
40
7125
58

query I rowsort
SELECT ALL + col0 + - - col1 AS col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3490
SELECT CAST( - ( - - ( - - COUNT( * ) ) ) AS SIGNED ) AS col0, - COUNT( * ) + + COUNT( * ) FROM tab2
----
-3
0

skipif mysql # not compatible
query II rowsort label-3490
SELECT CAST ( - ( - - ( - - COUNT ( * ) ) ) AS INTEGER ) AS col0, - COUNT ( * ) + + COUNT ( * ) FROM tab2
----
-3
0

query I rowsort
SELECT 4 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT - col1 * - 62 * + 91 * - - col0 AS col1 FROM tab2 AS cor0
----
13236132
27803776
28351050

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT DISTINCT - + COUNT( * ) * + COUNT( * ) * - + 94 FROM tab2 AS cor0
----
846

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT - + COUNT ( * ) * + COUNT ( * ) * - + 94 FROM tab2 AS cor0
----
846

query I rowsort
SELECT ALL + 36 * - col1 + + 17 - - - 82 AS col0 FROM tab1 AS cor0
----
-1757
-245
-569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3495
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ), 69 AS col0 FROM tab0 AS cor0
----
NULL
69

skipif mysql # not compatible
query II rowsort label-3495
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ), 69 AS col0 FROM tab0 AS cor0
----
NULL
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 39 < + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 20 col0, 74 * + - col1 FROM tab0 AS cor0 WHERE NOT - ( + 63 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - 84 ) FROM tab1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT DISTINCT col1 DIV + + 88 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT col1 / + + 88 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NULL IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT + SUM( ALL - 76 ) AS col1 FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-3501
SELECT + SUM ( ALL - 76 ) AS col1 FROM tab0
----
-228

query I rowsort
SELECT ALL - + col1 * - + col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - + 72 * - col2 * - - col1 * - + col0 FROM tab2 AS cor0
----
-14192640
-20984400
-3884976

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( col2 * - 38 = + - col0 * - col1 + - + col2 + - + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 88 ) * - 17 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6202c9e2cf57d8190f515f1cf52bbdd7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col0 ) + col1 col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT - 42 * + col1 + - col2 AS col0 FROM tab1 cor0 WHERE 74 BETWEEN + 66 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL 6 * MIN( ALL - col2 ) FROM tab1 AS cor0
----
-576

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL 6 * MIN ( ALL - col2 ) FROM tab1 AS cor0
----
-576

query II rowsort
SELECT + col1 + - 40 + + - ( + 68 ) AS col0, - col2 AS col1 FROM tab2 AS cor0
----
-31
-40
-41
-58
-57
-23

query I rowsort
SELECT DISTINCT + - col0 + - 95 AS col2 FROM tab0 AS cor0
----
-110
-182
-192

query I rowsort
SELECT - - 62 + + - col2 FROM tab1 AS cor0
----
-34
-6
3

query I rowsort
SELECT - 86 + - 61 AS col1 FROM tab2 cor0
----
-147
-147
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3513
SELECT + + MAX( + + CAST( NULL AS SIGNED ) ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3513
SELECT + + MAX ( + + CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE + 73 IN ( col2 + + 21, col2 )
----

query I rowsort
SELECT DISTINCT + col1 * col1 + + col0 AS col1 FROM tab2 AS cor0
----
2647
4564
5993

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 98 * - col0 * + - col2 * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 88 ) col1 FROM tab2
----
88
88
88

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 12 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 63 * 76 * + 13 AS col2 FROM tab2
----
62244
62244
62244

query I rowsort
SELECT col0 * 45 AS col2 FROM tab2
----
2070
2880
3375

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3521
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN + 82 + + col1 AND 45
----

skipif mysql # not compatible
query III rowsort label-3521
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN + 82 + + col1 AND 45
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3522
SELECT DISTINCT - col1 + + col0 + - col2 + 19 / + col0 + - - col2 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT - col1 + + col0 + - col2 + 19 / + col0 + - - col2 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3523
SELECT + col2 - + col2 AS col2, ( + col2 ) + + - col0 + + CAST( + col1 AS SIGNED ) FROM tab0
----
0
-56
0
113
0
3

skipif mysql # not compatible
query II rowsort label-3523
SELECT + col2 - + col2 AS col2, ( + col2 ) + + - col0 + + CAST ( + col1 AS INTEGER ) FROM tab0
----
0
-56
0
113
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 + - - col1 col0 FROM tab1 AS cor0
----
104
62
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL - + ( - COUNT( * ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL - + ( - COUNT ( * ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT DISTINCT + + 7 * + COUNT( * ) + - + 17 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
46

skipif mysql # not compatible
query I rowsort label-3526
SELECT DISTINCT + + 7 * + COUNT ( * ) + - + 17 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 21 * + col0 + - col1 col1 FROM tab0 WHERE NULL IS NULL
----
1806
2036
234

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE 25 IS NULL
----

query I rowsort
SELECT ( + + col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT + COUNT( * ) + 90 FROM tab0 AS cor0 WHERE NOT - 21 IS NULL
----
93

skipif mysql # not compatible
query I rowsort label-3530
SELECT + COUNT ( * ) + 90 FROM tab0 AS cor0 WHERE NOT - 21 IS NULL
----
93

query I rowsort
SELECT ALL - + 85 * + 55 FROM tab1 AS cor0
----
-4675
-4675
-4675

query I rowsort
SELECT ALL + - col0 FROM tab0 AS cor0 WHERE + ( col1 ) IS NULL
----

query II rowsort
SELECT col0, 85 AS col2 FROM tab1 AS cor0
----
51
85
85
85
91
85

query I rowsort
SELECT + + 53 AS col1 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL 48 * - + 58 * + COUNT( * ) FROM tab2
----
-8352

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL 48 * - + 58 * + COUNT ( * ) FROM tab2
----
-8352

query I rowsort
SELECT DISTINCT - ( - col0 ) * + 65 AS col2 FROM tab1
----
3315
5525
5915

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 26 IS NULL
----

query I rowsort
SELECT DISTINCT 49 * - col0 * + col2 FROM tab2
----
-125440
-213150
-51842

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * col0 + + col1 FROM tab0 AS cor0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT SUM( ALL - - 43 ) + - + 7 AS col0 FROM tab1 AS cor0
----
122

skipif mysql # not compatible
query I rowsort label-3541
SELECT SUM ( ALL - - 43 ) + - + 7 AS col0 FROM tab1 AS cor0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT DISTINCT + 42 - COUNT( * ) FROM tab1, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
42

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT + 42 - COUNT ( * ) FROM tab1, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
42

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 43 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT - ( - - col1 ) * 3 FROM tab2 AS cor0
----
-153
-201
-231

query I rowsort
SELECT - col1 + col1 * - + col2 AS col1 FROM tab2 AS cor0 WHERE 20 + - col0 IS NOT NULL
----
-1224
-3157
-3953

query I rowsort
SELECT - col1 + + 96 AS col0 FROM tab0 cor0
----
15
75
95

query I rowsort
SELECT col0 + - 16 AS col1 FROM tab2
----
30
48
59

query III rowsort
SELECT * FROM tab0 WHERE + col0 / col1 <= + + 27
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT - 54 + + COUNT( * ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3549
SELECT - 54 + + COUNT ( * ) FROM tab1
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-3550
SELECT DISTINCT col1 DIV - col2 col1, col2 AS col0 FROM tab2
----
-1
40
-1
58
-2
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3550
SELECT DISTINCT col1 / - col2 col1, col2 AS col0 FROM tab2
----
-1
40
-1
58
-2
23

query I rowsort
SELECT DISTINCT 98 FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 * - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3552
SELECT DISTINCT - 41 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) <= + + col2
----

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT - 41 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3553
SELECT + 29 DIV + - col2 + + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3553
SELECT + 29 / + - col2 + + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0, + 26 col1 FROM tab1 AS cor0
----
-51
26
-85
26
-91
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT DISTINCT - - COUNT( * ) - + 1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT - - COUNT ( * ) - + 1 FROM tab0 AS cor0
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3556
SELECT - MIN( + col1 ) - COUNT( * ) - COUNT( * ) AS col1, - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-3556
SELECT - MIN ( + col1 ) - COUNT ( * ) - COUNT ( * ) AS col1, - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
-57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT + COUNT( - - 53 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3557
SELECT + COUNT ( - - 53 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT col0 * - + col0 * - 79 * + - col0 FROM tab0 AS cor0
----
-266625
-52021737
-72101167

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3559
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3559
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * CAST ( NULL AS REAL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - col0 + - - 11 * + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL - MIN( + - 98 ) col2 FROM tab1 cor0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3561
SELECT ALL - MIN ( + - 98 ) col2 FROM tab1 cor0
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 40 col2 FROM tab1 AS cor0
----
-40
-40
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-3563
SELECT - 79 DIV + col0, col0 FROM tab0 AS cor0
----
-5
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-3563
SELECT - 79 / + col0, col0 FROM tab0 AS cor0
----
-5
15
0
87
0
97

query I rowsort
SELECT + col2 * - + col1 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT ALL COUNT( * ) + - 92 AS col1 FROM tab0 cor0 WHERE NOT NULL < ( NULL )
----
-92

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL COUNT ( * ) + - 92 AS col1 FROM tab0 cor0 WHERE NOT NULL < ( NULL )
----
-92

query I rowsort
SELECT AVG ( - col0 ) FROM tab0 WHERE NOT NULL BETWEEN + - col0 AND col0 + + col0
----
NULL

query I rowsort
SELECT + 32 FROM tab0 WHERE NOT NULL BETWEEN 80 AND ( col0 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3568
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - CAST( col1 AS SIGNED ) AND 57
----

skipif mysql # not compatible
query III rowsort label-3568
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - CAST ( col1 AS INTEGER ) AND 57
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 43 + - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT + COUNT( * ) * + 39 AS col0 FROM tab0, tab0 cor0
----
351

skipif mysql # not compatible
query I rowsort label-3570
SELECT + COUNT ( * ) * + 39 AS col0 FROM tab0, tab0 cor0
----
351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3571
SELECT 84 FROM tab0 AS cor0 WHERE NOT + CAST( + 66 AS SIGNED ) IS NULL
----
84
84
84

skipif mysql # not compatible
query I rowsort label-3571
SELECT 84 FROM tab0 AS cor0 WHERE NOT + CAST ( + 66 AS INTEGER ) IS NULL
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col1 FROM tab2 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT + - SUM( + - 23 ) col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3573
SELECT + - SUM ( + - 23 ) col2 FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT ALL - MAX( DISTINCT + + 68 ) FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL - MAX ( DISTINCT + + 68 ) FROM tab1 AS cor0
----
-68

query I rowsort
SELECT 78 * 16 AS col2 FROM tab1 AS cor0
----
1248
1248
1248

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT DISTINCT ( + col2 ) DIV + + 3 + ( - + col2 ) + + - col1 FROM tab0 cor0
----
-113
-28
-67

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT ( + col2 ) / + + 3 + ( - + col2 ) + + - col1 FROM tab0 cor0
----
-113
-28
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT ALL MAX( DISTINCT - 12 ) AS col0 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL MAX ( DISTINCT - 12 ) AS col0 FROM tab2 AS cor0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3578
SELECT ALL + SUM( - CAST( 82 AS SIGNED ) ) AS col1 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL + SUM ( - CAST ( 82 AS INTEGER ) ) AS col1 FROM tab1
----
-246

query III rowsort
SELECT * FROM tab2 WHERE - col1 / + 85 + col1 IS NULL
----

query I rowsort
SELECT - 40 * 48 AS col2 FROM tab1
----
-1920
-1920
-1920

query I rowsort
SELECT + 57 * col2 FROM tab1
----
3363
3876
5472

query I rowsort
SELECT DISTINCT col1 * 27 FROM tab1
----
1269
135
378

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( col0 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 + col2 col0 FROM tab1
----
144
153
181

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 + + 86 * - 27 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 64 + col1 * 37 FROM tab0
----
-27
2933
713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE + col2 / 67 = NULL
----

query I rowsort
SELECT - ( + col0 ) + + 82 * + col1 FROM tab2
----
4136
5419
6250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 9 ) col1 FROM tab2
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3591
SELECT * FROM tab2 WHERE NOT ( + col2 * + CAST( NULL AS SIGNED ) ) NOT IN ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-3591
SELECT * FROM tab2 WHERE NOT ( + col2 * + CAST ( NULL AS INTEGER ) ) NOT IN ( + col0 )
----

query I rowsort
SELECT - 43 + - 21 * 45 AS col2 FROM tab2
----
-988
-988
-988

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT DISTINCT + MAX( DISTINCT 3 ) * 63 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT + MAX ( DISTINCT 3 ) * 63 FROM tab1
----
189

onlyif mysql # DIV for integer division: 
query I rowsort label-3594
SELECT 65 + - 20 DIV + col1 col2 FROM tab2
----
65
65
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3594
SELECT 65 + - 20 / + col1 col2 FROM tab2
----
65
65
65

query I rowsort
SELECT 3 + + 22 FROM tab0
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3596
SELECT ALL - col2 DIV 7 FROM tab2
----
-3
-5
-8

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL - col2 / 7 FROM tab2
----
-3
-5
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT COUNT( + ( col0 ) ) + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3597
SELECT COUNT ( + ( col0 ) ) + COUNT ( * ) FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3598
SELECT ALL CAST( NULL AS SIGNED ) * + 68 col1 FROM tab1 WHERE col2 + 70 NOT IN ( - col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3598
SELECT ALL CAST ( NULL AS INTEGER ) * + 68 col1 FROM tab1 WHERE col2 + 70 NOT IN ( - col2 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3599
SELECT ( - COUNT( * ) ) DIV 91 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3599
SELECT ( - COUNT ( * ) ) / 91 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NULL >= 67
----
0

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NULL >= 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT COUNT( * ) + COUNT( * ) FROM tab0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3601
SELECT COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE - col2 IS NULL
----
0

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE + 2 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT DISTINCT - MIN( + col2 ) AS col1 FROM tab2 WHERE NULL >= - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT - MIN ( + col2 ) AS col1 FROM tab2 WHERE NULL >= - 99
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3604
SELECT + 3 DIV col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3604
SELECT + 3 / col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 49 * + col0 FROM tab2 WHERE + col2 - - ( + col0 ) IS NULL
----

query I rowsort
SELECT 70 * + col1 FROM tab0
----
1470
5670
70

query I rowsort
SELECT - col0 + 10 FROM tab1
----
-41
-75
-81

query I rowsort
SELECT 4 + + col2 FROM tab0 cor0
----
103
14
51

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= ( 9 * col2 + col1 )
----

query I rowsort
SELECT 56 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + 83 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3612
SELECT ALL 23 DIV + COUNT( * ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL 23 / + COUNT ( * ) FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT ALL COUNT( * ) + 13 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
22

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL COUNT ( * ) + 13 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
22

query I rowsort
SELECT ALL - 25 / + col2 FROM tab1 WHERE + col0 <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT - SUM( + 17 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + 86 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3617
SELECT - SUM ( + 17 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + 86 ) < NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT - col1 DIV + 58 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3618
SELECT - col1 / + 58 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 35 > - 90 / + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT DISTINCT COUNT( DISTINCT ( - 4 ) ) + 67 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col0 ) <= NULL
----
67

skipif mysql # not compatible
query I rowsort label-3620
SELECT DISTINCT COUNT ( DISTINCT ( - 4 ) ) + 67 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col0 ) <= NULL
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL - - MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL - - MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col0 + - col0 ) BETWEEN ( - col1 ) AND ( NULL )
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT - col0 * + 37 = - col2 * - col2 + col0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3624
SELECT * FROM tab2 WHERE NOT NULL < 31 / + CAST( CAST( 50 AS SIGNED ) * col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3624
SELECT * FROM tab2 WHERE NOT NULL < 31 / + CAST ( CAST ( 50 AS INTEGER ) * col1 AS INTEGER )
----

query I rowsort
SELECT + ( ( + col1 ) ) AS col1 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - col0 * - 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT 21 DIV + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3627
SELECT 21 / + col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT 46 * - col1 FROM tab2
----
-2346
-3082
-3542

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN ( col1 ) AND - 43
----
0

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN ( col1 ) AND - 43
----
0

query I rowsort
SELECT col0 * - col1 * 85 + col1 * + 82 FROM tab2
----
-195228
-412566
-421631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3632
SELECT DISTINCT + + COUNT( * ) * - COUNT( col0 ) + + 27 * + CAST( 71 AS SIGNED ) FROM tab0 cor0
----
1908

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT + + COUNT ( * ) * - COUNT ( col0 ) + + 27 * + CAST ( 71 AS INTEGER ) FROM tab0 cor0
----
1908

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 25 + - ( - 48 ) * - 84 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3634
SELECT - 37 + 13 AS col0 FROM tab2 AS cor0 WHERE - col2 * col2 BETWEEN + col1 AND 61 * + 72 + - ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3634
SELECT - 37 + 13 AS col0 FROM tab2 AS cor0 WHERE - col2 * col2 BETWEEN + col1 AND 61 * + 72 + - ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) <> ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 92 < ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col1 AS col1, + col0 * - col1 + - col0 AS col0 FROM tab1
----
14
-765
47
-4368
5
-510

onlyif mysql # DIV for integer division: 
query I rowsort label-3638
SELECT DISTINCT ( + col0 ) * - - col0 + + col0 DIV ( + 38 + - col1 DIV col2 ) AS col2 FROM tab0
----
225
7571
9411

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT ( + col0 ) * - - col0 + + col0 / ( + 38 + - col1 / col2 ) AS col2 FROM tab0
----
225
7571
9411

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, - 75 FROM tab2
----
23
-75
40
-75
58
-75

query I rowsort
SELECT DISTINCT - + 22 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3641
SELECT DISTINCT + CAST( 63 AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT + CAST ( 63 AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
63

query I rowsort
SELECT ALL + col1 * + col1 * - col1 * - col0 FROM tab0
----
7971615
805707
97

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE - ( + col0 ) BETWEEN - col1 AND ( + col1 - + col2 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 * col2 > + col1 + 45
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 1 + 32 * + col2 AS col0 FROM tab0 AS cor0
----
1503
3167
319

query I rowsort
SELECT 9 + 27 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT ALL 19 + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
100
20
40

query I rowsort
SELECT ALL + + ( + col1 ) + - - col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + - 96 + - + 65 AS col0 FROM tab1 AS cor0
----
-161
-161
-161

query I rowsort
SELECT DISTINCT + col0 * - + ( - 82 ) + + col2 + col2 FROM tab0 AS cor0
----
1324
7154
8152

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT - ( - - 68 ) + + SUM( + col0 ) FROM tab0 AS cor0
----
131

skipif mysql # not compatible
query I rowsort label-3651
SELECT - ( - - 68 ) + + SUM ( + col0 ) FROM tab0 AS cor0
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3652
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 WHERE NULL < NULL
----

query I rowsort
SELECT + ( - col1 ) + - - col2 - + col2 AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - 77 + - - col2 - + 48 FROM tab1 AS cor0
----
-29
-57
-66

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( NULL ) > col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3656
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) * + - 33 + - 88 * 94 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3656
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) * + - 33 + - 88 * 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT COUNT( DISTINCT - + 84 ) + + + 44 - + COUNT( * ) * COUNT( col0 + - 51 / col0 ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-3657
SELECT COUNT ( DISTINCT - + 84 ) + + + 44 - + COUNT ( * ) * COUNT ( col0 + - 51 / col0 ) FROM tab1
----
36

query I rowsort
SELECT DISTINCT col1 + - 4 * - col2 AS col2 FROM tab1
----
241
319
398

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT DISTINCT COUNT( * ) - + 19 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT COUNT ( * ) - + 19 FROM tab0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT DISTINCT - COUNT( ALL + col2 ) FROM tab0 WHERE NULL >= - 9 * 82
----
0

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT - COUNT ( ALL + col2 ) FROM tab0 WHERE NULL >= - 9 * 82
----
0

query III rowsort
SELECT * FROM tab0 WHERE + col2 + col2 NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL - MIN( + - 33 ) AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL - MIN ( + - 33 ) AS col0 FROM tab1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT ALL + 25 * - col0 * - + col0 - + CAST( + col0 AS SIGNED ) * + 79 AS col1 FROM tab2
----
134700
49266
97344

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + 25 * - col0 * - + col0 - + CAST ( + col0 AS INTEGER ) * + 79 AS col1 FROM tab2
----
134700
49266
97344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 49 + col0 col2 FROM tab1 AS cor0
----
-2448
-4080
-4368

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3665
SELECT DISTINCT + - 48 DIV - col1 + + CAST( + - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-19
-81
47

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT + - 48 / - col1 + + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-19
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT - MIN( - col2 ) col0 FROM tab1 cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3666
SELECT - MIN ( - col2 ) col0 FROM tab1 cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3667
SELECT - ( CAST( - + 4 AS SIGNED ) ), col0 - + ( + ( + 83 ) ) AS col0 FROM tab0 cor0
----
4
-68
4
14
4
4

skipif mysql # not compatible
query II rowsort label-3667
SELECT - ( CAST ( - + 4 AS INTEGER ) ), col0 - + ( + ( + 83 ) ) AS col0 FROM tab0 cor0
----
4
-68
4
14
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3668
SELECT + 19 DIV - 66 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3668
SELECT + 19 / - 66 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 59 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 37 + + - col1, col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3670
SELECT DISTINCT - ( + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT - ( + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <> + 76
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3673
SELECT DISTINCT CAST( NULL AS DECIMAL ) * COUNT( * ) AS col2 FROM tab2 WHERE NOT col2 - + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT CAST ( NULL AS REAL ) * COUNT ( * ) AS col2 FROM tab2 WHERE NOT col2 - + col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3674
SELECT COUNT( * ) / + SUM( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT COUNT ( * ) / + SUM ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT + 40 col0 FROM tab2 WHERE NOT ( ( col1 + - CAST( - col1 AS SIGNED ) / - 93 ) IS NULL )
----
40
40
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3675
SELECT + 40 col0 FROM tab2 WHERE NOT ( ( col1 + - CAST ( - col1 AS INTEGER ) / - 93 ) IS NULL )
----
40
40
40

query II rowsort
SELECT - col1 AS col2, - 97 FROM tab1
----
-14
-97
-47
-97
-5
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT + COUNT( * ) * 72 + + MIN( DISTINCT col0 + col1 ) col2 FROM tab1 WHERE NULL < + - 51 / col1 * - col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3677
SELECT + COUNT ( * ) * 72 + + MIN ( DISTINCT col0 + col1 ) col2 FROM tab1 WHERE NULL < + - 51 / col1 * - col1
----
NULL

query I rowsort
SELECT DISTINCT - 6 + - - col0 - - + col1 AS col0 FROM tab2
----
135
136
91

query I rowsort
SELECT - col1 * - col0 + 68 AS col0 FROM tab2 AS cor0 WHERE col0 * + 98 BETWEEN ( col0 ) AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 * col0 + - ( + 23 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE - 62 IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT 97 + 65 + col0 DIV ( + + col1 ) AS col1 FROM tab0
----
162
166
259

skipif mysql # not compatible
query I rowsort label-3682
SELECT 97 + 65 + col0 / ( + + col1 ) AS col1 FROM tab0
----
162
166
259

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 2 * + 94 NOT IN ( - + 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( - + col0 ) - 20 FROM tab0 AS cor0
----
-5
67
77

query I rowsort
SELECT ALL - col0 + + col2 * - + 19 AS col1 FROM tab2 AS cor0
----
-1177
-483
-824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3686
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE col1 IN ( col1 * + - CAST( NULL AS SIGNED ) + + 53 )
----

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE col1 IN ( col1 * + - CAST ( NULL AS INTEGER ) + + 53 )
----

query I rowsort
SELECT 2 * + 80 - + - 20 FROM tab2
----
180
180
180

query I rowsort
SELECT ALL + col2 * + 25 FROM tab0
----
1175
2475
250

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT ALL SUM( DISTINCT + col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL SUM ( DISTINCT + col0 ) AS col1 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query II rowsort label-3690
SELECT - COUNT( * ) AS col1, - COUNT( * ) AS col1 FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3690
SELECT - COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab1
----
-3
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3691
SELECT - COUNT( * ) AS col1, COUNT( * ) FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3691
SELECT - COUNT ( * ) AS col1, COUNT ( * ) FROM tab0
----
-3
3

query I rowsort
SELECT ALL - 73 * - 73 AS col2 FROM tab1
----
5329
5329
5329

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3693
SELECT DISTINCT - COUNT( * ) DIV - - COUNT( ALL - - col2 ) + - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT - COUNT ( * ) / - - COUNT ( ALL - - col2 ) + - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3694
SELECT ALL + 50 / - CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL + 50 / - CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3695
SELECT DISTINCT + + 77 DIV + SUM( ALL + col0 ), - 5 col0 FROM tab1 cor0
----
0
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3695
SELECT DISTINCT + + 77 / + SUM ( ALL + col0 ), - 5 col0 FROM tab1 cor0
----
0
-5

query II rowsort
SELECT + + col2, 5 FROM tab0 AS cor0
----
10
5
47
5
99
5

query I rowsort
SELECT ALL + 17 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3698
SELECT DISTINCT 99 AS col1 FROM tab2 WHERE ( - CAST( - col1 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT 99 AS col1 FROM tab2 WHERE ( - CAST ( - col1 AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3699
SELECT - COUNT( * ) DIV COUNT( ALL - col0 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3699
SELECT - COUNT ( * ) / COUNT ( ALL - col0 ) FROM tab2
----
-1

query I rowsort
SELECT DISTINCT 68 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT 67 * - COUNT( * ) + 37 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-566

skipif mysql # not compatible
query I rowsort label-3701
SELECT 67 * - COUNT ( * ) + 37 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-566

query I rowsort
SELECT DISTINCT 54 FROM tab1 AS cor0 WHERE NULL = - 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 47 * + col0 < ( + col0 + 52 )
----
3

skipif mysql # not compatible
query I rowsort label-3703
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 47 * + col0 < ( + col0 + 52 )
----
3

query I rowsort
SELECT ALL + 55 * col2 FROM tab1 cor0
----
3245
3740
5280

onlyif mysql # DIV for integer division: 
query II rowsort label-3705
SELECT ALL - col2 DIV col2, col2 FROM tab0 AS cor0
----
-1
10
-1
47
-1
99

skipif mysql # not compatible
query II rowsort label-3705
SELECT ALL - col2 / col2, col2 FROM tab0 AS cor0
----
-1
10
-1
47
-1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 64 * col2 + - - 1 col2 FROM tab0 AS cor0
----
-3007
-6335
-639

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( col1 ) * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + - col0 AND ( + col1 )
----

query II rowsort
SELECT - col1 * - col2 * + col0, col0 FROM tab0
----
18270
87
57105
15
9603
97

query I rowsort
SELECT DISTINCT 61 * col2 AS col2 FROM tab2
----
1403
2440
3538

query I rowsort
SELECT - col0 + - col0 - col0 + + 98 AS col1 FROM tab0
----
-163
-193
53

query I rowsort
SELECT - 62 + col2 FROM tab1
----
-3
34
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT ALL COUNT( * ) FROM tab0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL COUNT ( * ) FROM tab0 WHERE NULL = NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - col0 IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT + MAX( 81 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3716
SELECT + MAX ( 81 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT ( col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT ( col1 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col0 - + 1 + - 94 col2 FROM tab1 AS cor0
----
330
4182
619

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3719
SELECT + + 27 * - - 73 + COUNT( * ) + - CAST( NULL AS DECIMAL ) * + 63 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3719
SELECT + + 27 * - - 73 + COUNT ( * ) + - CAST ( NULL AS REAL ) * + 63 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 / col2 / + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 col2 FROM tab1 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + SUM( + - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3722
SELECT + SUM ( + - col0 ) FROM tab1 AS cor0
----
-227

query II rowsort
SELECT DISTINCT + 54 AS col0, col1 * col1 FROM tab0 AS cor0
----
54
1
54
441
54
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT DISTINCT - SUM( + - 25 ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT - SUM ( + - 25 ) FROM tab0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT + SUM( - col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3725
SELECT + SUM ( - col1 ) AS col0 FROM tab1
----
-66

query I rowsort
SELECT DISTINCT - col1 * + 92 FROM tab2
----
-4692
-6164
-7084

onlyif mysql # DIV for integer division: 
query II rowsort label-3727
SELECT DISTINCT + col0 * + 38 AS col2, col1 DIV - + col1 FROM tab2
----
1748
-1
2432
-1
2850
-1

skipif mysql # not compatible
query II rowsort label-3727
SELECT DISTINCT + col0 * + 38 AS col2, col1 / - + col1 FROM tab2
----
1748
-1
2432
-1
2850
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3728
SELECT DISTINCT + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3729
SELECT + col1 * 68, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3468
NULL
4556
NULL
5236
NULL

skipif mysql # not compatible
query II rowsort label-3729
SELECT + col1 * 68, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3468
NULL
4556
NULL
5236
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3730
SELECT ALL + - ( + CAST( + col0 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL + - ( + CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> 58
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + 23 + + - col2 ) < - col1
----
87
21
10
97
1
99

query I rowsort
SELECT - col1 + + col2 * + col0 * - ( + + col1 ) FROM tab1
----
-25080
-290883
-68558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3734
SELECT ALL + MIN( + 25 ) * ( - - 99 ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
825

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL + MIN ( + 25 ) * ( - - 99 ) / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
825

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT + + 73 + + col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
73
74
76

skipif mysql # not compatible
query I rowsort label-3735
SELECT + + 73 + + col2 / + col0 AS col2 FROM tab0 AS cor0
----
73
74
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3736
SELECT DISTINCT COUNT( * ) DIV + 35 + - 58 AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT COUNT ( * ) / + 35 + - 58 AS col1 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < col0 + 46 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL - MAX( + + col1 ) col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3738
SELECT ALL - MAX ( + + col1 ) col0 FROM tab2 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col2 * + col2 col0 FROM tab1
----
295885
420784
470016

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 7 * - col2 IS NOT NULL
----

query II rowsort
SELECT + 79 * col2, + 87 - - col2 AS col0 FROM tab1
----
4661
146
5372
155
7584
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3742
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT 82 * + ( + COUNT( * ) ) AS col0 FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-3743
SELECT 82 * + ( + COUNT ( * ) ) AS col0 FROM tab2
----
246

query I rowsort
SELECT ALL - col0 * - 61 + - col0 FROM tab2 WHERE NOT NULL >= - + 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL MAX( - - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL MAX ( - - col1 ) FROM tab1
----
47

query I rowsort
SELECT - + col1 * - col2 - - col2 AS col1 FROM tab2 cor0
----
1196
3120
3944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * col0 + - - ( - - ( col0 ) ) col2 FROM tab0 AS cor0
----
240
7656
9506

query I rowsort
SELECT - 45 + 50 FROM tab1 AS cor0 WHERE 3 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3749
SELECT DISTINCT - CAST( + - COUNT( * ) AS SIGNED ) + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - + 14 AS col0 FROM tab2 AS cor0
----
-65
-81
-91

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE 14 IS NULL
----

query I rowsort
SELECT + 57 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT + col0 * + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

query I rowsort
SELECT + + col0 * + - 35 FROM tab2 AS cor0
----
-1610
-2240
-2625

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 > + + 65
----
97
1
99

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3757
SELECT ALL - col0 AS col0, + CAST( + + 45 AS SIGNED ) AS col2 FROM tab0
----
-15
45
-87
45
-97
45

skipif mysql # not compatible
query II rowsort label-3757
SELECT ALL - col0 AS col0, + CAST ( + + 45 AS INTEGER ) AS col2 FROM tab0
----
-15
45
-87
45
-97
45

query I rowsort
SELECT DISTINCT col0 * col1 * + 91 FROM tab1
----
38675
389207
64974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * col2 AS col1 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * col2 AS col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL col0 - 1 + - + 3 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( 37 + ( - - col0 ) * col0 + + + ( + col1 ) + + col2 ) AND ( - 88 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN col0 * - 40 AND + + 0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - 50 + - 1 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 50 IS NULL
----

query I rowsort
SELECT + col1 + - col0 - - 56 FROM tab2 cor0
----
48
61
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 * col2 col0 FROM tab0
----
2585
5445
550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3766
SELECT ALL - col2 + - CAST( + col1 AS SIGNED ) * + 27 AS col0 FROM tab0
----
-126
-2234
-577

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL - col2 + - CAST ( + col1 AS INTEGER ) * + 27 AS col0 FROM tab0
----
-126
-2234
-577

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT 72 + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-3767
SELECT 72 + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0
----
78

query I rowsort
SELECT 24 * - + 59 + + + col0 FROM tab0
----
-1319
-1329
-1401

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3769
SELECT DISTINCT - 86 DIV - COUNT( * ) AS col0 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT - 86 / - COUNT ( * ) AS col0 FROM tab1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3770
SELECT + COUNT( * ), ( 77 ) AS col0 FROM tab1 AS cor0
----
3
77

skipif mysql # not compatible
query II rowsort label-3770
SELECT + COUNT ( * ), ( 77 ) AS col0 FROM tab1 AS cor0
----
3
77

query I rowsort
SELECT DISTINCT + col2 * - - col0 FROM tab2 AS cor0 WHERE NOT 71 IS NULL
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query II rowsort label-3772
SELECT - 90 AS col2, - COUNT( * ) FROM tab1 AS cor0
----
-90
-3

skipif mysql # not compatible
query II rowsort label-3772
SELECT - 90 AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
-90
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT DISTINCT 46 * - - COUNT( * ) - - + 35 * - 2 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT 46 * - - COUNT ( * ) - - + 35 * - 2 FROM tab1 AS cor0
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3774
SELECT col1 * - col0 - + CAST( NULL AS DECIMAL ) * col1 AS col2, col0 AS col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-3774
SELECT col1 * - col0 - + CAST ( NULL AS REAL ) * col1 AS col2, col0 AS col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 IN ( - 41 + - 45, + 46 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 46 + - + 86 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-40
-40
-40

query I rowsort
SELECT + ( - + col0 ) * - col0 * col1 AS col0 FROM tab0 AS cor0
----
158949
18225
9409

query I rowsort
SELECT DISTINCT + - 50 AS col2 FROM tab2 AS cor0
----
-50

query I rowsort
SELECT + - 83 * + + col2 AS col2 FROM tab0 AS cor0
----
-3901
-8217
-830

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NULL <> + + col2
----

query I rowsort
SELECT ALL ( + 38 ) FROM tab1
----
38
38
38

query I rowsort
SELECT DISTINCT - 11 * - col0 AS col2 FROM tab1
----
1001
561
935

query I rowsort
SELECT - 0 * - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + 66 * + col1 * - col1 FROM tab1 AS cor0
----
-12936
-145794
-1650

query II rowsort
SELECT DISTINCT + col2 AS col0, + col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 98 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT ALL 65 + COUNT( * ) * + 53 FROM tab0
----
224

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL 65 + COUNT ( * ) * + 53 FROM tab0
----
224

query I rowsort
SELECT DISTINCT ( + col0 ) + 80 FROM tab0
----
167
177
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT 13 + + MAX( ALL - col0 ) AS col2 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-3789
SELECT 13 + + MAX ( ALL - col0 ) AS col2 FROM tab1
----
-38

query I rowsort
SELECT + 40 + col1 AS col1 FROM tab1 AS cor0
----
45
54
87

query I rowsort
SELECT DISTINCT - + ( - col0 ) + - + 19 FROM tab0 AS cor0
----
-4
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT ALL + COUNT( * ) + - - 31 AS col0 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL + COUNT ( * ) + - - 31 AS col0 FROM tab0 AS cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 * - - col0 col1 FROM tab2 cor0
----
-3220
-4480
-5250

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT DISTINCT 63 * 75 + + - COUNT( + col2 ) AS col1 FROM tab2 AS cor0
----
4722

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT 63 * 75 + + - COUNT ( + col2 ) AS col1 FROM tab2 AS cor0
----
4722

query III rowsort
SELECT * FROM tab1 WHERE + + 13 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 25 < - ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3797
SELECT + CAST( NULL AS SIGNED ) * + - MIN( DISTINCT - - CAST( col0 AS SIGNED ) ) * + 96 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3797
SELECT + CAST ( NULL AS INTEGER ) * + - MIN ( DISTINCT - - CAST ( col0 AS INTEGER ) ) * + 96 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT ALL - 25 - - - MIN( DISTINCT - col0 ) AS col1 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL - 25 - - - MIN ( DISTINCT - col0 ) AS col1 FROM tab0
----
72

query I rowsort
SELECT 41 * + 25 AS col0 FROM tab1
----
1025
1025
1025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT ALL + + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL + + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT 43 + + col2 * col2 FROM tab2 AS cor0
----
1643
3407
572

query I rowsort
SELECT ALL 48 + + + 76 AS col2 FROM tab0 cor0
----
124
124
124

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT + SUM( col2 ) col0 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3803
SELECT + SUM ( col2 ) col0 FROM tab0
----
156

query I rowsort
SELECT 17 * col0 AS col1 FROM tab1
----
1445
1547
867

query I rowsort
SELECT ALL - - col2 + - col0 + + col1 FROM tab2 WHERE NOT ( + 58 ) IS NULL
----
28
50
53

query II rowsort
SELECT DISTINCT + 2 AS col2, - col2 FROM tab2
----
2
-23
2
-40
2
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3807
SELECT ALL * FROM tab2 WHERE + CAST( - + ( 33 ) AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-3807
SELECT ALL * FROM tab2 WHERE + CAST ( - + ( 33 ) AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT col2 * + ( - col1 ) IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - - col0 * + 40 FROM tab0 cor0
----
3480
3880
600

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 8 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT DISTINCT CAST( NULL AS SIGNED ) * CAST( + 91 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT CAST ( NULL AS INTEGER ) * CAST ( + 91 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 62 * + col1 IS NOT NULL
----

query II rowsort
SELECT - ( - col2 ), col2 * + 80 AS col2 FROM tab2
----
23
1840
40
3200
58
4640

query I rowsort
SELECT DISTINCT ( - + 42 ) AS col1 FROM tab1
----
-42

query II rowsort
SELECT DISTINCT - col1 * + 77 AS col0, + col0 AS col2 FROM tab0
----
-1617
87
-6237
15
-77
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 BETWEEN 95 AND ( - + col1 - + 59 * - col2 / + col2 / col2 + col0 * 48 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + - - col1 col1 FROM tab1 cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT + MAX( - col2 ) * - + 52 AS col0 FROM tab2
----
1196

skipif mysql # not compatible
query I rowsort label-3819
SELECT + MAX ( - col2 ) * - + 52 AS col0 FROM tab2
----
1196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col2 + - - col0 FROM tab2
----
-46
69
-64
104
-75
133

query I rowsort
SELECT ALL - col2 + - 35 FROM tab0
----
-134
-45
-82

query I rowsort
SELECT - 9 + - - col1 FROM tab2 AS cor0
----
42
58
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL - ( - COUNT( * ) ) + - COUNT( * ) + MAX( DISTINCT + + col2 ) col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3823
SELECT ALL - ( - COUNT ( * ) ) + - COUNT ( * ) + MAX ( DISTINCT + + col2 ) col2 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT 3 * - + ( - COUNT( * ) ) + + COUNT( * ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3824
SELECT 3 * - + ( - COUNT ( * ) ) + + COUNT ( * ) FROM tab0 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT - 41 * - - COUNT( * ) + - + MIN( ALL + 68 ) AS col1 FROM tab2 AS cor0
----
-191

skipif mysql # not compatible
query I rowsort label-3825
SELECT - 41 * - - COUNT ( * ) + - + MIN ( ALL + 68 ) AS col1 FROM tab2 AS cor0
----
-191

query I rowsort
SELECT ALL - - col2 FROM tab2 WHERE - - col2 * + 11 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT ( + CAST( NULL AS SIGNED ) ) + + col0 * + col2 * - + 53 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3827
SELECT ( + CAST ( NULL AS INTEGER ) ) + + col0 * + col2 * - + 53 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col1 + + col2 AS col2 FROM tab2
----
-1150
-3040
-3828

query I rowsort
SELECT + 48 * + - col2 + 22 - + col2 FROM tab2
----
-1105
-1938
-2820

query I rowsort
SELECT - col0 * - col1 * + col2 AS col1 FROM tab2
----
197120
291450
53958

query II rowsort
SELECT DISTINCT - 10, - 54 AS col1 FROM tab2
----
-10
-54

query I rowsort
SELECT DISTINCT + col2 + - col0 + 30 AS col0 FROM tab1
----
4
7
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT DISTINCT - 43 DIV + col2 + 82 FROM tab2 AS cor0
----
81
82

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT - 43 / + col2 + 82 FROM tab2 AS cor0
----
81
82

onlyif mysql # DIV for integer division: 
query II rowsort label-3834
SELECT col2 DIV col2 * - col0 + - + 4, + 51 * + ( + 58 ) AS col1 FROM tab1 AS cor0
----
-55
2958
-89
2958
-95
2958

skipif mysql # not compatible
query II rowsort label-3834
SELECT col2 / col2 * - col0 + - + 4, + 51 * + ( + 58 ) AS col1 FROM tab1 AS cor0
----
-55
2958
-89
2958
-95
2958

query II rowsort
SELECT + - 78, col1 FROM tab2 AS cor0
----
-78
51
-78
67
-78
77

query II rowsort
SELECT DISTINCT - - col1 * col0 + ( col1 ) AS col2, + 85 * col1 FROM tab2 AS cor0
----
2397
4335
5005
6545
5092
5695

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 27 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3838
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3838
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3839
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 col1, - 24 * - 95 FROM tab1
----
NULL
2280

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3839
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 col1, - 24 * - 95 FROM tab1
----
NULL
2280

query I rowsort
SELECT + 63 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - 44 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - 35
----
0

skipif mysql # not compatible
query I rowsort label-3842
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - 35
----
0

query I rowsort
SELECT col2 * + 54 AS col1 FROM tab2 AS cor0
----
1242
2160
3132

onlyif mysql # DIV for integer division: 
query I rowsort label-3844
SELECT DISTINCT - + col1 DIV 27 * col0 + - - 48 AS col2 FROM tab0 AS cor0
----
3
48

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT - + col1 / 27 * col0 + - - 48 AS col2 FROM tab0 AS cor0
----
3
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 33 col0 FROM tab1 AS cor0
----
-1683
-2805
-3003

query I rowsort
SELECT ALL 86 * - + col2 AS col0 FROM tab1 AS cor0
----
-5074
-5848
-8256

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT + ( - COUNT( * ) ) * + MIN( + - 45 ) AS col2 FROM tab0 cor0
----
135

skipif mysql # not compatible
query I rowsort label-3847
SELECT + ( - COUNT ( * ) ) * + MIN ( + - 45 ) AS col2 FROM tab0 cor0
----
135

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 7 ) * - col0 - - col2 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT ALL + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 * + CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 col2 FROM tab1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT COUNT( DISTINCT + col2 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3851
SELECT COUNT ( DISTINCT + col2 ) col2 FROM tab2
----
3

query II rowsort
SELECT ALL - 24, col1 FROM tab1
----
-24
14
-24
47
-24
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT + COUNT( ALL - + col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3854
SELECT + COUNT ( ALL - + col2 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT + ( 41 ) + - COUNT( DISTINCT - col1 ) col2 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3855
SELECT DISTINCT + ( 41 ) + - COUNT ( DISTINCT - col1 ) col2 FROM tab1 AS cor0
----
38

query I rowsort
SELECT - 11 * - 61 * - col1 FROM tab1 AS cor0
----
-31537
-3355
-9394

query II rowsort
SELECT col0 + ( col0 ) AS col2, col0 - + - col0 * - + 18 FROM tab1 AS cor0
----
102
-867
170
-1445
182
-1547

query I rowsort
SELECT ALL - 84 FROM tab2 WHERE NOT col2 <> + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3859
SELECT ALL + col1 * 91 DIV col1 AS col2 FROM tab0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL + col1 * 91 / col1 AS col2 FROM tab0
----
91
91
91

query I rowsort
SELECT DISTINCT + col2 * + 27 + - 99 AS col0 FROM tab1
----
1494
1737
2493

query I rowsort
SELECT ALL + ( - + col2 ) + + + col2 AS col2 FROM tab2 WHERE NOT + + 47 IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT col0 - + col0 + col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT DISTINCT COUNT( * ) + 76 AS col2 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT COUNT ( * ) + 76 AS col2 FROM tab1 AS cor0
----
79

query I rowsort
SELECT DISTINCT - 78 + + 29 AS col1 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT - 63 DIV + col1 - 86 AS col0 FROM tab2
----
-86
-86
-87

skipif mysql # not compatible
query I rowsort label-3865
SELECT - 63 / + col1 - 86 AS col0 FROM tab2
----
-86
-86
-87

query II rowsort
SELECT ALL col2 * + 91 - + 40 AS col2, 50 FROM tab2
----
2053
50
3600
50
5238
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3867
SELECT CAST( NULL AS DECIMAL ) * + 92 - - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT CAST ( NULL AS REAL ) * + 92 - - - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT 22 * - - col1 AS col0 FROM tab0 WHERE - col1 / + col2 = - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + col1 + - col1 * - col2 col0 FROM tab2
----
1099
2963
3761

query I rowsort
SELECT DISTINCT + 41 * + 21 FROM tab0
----
861

query I rowsort
SELECT - col2 * - + 11 AS col0 FROM tab2
----
253
440
638

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT ALL - COUNT( - 95 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL - COUNT ( - 95 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT DISTINCT - MIN( DISTINCT - 53 ) AS col1 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT - MIN ( DISTINCT - 53 ) AS col1 FROM tab2 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3874
SELECT ALL + COUNT( * ) AS col0, + COUNT( * ) AS col1 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3874
SELECT ALL + COUNT ( * ) AS col0, + COUNT ( * ) AS col1 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT - ( - MAX( - col0 ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3875
SELECT - ( - MAX ( - col0 ) ) FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 col2 FROM tab1 AS cor0 WHERE NOT - col2 + + col2 * col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT ALL 76 FROM tab0 cor0
----
76
76
76

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT DISTINCT - SUM( ALL - + col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT - SUM ( ALL - + col0 ) AS col2 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT - COUNT( * ) * - MAX( - col1 ) FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3881
SELECT - COUNT ( * ) * - MAX ( - col1 ) FROM tab2 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT ALL - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 82 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 82 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT COUNT( * ) * - 26 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-3883
SELECT COUNT ( * ) * - 26 FROM tab2
----
-78

query I rowsort
SELECT - col0 * col2 FROM tab1 WHERE NOT 94 NOT BETWEEN + 27 AND + ( - 60 ) + + col0 * col0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - 47 * - col2 FROM tab1
----
2773
3196
4512

query I rowsort
SELECT - 64 + + col0 AS col0 FROM tab1
----
-13
21
27

query II rowsort
SELECT ALL + - 30 * - col1 AS col0, col1 AS col1 FROM tab0 WHERE - col1 IS NOT NULL
----
2430
81
30
1
630
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT + 96 + COUNT( * ) * - ( - 40 ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-3888
SELECT + 96 + COUNT ( * ) * - ( - 40 ) FROM tab2
----
216

query II rowsort
SELECT ALL + col1 + - 33 AS col1, - col0 * + - col0 FROM tab0 AS cor0
----
-12
7569
-32
9409
48
225

query I rowsort
SELECT DISTINCT - col2 * col1 + - + 13 AS col2 FROM tab2 AS cor0
----
-1186
-3093
-3899

query I rowsort
SELECT ALL + col2 * - 21 FROM tab1 cor0
----
-1239
-1428
-2016

query I rowsort
SELECT DISTINCT + ( + col1 ) * - 92 AS col2 FROM tab1
----
-1288
-4324
-460

query III rowsort
SELECT * FROM tab0 WHERE ( 42 IS NULL )
----

query I rowsort
SELECT + - col0 AS col0 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + ( + col2 ) + - 88 AS col1 FROM tab0 AS cor0
----
-41
-78
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3896
SELECT - - 30 * + col0 + - col0 DIV + 75 AS col2 FROM tab2 AS cor0
----
1380
1920
2249

skipif mysql # not compatible
query I rowsort label-3896
SELECT - - 30 * + col0 + - col0 / + 75 AS col2 FROM tab2 AS cor0
----
1380
1920
2249

query I rowsort
SELECT - ( - 73 ) + - col1 AS col1 FROM tab2 cor0
----
-4
22
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3898
SELECT ALL - col2 DIV + + col2 + + - 53 AS col0 FROM tab2
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL - col2 / + + col2 + + - 53 AS col0 FROM tab2
----
-54
-54
-54

query I rowsort
SELECT DISTINCT 36 - + ( - 37 ) AS col1 FROM tab1
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3900
SELECT MAX( - 78 ), 82 AS col2 FROM tab2
----
-78
82

skipif mysql # not compatible
query II rowsort label-3900
SELECT MAX ( - 78 ), 82 AS col2 FROM tab2
----
-78
82

query I rowsort
SELECT col2 + - col2 AS col1 FROM tab2 WHERE NOT 85 IN ( + col2 )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE + col1 / - - col2 * col1 * - col0 - - - col0 + - col2 * - - 6 * col1 < 29
----
-3

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE + col1 / - - col2 * col1 * - col0 - - - col0 + - col2 * - - 6 * col1 < 29
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL ( - - MIN( DISTINCT + 17 ) ) AS col2 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL ( - - MIN ( DISTINCT + 17 ) ) AS col2 FROM tab0 AS cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col1 + + 95 col0 FROM tab1 AS cor0 WHERE NOT ( NOT - + col2 * 43 IN ( 6 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3905
SELECT - col1 DIV - 94 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3905
SELECT - col1 / - 94 AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3906
SELECT col0 DIV - + 5, col0 AS col0 FROM tab0 AS cor0
----
-17
87
-19
97
-3
15

skipif mysql # not compatible
query II rowsort label-3906
SELECT col0 / - + 5, col0 AS col0 FROM tab0 AS cor0
----
-17
87
-19
97
-3
15

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT NULL = NULL )
----

query I rowsort
SELECT ALL + ( - 59 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT + + 74 * 54 * + + COUNT( * ) + + + 15 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
35979

skipif mysql # not compatible
query I rowsort label-3909
SELECT + + 74 * 54 * + + COUNT ( * ) + + + 15 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
35979

query I rowsort
SELECT + 7 * - col1 FROM tab2
----
-357
-469
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT ALL - SUM( DISTINCT + - 98 ) AS col0 FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL - SUM ( DISTINCT + - 98 ) AS col0 FROM tab1 AS cor0
----
98

query II rowsort
SELECT ALL 38 AS col2, - 49 * - + col1 FROM tab0 AS cor0
----
38
1029
38
3969
38
49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) BETWEEN - + col2 * + + col2 AND + + 44
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT DISTINCT + COUNT( + col0 ) * 35 col1 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3914
SELECT DISTINCT + COUNT ( + col0 ) * 35 col1 FROM tab0 AS cor0
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3915
SELECT - CAST( - COUNT( * ) AS SIGNED ) + 8 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3915
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + 8 FROM tab1 AS cor0
----
11

query I rowsort
SELECT + - 25 * - - col2 + + ( 76 ) AS col0 FROM tab1 AS cor0
----
-1399
-1624
-2324

query II rowsort
SELECT ALL 16, 29 AS col2 FROM tab1 AS cor0
----
16
29
16
29
16
29

query I rowsort
SELECT DISTINCT - - col1 * - col2 + - col1 AS col0 FROM tab1 cor0
----
-1358
-300
-3243

query I rowsort
SELECT - - col2 * + 55 AS col1 FROM tab2 cor0
----
1265
2200
3190

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3920
SELECT ALL - + CAST( NULL AS SIGNED ), 77 + + 51 - + + 63 * col1 AS col1 FROM tab1 AS cor0
----
NULL
-187
NULL
-2833
NULL
-754

skipif mysql # not compatible
query II rowsort label-3920
SELECT ALL - + CAST ( NULL AS INTEGER ), 77 + + 51 - + + 63 * col1 AS col1 FROM tab1 AS cor0
----
NULL
-187
NULL
-2833
NULL
-754

query I rowsort
SELECT ALL - col0 * + 80 AS col0 FROM tab0 AS cor0
----
-1200
-6960
-7760

query I rowsort
SELECT DISTINCT 27 * + 93 FROM tab0
----
2511

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT col2 DIV - 58 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3923
SELECT col2 / - 58 AS col2 FROM tab0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT DISTINCT col0 * + col2 DIV - ( + col2 ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT col0 * + col2 / - ( + col2 ) FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3925
SELECT + 2 AS col1, - MAX( DISTINCT - - 10 ) AS col2 FROM tab1
----
2
-10

skipif mysql # not compatible
query II rowsort label-3925
SELECT + 2 AS col1, - MAX ( DISTINCT - - 10 ) AS col2 FROM tab1
----
2
-10

query I rowsort
SELECT ALL 28 * + - col0 * - 58 * col1 FROM tab0
----
157528
1973160
2967048

query I rowsort
SELECT ALL - 6 * 26 * col0 + + - col0 - + col1 + col0 + 96 + - col0 AS col1 FROM tab1 AS cor0
----
-13254
-14238
-7925

onlyif mysql # DIV for integer division: 
query I rowsort label-3928
SELECT ALL col2 DIV - ( + 44 ) FROM tab1 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL col2 / - ( + 44 ) FROM tab1 cor0
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT DISTINCT + CAST( col0 AS SIGNED ) + + - 51 AS col2 FROM tab1
----
0
34
40

skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + + - 51 AS col2 FROM tab1
----
0
34
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3930
SELECT DISTINCT - 74 DIV + col1 FROM tab0
----
-3
-74
0

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT - 74 / + col1 FROM tab0
----
-3
-74
0

query I rowsort
SELECT ALL - - col2 + + - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-17
-23
-24

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 35 * + 18 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT ALL - ( + SUM( DISTINCT 45 ) ) * + 3 AS col2 FROM tab1 cor0
----
-135

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL - ( + SUM ( DISTINCT 45 ) ) * + 3 AS col2 FROM tab1 cor0
----
-135

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3935
SELECT DISTINCT col0 col2, col2 DIV col0 AS col2 FROM tab0
----
15
3
87
0
97
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3935
SELECT DISTINCT col0 col2, col2 / col0 AS col2 FROM tab0
----
15
3
87
0
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT DISTINCT - MAX( ALL - + 28 ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT - MAX ( ALL - + 28 ) FROM tab1
----
28

query I rowsort
SELECT + ( - - 58 ) AS col0 FROM tab2
----
58
58
58

query I rowsort
SELECT 15 * + + col2 AS col2 FROM tab0
----
1485
150
705

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND - ( + col1 ) + - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3940
SELECT ALL + col1 DIV - ( + col1 ) col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3940
SELECT ALL + col1 / - ( + col1 ) col2 FROM tab0
----
-1
-1
-1

query II rowsort
SELECT ALL + col0 AS col1, col2 * col1 * + + col1 + col2 AS col1 FROM tab2
----
46
59846
64
237200
75
260420

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - 75 - + 56 IS NOT NULL
----

query II rowsort
SELECT + col0 AS col0, + col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3944
SELECT + - COUNT( * ) DIV + + ( + COUNT( * ) ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3944
SELECT + - COUNT ( * ) / + + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL - + COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL - + COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3946
SELECT DISTINCT + + MIN( DISTINCT - CAST( col0 AS SIGNED ) ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT + + MIN ( DISTINCT - CAST ( col0 AS INTEGER ) ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + + - 49 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + - + col0 * - col0 + + col2 AS col2 FROM tab1 cor0
----
2711
7289
8396

query I rowsort
SELECT - ( + + col1 ) * - col0 AS col2 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT + col1 + - + col0 AS col0 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT - COUNT( DISTINCT + col0 ) * - + 76 AS col1 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) * - + 76 AS col1 FROM tab2
----
228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3953
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 85 * col1 FROM tab1
----
1190
3995
425

query III rowsort
SELECT * FROM tab2 WHERE + col2 * - 40 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 63 + 49 FROM tab2
----
112
112
112

query I rowsort
SELECT col2 + 69 AS col1 FROM tab1
----
128
137
165

query I rowsort
SELECT ALL col1 + + 50 FROM tab1
----
55
64
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3959
SELECT 77, col0 AS col2 FROM tab2 WHERE + col1 <> + 38 + + CAST( + 79 AS SIGNED ) * - col2
----
77
46
77
64
77
75

skipif mysql # not compatible
query II rowsort label-3959
SELECT 77, col0 AS col2 FROM tab2 WHERE + col1 <> + 38 + + CAST ( + 79 AS INTEGER ) * - col2
----
77
46
77
64
77
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL + - MAX( - col1 ) FROM tab1 WHERE NOT + 95 IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL + - MAX ( - col1 ) FROM tab1 WHERE NOT + 95 IS NULL
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3961
SELECT ALL + col0 DIV 31 + + + 10 + - col1 + - col0 * + + ( - col1 ) FROM tab1 AS cor0
----
4242
432
711

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL + col0 / 31 + + + 10 + - col1 + - col0 * + + ( - col1 ) FROM tab1 AS cor0
----
4242
432
711

query II rowsort
SELECT DISTINCT - 41, col0 FROM tab0
----
-41
15
-41
87
-41
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT DISTINCT ( + COUNT( * ) ) * + 7 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT ( + COUNT ( * ) ) * + 7 FROM tab2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3964
SELECT - CAST( - AVG ( ALL 72 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3964
SELECT - CAST ( - AVG ( ALL 72 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN ( + + col0 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * - 24 FROM tab0 AS cor0
----
1944
24
504

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3967
SELECT SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3969
SELECT COUNT( * ) * - + COUNT( * ) AS col2, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9
3

skipif mysql # not compatible
query II rowsort label-3969
SELECT COUNT ( * ) * - + COUNT ( * ) AS col2, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 AS col1, col2 col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3971
SELECT - 95 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3971
SELECT - 95 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL + 39 * COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
351

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL + 39 * COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
351

onlyif mysql # aggregate syntax: 
query II rowsort label-3973
SELECT ALL - + COUNT( * ) AS col2, 8 AS col2 FROM tab1 AS cor0
----
-3
8

skipif mysql # not compatible
query II rowsort label-3973
SELECT ALL - + COUNT ( * ) AS col2, 8 AS col2 FROM tab1 AS cor0
----
-3
8

query I rowsort
SELECT DISTINCT col1 + col0 AS col2 FROM tab1 cor0 WHERE NULL = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3975
SELECT col0 DIV col0, + col0 FROM tab0 AS cor0
----
1
15
1
87
1
97

skipif mysql # not compatible
query II rowsort label-3975
SELECT col0 / col0, + col0 FROM tab0 AS cor0
----
1
15
1
87
1
97

query I rowsort
SELECT ALL 29 * - + col0 AS col1 FROM tab0
----
-2523
-2813
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE - ( + col2 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE - ( + col2 ) = NULL
----
0

query I rowsort
SELECT ALL AVG ( col1 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( - + col2 + - - col1 ) IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT ALL COUNT( DISTINCT + 24 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL COUNT ( DISTINCT + 24 ) AS col2 FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL - + col0, + 54 * + col2 AS col1, + col1 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT - 2 + col0 * col2 AS col2, + col1 + + col1 + + 54 FROM tab2
----
1056
156
2558
208
4348
188

query I rowsort
SELECT ALL - col0 + - 87 FROM tab1
----
-138
-172
-178

query I rowsort
SELECT col2 + + + col0 FROM tab0 cor0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3985
SELECT DISTINCT + 26 DIV - col2 + - 72 AS col0 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT + 26 / - col2 + - 72 AS col0 FROM tab1 AS cor0
----
-72

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL >= + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT ALL - col0 + - col2 DIV col0 * + col1 - col2 FROM tab0 AS cor0
----
-197
-305
-97

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL - col0 + - col2 / col0 * + col1 - col2 FROM tab0 AS cor0
----
-197
-305
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT + COUNT( * ) + 78 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3988
SELECT + COUNT ( * ) + 78 FROM tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3989
SELECT - - col1 + - 89 + 1 * + ( col1 ) DIV col1 AS col2 FROM tab1 AS cor0
----
-41
-74
-83

skipif mysql # not compatible
query I rowsort label-3989
SELECT - - col1 + - 89 + 1 * + ( col1 ) / col1 AS col2 FROM tab1 AS cor0
----
-41
-74
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3990
SELECT DISTINCT 78 + - col1 DIV col2 AS col0 FROM tab2 AS cor0
----
76
77

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT 78 + - col1 / col2 AS col0 FROM tab2 AS cor0
----
76
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( 16 ) AS col2 FROM tab1 AS cor0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3993
SELECT - MAX( DISTINCT - - CAST( + col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3993
SELECT - MAX ( DISTINCT - - CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3994
SELECT ( col0 ) * col0 + - col0 * - 20 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3994
SELECT ( col0 ) * col0 + - col0 * - 20 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT MIN( col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3995
SELECT MIN ( col0 ) AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3996
SELECT * FROM tab0 WHERE + col0 * - CAST( 29 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3996
SELECT * FROM tab0 WHERE + col0 * - CAST ( 29 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT ALL COUNT( * ) - - - 68 + - - COUNT( * ) FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL COUNT ( * ) - - - 68 + - - COUNT ( * ) FROM tab2
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 WHERE NULL > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT DISTINCT SUM( + col1 ) col1 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3999
SELECT DISTINCT SUM ( + col1 ) col1 FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4000
SELECT CAST( - + col1 AS SIGNED ) - - col1 + - col0 AS col2, 20 FROM tab1
----
-51
20
-85
20
-91
20

skipif mysql # not compatible
query II rowsort label-4000
SELECT CAST ( - + col1 AS INTEGER ) - - col1 + - col0 AS col2, 20 FROM tab1
----
-51
20
-85
20
-91
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4001
SELECT DISTINCT col2 - CAST( NULL AS DECIMAL ) + - - 54 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT col2 - CAST ( NULL AS REAL ) + - - 54 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 11 + + 41 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - 84 + + 31 FROM tab2 AS cor0
----
-7
11
22

query II rowsort
SELECT + + ( + 45 ) * - col0 * + col0 AS col0, col0 AS col2 FROM tab0 AS cor0 WHERE col1 * - + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - + - 94 AS col0 FROM tab0
----
109
181
191

query I rowsort
SELECT DISTINCT + 28 - 31 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4007
SELECT col2 DIV - - col0 AS col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4007
SELECT col2 / - - col0 AS col0 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT DISTINCT - + 40 * - col0 - - 63 AS col1 FROM tab2 AS cor0
----
1903
2623
3063

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT COUNT( ALL - 34 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4009
SELECT COUNT ( ALL - 34 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4010
SELECT ALL - - CAST( NULL AS SIGNED ) * 21 * - 94 * - 23 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL - - CAST ( NULL AS INTEGER ) * 21 * - 94 * - 23 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4011
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN - col0 / col2 * - 93 AND CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4011
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN - col0 / col2 * - 93 AND CAST ( - col2 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 >= + 3
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - 51 ) FROM tab0 AS cor0
----
-51
-51
-51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4014
SELECT CAST( - + col2 AS SIGNED ) DIV + ( + col0 ) FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4014
SELECT CAST ( - + col2 AS INTEGER ) / + ( + col0 ) FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT - COUNT( ALL 56 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4015
SELECT - COUNT ( ALL 56 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4016
SELECT SUM( DISTINCT + 88 ) DIV 76 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4016
SELECT SUM ( DISTINCT + 88 ) / 76 AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT ALL MIN( - + col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL MIN ( - + col1 ) AS col2 FROM tab1
----
-47

query I rowsort
SELECT DISTINCT col1 * + 89 * + col1 AS col1 FROM tab0
----
39249
583929
89

query II rowsort
SELECT 36, - 60 AS col0 FROM tab0
----
36
-60
36
-60
36
-60

query I rowsort
SELECT DISTINCT + 75 * 41 AS col1 FROM tab0
----
3075

query I rowsort
SELECT DISTINCT + 70 * col1 AS col1 FROM tab2
----
3570
4690
5390

query I rowsort
SELECT ALL 40 * - col1 FROM tab2
----
-2040
-2680
-3080

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 - + col0 <= + 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col1 * - col1, col2 FROM tab0
----
1
99
441
10
6561
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4025
SELECT + - 28 / + ( CAST( NULL AS SIGNED ) ) + 3 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4025
SELECT + - 28 / + ( CAST ( NULL AS INTEGER ) ) + 3 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col2 + col0 AS col2 FROM tab2 AS cor0 WHERE ( col0 ) BETWEEN col1 + - ( + col1 ) - - col1 AND + col0 + - 44
----

query I rowsort
SELECT 75 + 77 + col2 FROM tab2 AS cor0
----
175
192
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - - col1 * col0 col1 FROM tab1 AS cor0
----
366
4209
618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + col0 col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT ALL 77 - + 12 FROM tab0
----
65
65
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4031
SELECT + CAST( NULL AS DECIMAL ) + + MAX( ( + - col2 ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4031
SELECT + CAST ( NULL AS REAL ) + + MAX ( ( + - col2 ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4032
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1, - col2 AS col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-4032
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1, - col2 AS col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

query II rowsort
SELECT DISTINCT col1, - col2 AS col0 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4034
SELECT + 51 DIV + + 52 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4034
SELECT + 51 / + + 52 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - + 44 / - - col0 * col2 AS col1 FROM tab0 WHERE NOT ( NOT + 45 / - col2 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 + col0 * + - 46 + + col0 col2 FROM tab2 AS cor0
----
-2162
-3008
-3525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - ( + + 1 ) col1 FROM tab1 AS cor0 WHERE NULL <= col1 + + 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT 64 - - + COUNT( * ) FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-4038
SELECT 64 - - + COUNT ( * ) FROM tab1 AS cor0
----
67

query I rowsort
SELECT ALL + 8 * + + 82 + + 7 - + 3 AS col1 FROM tab1 AS cor0
----
660
660
660

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT DISTINCT - COUNT( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col2 - + 49 AS col2 FROM tab2
----
-26
-9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 col2 FROM tab0 WHERE ( NULL ) IS NULL
----
79
79
79

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + 25 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT + COUNT( + col2 ) AS col1 FROM tab0 WHERE NOT col1 / col0 NOT IN ( + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-4044
SELECT + COUNT ( + col2 ) AS col1 FROM tab0 WHERE NOT col1 / col0 NOT IN ( + 80 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT DISTINCT + COUNT( - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT + COUNT ( - col0 ) FROM tab2
----
3

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( - col1 ) NOT BETWEEN - col2 AND ( - 84 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT DISTINCT col1 DIV - 57 + + col2 col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4047
SELECT DISTINCT col1 / - 57 + + col2 col0 FROM tab1
----
59
68
96

query I rowsort
SELECT col2 * 71 + col0 FROM tab1
----
4274
4919
6867

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4049
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( - 33 * ( CAST( + col0 AS DECIMAL ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( - 33 * ( CAST ( + col0 AS REAL ) ) )
----
0

query I rowsort
SELECT DISTINCT + 73 FROM tab0 WHERE NOT 10 * + col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 <> ( - 49 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT + 90 - + SUM( + 44 ) col1 FROM tab2 WHERE NULL IS NULL
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4052
SELECT + 90 - + SUM ( + 44 ) col1 FROM tab2 WHERE NULL IS NULL
----
-42

query I rowsort
SELECT - col2 + 89 * col0 AS col1 FROM tab1
----
4443
7506
8031

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL 1 * + COUNT( * ) col0 FROM tab2 WHERE NOT NULL BETWEEN ( col0 ) * + 42 + + col1 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4054
SELECT ALL 1 * + COUNT ( * ) col0 FROM tab2 WHERE NOT NULL BETWEEN ( col0 ) * + 42 + + col1 AND NULL
----
0

query I rowsort
SELECT - 22 * - 28 + + col2 AS col0 FROM tab2
----
639
656
674

query I rowsort
SELECT ALL col1 + + col0 FROM tab1 WHERE + 66 / - col0 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col1 + 32 FROM tab1
----
37
46
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4058
SELECT col2 + + col0 * + CAST( - 37 * col1 AS SIGNED ) FROM tab2
----
-182296
-185867
-86779

skipif mysql # not compatible
query I rowsort label-4058
SELECT col2 + + col0 * + CAST ( - 37 * col1 AS INTEGER ) FROM tab2
----
-182296
-185867
-86779

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4059
SELECT + CAST( - 72 AS SIGNED ) FROM tab0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-4059
SELECT + CAST ( - 72 AS INTEGER ) FROM tab0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL + MIN( DISTINCT + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL + MIN ( DISTINCT + col2 ) FROM tab1
----
59

query III rowsort
SELECT * FROM tab0 WHERE NOT 63 * + 26 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + 69 )
----

query I rowsort
SELECT DISTINCT 69 * - col0 FROM tab2 AS cor0
----
-3174
-4416
-5175

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT ALL + COUNT( * ) * + 30 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL + COUNT ( * ) * + 30 FROM tab2 AS cor0
----
90

query I rowsort
SELECT DISTINCT ( 85 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT ALL COUNT( - col0 ) AS col2 FROM tab1 cor0 WHERE NOT ( ( 66 ) * 91 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL COUNT ( - col0 ) AS col2 FROM tab1 cor0 WHERE NOT ( ( 66 ) * 91 ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 * col1 + + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 43 + 52 NOT IN ( + 8 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - col2 col2 FROM tab0 WHERE NOT + col0 * 13 >= ( 99 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4071
SELECT col0 + - col2 DIV - col2 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-4071
SELECT col0 + - col2 / - col2 FROM tab2
----
47
65
76

query I rowsort
SELECT + col2 * 26 AS col0 FROM tab2 AS cor0
----
1040
1508
598

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NULL = - col0 + + ( + ( col1 ) )
----

query I rowsort
SELECT + 48 * - 56 AS col0 FROM tab0 AS cor0 WHERE col2 + col1 * + col2 IS NOT NULL
----
-2688
-2688
-2688

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4075
SELECT * FROM tab1 AS cor0 WHERE + CAST( + ( CAST( - ( col1 ) AS DECIMAL ) ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4075
SELECT * FROM tab1 AS cor0 WHERE + CAST ( + ( CAST ( - ( col1 ) AS REAL ) ) AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + 55 * 12 FROM tab0 AS cor0 WHERE 46 = ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT ALL - 87 * - COUNT( - 10 ) AS col0 FROM tab0 AS cor0 WHERE + 37 * - col0 NOT IN ( - col1 )
----
261

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL - 87 * - COUNT ( - 10 ) AS col0 FROM tab0 AS cor0 WHERE + 37 * - col0 NOT IN ( - col1 )
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT ALL + COUNT( + col2 ) + + 46 AS col2 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL + COUNT ( + col2 ) + + 46 AS col2 FROM tab0 AS cor0
----
49

query I rowsort
SELECT ALL + col2 + + 15 AS col0 FROM tab2 WHERE ( NULL ) > ( NULL )
----

query I rowsort
SELECT DISTINCT 22 FROM tab1 WHERE NOT - 40 * + 94 NOT BETWEEN + 23 + - col0 AND 84
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4081
SELECT DISTINCT - COUNT( + 11 ) DIV + 11 - 52 AS col0 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT - COUNT ( + 11 ) / + 11 - 52 AS col0 FROM tab1
----
-52

query I rowsort
SELECT col2 - col2 + + ( - 93 ) * + col1 AS col2 FROM tab2
----
-4743
-6231
-7161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4083
SELECT - CAST( + 75 AS SIGNED ) AS col2 FROM tab0 WHERE NULL = - 32 + + CAST( NULL AS SIGNED ) * - col1
----

skipif mysql # not compatible
query I rowsort label-4083
SELECT - CAST ( + 75 AS INTEGER ) AS col2 FROM tab0 WHERE NULL = - 32 + + CAST ( NULL AS INTEGER ) * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4084
SELECT 6 - + CAST( - COUNT( * ) AS SIGNED ) + + MIN( ALL col2 ) AS col0 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-4084
SELECT 6 - + CAST ( - COUNT ( * ) AS INTEGER ) + + MIN ( ALL col2 ) AS col0 FROM tab1
----
68

query I rowsort
SELECT + col0 * col1 + - col0 AS col0 FROM tab0
----
0
1200
1740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4086
SELECT ALL + ( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL + ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4087
SELECT DISTINCT 42 DIV + - 39 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT 42 / + - 39 FROM tab2
----
-1

query I rowsort
SELECT 41 AS col1 FROM tab2 cor0 WHERE ( + col2 + col0 * - 32 ) IS NOT NULL
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT DISTINCT COUNT( ALL 50 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT COUNT ( ALL 50 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT DISTINCT + MIN( DISTINCT - 76 ) AS col2 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT + MIN ( DISTINCT - 76 ) AS col2 FROM tab2 AS cor0
----
-76

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( + ( - 97 ) ) ) IN ( + col0 / 65 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 30 + - col1 > 20
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT ( + COUNT( * ) ) AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - - 24 )
----
0

skipif mysql # not compatible
query I rowsort label-4093
SELECT ( + COUNT ( * ) ) AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - - 24 )
----
0

query I rowsort
SELECT ( - - 59 ) AS col0 FROM tab2
----
59
59
59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 12 > ( - col0 )
----

query II rowsort
SELECT - + 25, 31 + + col1 * + col2 AS col1 FROM tab0 AS cor0
----
-25
130
-25
241
-25
3838

query I rowsort
SELECT - + col0 AS col1 FROM tab1 cor0 WHERE NOT col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4098
SELECT - - ( ( - + col1 ) ) DIV col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4098
SELECT - - ( ( - + col1 ) ) / col2 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL 37 * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 / - col0 * col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL 37 * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 / - col0 * col0 <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4100
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 39 * - CAST( NULL AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query III rowsort label-4100
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 39 * - CAST ( NULL AS INTEGER ) * + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4101
SELECT ALL 33 * col1 DIV - 86 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-19
-25
-29

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL 33 * col1 / - 86 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-19
-25
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4102
SELECT - col0 DIV + 9 col1 FROM tab0
----
-1
-10
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4102
SELECT - col0 / + 9 col1 FROM tab0
----
-1
-10
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT MAX( ALL - col2 ) * + 41 * - COUNT( col1 ) AS col0 FROM tab2
----
2829

skipif mysql # not compatible
query I rowsort label-4103
SELECT MAX ( ALL - col2 ) * + 41 * - COUNT ( col1 ) AS col0 FROM tab2
----
2829

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT DISTINCT COUNT( * ) * 20 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT COUNT ( * ) * 20 FROM tab0
----
60

query I rowsort
SELECT + ( col0 ) * + 75 AS col1 FROM tab2 WHERE NOT - col1 * 4 + col0 < NULL
----

query I rowsort
SELECT ALL col1 * + col2 * + col1 * + 99 FROM tab0
----
30528333
436590
9801

query II rowsort
SELECT + 14 * + - col0, col1 - - + 33 AS col2 FROM tab2
----
-1050
100
-644
84
-896
110

query II rowsort
SELECT + col2 + + col2, 12 AS col1 FROM tab2
----
116
12
46
12
80
12

query I rowsort
SELECT 38 + - 58 + col2 - 53 * col2 * col0 AS col1 FROM tab0
----
-37338
-46120
-508880

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4111
SELECT ( - 10 ) * - 66 / + + CAST( NULL AS DECIMAL ) + 55 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT ( - 10 ) * - 66 / + + CAST ( NULL AS REAL ) + 55 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT DISTINCT + - 43 + COUNT( * ) FROM tab0 cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT + - 43 + COUNT ( * ) FROM tab0 cor0
----
-40

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE col0 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT COUNT( * ) * - ( + + COUNT( * ) ) * + 0 + 87 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT COUNT ( * ) * - ( + + COUNT ( * ) ) * + 0 + 87 FROM tab2 AS cor0
----
87

query I rowsort
SELECT col1 * + col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL - COUNT( * ) + + 20 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL - COUNT ( * ) + + 20 FROM tab1 AS cor0
----
17

query I rowsort
SELECT ALL - 59 - + + 46 FROM tab2 AS cor0
----
-105
-105
-105

query I rowsort
SELECT DISTINCT + - col0 * + col0 + + col0 * + + col1 * - col1 * col0 AS col2 FROM tab2 AS cor0
----
-24289280
-25256250
-5505832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4119
SELECT - 24 + - CAST( 53 AS SIGNED ) FROM tab2 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-4119
SELECT - 24 + - CAST ( 53 AS INTEGER ) FROM tab2 AS cor0
----
-77
-77
-77

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT col0 + 73 * - - 48 * - col2 * ( + col2 ) FROM tab2 AS cor0
----
-11787381
-1853570
-5606336

query I rowsort
SELECT DISTINCT - 0 + + col1 AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - 32 * + col2 AS col0 FROM tab2 WHERE ( col2 * - col1 + + - 77 ) IS NOT NULL
----
-1280
-1856
-736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, - col0 col2 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4125
SELECT COUNT( * ) DIV + - COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4125
SELECT COUNT ( * ) / + - COUNT ( * ) AS col1 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4126
SELECT - 46 DIV + col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4126
SELECT - 46 / + col0 FROM tab2 AS cor0
----
-1
0
0

query II rowsort
SELECT + - 72 AS col1, + 76 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to ffbb425b0ffb92a27e82c22403e365a8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4128
SELECT ALL * FROM tab2 cor0 WHERE ( ( + - col2 ) ) BETWEEN CAST( + col0 AS SIGNED ) * + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4128
SELECT ALL * FROM tab2 cor0 WHERE ( ( + - col2 ) ) BETWEEN CAST ( + col0 AS INTEGER ) * + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( - + 49 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( - + 49 ) AND ( NULL )
----
0

query I rowsort
SELECT 68 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 97 col2 FROM tab1 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 20 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4133
SELECT ALL + CAST( - - ( + - COUNT( * ) ) AS SIGNED ) * + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL + CAST ( - - ( + - COUNT ( * ) ) AS INTEGER ) * + COUNT ( * ) FROM tab2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4134
SELECT ALL SUM( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL SUM ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 61 + - 37 <> NULL
----

query II rowsort
SELECT + col0, 24 * 48 FROM tab1
----
51
1152
85
1152
91
1152

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT - 84, COUNT( * ) AS col2 FROM tab2
----
-84
3

skipif mysql # not compatible
query II rowsort label-4137
SELECT - 84, COUNT ( * ) AS col2 FROM tab2
----
-84
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4138
SELECT DISTINCT CAST( - 66 AS SIGNED ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT CAST ( - 66 AS INTEGER ) FROM tab0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL MIN( ALL - col0 ) col0 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4139
SELECT ALL MIN ( ALL - col0 ) col0 FROM tab2
----
-75

query I rowsort
SELECT ALL + + 67 + + col2 AS col0 FROM tab1 AS cor0
----
126
135
163

query I rowsort
SELECT - col2 * + 18 + + + col0 AS col1 FROM tab1 AS cor0
----
-1133
-1677
-977

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 31 * - col0 * - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 42 * + - col2 + + 9 + + col0 AS col2 FROM tab0 AS cor0
----
1998
4264
516

query I rowsort
SELECT - 63 * + - col2 FROM tab1
----
3717
4284
6048

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 / - ( + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT DISTINCT CAST( NULL AS SIGNED ) + 89 + 73 * - + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 89 + 73 * - + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT DISTINCT + + COUNT( * ) + - COUNT( DISTINCT - col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT + + COUNT ( * ) + - COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * + + 8 * - col1 IS NULL
----

query I rowsort
SELECT - col0 - + col0 * - 91 FROM tab1 AS cor0
----
4590
7650
8190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4150
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) - - ( - col1 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) - - ( - col1 ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 43 * - col0 * col1 - + ( - col2 ) AS col2 FROM tab2
----
100901
211944
216133

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE - ( col0 ) - - col1 NOT BETWEEN + col1 * + - col0 - + col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - col2 + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - + col2 ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4155
SELECT * FROM tab0 WHERE NOT - 97 > ( - col0 / + 10 * 27 * + - CAST( + col0 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4155
SELECT * FROM tab0 WHERE NOT - 97 > ( - col0 / + 10 * 27 * + - CAST ( + col0 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT - 74 <= ( col1 )
----

query I rowsort
SELECT ALL + col1 * + col2 * col1 AS col2 FROM tab0
----
308367
4410
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - 21 col1 FROM tab1 AS cor0
----
105
294
987

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < col1
----

query II rowsort
SELECT + 62, col1 AS col1 FROM tab0
----
62
1
62
21
62
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4161
SELECT - 85 AS col0, - 22 + + + col1 DIV + 66 FROM tab1
----
-85
-22
-85
-22
-85
-22

skipif mysql # not compatible
query II rowsort label-4161
SELECT - 85 AS col0, - 22 + + + col1 / + 66 FROM tab1
----
-85
-22
-85
-22
-85
-22

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT NULL > col0
----

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= ( - col0 * col2 * 97 * + 44 * + - 80 )
----

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT + - 67 AS col0, - 37 FROM tab2 AS cor0
----
-67
-37
-67
-37
-67
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT - COUNT( * ) + - - COUNT( DISTINCT - - col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT DISTINCT + MAX( ALL 71 ) FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT + MAX ( ALL 71 ) FROM tab1 AS cor0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4168
SELECT - COUNT( * ), AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4168
SELECT - COUNT ( * ), AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT - CAST( + col2 AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4169
SELECT - CAST ( + col2 AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * + + 77 + + col0 FROM tab1 cor0
----
3978
6630
7098

query II rowsort
SELECT + col2 AS col0, col2 * + col0 FROM tab2 AS cor0
----
23
1058
40
2560
58
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT + 40 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-4172
SELECT + 40 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4173
SELECT ALL CAST( NULL AS SIGNED ) + + + col0 col2, + 23 FROM tab1 cor0
----
NULL
23
NULL
23
NULL
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4173
SELECT ALL CAST ( NULL AS INTEGER ) + + + col0 col2, + 23 FROM tab1 cor0
----
NULL
23
NULL
23
NULL
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4174
SELECT col2 * + CAST( NULL AS SIGNED ) * - 98 * - - 15 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4174
SELECT col2 * + CAST ( NULL AS INTEGER ) * - 98 * - - 15 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 - col1 col1 FROM tab0
----
-105
-25
-45

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col2 IS NOT NULL AND NULL IN ( + 82 )
----

query I rowsort
SELECT 48 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + 84 FROM tab0 AS cor0
----
1260
7308
8148

query I rowsort
SELECT ALL + col0 * - 55 AS col1 FROM tab2 AS cor0
----
-2530
-3520
-4125

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT COUNT( * ) + + - 19 AS col2 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT COUNT ( * ) + + - 19 AS col2 FROM tab2 AS cor0
----
-16

query I rowsort
SELECT ALL - 85 * - 5 AS col2 FROM tab1 AS cor0
----
425
425
425

query II rowsort
SELECT ALL + + col2 AS col0, col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE - col1 * + + col2 + + + 23 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + - ( + col2 ) AS col2 FROM tab0
----
100
2209
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + ( col2 ) ) * + ( + col0 ) col1 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT ALL col0 * 95 AS col1 FROM tab2
----
4370
6080
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT SUM( ALL - 23 ) col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4187
SELECT SUM ( ALL - 23 ) col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 15 * col1 * + col2 AS col1 FROM tab0 AS cor0
----
1485
3150
57105

query I rowsort
SELECT + 87 * - + col0 + - + col2 FROM tab0 AS cor0
----
-1352
-7579
-8538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4190
SELECT ALL CAST( NULL AS SIGNED ) * 70 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL CAST ( NULL AS INTEGER ) * 70 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 13 ) * + - col1 * 73 - - col0 AS col1 FROM tab0
----
-19842
-76854
-852

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4192
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST( CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4192
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL + 50 + COUNT( * ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL + 50 + COUNT ( * ) FROM tab2 AS cor0
----
53

query I rowsort
SELECT + col0 + ( + 79 ) - + 21 * - col2 * + - 9 * + col2 FROM tab1 AS cor0
----
-1741694
-657745
-873766

query I rowsort
SELECT + col0 * + col0 + - 39 FROM tab1 AS cor0
----
2562
7186
8242

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col0 > - 77
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 81 + - - 70 AS col1 FROM tab1 AS cor0
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - - ( - col2 ) col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4199
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + CAST( col2 AS SIGNED ) <> + - 22 * + - col2
----

skipif mysql # not compatible
query III rowsort label-4199
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + CAST ( col2 AS INTEGER ) <> + - 22 * + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT ALL + MIN( + 66 ) FROM tab0 WHERE NOT + + col2 IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL + MIN ( + 66 ) FROM tab0 WHERE NOT + + col2 IS NULL
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT 66 * COUNT( * ) FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-4201
SELECT 66 * COUNT ( * ) FROM tab0
----
198

query I rowsort
SELECT + 69 * - - 77 FROM tab1
----
5313
5313
5313

query I rowsort
SELECT col2 FROM tab0 WHERE ( + 88 ) BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4204
SELECT DISTINCT - ( CAST( NULL AS DECIMAL ) ) * + col1 + 55 * col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT - ( CAST ( NULL AS REAL ) ) * + col1 + 55 * col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT - 98 + - SUM( + col1 ) col1 FROM tab2 AS cor0
----
-293

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4205
SELECT - 98 + - SUM ( + col1 ) col1 FROM tab2 AS cor0
----
-293

query I rowsort
SELECT ALL + + 78 + - + col0 FROM tab1 AS cor0
----
-13
-7
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT DISTINCT COUNT( ALL - - col0 ) - - 42 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT COUNT ( ALL - - col0 ) - - 42 FROM tab0 AS cor0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4208
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) - COUNT( * ) AS col0 FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) - COUNT ( * ) AS col0 FROM tab0 cor0
----
-6

query II rowsort
SELECT ALL 8 * + 13, + col0 + col2 AS col1 FROM tab1
----
104
144
104
147
104
159

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - + ( - 7 ), col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4211
SELECT ( CAST( NULL AS DECIMAL ) ), col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4211
SELECT ( CAST ( NULL AS REAL ) ), col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4212
SELECT ALL + - 75 * col2 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL + - 75 * col2 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT DISTINCT MIN( + - ( - + col2 ) ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT MIN ( + - ( - + col2 ) ) AS col0 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT - - COUNT( DISTINCT + 14 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4214
SELECT - - COUNT ( DISTINCT + 14 ) AS col2 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 19 * col0 - - col2, - col2 col0 FROM tab2 cor0
----
-1176
-40
-1367
-58
-851
-23

query I rowsort
SELECT ALL - 59 FROM tab1 AS cor0 WHERE NULL >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL MAX( - 23 ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL MAX ( - 23 ) FROM tab1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL SUM( ALL + + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL SUM ( ALL + + col2 ) FROM tab0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, - 95 AS col2 FROM tab2
----
-51
-95
-67
-95
-77
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-4220
SELECT DISTINCT + col1 * + col1 * col0 DIV - col1 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT + col1 * + col1 * col0 / - col1 FROM tab2
----
-2346
-4928
-5025

query II rowsort
SELECT col2, 56 FROM tab2
----
23
56
40
56
58
56

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 42 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 / - + col1 * + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 / - + col1 * + col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 81 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + 45 AND NULL
----

query I rowsort
SELECT 70 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
70
70
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4227
SELECT DISTINCT + - 83 DIV - - 57 + COUNT( * ) + - 17 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT + - 83 / - - 57 + COUNT ( * ) + - 17 FROM tab1 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4228
SELECT + col0 DIV col0 DIV + ( 75 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4228
SELECT + col0 / col0 / + ( 75 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4229
SELECT col2 DIV - 86 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4229
SELECT col2 / - 86 AS col2 FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4230
SELECT DISTINCT + ( - col2 ) col0, + 65 DIV + 99 * 26 col2 FROM tab1
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4230
SELECT DISTINCT + ( - col2 ) col0, + 65 / + 99 * 26 col2 FROM tab1
----
-59
0
-68
0
-96
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 * + col2 col1 FROM tab0
----
3478
7326
740

query I rowsort
SELECT - + ( - 38 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT DISTINCT COUNT( * ) + + 23 * + 28 AS col1 FROM tab0 cor0
----
647

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT COUNT ( * ) + + 23 * + 28 AS col1 FROM tab0 cor0
----
647

onlyif mysql # aggregate syntax: 
query II rowsort label-4234
SELECT ALL 12 + COUNT( * ) col1, - 57 FROM tab2 AS cor0
----
15
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4234
SELECT ALL 12 + COUNT ( * ) col1, - 57 FROM tab2 AS cor0
----
15
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-4235
SELECT - COUNT( DISTINCT 12 ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1
3

skipif mysql # not compatible
query II rowsort label-4235
SELECT - COUNT ( DISTINCT 12 ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1
3

query II rowsort
SELECT 19 * - col1 + + + col1 * col1 - - + col2 + - 92 * + col0 AS col1, col2 + col1 FROM tab2 AS cor0
----
-1382
117
-2577
74
-3626
125

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 74 col2 FROM tab1
----
27
60
69

query I rowsort
SELECT DISTINCT 31 * - 34 FROM tab2
----
-1054

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT ( - MIN( + - 96 ) ) + 99 AS col1 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-4240
SELECT ( - MIN ( + - 96 ) ) + 99 AS col1 FROM tab0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, - 65 AS col0 FROM tab0
----
10
-65
47
-65
99
-65

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - ( + col0 )
----

query I rowsort
SELECT - 60 + col0 - + col0 AS col0 FROM tab2
----
-60
-60
-60

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + col2, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT DISTINCT 48 * - - COUNT( 36 ) col1 FROM tab0
----
144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4245
SELECT DISTINCT 48 * - - COUNT ( 36 ) col1 FROM tab0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-4246
SELECT ALL + col1 DIV + - 8 AS col0 FROM tab2
----
-6
-8
-9

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL + col1 / + - 8 AS col0 FROM tab2
----
-6
-8
-9

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4248
SELECT DISTINCT + ( + col2 ) + - 26 DIV - - 76 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT + ( + col2 ) + - 26 / - - 76 FROM tab2
----
23
40
58

query II rowsort
SELECT DISTINCT - col0 - + ( - ( - col2 ) ) AS col2, + col1 - - - col1 - - - 84 AS col2 FROM tab0
----
-196
-84
-62
-84
-97
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - + COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-4250
SELECT - + COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

query I rowsort
SELECT + col1 * - - col2 + + ( - 35 ) FROM tab2 AS cor0
----
1138
3045
3851

query I rowsort
SELECT DISTINCT 33 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 12 + - col1 * + - col0 * col0 AND + + ( - 64 ) - col1 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col2 col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4254
SELECT - + COUNT( * ) AS col0, 46 FROM tab2 cor0
----
-3
46

skipif mysql # not compatible
query II rowsort label-4254
SELECT - + COUNT ( * ) AS col0, 46 FROM tab2 cor0
----
-3
46

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN - col1 + 0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 * col1 IS NULL
----

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT ( - - col1 ) IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT ALL MIN( col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL MIN ( col1 ) AS col0 FROM tab2
----
51

query I rowsort
SELECT DISTINCT col2 + col2 + - col0 AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
-67
101
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4260
SELECT MAX( - col2 ) * + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT MAX ( - col2 ) * + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 + + col1 - - col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
-23
-75
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT + CAST( + 6 AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

skipif mysql # not compatible
query I rowsort label-4262
SELECT + CAST ( + 6 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT col2 + 85 FROM tab2
----
108
125
143

query I rowsort
SELECT + col1 - - col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT + COUNT( - + 6 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4265
SELECT + COUNT ( - + 6 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4266
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT COUNT( DISTINCT - 52 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4267
SELECT COUNT ( DISTINCT - 52 ) FROM tab1 cor0
----
1

query I rowsort
SELECT ALL col0 + col1 + - 29 + + 61 FROM tab0 AS cor0
----
128
130
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4269
SELECT + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4269
SELECT + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4270
SELECT ( + CAST( NULL AS SIGNED ) ) * - ( - col0 ) + - col1 + 92 FROM tab2 WHERE + + col1 + - - 1 + - + col0 NOT BETWEEN ( + - col1 ) AND col2 * + 60 / 59
----

skipif mysql # not compatible
query I rowsort label-4270
SELECT ( + CAST ( NULL AS INTEGER ) ) * - ( - col0 ) + - col1 + 92 FROM tab2 WHERE + + col1 + - - 1 + - + col0 NOT BETWEEN ( + - col1 ) AND col2 * + 60 / 59
----

query III rowsort
SELECT * FROM tab1 WHERE 98 IN ( + - ( - - 49 ), 2, col2, - col2 * col2 )
----

query I rowsort
SELECT - 10 * + 16 FROM tab2
----
-160
-160
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL - MIN( DISTINCT + ( col0 ) ) AS col0 FROM tab0 WHERE ( NOT col0 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL - MIN ( DISTINCT + ( col0 ) ) AS col0 FROM tab0 WHERE ( NOT col0 IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ALL + - ( - SUM( ALL + 14 ) ) + - COUNT( * ) FROM tab2 WHERE NOT + col2 * - 45 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL + - ( - SUM ( ALL + 14 ) ) + - COUNT ( * ) FROM tab2 WHERE NOT + col2 * - 45 <> NULL
----
NULL

query I rowsort
SELECT + 77 - - col2 + + col1 * + col2 AS col2 FROM tab2
----
1273
3197
4021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * + col1 - col0 + - - 41 + - - 41 * col2 * - col2 col1 FROM tab0
----
-3852
-401883
-89409

query I rowsort
SELECT + + 91 FROM tab0, tab2 AS cor0 WHERE NULL IS NULL
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT + col0 * col2 - + col0 AS col1 FROM tab1
----
4845
4930
6097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4279
SELECT DISTINCT + CAST( col1 AS SIGNED ) * + col2 AS col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * + col2 AS col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT col2 * - + col2 * + + 50 + - - 43 + col0 AS col2 FROM tab2 AS cor0
----
-168082
-26361
-79893

query I rowsort
SELECT ALL + - col1 * + col1 + - 40 + + col2 + - col1 FROM tab2 AS cor0
----
-2669
-4538
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT - COUNT( 17 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4282
SELECT - COUNT ( 17 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - - 77 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4284
SELECT + 3 * COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT + 3 * COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + col0 = + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + - ( col2 ) AS col0 FROM tab1 cor0 WHERE NOT NULL NOT IN ( col2, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT + ( + - SUM( col1 ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4287
SELECT + ( + - SUM ( col1 ) ) FROM tab2 AS cor0
----
-195

query II rowsort
SELECT + 23 AS col2, - 40 FROM tab1
----
23
-40
23
-40
23
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4289
SELECT DISTINCT + COUNT( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT + COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4290
SELECT DISTINCT COUNT( * ) DIV + 7 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT COUNT ( * ) / + 7 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4291
SELECT - CAST( - + AVG ( col0 ) AS SIGNED ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-4291
SELECT - CAST ( - + AVG ( col0 ) AS INTEGER ) FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4292
SELECT ALL - COUNT( * ) AS col1, COUNT( * ) + + 70 AS col2 FROM tab1
----
-3
73

skipif mysql # not compatible
query II rowsort label-4292
SELECT ALL - COUNT ( * ) AS col1, COUNT ( * ) + + 70 AS col2 FROM tab1
----
-3
73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 96 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT + 0 DIV - col1 + - col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4294
SELECT + 0 / - col1 + - col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT col2 + + - 83 - col1 AS col2 FROM tab2
----
-111
-120
-92

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 77 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 * - col2 + + 2 / + col1 / col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 * - col2 + + 2 / + col1 / col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL - + MAX( + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL - + MAX ( + col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT + ( col2 ) * - col0 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-4300
SELECT 8 DIV - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4300
SELECT 8 / - col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT 33 * + MIN( col2 ) col1 FROM tab2
----
759

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4301
SELECT 33 * + MIN ( col2 ) col1 FROM tab2
----
759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4302
SELECT COUNT( 67 ) + - + 8 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT COUNT ( 67 ) + - + 8 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 + 59 FROM tab2 AS cor0
----
110
126
136

query I rowsort
SELECT DISTINCT - col0 + + 99 FROM tab0 cor0
----
12
2
84

query I rowsort
SELECT DISTINCT + - 44 + - 41 * + 32 AS col1 FROM tab1 AS cor0
----
-1356

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT DISTINCT - COUNT( * ) + + + ( + COUNT( DISTINCT col1 ) ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT - COUNT ( * ) + + + ( + COUNT ( DISTINCT col1 ) ) FROM tab0 cor0
----
0

query II rowsort
SELECT ALL col1 - + col2 AS col2, + col1 - - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-98
1
11
21
34
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT + + MIN( DISTINCT - col0 ) + MAX( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4308
SELECT + + MIN ( DISTINCT - col0 ) + MAX ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 + - col2 BETWEEN col1 AND + - 47 / + + col1 + + col0
----

query I rowsort
SELECT 76 AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL ( + + col0 ) - 85 AS col0 FROM tab2 AS cor0
----
-10
-21
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4312
SELECT + col2 + - + ( + CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT + col2 + - + ( + CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT + COUNT( * ) + - + 43 col0 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4313
SELECT + COUNT ( * ) + - + 43 col0 FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL MAX( ALL + 30 ) - - - 89 AS col0 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL MAX ( ALL + 30 ) - - - 89 AS col0 FROM tab0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col0, col1 col2 FROM tab0
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - ( + 0 ) ) AS col2, col2 * - - 44 * - col2 col2 FROM tab2
----
0
-148016
0
-23276
0
-70400

onlyif mysql # DIV for integer division: 
query I rowsort label-4317
SELECT DISTINCT col0 * + 45 - col0 DIV + 62 + 45 + - col1 AS col2 FROM tab2
----
2064
2847
3352

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT col0 * + 45 - col0 / + 62 + 45 + - col1 AS col2 FROM tab2
----
2064
2847
3352

query I rowsort
SELECT DISTINCT - col0 * - 54 * 62 AS col0 FROM tab1
----
170748
284580
304668

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - 12 ) < 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4320
SELECT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ALL ( 52 ) FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT 87 * + 11 AS col1 FROM tab1
----
957

query I rowsort
SELECT ALL 87 + + 25 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
112
112
112

query I rowsort
SELECT + 82 * + col0 AS col1 FROM tab1 AS cor0
----
4182
6970
7462

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT - + ( - - col2 ) DIV col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4325
SELECT - + ( - - col2 ) / col2 FROM tab0 cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 6 ) + col0 * 85 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4327
SELECT - + CAST( NULL AS DECIMAL ) * - col2 * - CAST( + 4 AS SIGNED ) * + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT - + CAST ( NULL AS REAL ) * - col2 * - CAST ( + 4 AS INTEGER ) * + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ( + SUM( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4329
SELECT ( + SUM ( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 = + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL MAX( ALL + - col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL MAX ( ALL + - col0 ) AS col0 FROM tab1
----
-51

query II rowsort
SELECT + col0 AS col2, - col0 AS col2 FROM tab1
----
51
-51
85
-85
91
-91

query II rowsort
SELECT + 51 AS col2, - col2 FROM tab0
----
51
-10
51
-47
51
-99

query I rowsort
SELECT ALL - 6 + + col0 * - ( - col1 ) FROM tab0
----
1209
1821
91

query I rowsort
SELECT ALL + ( + col2 ) + + 32 * - - col1 FROM tab2 AS cor0
----
1655
2202
2504

query I rowsort
SELECT DISTINCT - col2 + 3 AS col2 FROM tab1 AS cor0
----
-56
-65
-93

query I rowsort
SELECT DISTINCT + + col1 + 1 AS col0 FROM tab1 AS cor0
----
15
48
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + - col2 * - col0 * - ( - + 60 ) AS col0 FROM tab0 AS cor0
----
42285
52113
576083

query I rowsort
SELECT ALL + col1 + + col0 * - 88 AS col0 FROM tab0 cor0
----
-1239
-7635
-8535

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT DISTINCT + MIN( DISTINCT - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT + MIN ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4343
SELECT DISTINCT COUNT( + + CAST( - col1 AS SIGNED ) ) + + - COUNT( DISTINCT - 4 ) * + COUNT( DISTINCT - col0 ) AS col2, CAST( NULL AS SIGNED ) * 75 AS col2 FROM tab1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4343
SELECT DISTINCT COUNT ( + + CAST ( - col1 AS INTEGER ) ) + + - COUNT ( DISTINCT - 4 ) * + COUNT ( DISTINCT - col0 ) AS col2, CAST ( NULL AS INTEGER ) * 75 AS col2 FROM tab1
----
0
NULL

query II rowsort
SELECT DISTINCT 81 AS col1, + col0 FROM tab1 cor0
----
81
51
81
85
81
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4345
SELECT col2 DIV + - col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4345
SELECT col2 / + - col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + + ( col0 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4347
SELECT * FROM tab1 AS cor0 WHERE CAST( + col0 AS DECIMAL ) + - 49 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4347
SELECT * FROM tab1 AS cor0 WHERE CAST ( + col0 AS REAL ) + - 49 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 - - col1 FROM tab1 WHERE NOT - ( + + 77 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - - 87 * + col0 col1 FROM tab1
----
-4386
-7310
-7826

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT DISTINCT 36 * COUNT( DISTINCT + - 98 ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT 36 * COUNT ( DISTINCT + - 98 ) FROM tab0
----
36

query I rowsort
SELECT col0 * + 70 AS col1 FROM tab0
----
1050
6090
6790

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - col2 AND col0 + + + col0 + col0 * - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT + 69 DIV - col0 AS col2 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4353
SELECT + 69 / - col0 AS col2 FROM tab0
----
-4
0
0

query I rowsort
SELECT - + 14 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT + + col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4356
SELECT DISTINCT + + col0 DIV - + col2 AS col0 FROM tab2 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT + + col0 / - + col2 AS col0 FROM tab2 cor0
----
-1
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4357
SELECT DISTINCT - ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT - ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 98 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL - col2, - col2 * 54 AS col1 FROM tab0 AS cor0
----
-10
-540
-47
-2538
-99
-5346

query I rowsort
SELECT 68 * col0 * + col0 - - col0 - + col2 - - col0 * - col2 FROM tab1 AS cor0
----
171927
486311
556943

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - col2 * + 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT ALL + - COUNT( ALL + 59 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL + - COUNT ( ALL + 59 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT - - col1 <> - - 32 * col2 - + col2 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL + COUNT( * ) * - 90 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL + COUNT ( * ) * - 90 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col0, - col2 + - 98 col1 FROM tab0 WHERE NOT ( + + col2 / - + 57 ) BETWEEN col0 AND 71
----
-1
-197
-21
-108
-81
-145

query I rowsort
SELECT ALL - ( col1 ) * - + ( + - col2 ) + - 10 + + col2 + - col2 * + - col2 * - 40 AS col2 FROM tab2
----
-138398
-22320
-67050

query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4369
SELECT ALL + col1 + - 17 DIV col1 + + col1 - col2 - - col2 FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL + col1 + - 17 / col1 + + col1 - col2 - - col2 FROM tab2 AS cor0
----
102
134
154

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + - 84 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 60 AS col2 FROM tab2 cor0
----
-60
-60
-60

query I rowsort
SELECT - col1 * - - 22 AS col2 FROM tab1
----
-1034
-110
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT + ( + + COUNT( * ) ) - 98 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-4373
SELECT + ( + + COUNT ( * ) ) - 98 FROM tab2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4374
SELECT DISTINCT + col1 + + col2 * - + col0 AS col1, + CAST( 66 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1007
66
-2483
66
-4283
66

skipif mysql # not compatible
query II rowsort label-4374
SELECT DISTINCT + col1 + + col2 * - + col0 AS col1, + CAST ( 66 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1007
66
-2483
66
-4283
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4375
SELECT DISTINCT + + ( + - col0 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT + + ( + - col0 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT ALL + 46 + + COUNT( col2 ) * + 79 FROM tab0 AS cor0
----
283

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL + 46 + + COUNT ( col2 ) * + 79 FROM tab0 AS cor0
----
283

query I rowsort
SELECT + col1 + ( - col0 ) * + col1 AS col1 FROM tab0 cor0
----
-1134
-1806
-96

query I rowsort
SELECT ALL - - 52 + - 96 FROM tab0 AS cor0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT ALL 98 - + COUNT( * ) col0 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4379
SELECT ALL 98 - + COUNT ( * ) col0 FROM tab2 AS cor0
----
95

query I rowsort
SELECT DISTINCT + - col1 - col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4381
SELECT - SUM( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT - SUM ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT col2 AS col2, - col0 + + - ( col0 ) FROM tab2
----
23
-92
40
-128
58
-150

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + col1 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4384
SELECT - col2 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4384
SELECT - col2 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT COUNT( DISTINCT ( - 14 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4385
SELECT COUNT ( DISTINCT ( - 14 ) ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT - col0 + + - 63 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT 5 AS col2, col0 AS col0 FROM tab1
----
5
51
5
85
5
91

query I rowsort
SELECT DISTINCT + 60 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4389
SELECT + + col1, 52 + - - col2 * col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
1
151
21
62
81
99

skipif mysql # not compatible
query II rowsort label-4389
SELECT + + col1, 52 + - - col2 * col2 / + col2 AS col2 FROM tab0 AS cor0
----
1
151
21
62
81
99

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 27 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query II rowsort
SELECT DISTINCT 48 AS col2, 3 * - ( 8 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
48
-24

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT NULL > - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + ( COUNT( * ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4393
SELECT + ( COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT col0 * + 68 + + col2 FROM tab0 cor0
----
1067
5926
6695

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 + ( - - col2 ) * - + 52 col1 FROM tab0 cor0
----
-310
-5049
1363

query I rowsort
SELECT ALL - - ( 18 ) FROM tab2 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT + - COUNT( * ) AS col0 FROM tab0 WHERE + ( - + col1 ) >= - col0
----
-2

skipif mysql # not compatible
query I rowsort label-4397
SELECT + - COUNT ( * ) AS col0 FROM tab0 WHERE + ( - + col1 ) >= - col0
----
-2

query I rowsort
SELECT ALL col1 * 59 FROM tab2
----
3009
3953
4543

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4399
SELECT + MIN( + col2 ) DIV - - 33 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4399
SELECT + MIN ( + col2 ) / - - 33 AS col0 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE NOT col2 * - 52 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE NOT col2 * - 52 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE - col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4401
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE - col1 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL 19 * + 54 FROM tab1
----
1026
1026
1026

query I rowsort
SELECT DISTINCT + 88 + col2 AS col1 FROM tab2
----
111
128
146

query II rowsort
SELECT ALL - col1 + col0 - col2, col1 FROM tab2
----
-28
51
-50
67
-53
77

query I rowsort
SELECT + 53 + col2 * - + col2 * 34 AS col0 FROM tab1 AS cor0
----
-118301
-157163
-313291

query I rowsort
SELECT - + col1 + + 12 + + - col1 FROM tab0 AS cor0
----
-150
-30
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4407
SELECT ALL - - col2 + + CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL - - col2 + + CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT - 64 + - SUM( DISTINCT - 15 ) FROM tab1, tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-4408
SELECT - 64 + - SUM ( DISTINCT - 15 ) FROM tab1, tab1 AS cor0
----
-49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 46 - + 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 25 * col1 - col1 FROM tab1 AS cor0
----
-1222
-130
-364

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 92 * + col2 + - col2 + col1 < - 3 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - + 39 ) FROM tab0 AS cor0
----
-39
-39
-39

query II rowsort
SELECT col0 AS col1, 59 AS col2 FROM tab0
----
15
59
87
59
97
59

query III rowsort
SELECT * FROM tab1 WHERE NOT 88 * - col2 / + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 56 * + col0 * + - 56 AS col0 FROM tab2
----
144256
200704
235200

onlyif mysql # DIV for integer division: 
query I rowsort label-4417
SELECT DISTINCT col0 DIV + 42 AS col1 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT col0 / + 42 AS col1 FROM tab1
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4418
SELECT ALL + 43 * - col0 * col2 DIV col0 * 79 FROM tab1
----
-200423
-230996
-326112

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL + 43 * - col0 * col2 / col0 * 79 FROM tab1
----
-200423
-230996
-326112

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + + col2 ) = - col1 * - col0 + + 8
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4420
SELECT DISTINCT MAX( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT col1 <= + CAST( - - ( + + col0 ) AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT MAX ( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT col1 <= + CAST ( - - ( + + col0 ) AS INTEGER )
----
-47

query II rowsort
SELECT ALL - 27 AS col2, ( + col1 ) * 13 + + 51 * - 49 AS col1 FROM tab0
----
-27
-1446
-27
-2226
-27
-2486

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT DISTINCT + 6 * - SUM( + - 25 ) FROM tab1
----
450

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT + 6 * - SUM ( + - 25 ) FROM tab1
----
450

query I rowsort
SELECT + + 72 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL - col2 + + col2 - - col1 AS col0 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE 26 + + 27 + + 28 + + col1 / + + col0 = NULL
----

query I rowsort
SELECT ALL + col1 + - 41 AS col2 FROM tab0 AS cor0
----
-20
-40
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4427
SELECT ALL COUNT( * ) * + + COUNT( DISTINCT - col1 ) DIV + 89 + MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL COUNT ( * ) * + + COUNT ( DISTINCT - col1 ) / + 89 + MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT + col0 + + + col2 AS col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT DISTINCT + + COUNT( * ) + + 12 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT + + COUNT ( * ) + + 12 FROM tab2 AS cor0
----
15

query I rowsort
SELECT - col1 + - col0 * - col2 * + - col0 AS col1 FROM tab2 AS cor0
----
-163917
-326317
-48719

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 55 + col0 - - col0 col1 FROM tab2
----
124
143
147

query I rowsort
SELECT ALL - col2 * - col0 * col2 + - col0 FROM tab1
----
295800
420693
469965

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4433
SELECT ALL + col2 * CAST( NULL AS SIGNED ) AS col2, 36 DIV - col0 FROM tab0
----
NULL
-2
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-4433
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) AS col2, 36 / - col0 FROM tab0
----
NULL
-2
NULL
0
NULL
0

query I rowsort
SELECT - col1 + - + col2 * 15 * + col1 AS col2 FROM tab2
----
-17646
-46277
-58357

query I rowsort
SELECT ALL - + ( - col2 ) + - col2 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col0 + - + 2 col1 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT - - 95 * + 85 * + 48 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fd339193dc732e6412192c3193a86f4

query I rowsort
SELECT col1 - + - col2 AS col1 FROM tab1
----
110
115
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 / col0 - + col2 BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT - COUNT( 44 ) col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4440
SELECT - COUNT ( 44 ) col2 FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT DISTINCT + 91 DIV + - col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT + 91 / + - col0 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4442
SELECT - - col0 DIV - col1 + + col1 col1 FROM tab1 AS cor0
----
-12
11
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4442
SELECT - - col0 / - col1 + + col1 col1 FROM tab1 AS cor0
----
-12
11
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + col1 col0 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col2 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT DISTINCT + COUNT( * ) FROM tab1 cor0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT + COUNT ( * ) FROM tab1 cor0 WHERE NOT col0 IS NULL
----
3

query I rowsort
SELECT + - 35 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 * 61
----

query II rowsort
SELECT DISTINCT + + col1, ( - - col2 ) * col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
14
1344
47
3196
5
295

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT + SUM( - col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4448
SELECT + SUM ( - col1 ) FROM tab2 cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT DISTINCT - COUNT( * ) * + 11 AS col1 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT - COUNT ( * ) * + 11 AS col1 FROM tab1 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4450
SELECT DISTINCT CAST( - col2 AS SIGNED ) col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4450
SELECT DISTINCT CAST ( - col2 AS INTEGER ) col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT DISTINCT COUNT( * ) * - 88 col0 FROM tab2 WHERE + 91 IS NOT NULL
----
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4451
SELECT DISTINCT COUNT ( * ) * - 88 col0 FROM tab2 WHERE + 91 IS NOT NULL
----
-264

query I rowsort
SELECT - ( + 3 ) AS col1 FROM tab0
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4453
SELECT * FROM tab2 WHERE NOT CAST( col2 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4453
SELECT * FROM tab2 WHERE NOT CAST ( col2 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4454
SELECT DISTINCT - COUNT( + 63 ) AS col1, ( ( - 54 ) ) AS col0 FROM tab0
----
-3
-54

skipif mysql # not compatible
query II rowsort label-4454
SELECT DISTINCT - COUNT ( + 63 ) AS col1, ( ( - 54 ) ) AS col0 FROM tab0
----
-3
-54

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col1 ) > + ( + - col0 ) - - col2
----
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4456
SELECT - - MIN( 66 ) DIV - - 97 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4456
SELECT - - MIN ( 66 ) / - - 97 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - ( - + 75 ) AS col0 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4458
SELECT ALL - COUNT( * ) AS col1, 92 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9
92

skipif mysql # not compatible
query II rowsort label-4458
SELECT ALL - COUNT ( * ) AS col1, 92 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT DISTINCT - col2 + CAST( - 57 AS SIGNED ) - - col1 FROM tab0 AS cor0
----
-155
-23
-46

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT - col2 + CAST ( - 57 AS INTEGER ) - - col1 FROM tab0 AS cor0
----
-155
-23
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4460
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) + - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) + - col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - col2 + + 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4462
SELECT ALL - 84 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL - 84 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4463
SELECT - COUNT( * ) AS col0, 34 AS col0 FROM tab2
----
-3
34

skipif mysql # not compatible
query II rowsort label-4463
SELECT - COUNT ( * ) AS col0, 34 AS col0 FROM tab2
----
-3
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) - + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) - + col0 FROM tab2
----
NULL

query II rowsort
SELECT ALL + 90, col0 * + + col2 + - 0 + - 84 * - col1 * + + 66 AS col0 FROM tab1
----
90
266756
90
32735
90
82512

onlyif mysql # DIV for integer division: 
query I rowsort label-4466
SELECT 80 DIV + col0 - - + 29 * 10 + 96 - + col0 FROM tab1
----
295
301
336

skipif mysql # not compatible
query I rowsort label-4466
SELECT 80 / + col0 - - + 29 * 10 + 96 - + col0 FROM tab1
----
295
301
336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT + ( CAST( NULL AS SIGNED ) ) - 37 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT + ( CAST ( NULL AS INTEGER ) ) - 37 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4468
SELECT 31 + CAST( + 25 AS SIGNED ) AS col2 FROM tab0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-4468
SELECT 31 + CAST ( + 25 AS INTEGER ) AS col2 FROM tab0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT ALL + SUM( ALL - - 63 ) FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL + SUM ( ALL - - 63 ) FROM tab2
----
189

query I rowsort
SELECT + col2 + col0 * 13 FROM tab2 cor0
----
1033
621
872

query I rowsort
SELECT ALL - col0 + - + col2 + 36 * + - 4 AS col0 FROM tab1 AS cor0
----
-288
-291
-303

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 18 ) + + - col1 + + col0 col0 FROM tab0 AS cor0
----
-84
48
78

query I rowsort
SELECT ALL 9 + - col2 FROM tab0 AS cor0
----
-1
-38
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-4474
SELECT COUNT( * ) - - 59, - 97 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 )
----
59
-97

skipif mysql # not compatible
query II rowsort label-4474
SELECT COUNT ( * ) - - 59, - 97 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 )
----
59
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT DISTINCT + COUNT( * ) - + - 50 FROM tab1 cor0
----
53

skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT + COUNT ( * ) - + - 50 FROM tab1 cor0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4476
SELECT CAST( NULL AS SIGNED ) * col1 AS col0, 46 FROM tab1
----
NULL
46
NULL
46
NULL
46

skipif mysql # not compatible
query II rowsort label-4476
SELECT CAST ( NULL AS INTEGER ) * col1 AS col0, 46 FROM tab1
----
NULL
46
NULL
46
NULL
46

query II rowsort
SELECT DISTINCT 40 * - col2 AS col1, - col2 AS col2 FROM tab2 AS cor0
----
-1600
-40
-2320
-58
-920
-23

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-10
-47
-99

query I rowsort
SELECT ALL - col2 * - + col2 - col0 AS col2 FROM tab0 cor0
----
13
2194
9704

onlyif mysql # DIV for integer division: 
query II rowsort label-4480
SELECT DISTINCT + - ( col0 ) * + col2, 62 DIV 68 * col0 AS col0 FROM tab0 AS cor0
----
-705
0
-870
0
-9603
0

skipif mysql # not compatible
query II rowsort label-4480
SELECT DISTINCT + - ( col0 ) * + col2, 62 / 68 * col0 AS col0 FROM tab0 AS cor0
----
-705
0
-870
0
-9603
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT DISTINCT MIN( + - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT MIN ( + - col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + - 30 FROM tab2 cor0
----
-30
-30
-30

query I rowsort
SELECT ALL + ( + col0 ) * col0 AS col0 FROM tab0
----
225
7569
9409

onlyif mysql # DIV for integer division: 
query II rowsort label-4484
SELECT - 40 AS col0, - ( - col1 ) DIV + 89 col2 FROM tab1
----
-40
0
-40
0
-40
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4484
SELECT - 40 AS col0, - ( - col1 ) / + 89 col2 FROM tab1
----
-40
0
-40
0
-40
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4485
SELECT - 37 DIV COUNT( * ) FROM tab2, tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4485
SELECT - 37 / COUNT ( * ) FROM tab2, tab0 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT DISTINCT 50 * + col1 * + + CAST( NULL AS SIGNED ) / - col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT 50 * + col1 * + + CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT ALL - COUNT( * ) * 98 FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL - COUNT ( * ) * 98 FROM tab2
----
-294

onlyif mysql # aggregate syntax: 
query II rowsort label-4488
SELECT DISTINCT 3 AS col1, COUNT( DISTINCT + col1 ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-4488
SELECT DISTINCT 3 AS col1, COUNT ( DISTINCT + col1 ) AS col2 FROM tab0
----
3
3

query I rowsort
SELECT DISTINCT + col0 * + + col1 AS col0 FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4490
SELECT ALL - 39 DIV - 39 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL - 39 / - 39 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - ( - 69 ) AS col1 FROM tab2
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT + MIN( ALL + 41 ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-4492
SELECT + MIN ( ALL + 41 ) FROM tab0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT 97 + COUNT( * ) * - 75 FROM tab0
----
-128

skipif mysql # not compatible
query I rowsort label-4493
SELECT 97 + COUNT ( * ) * - 75 FROM tab0
----
-128

query I rowsort
SELECT + col2 * - 64 + 72 AS col1 FROM tab2
----
-1400
-2488
-3640

query I rowsort
SELECT col1 * 89 FROM tab2
----
4539
5963
6853

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( 42 - + 53 * + 19 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col2 / - 81 + + col2 AND NULL
----

query I rowsort
SELECT ALL + 29 + + col2 AS col2 FROM tab2
----
52
69
87

query I rowsort
SELECT col0 FROM tab2 WHERE + col1 < ( - 7 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 + col1 col0 FROM tab1
----
-31
-40
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4501
SELECT DISTINCT + 69 DIV - col1 AS col1 FROM tab1
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT + 69 / - col1 AS col1 FROM tab1
----
-1
-13
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT + COUNT( * ) + - 33 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-4502
SELECT + COUNT ( * ) + - 33 FROM tab0
----
-30

query I rowsort
SELECT + col2 + - 35 FROM tab2
----
-12
23
5

query I rowsort
SELECT ALL + 87 * col0 FROM tab2
----
4002
5568
6525

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT col0 / 98 FROM tab2 WHERE NOT ( col1 ) NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT 7 + + col2 FROM tab2
----
30
47
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4508
SELECT + col2 * col0 + + col2 DIV col1 AS col2 FROM tab0
----
705
870
9702

skipif mysql # not compatible
query I rowsort label-4508
SELECT + col2 * col0 + + col2 / col1 AS col2 FROM tab0
----
705
870
9702

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4509
SELECT DISTINCT - col1 * col1 AS col0 FROM tab1 WHERE NOT + col1 NOT IN ( CAST( - 55 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT - col1 * col1 AS col0 FROM tab1 WHERE NOT + col1 NOT IN ( CAST ( - 55 AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4510
SELECT DISTINCT ( - col2 ) AS col0 FROM tab1 WHERE NOT ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) <> + col2
----

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT ( - col2 ) AS col0 FROM tab1 WHERE NOT ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4511
SELECT ALL CAST( + 45 AS SIGNED ) AS col1 FROM tab0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL CAST ( + 45 AS INTEGER ) AS col1 FROM tab0
----
45
45
45

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT ( - 71 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT + MIN( DISTINCT - 47 ) - 63 AS col0 FROM tab2 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-4513
SELECT + MIN ( DISTINCT - 47 ) - 63 AS col0 FROM tab2 AS cor0
----
-110

query I rowsort
SELECT DISTINCT 42 + + col1 AS col1 FROM tab1 AS cor0
----
47
56
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL 69 + COUNT( * ) * 16 FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL 69 + COUNT ( * ) * 16 FROM tab0 AS cor0
----
117

query I rowsort
SELECT 48 FROM ( tab0 AS cor0 CROSS JOIN tab1 )
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT - col2 * - col0 + 95 FROM tab1 WHERE NOT col0 < - col2 + 50 * col1
----

query I rowsort
SELECT - ( + 70 ) AS col1 FROM tab0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT 79 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
711

skipif mysql # not compatible
query I rowsort label-4519
SELECT 79 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
711

query I rowsort
SELECT ALL 42 * + col1 FROM tab0
----
3402
42
882

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4521
SELECT COUNT( * ) DIV + 79 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4521
SELECT COUNT ( * ) / + 79 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 65 * - 1 FROM tab2 AS cor0
----
-65
-65
-65

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - 81 ) < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4524
SELECT ALL ( SUM( ALL + 84 ) ) AS col0 FROM tab0 AS cor0 WHERE 18 + 49 IN ( - col2 + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL ( SUM ( ALL + 84 ) ) AS col0 FROM tab0 AS cor0 WHERE 18 + 49 IN ( - col2 + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 2 * - 37 AS col1 FROM tab2 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL + ( COUNT( * ) ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL + ( COUNT ( * ) ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT SUM( ALL 62 ) FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT SUM ( ALL 62 ) FROM tab2
----
186

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * col2 IN ( + col1 + + col0 )
----

query I rowsort
SELECT col1 * + - ( 80 ) FROM tab2
----
-4080
-5360
-6160

query I rowsort
SELECT DISTINCT - col0 * 50 AS col2 FROM tab0
----
-4350
-4850
-750

query I rowsort
SELECT ALL + ( - col0 ) AS col2 FROM tab1 WHERE NULL NOT IN ( - col2 - + col2 )
----

query I rowsort
SELECT DISTINCT - ( col1 ) * - col2 AS col1 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE 2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE 2 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL 12 * + + COUNT( DISTINCT col1 ) AS col1 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL 12 * + + COUNT ( DISTINCT col1 ) AS col1 FROM tab2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT - col0 FROM tab2 WHERE NOT - col2 NOT IN ( - CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4535
SELECT - col0 FROM tab2 WHERE NOT - col2 NOT IN ( - CAST ( col1 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4536
SELECT ALL + col2 + + ( - col1 ) DIV + col1 AS col1 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL + col2 + + ( - col1 ) / + col1 AS col1 FROM tab1
----
58
67
95

query I rowsort
SELECT DISTINCT - + 89 + + col2 FROM tab1 AS cor0
----
-21
-30
7

query I rowsort
SELECT ALL - 9 AS col0 FROM tab1 cor0 WHERE - col1 IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 40 NOT BETWEEN NULL AND ( - col2 )
----

query I rowsort
SELECT ALL 93 + - - col1 FROM tab1 AS cor0
----
107
140
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col1 * - col0 col2 FROM tab1 AS cor0
----
-4368
-510
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT COUNT( ( 53 ) ) + 85 AS col2 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-4542
SELECT COUNT ( ( 53 ) ) + 85 AS col2 FROM tab2 AS cor0
----
88

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col2 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL - COUNT( * ) * - SUM( + - col1 ) AS col1 FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL - COUNT ( * ) * - SUM ( + - col1 ) AS col1 FROM tab2
----
-585

query I rowsort
SELECT - col1 * - 46 FROM tab0 AS cor0
----
3726
46
966

query I rowsort
SELECT 94 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4547
SELECT COUNT( * ) AS col0, 0 FROM tab2 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-4547
SELECT COUNT ( * ) AS col0, 0 FROM tab2 AS cor0
----
3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT ALL - 21 col1 FROM tab1 AS cor0 WHERE + 20 * col2 + + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4548
SELECT ALL - 21 col1 FROM tab1 AS cor0 WHERE + 20 * col2 + + CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE ( col0 * - - col1 ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT 63 * - col1 + + col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3167
-4146
-4787

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND + 26
----

query I rowsort
SELECT ALL + col0 + 74 * col2 FROM tab1 AS cor0
----
4451
5123
7155

query I rowsort
SELECT ALL + - 61 + ( 83 ) FROM tab0 AS cor0
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4554
SELECT DISTINCT - 80 + + 92 * col0 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT - 80 + + 92 * col0 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 - col1 * col2 * + - col2 + 67 FROM tab2
----
123331
225530
27092

query I rowsort
SELECT 21 AS col0 FROM tab1 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT col0 + - CAST( + + col2 AS SIGNED ) FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-4557
SELECT col0 + - CAST ( + + col2 AS INTEGER ) FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ( MIN( DISTINCT col0 ) ) AS col2 FROM tab1 WHERE NULL BETWEEN - col1 / + - col2 AND col1 + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT ( MIN ( DISTINCT col0 ) ) AS col2 FROM tab1 WHERE NULL BETWEEN - col1 / + - col2 AND col1 + - col0
----
NULL

query I rowsort
SELECT + ( + - col2 ) + - col0 FROM tab0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4560
SELECT DISTINCT CAST( + 22 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT CAST ( + 22 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
22

query I rowsort
SELECT DISTINCT + ( + ( - - col2 ) ) AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT + - 86 FROM tab0 cor0
----
-86

query I rowsort
SELECT - 60 * - + 32 FROM tab0 AS cor0 WHERE NOT 20 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT DISTINCT - 76 + - COUNT( DISTINCT + 75 ) + - 68 AS col2 FROM tab0 AS cor0
----
-145

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT - 76 + - COUNT ( DISTINCT + 75 ) + - 68 AS col2 FROM tab0 AS cor0
----
-145

query I rowsort
SELECT ALL - - ( 56 ) AS col2 FROM tab2 AS cor0
----
56
56
56

query II rowsort
SELECT col0, col2 FROM tab0 AS cor0 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT ALL - col1 * 51 * col2 AS col0 FROM tab0
----
-10710
-194157
-5049

query I rowsort
SELECT DISTINCT ( - - col2 ) FROM tab2 WHERE ( NOT ( NULL ) < ( NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4569
SELECT + col1 DIV 42 + + col2 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-4569
SELECT + col1 / 42 + + col2 FROM tab2
----
24
41
59

query I rowsort
SELECT - col1 + ( - col1 ) + - - 60 AS col1 FROM tab0
----
-102
18
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT + COUNT( * ) FROM tab0 WHERE + 62 / + + col1 + + + 80 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4571
SELECT + COUNT ( * ) FROM tab0 WHERE + 62 / + + col1 + + + 80 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - + col2 AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 23 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 56 * + - col0 AS col2, 97 + + + 59 + - col1 * - - col0 col2 FROM tab0 AS cor0
----
4872
-1671
5432
59
840
-1059

query III rowsort
SELECT * FROM tab2 WHERE 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT + SUM( ALL 1 ) FROM tab2 WHERE - col1 NOT IN ( + - col1 - - col1 / 28 )
----
3

skipif mysql # not compatible
query I rowsort label-4576
SELECT + SUM ( ALL 1 ) FROM tab2 WHERE - col1 NOT IN ( + - col1 - - col1 / 28 )
----
3

query I rowsort
SELECT + 55 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> - col0 + - 34
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4579
SELECT ALL + COUNT( * ) + 15 AS col1, + COUNT( * ) + + 72 FROM tab2 AS cor0
----
18
75

skipif mysql # not compatible
query II rowsort label-4579
SELECT ALL + COUNT ( * ) + 15 AS col1, + COUNT ( * ) + + 72 FROM tab2 AS cor0
----
18
75

query I rowsort
SELECT + + 2 + + + col2 * - 19 FROM tab0 AS cor0
----
-1879
-188
-891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4581
SELECT ALL - CAST( NULL AS SIGNED ) + - COUNT( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL - CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4582
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( + col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4582
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( + col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4583
SELECT MIN( 95 ) AS col2, + COUNT( * ) FROM tab0 cor0
----
95
3

skipif mysql # not compatible
query II rowsort label-4583
SELECT MIN ( 95 ) AS col2, + COUNT ( * ) FROM tab0 cor0
----
95
3

query I rowsort
SELECT ALL col0 * + 56 FROM tab2
----
2576
3584
4200

query I rowsort
SELECT ALL - 66 FROM tab2 WHERE + + col1 IS NULL
----

query II rowsort
SELECT - col1 AS col0, + 5 FROM tab0 WHERE - col2 * col1 * + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4587
SELECT ALL - 5 - + col2 + - + col2 + + col2 * + col0 - - - 6 AS col0, col2 + - CAST( NULL AS SIGNED ) FROM tab1
----
4693
NULL
4886
NULL
6041
NULL

skipif mysql # not compatible
query II rowsort label-4587
SELECT ALL - 5 - + col2 + - + col2 + + col2 * + col0 - - - 6 AS col0, col2 + - CAST ( NULL AS INTEGER ) FROM tab1
----
4693
NULL
4886
NULL
6041
NULL

query I rowsort
SELECT + + AVG ( DISTINCT - col2 ) + 42 AS col0 FROM tab0 WHERE 16 * 39 * + 70 + - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT DISTINCT - 64 * - COUNT( * ) * 52 - + COUNT( * ) AS col1 FROM tab1
----
9981

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT - 64 * - COUNT ( * ) * 52 - + COUNT ( * ) AS col1 FROM tab1
----
9981

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 < ( - - 44 / + - col2 + - - col1 + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4591
SELECT DISTINCT - COUNT( * ) DIV + 12 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT - COUNT ( * ) / + 12 AS col1 FROM tab1
----
0

query I rowsort
SELECT - - ( - ( + 71 ) ) AS col2 FROM tab2 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT + 57 * - + 60 * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
10260

skipif mysql # not compatible
query I rowsort label-4593
SELECT + 57 * - + 60 * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
10260

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 62 * col0 ) > NULL
----

query I rowsort
SELECT - col1 * + col1 * col1 AS col2 FROM tab2 AS cor0
----
-132651
-300763
-456533

query I rowsort
SELECT ALL - ( 60 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT - 79 * + + col2 AS col0 FROM tab1 AS cor0
----
-4661
-5372
-7584

query I rowsort
SELECT ALL 15 + - - col0 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - col1, + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
46
-67
75
-77
64

query I rowsort
SELECT - - AVG ( ALL + 59 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4601
SELECT DISTINCT col1 + col1 * col2 DIV - 14 AS col2 FROM tab2
----
-143
-210
-32

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT col1 + col1 * col2 / - 14 AS col2 FROM tab2
----
-143
-210
-32

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + + 23 + + 13 <= - col0 - - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1, 23 - - 86 FROM tab2
----
51
109
67
109
77
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4604
SELECT ALL MIN( + - CAST( + - col1 AS SIGNED ) ) + + + 45 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL MIN ( + - CAST ( + - col1 AS INTEGER ) ) + + + 45 FROM tab1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT - COUNT( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4605
SELECT - COUNT ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 19 col1, 81 AS col0 FROM tab0 AS cor0
----
19
81
19
81
19
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - + col1 IS NOT NULL )
----

query I rowsort
SELECT + - 45 AS col1 FROM tab1 WHERE + + col1 IN ( + 63, 86, - ( col2 ) )
----

query I rowsort
SELECT ALL + 69 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT - col2 / + col0 FROM tab0 WHERE NULL >= 96
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4611
SELECT ALL - col0 * - CAST( NULL AS DECIMAL ) + + + col2 + + 81 AS col2, + 57 FROM tab1 AS cor0
----
NULL
57
NULL
57
NULL
57

skipif mysql # not compatible
query II rowsort label-4611
SELECT ALL - col0 * - CAST ( NULL AS REAL ) + + + col2 + + 81 AS col2, + 57 FROM tab1 AS cor0
----
NULL
57
NULL
57
NULL
57

query I rowsort
SELECT ALL + col1 + 0 AS col0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + 87 - - 55 * + col2 FROM tab1 AS cor0
----
3332
3827
5367

query I rowsort
SELECT ALL col2 + + + 64 FROM tab2 cor0
----
104
122
87

query I rowsort
SELECT DISTINCT col0 * + 38 AS col1 FROM tab1
----
1938
3230
3458

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4616
SELECT - CAST( 71 AS SIGNED ) AS col2 FROM tab0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-4616
SELECT - CAST ( 71 AS INTEGER ) AS col2 FROM tab0
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4617
SELECT ALL * FROM tab2 WHERE - CAST( + + col0 AS SIGNED ) <= + 1 + - - 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4617
SELECT ALL * FROM tab2 WHERE - CAST ( + + col0 AS INTEGER ) <= + 1 + - - 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT DISTINCT + MIN( ALL + + 34 ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT + MIN ( ALL + + 34 ) FROM tab1
----
34

query II rowsort
SELECT DISTINCT - - 65 * + - 38 AS col2, - 50 + + + 59 AS col2 FROM tab1 AS cor0
----
-2470
9

query I rowsort
SELECT + 16 * + 79 AS col1 FROM tab2 cor0
----
1264
1264
1264

query I rowsort
SELECT 43 * col0 FROM tab0
----
3741
4171
645

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col1 + - col0 <> NULL
----

query I rowsort
SELECT DISTINCT 91 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - 58 + - col1 FROM tab0 AS cor0
----
-139
-59
-79

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 18 * + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col0, 99 * + col2 col0 FROM tab1 AS cor0
----
51
9504
85
5841
91
6732

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4628
SELECT - - MAX( + - col2 ) DIV + - 46 AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4628
SELECT - - MAX ( + - col2 ) / + - 46 AS col1 FROM tab1 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4629
SELECT + CAST( - + col1 AS SIGNED ) + - - 46 FROM tab1 AS cor0
----
-1
32
41

skipif mysql # not compatible
query I rowsort label-4629
SELECT + CAST ( - + col1 AS INTEGER ) + - - 46 FROM tab1 AS cor0
----
-1
32
41

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND + - ( + + 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL MAX( col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL MAX ( col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT - 32 * + - SUM( DISTINCT col0 ) + - COUNT( DISTINCT + 8 ) FROM tab0
----
6367

skipif mysql # not compatible
query I rowsort label-4632
SELECT - 32 * + - SUM ( DISTINCT col0 ) + - COUNT ( DISTINCT + 8 ) FROM tab0
----
6367

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4633
SELECT CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ), + col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-4633
SELECT CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ), + col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT - 63 + - col2 FROM tab0
----
-110
-162
-73

query I rowsort
SELECT - - col2 * + 73 + + col1 * + - col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4636
SELECT + 53 DIV + col2 + + col1 * + + col2 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-4636
SELECT + 53 / + col2 + + col1 * + + col2 FROM tab1
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col1 col0 FROM tab2 WHERE - 70 + - - col2 * 33 NOT IN ( 26 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4638
SELECT * FROM tab1 WHERE col0 <> CAST( + col2 AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4638
SELECT * FROM tab1 WHERE col0 <> CAST ( + col2 AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 37 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4641
SELECT ALL col0 + CAST( + 58 AS SIGNED ) AS col1 FROM tab1 cor0
----
109
143
149

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL col0 + CAST ( + 58 AS INTEGER ) AS col1 FROM tab1 cor0
----
109
143
149

query I rowsort
SELECT DISTINCT - - col0 + 30 FROM tab0 AS cor0
----
117
127
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT ALL - COUNT( * ) + - 15 AS col2 FROM tab1 WHERE + col1 < - col0
----
-15

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL - COUNT ( * ) + - 15 AS col2 FROM tab1 WHERE + col1 < - col0
----
-15

query I rowsort
SELECT + + 16 * + 90 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e9fe0a2f18785f667bdc1a3ef0a95680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT ALL CAST( NULL AS SIGNED ) - + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL CAST ( NULL AS INTEGER ) - + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4646
SELECT * FROM tab2 WHERE ( CAST( NULL AS SIGNED ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4646
SELECT * FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col0 + + 23 FROM tab1 AS cor0
----
108
114
74

query I rowsort
SELECT DISTINCT - + 21 * 5 * col0 * 86 + + 75 FROM tab0 AS cor0
----
-135375
-785535
-875835

query I rowsort
SELECT - 52 * + 76 FROM tab1 AS cor0
----
-3952
-3952
-3952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4650
SELECT ALL ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL - + SUM( DISTINCT + - col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL - + SUM ( DISTINCT + - col1 ) AS col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ( - - ( + 55 ) ) FROM tab2 cor0
----
55
55
55

query II rowsort
SELECT DISTINCT - + 29, + 99 AS col1 FROM tab1 AS cor0
----
-29
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT DISTINCT 82 + + + COUNT( * ) FROM tab1 cor0 WHERE NOT NULL < + col1
----
82

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT 82 + + + COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL < + col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4655
SELECT + ( - CAST( + col0 AS SIGNED ) ) AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4655
SELECT + ( - CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT - ( - MIN( + 85 ) ) FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-4656
SELECT - ( - MIN ( + 85 ) ) FROM tab1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4657
SELECT DISTINCT COUNT( * ), COUNT( * ) + + - MAX( col0 ) - - ( + 25 ) AS col0 FROM tab1
----
3
-63

skipif mysql # not compatible
query II rowsort label-4657
SELECT DISTINCT COUNT ( * ), COUNT ( * ) + + - MAX ( col0 ) - - ( + 25 ) AS col0 FROM tab1
----
3
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4658
SELECT ALL - 62 * - MAX( DISTINCT - col0 ) * + SUM( col1 ) / + - ( - MIN( DISTINCT CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL - 62 * - MAX ( DISTINCT - col0 ) * + SUM ( col1 ) / + - ( - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4659
SELECT col2 - - col2 + - + CAST( + col0 AS DECIMAL ) AS col1 FROM tab1 WHERE NOT - col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-4659
SELECT col2 - - col2 + - + CAST ( + col0 AS REAL ) AS col1 FROM tab1 WHERE NOT - col0 <> NULL
----

query I rowsort
SELECT ALL 22 * col2 FROM tab2
----
1276
506
880

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( - col0 - - - col0 ) AND NULL
----

query I rowsort
SELECT 48 * - ( - + 94 ) * - 97 FROM tab0 AS cor0
----
-437664
-437664
-437664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4663
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + col0 * - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + col0 * - col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( ( NOT ( NULL IS NOT NULL ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4664
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( ( NOT ( NULL IS NOT NULL ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4665
SELECT DISTINCT - + CAST( COUNT( * ) AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query II rowsort
SELECT + 59 + 48 AS col1, 42 FROM tab0
----
107
42
107
42
107
42

query I rowsort
SELECT ALL col2 * - + 9 FROM tab0
----
-423
-891
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + col2 ) - + 93 IS NULL
----

query I rowsort
SELECT ALL col1 + + 85 + + col2 + 60 * + - 65 + + 39 FROM tab0 AS cor0
----
-3648
-3676
-3745

query II rowsort
SELECT - col1, - col0 * col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT DISTINCT MIN( ALL - 66 ) + 5 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT MIN ( ALL - 66 ) + 5 FROM tab2 AS cor0
----
-61

query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= + col1
----

query II rowsort
SELECT - col1 + + 91, + 58 FROM tab1 AS cor0 WHERE - ( + col1 ) * - col1 + + col1 >= NULL
----

query I rowsort
SELECT ALL - col0 * - 30 * - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-216750
-248430
-78030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4675
SELECT ALL 27 * + - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL 27 * + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL - ( - SUM( ALL - 6 ) ) * 29 col2 FROM tab1
----
-522

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4676
SELECT ALL - ( - SUM ( ALL - 6 ) ) * 29 col2 FROM tab1
----
-522

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE NOT - col1 / + col2 <> 50
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + - - 88 + + - 26 col2, 0 FROM tab2 cor0
----
-15
0
-5
0
11
0

query I rowsort
SELECT - - 99 * + 64 AS col2 FROM tab2 AS cor0
----
6336
6336
6336

query I rowsort
SELECT + col2 * - col2 * + 93 FROM tab2 AS cor0
----
-148800
-312852
-49197

query I rowsort
SELECT + col2 AS col2 FROM tab2 cor0 WHERE NOT NULL IN ( + 95 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 * + + col2 col2 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT DISTINCT 1 FROM tab1 WHERE NULL IS NULL
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + ( col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col1 ) * + col2 col0, + col0 AS col2 FROM tab1
----
1344
51
295
85
3196
91

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 < + - col0 / col2 + col1 + + + col1
----
14
5

query I rowsort
SELECT DISTINCT + + col0 * + 86 AS col0 FROM tab1 AS cor0
----
4386
7310
7826

query I rowsort
SELECT col1 * - + 42 FROM tab2
----
-2142
-2814
-3234

onlyif mysql # DIV for integer division: 
query I rowsort label-4689
SELECT DISTINCT + col2 DIV + 91 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT + col2 / + 91 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
64

query I rowsort
SELECT + ( + - col1 ) AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT DISTINCT - 82 + + - COUNT( * ) AS col1 FROM tab1 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT - 82 + + - COUNT ( * ) AS col1 FROM tab1 cor0
----
-85

query I rowsort
SELECT ALL col1 + + col0 + + col0 AS col0 FROM tab2 AS cor0
----
143
205
217

query I rowsort
SELECT DISTINCT + + col2 + - + col1 + + - col1 AS col2 FROM tab1 AS cor0
----
-26
49
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT ALL - ( + + CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED ) * col0 / - col1 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL - ( + + CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) * col0 / - col1 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * + col2 * + col0 + - - col1 AS col1 FROM tab1 AS cor0
----
-249682
-426270
-563061

query I rowsort
SELECT + col0 + + col1 + + col0 AS col1 FROM tab2 AS cor0
----
143
205
217

query I rowsort
SELECT - - col0 + - - col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT + col2 + + col0 * - col2 + + col2 AS col2 FROM tab1
----
-4704
-4897
-6052

query I rowsort
SELECT DISTINCT + 42 - + 63 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-21

query II rowsort
SELECT col0 + col1 AS col2, col1 FROM tab0
----
108
21
96
81
98
1

query I rowsort
SELECT DISTINCT ( - col2 ) * - col2 + + col0 FROM tab0
----
187
2224
9898

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT COUNT( * ) * MIN( ALL - 44 ) FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-4703
SELECT COUNT ( * ) * MIN ( ALL - 44 ) FROM tab1
----
-132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * 22 AS col1, + 45 * - 29 col1 FROM tab0
----
1914
-1305
2134
-1305
330
-1305

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4705
SELECT DISTINCT - ( - COUNT( ALL col1 ) ) DIV + 54 * + SUM( + - col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT - ( - COUNT ( ALL col1 ) ) / + 54 * + SUM ( + - col0 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col0 + ( - - ( - col2 ) ) + - - 83 FROM tab1
----
-61
-64
-76

query III rowsort
SELECT * FROM tab1 WHERE 65 IS NULL
----

query II rowsort
SELECT + 58 * - 6 AS col0, + 70 * col1 FROM tab0 AS cor0
----
-348
1470
-348
5670
-348
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT ALL - SUM( col0 ) + 39 AS col2 FROM tab0 AS cor0
----
-160

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL - SUM ( col0 ) + 39 AS col2 FROM tab0 AS cor0
----
-160

query I rowsort
SELECT + + col2 - - col1 AS col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT 98 * - MAX( + - 20 ) - + 17 FROM tab0 AS cor0
----
1943

skipif mysql # not compatible
query I rowsort label-4711
SELECT 98 * - MAX ( + - 20 ) - + 17 FROM tab0 AS cor0
----
1943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4712
SELECT - + CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT - + CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT ALL MAX( DISTINCT 61 ) AS col1 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL MAX ( DISTINCT 61 ) AS col1 FROM tab1
----
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 < - col2 + - col2 - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * + col0 + - + col2 AS col0 FROM tab0 cor0
----
-1262
-1837
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT + + SUM( DISTINCT - + col2 ) * - SUM( + col2 ) AS col1 FROM tab0 AS cor0
----
24336

skipif mysql # not compatible
query I rowsort label-4716
SELECT + + SUM ( DISTINCT - + col2 ) * - SUM ( + col2 ) AS col1 FROM tab0 AS cor0
----
24336

query I rowsort
SELECT ALL col2 * - 68 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3196
-6732
-680

query II rowsort
SELECT ALL + col2 AS col0, col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query II rowsort
SELECT ALL - col2 AS col0, col0 FROM tab1 AS cor0 WHERE ( col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT DISTINCT - ( COUNT( DISTINCT - - col1 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT - ( COUNT ( DISTINCT - - col1 ) ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * col1 / - col2 - - col0 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT DISTINCT 15 * - COUNT( * ) AS col2 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT 15 * - COUNT ( * ) AS col2 FROM tab1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT + ( COUNT( * ) ) + - 42 col2 FROM tab1
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4726
SELECT + ( COUNT ( * ) ) + - 42 col2 FROM tab1
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 * - col2 col1 FROM tab1
----
-4071
-4692
-6624

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT + col0 / + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 39 col2, + col0 AS col0 FROM tab1 AS cor0
----
39
51
39
85
39
91

query I rowsort
SELECT DISTINCT + + col2 + + ( 22 ) FROM tab0 AS cor0
----
121
32
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT + COUNT( DISTINCT + - 74 ) * - COUNT( * ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4731
SELECT + COUNT ( DISTINCT + - 74 ) * - COUNT ( * ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + col1 ) + + ( + col2 ) + + - col1 * + col0 FROM tab2 cor0
----
-2374
-4965
-5034

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - col0 - + col0 <> + + 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT ALL + ( - 5 ) - MIN( + - col1 ) AS col2 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL + ( - 5 ) - MIN ( + - col1 ) AS col2 FROM tab0
----
76

query I rowsort
SELECT DISTINCT col0 * + 72 FROM tab2
----
3312
4608
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT ALL SUM( col1 ) - 87 AS col0 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL SUM ( col1 ) - 87 AS col0 FROM tab0
----
16

query I rowsort
SELECT col2 + + - ( ( - 77 ) ) FROM tab0
----
124
176
87

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 9 * - 72 / + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 55 FROM tab2 WHERE NOT col1 BETWEEN - - col0 AND NULL
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, - col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT ALL + - 89 + + col2 + + 74 + - col2 FROM tab1 AS cor0
----
-15
-15
-15

query I rowsort
SELECT ALL - col0 * + 61 AS col2 FROM tab0 AS cor0
----
-5307
-5917
-915

query II rowsort
SELECT col1, - 86 FROM tab0 AS cor0
----
1
-86
21
-86
81
-86

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4745
SELECT - CAST( NULL AS SIGNED ), col1 + - + CAST( NULL AS DECIMAL ) * - col2 + col0 - - col1 / + - 7 / col1 - + CAST( - + col2 AS SIGNED ) * + + col0 / col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query II rowsort label-4745
SELECT - CAST ( NULL AS INTEGER ), col1 + - + CAST ( NULL AS REAL ) * - col2 + col0 - - col1 / + - 7 / col1 - + CAST ( - + col2 AS INTEGER ) * + + col0 / col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4746
SELECT DISTINCT + col2 DIV col2 + + 93 col0 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4746
SELECT DISTINCT + col2 / col2 + + 93 col0 FROM tab0 AS cor0
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4747
SELECT + CAST( NULL AS DECIMAL ) AS col1, + col1 * + col0 FROM tab0
----
NULL
1215
NULL
1827
NULL
97

skipif mysql # not compatible
query II rowsort label-4747
SELECT + CAST ( NULL AS REAL ) AS col1, + col1 * + col0 FROM tab0
----
NULL
1215
NULL
1827
NULL
97

query I rowsort
SELECT - 53 + - - col0 AS col0 FROM tab0
----
-38
34
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4749
SELECT + MIN( ALL - 79 ) + - COUNT( * ), + 26 AS col2 FROM tab2
----
-82
26

skipif mysql # not compatible
query II rowsort label-4749
SELECT + MIN ( ALL - 79 ) + - COUNT ( * ), + 26 AS col2 FROM tab2
----
-82
26

onlyif mysql # DIV for integer division: 
query III rowsort label-4750
SELECT col2 DIV + - col2 + - col2, 73 AS col1, col1 * ( 83 ) + - col0 AS col1 FROM tab1
----
9 values hashing to c193e355b661b6c6b597a453ee02d148

skipif mysql # not compatible
query III rowsort label-4750
SELECT col2 / + - col2 + - col2, 73 AS col1, col1 * ( 83 ) + - col0 AS col1 FROM tab1
----
9 values hashing to c193e355b661b6c6b597a453ee02d148

query I rowsort
SELECT + ( 64 ) + - - 63 + 44 + + col0 AS col1 FROM tab0
----
186
258
268

query I rowsort
SELECT ALL - 27 + + ( 77 ) AS col0 FROM tab0 AS cor0
----
50
50
50

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN col1 AND col2 )
----

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE ( NOT NULL IS NOT NULL )
----
15
87
97

query I rowsort
SELECT ALL + + col0 + + 30 FROM tab2 AS cor0
----
105
76
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4756
SELECT col1 + col1 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT col1 + col1 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + 5 + + + col0 AS col0 FROM tab0 AS cor0
----
179
199
35

query I rowsort
SELECT 98 + - 94 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT - 38 + col2 * - col1 FROM tab1 AS cor0
----
-1382
-3234
-333

onlyif mysql # DIV for integer division: 
query I rowsort label-4760
SELECT ALL - 55 DIV - col0 - + - 55 AS col0 FROM tab1
----
55
55
56

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL - 55 / - col0 - + - 55 AS col0 FROM tab1
----
55
55
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT MIN( DISTINCT + + 70 ) col1 FROM tab1
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4761
SELECT MIN ( DISTINCT + + 70 ) col1 FROM tab1
----
70

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < + 39 * col1 * col0 + col1
----

query I rowsort
SELECT DISTINCT col1 - + col0 AS col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL + 96 - 60 FROM tab0
----
36
36
36

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= - col2 + 14 + + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT SUM( + 59 ) FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-4766
SELECT SUM ( + 59 ) FROM tab0 AS cor0
----
177

query I rowsort
SELECT + ( + + col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT 95 FROM tab2 cor0 WHERE NOT col2 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT + MIN( - + 31 ) AS col0 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT + MIN ( - + 31 ) AS col0 FROM tab0 AS cor0
----
-31

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE 77 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4771
SELECT DISTINCT ( - ( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT ( - ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 34 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
34

query II rowsort
SELECT - col1 AS col2, col2 AS col1 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4774
SELECT ALL + + COUNT( * ) col2, COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4774
SELECT ALL + + COUNT ( * ) col2, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT col2 * + - 93 AS col1 FROM tab0 AS cor0
----
-4371
-9207
-930

query I rowsort
SELECT 23 * - col0 AS col0 FROM tab1 AS cor0
----
-1173
-1955
-2093

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT ALL + col1 DIV + ( + col2 ) AS col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL + col1 / + ( + col2 ) AS col0 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT DISTINCT + + ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT + + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT DISTINCT MIN( ALL col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT MIN ( ALL col2 ) AS col1 FROM tab0
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 NOT BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - col0 ) < - - 80 + - - col2 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4782
SELECT DISTINCT 68 + - 71 AS col0, + CAST( NULL AS SIGNED ) FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4782
SELECT DISTINCT 68 + - 71 AS col0, + CAST ( NULL AS INTEGER ) FROM tab0
----
-3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 58 ) col0 FROM tab0
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4784
SELECT * FROM tab1 WHERE col1 + - 53 * - - 72 + + 14 <= - CAST( + - ( - - 39 ) AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4784
SELECT * FROM tab1 WHERE col1 + - 53 * - - 72 + + 14 <= - CAST ( + - ( - - 39 ) AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT + + col2 + - col0 AS col2, - ( - 96 ) * - 63 AS col0, - - col0 AS col0 FROM tab2 cor0
----
9 values hashing to fd788b1e93f8379452db1725736edc2e

query I rowsort
SELECT DISTINCT + col0 + - col1 + - col0 AS col2 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT col1 + 52 FROM tab0 cor0
----
133
53
73

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 86 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 66 * 79 AS col2 FROM tab2 AS cor0
----
5214
5214
5214

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 1 < + ( + + 64 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + col2 + + col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL col1 - - 89 AS col1 FROM tab2 AS cor0
----
140
156
166

query I rowsort
SELECT DISTINCT ( + + col0 ) - - col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ALL 28 * - - COUNT( DISTINCT + - col1 ) * + 93 FROM tab0
----
7812

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL 28 * - - COUNT ( DISTINCT + - col1 ) * + 93 FROM tab0
----
7812

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL COUNT( * ) * + - MAX( DISTINCT + + col1 ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL COUNT ( * ) * + - MAX ( DISTINCT + + col1 ) FROM tab1
----
-141

query I rowsort
SELECT - - col0 * - col2 * ( 12 ) FROM tab0 AS cor0
----
-10440
-115236
-8460

query I rowsort
SELECT ALL + col0 * - 51 * col0 FROM tab0 cor0
----
-11475
-386019
-479859

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 IN ( + 82 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 45 AS col2 FROM tab1 cor0
----
45
45
45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 75 / + - 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4801
SELECT DISTINCT CAST( - + 19 AS SIGNED ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT CAST ( - + 19 AS INTEGER ) FROM tab2
----
-19

query I rowsort
SELECT - col2 + - - col1 + - - col1 + - - 28 AS col0 FROM tab1 AS cor0
----
-21
-40
54

query I rowsort
SELECT ALL + ( - 29 ) AS col1 FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT + col0 + - + 80 FROM tab1
----
-29
11
5

query I rowsort
SELECT 87 * + - 30 FROM tab0, tab0 AS cor0
----
9 values hashing to 1e6438757e4d8d41efc8e85635e32926

query I rowsort
SELECT + 79 + - col1 * + 78 + 72 FROM tab1
----
-239
-3515
-941

query II rowsort
SELECT DISTINCT col1, col1 * 78 FROM tab1
----
14
1092
47
3666
5
390

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NULL ) BETWEEN NULL AND col0 )
----

query I rowsort
SELECT ALL + 61 * col0 FROM tab2
----
2806
3904
4575

query I rowsort
SELECT - col1 + - - 75 AS col2 FROM tab1
----
28
61
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4811
SELECT DISTINCT col1 + 38 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT col1 + 38 * CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4812
SELECT ALL - 35 DIV col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL - 35 / col0 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 / 40 + + col1 IS NULL
----

query I rowsort
SELECT + 52 * - 90 FROM tab2 AS cor0
----
-4680
-4680
-4680

query I rowsort
SELECT - 87 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + + col0 col1 FROM tab1
----
121
155
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT col1 * 14 AS col0 FROM tab1 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4817
SELECT col1 * 14 AS col0 FROM tab1 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <= + 87
----
91
47
68

query I rowsort
SELECT + - col2 + + - ( 72 ) FROM tab2 AS cor0
----
-112
-130
-95

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 86 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT ALL - - COUNT( + col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL - - COUNT ( + col0 ) FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + + - col0 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT + - ( ( + col1 ) ) * - + col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT ALL ( - col0 ) AS col2 FROM tab1 cor0 WHERE col1 < - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT COUNT( - - 66 ) FROM tab1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4826
SELECT COUNT ( - - 66 ) FROM tab1 WHERE NOT NULL < NULL
----
0

query II rowsort
SELECT DISTINCT 38 AS col2, + 61 FROM tab1
----
38
61

query I rowsort
SELECT col2 * - - 24 FROM tab0 AS cor0
----
1128
2376
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4829
SELECT ALL + ( col0 ) * + + CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL + ( col0 ) * + + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query II rowsort
SELECT ALL + col0, 89 * - col2 FROM tab2 AS cor0
----
46
-2047
64
-3560
75
-5162

query I rowsort
SELECT DISTINCT 97 FROM tab0 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL - 97 * + 83 AS col1 FROM tab0
----
-8051
-8051
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT - - MIN( - 16 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-16

skipif mysql # not compatible
query I rowsort label-4833
SELECT - - MIN ( - 16 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT + + 95 * - + COUNT( * ) + 76 col1 FROM tab1 AS cor0
----
-209

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4834
SELECT + + 95 * - + COUNT ( * ) + 76 col1 FROM tab1 AS cor0
----
-209

query I rowsort
SELECT DISTINCT - col0 + - col0 + ( 49 ) FROM tab2 AS cor0
----
-101
-43
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT - 94 * + 47 * + COUNT( * ) FROM tab0 AS cor0
----
-13254

skipif mysql # not compatible
query I rowsort label-4836
SELECT - 94 * + 47 * + COUNT ( * ) FROM tab0 AS cor0
----
-13254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + 53 * - - col0 col2 FROM tab1 cor0 WHERE - col2 * - + 11 <= + col1 / col2
----

query I rowsort
SELECT ALL + col0 * - + col0 * + col0 - - col2 * + col2 FROM tab0 cor0
----
-1166
-658403
-902872

query I rowsort
SELECT DISTINCT ( - col1 ) * + 21 FROM tab1
----
-105
-294
-987

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 86 < col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * + + ( - + 91 ) * + ( - - col1 ) + - - col2 - col0 * + 85 / col0 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4842
SELECT 37 * col1 DIV + 80 + + 54 AS col2 FROM tab1 WHERE - ( + 58 ) - 94 IS NOT NULL
----
56
60
75

skipif mysql # not compatible
query I rowsort label-4842
SELECT 37 * col1 / + 80 + + 54 AS col2 FROM tab1 WHERE - ( + 58 ) - 94 IS NOT NULL
----
56
60
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT MAX( DISTINCT + - 68 ) + + MIN( DISTINCT - 37 ) FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-4843
SELECT MAX ( DISTINCT + - 68 ) + + MIN ( DISTINCT - 37 ) FROM tab1
----
-105

query I rowsort
SELECT - col0 * - 32 + col1 + + 86 AS col2 FROM tab2 AS cor0
----
1609
2211
2553

onlyif mysql # DIV for integer division: 
query I rowsort label-4845
SELECT DISTINCT col1 * col1 + - col0 DIV - 30 FROM tab0 AS cor0
----
4
443
6561

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT col1 * col1 + - col0 / - 30 FROM tab0 AS cor0
----
4
443
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT DISTINCT - COUNT( * ) + - 0 col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4846
SELECT DISTINCT - COUNT ( * ) + - 0 col2 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4847
SELECT DISTINCT + CAST( 12 AS SIGNED ) - + 74 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT + CAST ( 12 AS INTEGER ) - + 74 FROM tab1 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT - 26 + - SUM( ALL 21 ) FROM tab0 cor0
----
-89

skipif mysql # not compatible
query I rowsort label-4848
SELECT - 26 + - SUM ( ALL 21 ) FROM tab0 cor0
----
-89

query I rowsort
SELECT ALL + ( + 54 ) - - - col1 FROM tab0
----
-27
33
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL + ( - COUNT( ALL 52 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL + ( - COUNT ( ALL 52 ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ALL + - 46 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT - 15 * + col1 FROM tab1
----
-210
-705
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4853
SELECT + col2 * - col1 * 78 * col0 DIV + ( - - col0 ) + + col2 - + CAST( + 44 AS SIGNED ) - - col1 * - + col1 * + 75 col2 FROM tab2 AS cor0
----
-286590
-639769
-684919

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4853
SELECT + col2 * - col1 * 78 * col0 / + ( - - col0 ) + + col2 - + CAST ( + 44 AS INTEGER ) - - col1 * - + col1 * + 75 col2 FROM tab2 AS cor0
----
-286590
-639769
-684919

query II rowsort
SELECT ALL + 30, + 1 AS col2 FROM tab1 AS cor0
----
30
1
30
1
30
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 * - col1 * - 89 * + - 53 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4857
SELECT ALL - col0 AS col1, - CAST( col1 AS SIGNED ) FROM tab1 cor0
----
-51
-14
-85
-5
-91
-47

skipif mysql # not compatible
query II rowsort label-4857
SELECT ALL - col0 AS col1, - CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
-51
-14
-85
-5
-91
-47

query I rowsort
SELECT DISTINCT - 22 FROM tab2 AS cor0 WHERE ( col2 ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 <> + col2 + + col2 + 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + col2 ) * + + 53 AS col2 FROM tab2 AS cor0
----
-1219
-2120
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT ALL + COUNT( * ) * + MAX( ALL col1 ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + COUNT ( * ) * + MAX ( ALL col1 ) FROM tab2
----
231

onlyif mysql # DIV for integer division: 
query II rowsort label-4862
SELECT ALL col1 DIV + col2 AS col0, col0 col2 FROM tab0
----
0
97
1
15
2
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4862
SELECT ALL col1 / + col2 AS col0, col0 col2 FROM tab0
----
0
97
1
15
2
87

query III rowsort
SELECT * FROM tab1 WHERE NOT - 65 * col1 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT MIN( DISTINCT - + 46 ) AS col1 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-4864
SELECT MIN ( DISTINCT - + 46 ) AS col1 FROM tab1
----
-46

query I rowsort
SELECT - col1 * ( - col2 ) + - 59 FROM tab2 AS cor0
----
1114
3021
3827

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT + COUNT( - 12 ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4866
SELECT + COUNT ( - 12 ) col0 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4867
SELECT * FROM tab2 WHERE + col1 - + + CAST( + + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4867
SELECT * FROM tab2 WHERE + col1 - + + CAST ( + + col0 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT - - MAX( + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4868
SELECT - - MAX ( + col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT ALL - COUNT( - col1 ) + + 60 + - + COUNT( * ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL - COUNT ( - col1 ) + + 60 + - + COUNT ( * ) FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT + 58 + + - SUM( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
-127

skipif mysql # not compatible
query I rowsort label-4870
SELECT + 58 + + - SUM ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT DISTINCT - SUM( DISTINCT - col0 ) + + - MIN( - + col0 ) AS col1 FROM tab1 AS cor0
----
318

skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT - SUM ( DISTINCT - col0 ) + + - MIN ( - + col0 ) AS col1 FROM tab1 AS cor0
----
318

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT ALL + MIN( ALL + col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL + MIN ( ALL + col1 ) AS col1 FROM tab1
----
5

query II rowsort
SELECT col2 + - 65 AS col1, - col2 FROM tab2
----
-25
-40
-42
-23
-7
-58

query III rowsort
SELECT * FROM tab2 WHERE ( - - 72 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + 62 FROM tab1
----
121
130
158

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4876
SELECT ALL * FROM tab0 WHERE NOT col1 <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4876
SELECT ALL * FROM tab0 WHERE NOT col1 <> + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE - 59 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT DISTINCT - 51 * + 35 + MAX( DISTINCT col1 ) - + + COUNT( * ) FROM tab0 AS cor0
----
-1707

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT - 51 * + 35 + MAX ( DISTINCT col1 ) - + + COUNT ( * ) FROM tab0 AS cor0
----
-1707

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL + 88 * - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL + 88 * - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
-261

query I rowsort
SELECT DISTINCT + col1 - 84 AS col2 FROM tab2
----
-17
-33
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT + + MAX( ALL - 92 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-92

skipif mysql # not compatible
query I rowsort label-4881
SELECT + + MAX ( ALL - 92 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-92

query I rowsort
SELECT - + col1 + - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > col2
----

query I rowsort
SELECT DISTINCT ( - + col1 ) FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4884
SELECT - + COUNT( * ), 5 AS col2 FROM tab0 AS cor0
----
-3
5

skipif mysql # not compatible
query II rowsort label-4884
SELECT - + COUNT ( * ), 5 AS col2 FROM tab0 AS cor0
----
-3
5

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 56 * - - col2 / col1 AND ( NULL )
----

query II rowsort
SELECT col1, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

query II rowsort
SELECT ( - - 13 ) * + col1 * 75 + + - col1 AS col1, 27 FROM tab0 AS cor0
----
20454
27
78894
27
974
27

query I rowsort
SELECT ALL + 60 * 47 AS col2 FROM tab2 AS cor0
----
2820
2820
2820

onlyif mysql # DIV for integer division: 
query I rowsort label-4889
SELECT col0 DIV - - col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4889
SELECT col0 / - - col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 35 * - 67 * 12 AS col1 FROM tab1 AS cor0
----
-28140

query II rowsort
SELECT ALL + 20 * + col2 * col0 AS col2, - col2 * - col1 FROM tab0 AS cor0
----
14100
3807
17400
210
192060
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4892
SELECT DISTINCT 57 DIV - 32 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT 57 / - 32 AS col2 FROM tab2
----
-1

query I rowsort
SELECT - 84 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - - 30 / + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, col0 FROM tab2
----
51
46
67
75
77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - 60 * - col2 col0 FROM tab1
----
14
5760
47
4080
5
3540

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT + ( + + MIN( ALL - 46 ) ) col2 FROM tab0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4896
SELECT + ( + + MIN ( ALL - 46 ) ) col2 FROM tab0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL - MIN( 42 ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL - MIN ( 42 ) FROM tab0
----
-42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / - col2 >= + - 35
----

query II rowsort
SELECT ALL - - 76 AS col2, 52 AS col2 FROM tab2 AS cor0
----
76
52
76
52
76
52

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + - 60 + 29 IS NULL )
----

query I rowsort
SELECT ALL 30 + + - 33 AS col0 FROM tab2
----
-3
-3
-3

query I rowsort
SELECT - col0 * - 49 FROM tab2 cor0
----
2254
3136
3675

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT + ( + MIN( DISTINCT - col2 ) ) AS col2 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4903
SELECT + ( + MIN ( DISTINCT - col2 ) ) AS col2 FROM tab2 cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT - SUM( DISTINCT - col1 ) + + + MIN( DISTINCT - 96 ) FROM tab1 WHERE + - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT - SUM ( DISTINCT - col1 ) + + + MIN ( DISTINCT - 96 ) FROM tab1 WHERE + - col2 IS NULL
----
NULL

query I rowsort
SELECT ALL - col0 - + 0 - + col2 + col1 * 98 FROM tab1
----
1225
346
4447

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 63 + 68 / + 14 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4907
SELECT col0 + - ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT col0 + - ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 73 * 89 + + col1 AS col2 FROM tab0 AS cor0
----
6498
6518
6578

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT + + COUNT( * ) * + MIN( + col2 ) + 38 FROM tab1 AS cor0
----
215

skipif mysql # not compatible
query I rowsort label-4909
SELECT + + COUNT ( * ) * + MIN ( + col2 ) + 38 FROM tab1 AS cor0
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT + SUM( + ( 46 ) ) FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT + SUM ( + ( 46 ) ) FROM tab0 AS cor0
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4911
SELECT ALL COUNT( * ) DIV + COUNT( ALL col1 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL COUNT ( * ) / + COUNT ( ALL col1 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT col2 * 51 + col2 * - col0 FROM tab0
----
-360
-4554
1692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT CAST( 19 AS SIGNED ) FROM tab1
----
19
19
19

skipif mysql # not compatible
query I rowsort label-4913
SELECT CAST ( 19 AS INTEGER ) FROM tab1
----
19
19
19

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 79 ) * 36 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT MIN( DISTINCT col1 ) col2 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4916
SELECT MIN ( DISTINCT col1 ) col2 FROM tab2
----
51

query I rowsort
SELECT ALL - col2 - + 59 FROM tab1
----
-118
-127
-155

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + 16 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE col0 * 17 IS NULL
----

query I rowsort
SELECT + 83 * col0 FROM tab0 WHERE 19 * - col2 IS NOT NULL
----
1245
7221
8051

query I rowsort
SELECT 68 AS col1 FROM tab0 WHERE NULL BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4922
SELECT col0 AS col1 FROM tab0 WHERE NOT ( ( 69 ) / col1 + 54 ) NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4922
SELECT col0 AS col1 FROM tab0 WHERE NOT ( ( 69 ) / col1 + 54 ) NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 89 + - 39 FROM tab2
----
50
50
50

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 + + col0 ) NOT BETWEEN - col2 AND col1
----

query I rowsort
SELECT ALL ( ( + 12 ) ) FROM tab1
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4926
SELECT DISTINCT * FROM tab2 WHERE NULL = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4926
SELECT DISTINCT * FROM tab2 WHERE NULL = + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 64 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT + COUNT( ALL - col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4928
SELECT + COUNT ( ALL - col1 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT COUNT( * ) AS col0 FROM tab0 WHERE ( col1 ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4929
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE ( col1 ) = ( NULL )
----
0

query I rowsort
SELECT DISTINCT 92 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4931
SELECT DISTINCT - CAST( - col0 AS SIGNED ) + col0 AS col2 FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + col0 AS col2 FROM tab2
----
128
150
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4932
SELECT + COUNT( * ) * MIN( ALL 48 ) FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT + COUNT ( * ) * MIN ( ALL 48 ) FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT - 55 * - SUM( col0 * col2 ) FROM tab2 AS cor0
----
438240

skipif mysql # not compatible
query I rowsort label-4933
SELECT - 55 * - SUM ( col0 * col2 ) FROM tab2 AS cor0
----
438240

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4935
SELECT 67 DIV col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4935
SELECT 67 / col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT ALL 40 * + COUNT( * ) AS col0 FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL 40 * + COUNT ( * ) AS col0 FROM tab0
----
120

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 58 * col1 + col0 col1 FROM tab0 AS cor0
----
-1131
-4683
39

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE - col1 IN ( + col2 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4940
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 IN ( + col2 * + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT COUNT( * ) + 56 * + COUNT( * ) FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-4941
SELECT COUNT ( * ) + 56 * + COUNT ( * ) FROM tab0 AS cor0
----
171

query I rowsort
SELECT DISTINCT - 69 + + col0 AS col1 FROM tab2 cor0
----
-23
-5
6

query I rowsort
SELECT DISTINCT - - 4 - col2 AS col1 FROM tab1 AS cor0
----
-55
-64
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT - 89 * + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4944
SELECT - 89 * + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT - 57 * + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-1362
-2357
-3373

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT COUNT( 52 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4946
SELECT COUNT ( 52 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE ( - col2 ) NOT IN ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE ( - col2 ) NOT IN ( col2 )
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 10 * - col1 + + 74 * 44 FROM tab1 AS cor0
----
2786
3116
3206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 + col0 col1 FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT ALL + col0 / 63 AS col1 FROM tab0 WHERE - CAST( - col2 AS SIGNED ) + + col1 >= ( - col2 / CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL + col0 / 63 AS col1 FROM tab0 WHERE - CAST ( - col2 AS INTEGER ) + + col1 >= ( - col2 / CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - 59 * - ( + 45 ) + - col2 * ( + col0 ) FROM tab0
----
-6948
1785
1950

query I rowsort
SELECT DISTINCT ( - 87 ) * - col1 - - col2 FROM tab2
----
4460
5887
6739

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 > ( NULL )
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL COUNT( - 2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL COUNT ( - 2 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 FROM tab2 WHERE col0 * 74 NOT BETWEEN col2 AND col1 + - 72
----
51
67
77

query I rowsort
SELECT - col2 + col0 FROM tab0 WHERE ( col2 * col2 ) NOT IN ( + 19 )
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 * col1 + + col2 col0 FROM tab0 WHERE NOT ( NULL ) IN ( + 73 + + col0 )
----

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE col2 = + col1
----

query III rowsort
SELECT * FROM tab0 WHERE 13 + col1 NOT IN ( 61 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col0 - + 53 FROM tab1 AS cor0
----
-104
-138
-144

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IS NULL AND NOT col2 + col2 IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT col1 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-4966
SELECT - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT DISTINCT - ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( - 11 ) BETWEEN - col0 * col2 + 8 AND + col0 )
----

query I rowsort
SELECT - col1 - + 12 FROM tab1 AS cor0 WHERE NOT + 61 + + + col1 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT COUNT( * ) * - COUNT( * ) + + - ( COUNT( * ) ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4970
SELECT COUNT ( * ) * - COUNT ( * ) + + - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-12

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 cor0 WHERE NOT ( + col1 * 63 ) IN ( - 11 * - col1 + col2 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT - - MIN( ALL - 24 ) FROM tab2 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-4972
SELECT - - MIN ( ALL - 24 ) FROM tab2 cor0
----
-24

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 ) <= + col0
----

query I rowsort
SELECT 78 * - + col1 + + 47 AS col2 FROM tab0 AS cor0
----
-1591
-31
-6271

query I rowsort
SELECT + col1 * + + col1 AS col2 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT DISTINCT + + 77 * col0 * 12 FROM tab2 AS cor0
----
42504
59136
69300

query I rowsort
SELECT ALL - + 79 * + - col2 + + col0 + + col2 * + 53 FROM tab1 AS cor0
----
12723
7873
9067

query I rowsort
SELECT DISTINCT - 64 * - col1 * 77 FROM tab2
----
251328
330176
379456

query I rowsort
SELECT DISTINCT col0 * 25 FROM tab1 WHERE NOT + - ( + 11 ) IS NULL
----
1275
2125
2275

query I rowsort
SELECT - 71 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT - col2 BETWEEN ( - col1 - col2 ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + ( - 54 ) * - col2 AND NULL
----

query I rowsort
SELECT - 43 FROM tab1 WHERE NOT + + col2 <> 73
----

query I rowsort
SELECT ( 34 ) * + col1 + col2 * col2 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 = + 42
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col1 )
----

query II rowsort
SELECT col1 * + col1, + col1 FROM tab2
----
2601
51
4489
67
5929
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4988
SELECT ALL col0 * - col0 + + ( ( + col1 ) ) + col1 DIV + col1 FROM tab1
----
-2586
-7219
-8233

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL col0 * - col0 + + ( ( + col1 ) ) + col1 / + col1 FROM tab1
----
-2586
-7219
-8233

query I rowsort
SELECT + col1 + - - col2 + - col2 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 / - col0 / - - col2 IS NULL
----

query I rowsort
SELECT ( - - col0 ) + - 30 FROM tab2
----
16
34
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ( + + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4992
SELECT ( + + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - 10 * 72 + + col2 FROM tab1 AS cor0 WHERE NULL IN ( col0 * + col2 - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT COUNT( - 53 ) FROM tab0 AS cor0 WHERE + 24 + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4994
SELECT COUNT ( - 53 ) FROM tab0 AS cor0 WHERE + 24 + col1 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 14 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + 26 - - col2 col0 FROM tab2 AS cor0
----
1219
1704
2008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4997
SELECT - MIN( DISTINCT + CAST( - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4997
SELECT - MIN ( DISTINCT + CAST ( - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL 96 - - - 76 FROM tab2 cor0
----
20
20
20

query I rowsort
SELECT ALL ( - col1 ) - + col0 AS col1 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT DISTINCT 12 * - - col2 - + col0 FROM tab2
----
230
416
621

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5001
SELECT * FROM tab2 WHERE 58 * 52 + - 71 + - - 71 = - CAST( NULL AS SIGNED ) - - col1
----

skipif mysql # not compatible
query III rowsort label-5001
SELECT * FROM tab2 WHERE 58 * 52 + - 71 + - - 71 = - CAST ( NULL AS INTEGER ) - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col0 col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5003
SELECT COUNT( * ) DIV + - 8 + - ( - 45 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5003
SELECT COUNT ( * ) / + - 8 + - ( - 45 ) FROM tab0 AS cor0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5004
SELECT + 36 DIV + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5004
SELECT + 36 / + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 24 * - - col2 FROM tab1
----
1416
1632
2304

query II rowsort
SELECT ALL + col0, - col0 FROM tab0 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT col2 FROM tab0 cor0 WHERE NOT col1 > ( CAST( + 23 AS SIGNED ) + - 34 + + + col1 + - col2 * 36 )
----

skipif mysql # not compatible
query I rowsort label-5007
SELECT col2 FROM tab0 cor0 WHERE NOT col1 > ( CAST ( + 23 AS INTEGER ) + - 34 + + + col1 + - col2 * 36 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col0 + + + 83 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5009
SELECT - COUNT( * ) DIV + COUNT( * ) AS col0, + MAX( - col1 ) col0 FROM tab0 AS cor0
----
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5009
SELECT - COUNT ( * ) / + COUNT ( * ) AS col0, + MAX ( - col1 ) col0 FROM tab0 AS cor0
----
-1
-1

query I rowsort
SELECT 35 AS col1 FROM tab0 AS cor0 WHERE NOT ( ( NULL ) BETWEEN NULL AND ( col0 * + col0 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL - COUNT( + - col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL - COUNT ( + - col0 ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 98
----

query I rowsort
SELECT - 33 + + + col2 - - 84 FROM tab0
----
150
61
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT 62 + + col0 * + CAST( col2 AS SIGNED ) FROM tab0
----
767
932
9665

skipif mysql # not compatible
query I rowsort label-5015
SELECT 62 + + col0 * + CAST ( col2 AS INTEGER ) FROM tab0
----
767
932
9665

query I rowsort
SELECT DISTINCT 1 * - - 89 AS col0 FROM tab1
----
89

query II rowsort
SELECT col1 AS col1, - col0 * col1 + col2 AS col0 FROM tab2 WHERE NOT NULL >= NULL OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT ALL COUNT( * ) + - - 0 col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5018
SELECT ALL COUNT ( * ) + - - 0 col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE - 57 NOT IN ( + 61 + col0 * - col1 * + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT DISTINCT - COUNT( * ) * 75 + - 13 AS col1 FROM tab2 AS cor0
----
-238

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT - COUNT ( * ) * 75 + - 13 AS col1 FROM tab2 AS cor0
----
-238

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 14 < ( - 61 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5022
SELECT DISTINCT - CAST( - 86 AS SIGNED ) * + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
4386
7310
7826

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT - CAST ( - 86 AS INTEGER ) * + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
4386
7310
7826

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col0 * - 89 * - col2 AS col0 FROM tab1
----
-435744
-446335
-550732

query I rowsort
SELECT - 47 + col2 * + ( - col0 ) + - - ( col0 ) + - 76 FROM tab0
----
-813
-906
-9629

query II rowsort
SELECT ALL 53 + - + 11, + col1 FROM tab0
----
42
1
42
21
42
81

query I rowsort
SELECT + 79 + + col2 + - - 58 AS col2 FROM tab0 AS cor0
----
147
184
236

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 + col1 + + col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT DISTINCT ( COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT col0 + + - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT col0 + + - col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT DISTINCT - + COUNT( * ) FROM tab2 WHERE - col0 + + col1 * - 37 * col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT - + COUNT ( * ) FROM tab2 WHERE - col0 + + col1 * - 37 * col1 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 22 <= col0 - col2 - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT COUNT( * ) * + 66 FROM tab0 WHERE NOT - ( + 20 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5033
SELECT COUNT ( * ) * + 66 FROM tab0 WHERE NOT - ( + 20 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT ALL - - SUM( + 16 ) AS col1 FROM tab0 WHERE NOT col1 IS NULL
----
48

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL - - SUM ( + 16 ) AS col1 FROM tab0 WHERE NOT col1 IS NULL
----
48

query II rowsort
SELECT col2 AS col1, + col1 + - 4 FROM tab1
----
59
1
68
43
96
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT DISTINCT - ( + COUNT( * ) ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5036
SELECT DISTINCT - ( + COUNT ( * ) ) col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5037
SELECT + - col0 FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5037
SELECT + - col0 FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT + 93 FROM tab1 WHERE NOT col0 IS NULL
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT ALL + + CAST( NULL AS SIGNED ) / col0 / - + 51 FROM tab0 WHERE + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL + + CAST ( NULL AS INTEGER ) / col0 / - + 51 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT - + col0 AS col0 FROM tab1 WHERE NULL < col1 AND NOT 54 IS NOT NULL
----

query I rowsort
SELECT - col1 * + col1 * - col2 + col2 AS col2 FROM tab0 AS cor0
----
198
308414
4420

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 + col2 BETWEEN + - col0 AND NULL
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT ALL - COUNT( ALL col2 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5043
SELECT ALL - COUNT ( ALL col2 ) col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT - SUM( + 76 ) FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-5044
SELECT - SUM ( + 76 ) FROM tab2
----
-228

onlyif mysql # aggregate syntax: 
query II rowsort label-5045
SELECT + 96, ( - - ( + COUNT( * ) ) ) AS col1 FROM tab1 AS cor0
----
96
3

skipif mysql # not compatible
query II rowsort label-5045
SELECT + 96, ( - - ( + COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0
----
96
3

query II rowsort
SELECT + - col2 AS col1, - 84 FROM tab2 AS cor0
----
-23
-84
-40
-84
-58
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-5047
SELECT - + COUNT( * ) AS col1, - 39 AS col0 FROM tab2 AS cor0
----
-3
-39

skipif mysql # not compatible
query II rowsort label-5047
SELECT - + COUNT ( * ) AS col1, - 39 AS col0 FROM tab2 AS cor0
----
-3
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5048
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL > + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL > + 4
----
NULL

query I rowsort
SELECT 67 * + col2 * 15 FROM tab2 AS cor0
----
23115
40200
58290

onlyif mysql # DIV for integer division: 
query II rowsort label-5050
SELECT ALL + col0, 5 + col1 * col1 * - col2 + - 6 DIV - 58 + + col0 AS col1 FROM tab0 AS cor0
----
15
-308347
87
-4318
97
3

skipif mysql # not compatible
query II rowsort label-5050
SELECT ALL + col0, 5 + col1 * col1 * - col2 + - 6 / - 58 + + col0 AS col1 FROM tab0 AS cor0
----
15
-308347
87
-4318
97
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5051
SELECT DISTINCT + 71 col2, COUNT( * ) FROM tab0 AS cor0
----
71
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5051
SELECT DISTINCT + 71 col2, COUNT ( * ) FROM tab0 AS cor0
----
71
3

query II rowsort
SELECT DISTINCT + 41 AS col0, 14 + - 92 + + col1 * + + ( - - col0 ) FROM tab2 AS cor0
----
41
2268
41
4850
41
4947

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT col0 * + 45 * - col0 AS col2, col0 AS col2 FROM tab1
----
-117045
51
-325125
85
-372645
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT DISTINCT MIN( col0 ) * + COUNT( * ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT MIN ( col0 ) * + COUNT ( * ) FROM tab0
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5056
SELECT - - 26 * CAST( NULL AS DECIMAL ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5056
SELECT - - 26 * CAST ( NULL AS REAL ) FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col0, 33 AS col2 FROM tab2 WHERE + ( col0 ) IS NOT NULL
----
46
33
64
33
75
33

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= col0 / + + col1 * + col0
----

query I rowsort
SELECT col1 * col2 + + 35 FROM tab0
----
134
245
3842

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT + 8 * 99 + + + MIN( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
851

skipif mysql # not compatible
query I rowsort label-5060
SELECT + 8 * 99 + + + MIN ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
851

onlyif mysql # aggregate syntax: 
query II rowsort label-5061
SELECT - + 60 + + - 47, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-107
3

skipif mysql # not compatible
query II rowsort label-5061
SELECT - + 60 + + - 47, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-107
3

query I rowsort
SELECT ALL - + col1 * + + col0 + - + col1 AS col0 FROM tab2 AS cor0
----
-2397
-5005
-5092

query I rowsort
SELECT col2 + 56 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col2 AND - col1
----

query I rowsort
SELECT DISTINCT + 87 FROM tab1 cor0 WHERE 41 * + col2 IS NOT NULL
----
87

query I rowsort
SELECT - + 92 + + col0 FROM tab2 WHERE - + col2 IS NULL
----

query I rowsort
SELECT ALL 45 - + col2 AS col0 FROM tab2
----
-13
22
5

query I rowsort
SELECT + - 21 * - col0 * - ( - 83 ) - + + col0 FROM tab2 cor0
----
111488
130650
80132

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT ( NOT ( - 98 ) = - 51 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 - - col1 col2 FROM tab2 AS cor0
----
1
17
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN col0 AND + col2 / 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT + 59 - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5071
SELECT + 59 - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5072
SELECT ALL + col1 DIV - + col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL + col1 / - + col1 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT + COUNT( * ) * - - SUM( DISTINCT + 3 ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5073
SELECT + COUNT ( * ) * - - SUM ( DISTINCT + 3 ) AS col2 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT - COUNT( DISTINCT - - 33 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5074
SELECT - COUNT ( DISTINCT - - 33 ) FROM tab2
----
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 < - col1 / + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5076
SELECT DISTINCT + + ( - 70 ) DIV - - COUNT( * ) FROM tab0 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT + + ( - 70 ) / - - COUNT ( * ) FROM tab0 cor0
----
-23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - ( + ( - col1 ) ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ALL SUM( + 76 ) FROM tab2 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL SUM ( + 76 ) FROM tab2 AS cor0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT ALL + + MAX( - - 61 ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + + MAX ( - - 61 ) FROM tab2 AS cor0
----
61

query I rowsort
SELECT ALL ( - 36 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # DIV for integer division: 
query I rowsort label-5081
SELECT ALL + col0 DIV 18 AS col1 FROM tab1
----
2
4
5

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL + col0 / 18 AS col1 FROM tab1
----
2
4
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( 75 ) AND - col1 + + 82
----

query I rowsort
SELECT ALL - 56 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT ALL + - 89 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - + col0 ) < + col1 + + col2 * + 22
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 >= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 + + + col2 col1 FROM tab0 cor0
----
147
58
95

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5088
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * + - ( + 6 ) <> - + 49 + CAST( NULL AS DECIMAL ) + - col2
----

skipif mysql # not compatible
query III rowsort label-5088
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * + - ( + 6 ) <> - + 49 + CAST ( NULL AS REAL ) + - col2
----

query I rowsort
SELECT DISTINCT - + 85 + col1 * col0 FROM tab2 AS cor0
----
2261
4843
4940

query I rowsort
SELECT + 14 * 43 * 13 AS col0 FROM tab1 AS cor0 WHERE - 35 + col2 IS NOT NULL
----
7826
7826
7826

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NULL > 19 + + + 51 + - col1 + - + col1 * 60
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5092
SELECT DISTINCT + ( - - MIN( ALL - col2 ) ) col0, + 83 col1 FROM tab0 AS cor0
----
-99
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5092
SELECT DISTINCT + ( - - MIN ( ALL - col2 ) ) col0, + 83 col1 FROM tab0 AS cor0
----
-99
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5093
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5093
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5094
SELECT 26 + - COUNT( * ) * - - AVG ( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT 26 + - COUNT ( * ) * - - AVG ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT + 81 DIV 93 + - 21 DIV - col1 AS col0 FROM tab0
----
0
1
21

skipif mysql # not compatible
query I rowsort label-5095
SELECT + 81 / 93 + - 21 / - col1 AS col0 FROM tab0
----
0
1
21

query II rowsort
SELECT DISTINCT - col1 AS col2, + ( - ( + - 4 ) ) AS col2 FROM tab1
----
-14
4
-47
4
-5
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5097
SELECT ALL 74 AS col1, COUNT( * ) FROM tab1
----
74
3

skipif mysql # not compatible
query II rowsort label-5097
SELECT ALL 74 AS col1, COUNT ( * ) FROM tab1
----
74
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5098
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col1, + 47 * + COUNT( * ) AS col0 FROM tab0
----
3
141

skipif mysql # not compatible
query II rowsort label-5098
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col1, + 47 * + COUNT ( * ) AS col0 FROM tab0
----
3
141

query II rowsort
SELECT - 53 + + + col0 AS col1, col1 FROM tab2
----
-7
51
11
77
22
67

query I rowsort
SELECT - col1 * + 37 + - 10 FROM tab0
----
-3007
-47
-787

query III rowsort
SELECT * FROM tab1 WHERE NULL = + + col1
----

query III rowsort
SELECT * FROM tab2 WHERE + + ( - col1 ) < col0 / + + 15 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL + - SUM( DISTINCT 19 ) - + + 78 AS col0 FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL + - SUM ( DISTINCT 19 ) - + + 78 AS col0 FROM tab2 AS cor0
----
-97

query I rowsort
SELECT ALL + - col2 + 88 FROM tab2 AS cor0
----
30
48
65

query I rowsort
SELECT DISTINCT - col0 + - - 77 AS col1 FROM tab2 AS cor0
----
13
2
31

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( 45 >= NULL ) )
----

query I rowsort
SELECT + AVG ( ( + col1 ) ) FROM tab1 WHERE col2 <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT ALL - 48 + + 42 - + 16 - + MAX( - col0 ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL - 48 + + 42 - + 16 - + MAX ( - col0 ) FROM tab0
----
-7

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 97 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < 12 * + + 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT 35 * ( + + COUNT( * ) ) FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-5111
SELECT 35 * ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
105

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE + 41 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5113
SELECT DISTINCT - CAST( - 25 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT - CAST ( - 25 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
25

query I rowsort
SELECT ALL 94 * - col0 FROM tab0 AS cor0
----
-1410
-8178
-9118

query I rowsort
SELECT DISTINCT + ( - col1 ) * - 92 AS col0 FROM tab0 AS cor0
----
1932
7452
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5116
SELECT COUNT( DISTINCT + + col1 ), 79 AS col2 FROM tab2 AS cor0
----
3
79

skipif mysql # not compatible
query II rowsort label-5116
SELECT COUNT ( DISTINCT + + col1 ), 79 AS col2 FROM tab2 AS cor0
----
3
79

query I rowsort
SELECT - ( + 52 ) FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5118
SELECT DISTINCT CAST( - - col2 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - + 87 AS col2 FROM tab0 AS cor0
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-5120
SELECT - 83 * COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab2, tab2 AS cor0
----
-747
9

skipif mysql # not compatible
query II rowsort label-5120
SELECT - 83 * COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0
----
-747
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5121
SELECT DISTINCT + col2 DIV col0 * CAST( 37 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT + col2 / col0 * CAST ( 37 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5122
SELECT ALL + 65 DIV col1 col0 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5122
SELECT ALL + 65 / col1 col0 FROM tab2 cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT ALL + COUNT( * ) * + COUNT( * ) + COUNT( + ( - 89 ) ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL + COUNT ( * ) * + COUNT ( * ) + COUNT ( + ( - 89 ) ) FROM tab0 AS cor0
----
12

query I rowsort
SELECT ALL col1 FROM tab2 cor0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col0, - col0 + - col0 FROM tab0 AS cor0
----
1
-194
21
-174
81
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-5126
SELECT col0 DIV + 60 + - col1 FROM tab1
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-5126
SELECT col0 / + 60 + - col1 FROM tab1
----
-14
-4
-46

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > col2 AND NULL NOT IN ( + 33, col1 + - + col2, + col0 - - - 73, - col1 - + + 23 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - + 45, col0 )
----

query I rowsort
SELECT + col1 * 98 FROM tab1 cor0
----
1372
4606
490

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + col2 ) AND col1 - + - col1
----

query II rowsort
SELECT ALL - 62 + - col1, + col1 FROM tab0 AS cor0
----
-143
81
-63
1
-83
21

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 <= + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - col0 + + - col0 * - col0 FROM tab2 AS cor0
----
2070
4032
5550

query I rowsort
SELECT DISTINCT 5 + - col1 FROM tab2 AS cor0
----
-46
-62
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + + 90 AS col1, - 30 col1 FROM tab1 AS cor0
----
104
-30
137
-30
95
-30

query II rowsort
SELECT ALL + col2 AS col0, col2 AS col1 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT DISTINCT MIN( + 37 ) AS col2 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT MIN ( + 37 ) AS col2 FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT - 51 + COUNT( * ) AS col2 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-5139
SELECT - 51 + COUNT ( * ) AS col2 FROM tab1
----
-48

query I rowsort
SELECT col0 + - ( + 24 ) AS col2 FROM tab0
----
-9
63
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5141
SELECT ALL ( - CAST( NULL AS SIGNED ) ) + col1 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) + col1 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT DISTINCT + 81 + 38 + + COUNT( * ) col2 FROM tab2 AS cor0
----
122

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5142
SELECT DISTINCT + 81 + 38 + + COUNT ( * ) col2 FROM tab2 AS cor0
----
122

query I rowsort
SELECT - 65 + + 48 FROM tab0 AS cor0
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT DISTINCT - 87 * CAST( + 73 AS SIGNED ) * - - col2 + - + col0 - col2 + - col2 AS col2 FROM tab2
----
-146165
-254184
-368549

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT - 87 * CAST ( + 73 AS INTEGER ) * - - col2 + - + col0 - col2 + - col2 AS col2 FROM tab2
----
-146165
-254184
-368549

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, col1 + + col2 + - - col0 col2 FROM tab1 AS cor0
----
-14
161
-47
206
-5
149

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT col0 DIV ( - col2 ) FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5146
SELECT col0 / ( - col2 ) FROM tab0 AS cor0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT + - MIN( DISTINCT col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5147
SELECT + - MIN ( DISTINCT col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL - col2 * - + col1 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

query II rowsort
SELECT ALL + col2, - col0 AS col1 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT DISTINCT + + MIN( DISTINCT - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT + + MIN ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 - ( - - 18 ) + + col1 NOT BETWEEN col2 * - - col2 AND + + col0 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 84 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT - col0 * - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT SUM( DISTINCT + + col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5154
SELECT SUM ( DISTINCT + + col0 ) AS col2 FROM tab0
----
199

query I rowsort
SELECT DISTINCT 59 * - col1 FROM tab0 WHERE NULL IS NULL
----
-1239
-4779
-59

onlyif mysql # DIV for integer division: 
query III rowsort label-5156
SELECT - 23 DIV col1, 73 col1, + + col1 AS col2 FROM tab1
----
9 values hashing to 1a8d0cc1b3660b6bbe21931825a5c309

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5156
SELECT - 23 / col1, 73 col1, + + col1 AS col2 FROM tab1
----
9 values hashing to 1a8d0cc1b3660b6bbe21931825a5c309

query II rowsort
SELECT ( + + col1 ), - col1 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT DISTINCT + 54 + - col1 FROM tab0 AS cor0
----
-27
33
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5159
SELECT ALL + + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL + + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - col1 * + - col2 * - col0 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL + AVG ( DISTINCT 45 ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN - col2 AND + col2 * - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT - 35 * COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-315

skipif mysql # not compatible
query I rowsort label-5162
SELECT - 35 * COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-315

query I rowsort
SELECT DISTINCT + 93 * - - col2 + + col2 FROM tab1 AS cor0
----
5546
6392
9024

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT + + 35 + + COUNT( * ) col1 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5164
SELECT + + 35 + + COUNT ( * ) col1 FROM tab2 AS cor0
----
38

query I rowsort
SELECT DISTINCT - ( col2 ) * ( + + col1 ) FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT col0 DIV + + 57 + + col0 AS col1 FROM tab0
----
15
88
98

skipif mysql # not compatible
query I rowsort label-5166
SELECT col0 / + + 57 + + col0 AS col1 FROM tab0
----
15
88
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5167
SELECT ALL ( + - col0 ) * - - col2 DIV + + col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL ( + - col0 ) * - - col2 / + + col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - 58 * + + 37 AS col1 FROM tab0
----
-2146

query I rowsort
SELECT - 16 FROM tab0 WHERE - col1 * 61 <> + 66 * + - 54 * + col1
----
-16
-16
-16

query I rowsort
SELECT - ( - + ( col1 ) ) * ( col1 ) FROM tab2
----
2601
4489
5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5171
SELECT ALL - COUNT( * ) DIV + CAST( + 79 AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL - COUNT ( * ) / + CAST ( + 79 AS INTEGER ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 + - + col1 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT - 44 - + MAX( DISTINCT + ( col2 ) ) * - 3 FROM tab0 cor0
----
253

skipif mysql # not compatible
query I rowsort label-5173
SELECT - 44 - + MAX ( DISTINCT + ( col2 ) ) * - 3 FROM tab0 cor0
----
253

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5175
SELECT DISTINCT - + ( - col1 ) AS col0 FROM tab2 WHERE NULL <> CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT - + ( - col1 ) AS col0 FROM tab2 WHERE NULL <> CAST ( - col2 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT MIN( ALL + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT MIN ( ALL + col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT col2 * - - 59 FROM tab2 AS cor0
----
1357
2360
3422

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + + ( + 96 ) IN ( col2 / 52 + + 82, + col0, - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * - ( + 11 ) - - 73 AS col0 FROM tab0 WHERE 58 >= ( NULL )
----

query I rowsort
SELECT ( + - ( - col0 ) ) FROM tab1
----
51
85
91

query II rowsort
SELECT - ( - - col1 ), ( col1 ) FROM tab2
----
-51
51
-67
67
-77
77

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE - col0 NOT BETWEEN 38 AND + 46
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5184
SELECT DISTINCT - 21 DIV + col2 AS col2 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT - 21 / + col2 AS col2 FROM tab0
----
-2
0

query I rowsort
SELECT ALL - col2 + + 61 FROM tab2 AS cor0
----
21
3
38

query II rowsort
SELECT + - col2 AS col2, col1 + col1 AS col1 FROM tab0 AS cor0
----
-10
42
-47
162
-99
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5187
SELECT + CAST( NULL AS SIGNED ) * 50 * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5187
SELECT + CAST ( NULL AS INTEGER ) * 50 * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * - + col2 + - col1 * - - col0 FROM tab0 AS cor0
----
-1927
-3424
-9898

query I rowsort
SELECT col1 + - 12 * - col1 AS col0 FROM tab0 AS cor0
----
1053
13
273

query I rowsort
SELECT DISTINCT - 8 * + - col1 FROM tab1 AS cor0
----
112
376
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT COUNT( * ) * + - COUNT( * ) * + 47 + + COUNT( * ) col1 FROM tab1
----
-420

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5191
SELECT COUNT ( * ) * + - COUNT ( * ) * + 47 + + COUNT ( * ) col1 FROM tab1
----
-420

onlyif mysql # DIV for integer division: 
query II rowsort label-5192
SELECT + col0 DIV + col0 AS col2, + col1 FROM tab1 AS cor0
----
1
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-5192
SELECT + col0 / + col0 AS col2, + col1 FROM tab1 AS cor0
----
1
14
1
47
1
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT ALL CAST( + CAST( - + col2 AS SIGNED ) AS SIGNED ) + + col0 AS col0 FROM tab0 AS cor0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL CAST ( + CAST ( - + col2 AS INTEGER ) AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT COUNT( - + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5194
SELECT COUNT ( - + col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT DISTINCT - 53 + + COUNT( * ) - + - MIN( + col1 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT - 53 + + COUNT ( * ) - + - MIN ( + col1 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE col1 * + 94 IS NULL
----

query I rowsort
SELECT - + ( + + col0 ) + - col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + + 38 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT ALL + + COUNT( * ) + + COUNT( DISTINCT + col0 ) - 51 * - + 94 FROM tab1 AS cor0
----
4800

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL + + COUNT ( * ) + + COUNT ( DISTINCT + col0 ) - 51 * - + 94 FROM tab1 AS cor0
----
4800

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5199
SELECT ALL * FROM tab0 AS cor0 WHERE 63 * - col0 NOT BETWEEN + col2 * - col1 + - - 89 + + CAST( 69 AS SIGNED ) AND col2
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-5199
SELECT ALL * FROM tab0 AS cor0 WHERE 63 * - col0 NOT BETWEEN + col2 * - col1 + - - 89 + + CAST ( 69 AS INTEGER ) AND col2
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 - col2 col1 FROM tab0
----
-107
-144
-196

query I rowsort
SELECT col1 * col0 * col1 + + + col1 + col2 FROM tab2
----
119720
336800
379573

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT + SUM( col0 ) + + + 15 FROM tab2
----
200

skipif mysql # not compatible
query I rowsort label-5202
SELECT + SUM ( col0 ) + + + 15 FROM tab2
----
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5203
SELECT CAST( + 92 AS SIGNED ) + - 8 AS col0 FROM tab1
----
84
84
84

skipif mysql # not compatible
query I rowsort label-5203
SELECT CAST ( + 92 AS INTEGER ) + - 8 AS col0 FROM tab1
----
84
84
84

query I rowsort
SELECT ( - - col1 ) + - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ALL + COUNT( ALL 49 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL + COUNT ( ALL 49 ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT + col2 * + ( col2 ) AS col2 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5207
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 - + col2 + + CAST( - 33 AS SIGNED ) + - + col0 * col0 * + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5207
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 - + col2 + + CAST ( - 33 AS INTEGER ) + - + col0 * col0 * + col1 IS NOT NULL
----

query II rowsort
SELECT + 75 * + col2, col1 FROM tab1 AS cor0
----
4425
5
5100
47
7200
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT + + ( - - ( - COUNT( - col2 ) ) ) * + 18 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5209
SELECT + + ( - - ( - COUNT ( - col2 ) ) ) * + 18 FROM tab1 AS cor0
----
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5210
SELECT - 5 FROM tab1 cor0 WHERE NOT CAST( NULL AS DECIMAL ) >= + 1
----

skipif mysql # not compatible
query I rowsort label-5210
SELECT - 5 FROM tab1 cor0 WHERE NOT CAST ( NULL AS REAL ) >= + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT DISTINCT - SUM( ALL - + ( + - col1 ) ) * - ( - 22 ) FROM tab0 AS cor0
----
-2266

skipif mysql # not compatible
query I rowsort label-5211
SELECT DISTINCT - SUM ( ALL - + ( + - col1 ) ) * - ( - 22 ) FROM tab0 AS cor0
----
-2266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5212
SELECT - 33 * CAST( - - col2 AS SIGNED ) FROM tab1 cor0
----
-1947
-2244
-3168

skipif mysql # not compatible
query I rowsort label-5212
SELECT - 33 * CAST ( - - col2 AS INTEGER ) FROM tab1 cor0
----
-1947
-2244
-3168

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 16 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
51
67
77

query II rowsort
SELECT col0 AS col1, + col2 AS col0 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT col0 + - + 77 + + col1 FROM tab0
----
19
21
31

query I rowsort
SELECT - 18 * + + col1 + + col0 * + + 83 AS col1 FROM tab2
----
2900
3926
5019

onlyif mysql # DIV for integer division: 
query I rowsort label-5218
SELECT - col2 DIV - ( + + col2 ) + - + col0 FROM tab1
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-5218
SELECT - col2 / - ( + + col2 ) + - + col0 FROM tab1
----
-50
-84
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5219
SELECT col0 + + col2 * col2 DIV col0 FROM tab0
----
162
198
88

skipif mysql # not compatible
query I rowsort label-5219
SELECT col0 + + col2 * col2 / col0 FROM tab0
----
162
198
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT DISTINCT - COUNT( ALL + col1 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT - COUNT ( ALL + col1 ) AS col2 FROM tab1
----
-3

query II rowsort
SELECT ALL col1, - ( 51 ) * - col0 + + + col2 FROM tab0
----
1
5046
21
4447
81
812

query I rowsort
SELECT + 53 + + col2 FROM tab2 cor0
----
111
76
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT DISTINCT - + COUNT( * ) + COUNT( - col0 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT - + COUNT ( * ) + COUNT ( - col0 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - 66 + ( + + 62 ) FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ( 77 ) AS col2 FROM tab2 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT DISTINCT + COUNT( * ) - COUNT( * ) * - 10 AS col0 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) * - 10 AS col0 FROM tab1 AS cor0
----
33

query II rowsort
SELECT - 22 AS col1, - col2 FROM tab2 AS cor0
----
-22
-23
-22
-40
-22
-58

query I rowsort
SELECT 14 * col2 * 63 * + col2 + - - col1 FROM tab2 AS cor0
----
1411277
2967115
466629

query I rowsort
SELECT + - col2 FROM tab1 WHERE - col1 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5230
SELECT 33 * - COUNT( 82 ) * - - SUM( + - CAST( 11 AS SIGNED ) ) FROM tab2
----
3267

skipif mysql # not compatible
query I rowsort label-5230
SELECT 33 * - COUNT ( 82 ) * - - SUM ( + - CAST ( 11 AS INTEGER ) ) FROM tab2
----
3267

query II rowsort
SELECT DISTINCT col1 - - col2, 99 AS col2 FROM tab0
----
100
99
128
99
31
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT CAST( + col0 AS SIGNED ) * + 65 + + - col0 AS col0 FROM tab1
----
3264
5440
5824

skipif mysql # not compatible
query I rowsort label-5232
SELECT CAST ( + col0 AS INTEGER ) * + 65 + + - col0 AS col0 FROM tab1
----
3264
5440
5824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 74 * 82 col1, col2 FROM tab2
----
6068
23
6068
40
6068
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 70 col0 FROM tab2 AS cor0
----
-3220
-4480
-5250

onlyif mysql # DIV for integer division: 
query II rowsort label-5235
SELECT ALL - + col1 DIV - - col1, 24 AS col2 FROM tab0 AS cor0
----
-1
24
-1
24
-1
24

skipif mysql # not compatible
query II rowsort label-5235
SELECT ALL - + col1 / - - col1, 24 AS col2 FROM tab0 AS cor0
----
-1
24
-1
24
-1
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT + MAX( ALL col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5236
SELECT + MAX ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT + MIN( 60 ) AS col1 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-5237
SELECT + MIN ( 60 ) AS col1 FROM tab0
----
60

query I rowsort
SELECT ALL - - 12 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT - + 97 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT ALL - COUNT( * ) AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT ALL - + 92 * - COUNT( * ) AS col1 FROM tab2 cor0
----
276

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL - + 92 * - COUNT ( * ) AS col1 FROM tab2 cor0
----
276

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5242
SELECT - CAST( NULL AS DECIMAL ) * + col0 * + col0 AS col0, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-5242
SELECT - CAST ( NULL AS REAL ) * + col0 * + col0 AS col0, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + col2 ) + + 30 - - + 76 + - + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5244
SELECT DISTINCT - 11 DIV + + col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT - 11 / + + col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, col2 col1 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col2 FROM tab0 AS cor0 WHERE NOT col2 * + - col1 IS NULL
----
-51
-51
-51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL 60 * - + ( - col2 ) AS col2 FROM tab0
----
2820
5940
600

query I rowsort
SELECT ALL + col1 * + col0 + + col0 * - + 16 AS col2 FROM tab2
----
1610
3825
3904

query III rowsort
SELECT * FROM tab1 WHERE - - 53 + - col2 = NULL
----

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NULL >= - col1
----

query I rowsort
SELECT - - col1 + + 57 + col0 FROM tab1 AS cor0
----
122
147
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5253
SELECT DISTINCT + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - + 40 ) FROM tab2
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * 46 + - col1 + - - col1 col2 FROM tab1 AS cor0
----
1472
1472
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT ALL + + SUM( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL + + SUM ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT 82 - - COUNT( * ) FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5258
SELECT 82 - - COUNT ( * ) FROM tab0 AS cor0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT ALL + 49 + - CAST( - - 70 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL + 49 + - CAST ( - - 70 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + ( - - 22 ) - col1 AS col0 FROM tab0 AS cor0
----
-59
1
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5261
SELECT + col2 - 9 + + col1 DIV - - 8 FROM tab1 AS cor0
----
50
64
88

skipif mysql # not compatible
query I rowsort label-5261
SELECT + col2 - 9 + + col1 / - - 8 FROM tab1 AS cor0
----
50
64
88

query III rowsort
SELECT * FROM tab1 WHERE - 38 + 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 - ( ( col2 ) ) + - + 63 AS col1 FROM tab1
----
-181
-199
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT ALL COUNT( * ) * + COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT 73 FROM tab0 WHERE NULL NOT BETWEEN - 57 AND ( + - col0 )
----

query I rowsort
SELECT - col1 * - col1 * + 67 FROM tab0
----
29547
439587
67

query II rowsort
SELECT - - col1 - + - 18 AS col2, col1 FROM tab1 WHERE NOT NULL <= + + col0 + + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5269
SELECT 67 AS col0, + COUNT( * ) FROM tab1
----
67
3

skipif mysql # not compatible
query II rowsort label-5269
SELECT 67 AS col0, + COUNT ( * ) FROM tab1
----
67
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT - 32 * - - ( + MIN( DISTINCT + + ( col0 ) ) ) FROM tab1
----
-1632

skipif mysql # not compatible
query I rowsort label-5270
SELECT - 32 * - - ( + MIN ( DISTINCT + + ( col0 ) ) ) FROM tab1
----
-1632

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 60 >= NULL
----

query I rowsort
SELECT DISTINCT + col0 * 91 AS col1 FROM tab2 AS cor0
----
4186
5824
6825

query I rowsort
SELECT 49 FROM tab1 AS cor0 WHERE NOT ( - col1 ) / + 33 + ( + 95 ) IS NOT NULL
----

query I rowsort
SELECT 40 * + - 98 FROM tab0
----
-3920
-3920
-3920

onlyif mysql # DIV for integer division: 
query I rowsort label-5275
SELECT ALL + col0 DIV - + col0 + 1 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL + col0 / - + col0 + 1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 93 + - 91 AS col0 FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5277
SELECT - - MAX( DISTINCT - col1 ) AS col2, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-5
3

skipif mysql # not compatible
query II rowsort label-5277
SELECT - - MAX ( DISTINCT - col1 ) AS col2, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-5
3

query I rowsort
SELECT - col2 * + col0 + - 66 + col2 FROM tab0 AS cor0
----
-724
-926
-9570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5279
SELECT + col1 + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5279
SELECT + col1 + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5280
SELECT ALL + CAST( - + 48 AS SIGNED ), ( - - col0 ) col2 FROM tab1 AS cor0
----
-48
51
-48
85
-48
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5280
SELECT ALL + CAST ( - + 48 AS INTEGER ), ( - - col0 ) col2 FROM tab1 AS cor0
----
-48
51
-48
85
-48
91

query II rowsort
SELECT ALL + col2 AS col1, col1 AS col2 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT ALL 24 * + col1 FROM tab2
----
1224
1608
1848

query I rowsort
SELECT + col0 + - 32 AS col1 FROM tab1
----
19
53
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT DISTINCT COUNT( * ) * + 75 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT COUNT ( * ) * + 75 FROM tab1
----
225

query I rowsort
SELECT DISTINCT + 4 + + col1 AS col1 FROM tab0
----
25
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE - 85 * col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE - 85 * col1 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT + - col2 + + - col2 FROM tab2 cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5289
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + CAST( NULL AS DECIMAL ) + + col1 + + col1 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5289
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + CAST ( NULL AS REAL ) + + col1 + + col1 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT + 15 * - ( - COUNT( + 35 ) ) * MIN( + col1 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5290
SELECT + 15 * - ( - COUNT ( + 35 ) ) * MIN ( + col1 ) FROM tab0 AS cor0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT - + col1 - - col1 - + 19 DIV - - col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5291
SELECT - + col1 - - col1 - + 19 / - - col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - col2 * - col2 * - col1 - ( + col0 ) + - 29 FROM tab2
----
-123293
-225492
-27054

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5293
SELECT ALL CAST( 6 AS SIGNED ) AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL CAST ( 6 AS INTEGER ) AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5294
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-5294
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5295
SELECT DISTINCT MIN( col2 ) DIV + 42 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5295
SELECT DISTINCT MIN ( col2 ) / + 42 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5296
SELECT + ( + col2 ) DIV 25 AS col0 FROM tab1 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-5296
SELECT + ( + col2 ) / 25 AS col0 FROM tab1 AS cor0
----
2
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT - + MIN( col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5297
SELECT - + MIN ( col0 ) AS col1 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * col1 IS NULL
----

query I rowsort
SELECT ALL + col0 * - 61 FROM tab0
----
-5307
-5917
-915

query I rowsort
SELECT ALL col2 * + 31 AS col2 FROM tab0
----
1457
3069
310

query II rowsort
SELECT + col2, col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT - COUNT( * ) * + + 12 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-5302
SELECT - COUNT ( * ) * + + 12 FROM tab1
----
-36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT + + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT - col0 - - 82 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5304
SELECT + + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT - col0 - - 82 IS NULL
----
3

query I rowsort
SELECT - 16 * + col1 FROM tab2 AS cor0
----
-1072
-1232
-816

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT 9 * - 89 FROM tab0
----
-801
-801
-801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 72 col1, col1 AS col2 FROM tab1
----
72
14
72
47
72
5

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE 18 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT DISTINCT SUM( 59 ) + + - MIN( col2 ) FROM tab2 AS cor0
----
154

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT SUM ( 59 ) + + - MIN ( col2 ) FROM tab2 AS cor0
----
154

query I rowsort
SELECT ALL + col2 * col1 * 42 AS col0 FROM tab0 AS cor0
----
159894
4158
8820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) + + - col2 * + ( - - col0 ) col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT DISTINCT COUNT( * ) * + - 75 AS col2 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT COUNT ( * ) * + - 75 AS col2 FROM tab0 AS cor0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + col1 * - col1 <> - col1
----
-3

skipif mysql # not compatible
query I rowsort label-5314
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col1 * - col1 <> - col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT 39 / + 83 + + COUNT( * ) + + MIN( col1 ) FROM tab2 AS cor0 WHERE - 15 / - col0 <= - col1 * col0 + + + col0 * 95 * - col0 + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT 39 / + 83 + + COUNT ( * ) + + MIN ( col1 ) FROM tab2 AS cor0 WHERE - 15 / - col0 <= - col1 * col0 + + + col0 * 95 * - col0 + 51
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 21 col0, col0 FROM tab2 cor0
----
21
46
21
64
21
75

query I rowsort
SELECT DISTINCT col1 * - col0 * - col2 AS col2 FROM tab2
----
197120
291450
53958

query III rowsort
SELECT * FROM tab1 WHERE + col2 <= col2 * col2 + - ( + + 21 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT + + col0 / - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT + + col0 / - col2 IS NULL
----
3

query II rowsort
SELECT DISTINCT col1 * col0, col1 AS col1 FROM tab1
----
425
5
4277
47
714
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 * + col1 col0 FROM tab1
----
105
294
987

query I rowsort
SELECT col1 * + 95 + - col1 AS col0 FROM tab2
----
4794
6298
7238

query I rowsort
SELECT DISTINCT - col1 + - 79 - + + col0 * 78 * col0 * col1 AS col1 FROM tab1
----
-2817834
-2840385
-30358272

onlyif mysql # DIV for integer division: 
query I rowsort label-5324
SELECT DISTINCT - col1 + col0 DIV + col1 FROM tab1 AS cor0
----
-11
-46
12

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT - col1 + col0 / + col1 FROM tab1 AS cor0
----
-11
-46
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5325
SELECT + 26 + + 99 DIV + 52 AS col0 FROM tab2 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-5325
SELECT + 26 + + 99 / + 52 AS col0 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT ALL + - col0 + - 74 + - - ( - 48 ) AS col2 FROM tab2 AS cor0
----
-168
-186
-197

query I rowsort
SELECT DISTINCT - col1 - + - col2 + + + col1 * - col0 FROM tab0 cor0
----
-1249
-1838
1

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE - col0 + - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5329
SELECT - 78, - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-78
-9

skipif mysql # not compatible
query II rowsort label-5329
SELECT - 78, - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-78
-9

query I rowsort
SELECT - 52 - - + col2 FROM tab2
----
-12
-29
6

query II rowsort
SELECT DISTINCT col1, - col1 AS col0 FROM tab0
----
1
-1
21
-21
81
-81

query II rowsort
SELECT - + col2 AS col2, - col0 * - + 72 FROM tab0 AS cor0
----
-10
6264
-47
1080
-99
6984

query I rowsort
SELECT DISTINCT - - 66 * + 11 AS col2 FROM tab2 AS cor0
----
726

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT + 25 / col1 = NULL )
----

query II rowsort
SELECT + col2 AS col0, + ( col2 ) * + col0 + - col0 FROM tab0 AS cor0
----
10
783
47
690
99
9506

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND ( - - 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ALL + ( + COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL + ( + COUNT ( * ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT + 59 * - 35 FROM tab0
----
-2065
-2065
-2065

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT MAX( DISTINCT - col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5339
SELECT MAX ( DISTINCT - col1 ) AS col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5340
SELECT DISTINCT - MAX( - - col2 ), 78 AS col2 FROM tab0
----
-99
78

skipif mysql # not compatible
query II rowsort label-5340
SELECT DISTINCT - MAX ( - - col2 ), 78 AS col2 FROM tab0
----
-99
78

query I rowsort
SELECT ( + + 16 ) FROM tab2
----
16
16
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT col0 * + col1 DIV col1 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5342
SELECT col0 * + col1 / col1 AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT + MIN( ALL - + 42 ) * + COUNT( * ) AS col0 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-5343
SELECT + MIN ( ALL - + 42 ) * + COUNT ( * ) AS col0 FROM tab0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT DISTINCT COUNT( * ) * 78 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0, + 78 + ( + col2 ), ( - col1 ) + + - 23 + + 4 + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT COUNT ( * ) * 78 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0, + 78 + ( + col2 ), ( - col1 ) + + - 23 + + 4 + - col2 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1, 34, - - 79 / + + 64, + col1, - 28 )
----

query I rowsort
SELECT DISTINCT ( - col0 ) * + - col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5347
SELECT - CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5347
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + col1 AS col0, 35 * ( + col1 ) * - - col0 FROM tab2
----
51
82110
67
175875
77
172480

query I rowsort
SELECT ALL - 20 * col2 FROM tab0
----
-1980
-200
-940

query I rowsort
SELECT - + col1 + + col0 * - col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + 47 col0 FROM tab0 cor0
----
146
57
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > ( + col2 )
----

query I rowsort
SELECT + + col0 + - - 99 FROM tab2 AS cor0
----
145
163
174

query I rowsort
SELECT DISTINCT - 45 + - col2 FROM tab2 AS cor0
----
-103
-68
-85

query I rowsort
SELECT ALL + + col0 * - - col2 FROM tab0 cor0
----
705
870
9603

query I rowsort
SELECT ALL - - 32 + 96 + - col0 FROM tab1 AS cor0
----
37
43
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5357
SELECT ALL col1 * 64 * - + col1 AS col2, CAST( + - col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
-12544
-96
-141376
-68
-1600
-59

skipif mysql # not compatible
query II rowsort label-5357
SELECT ALL col1 * 64 * - + col1 AS col2, CAST ( + - col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
-12544
-96
-141376
-68
-1600
-59

query I rowsort
SELECT col2 + ( + col1 ) + 56 AS col2 FROM tab2 AS cor0
----
130
173
181

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT ALL - 27 * - COUNT( * ) + + 56 FROM tab0 AS cor0
----
137

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL - 27 * - COUNT ( * ) + + 56 FROM tab0 AS cor0
----
137

query I rowsort
SELECT - col1 + col0 * - - 68 + - col0 * col2 AS col0 FROM tab2
----
1715
2019
683

query I rowsort
SELECT 75 + - - 89 AS col1 FROM tab0
----
164
164
164

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 24 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT DISTINCT + COUNT( * ) * 98 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT + COUNT ( * ) * 98 FROM tab2
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT DISTINCT COUNT( * ) - ( - + 47 ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT COUNT ( * ) - ( - + 47 ) FROM tab0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5365
SELECT COUNT( * ) DIV COUNT( * ), 21 AS col2 FROM tab1
----
1
21

skipif mysql # not compatible
query II rowsort label-5365
SELECT COUNT ( * ) / COUNT ( * ), 21 AS col2 FROM tab1
----
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT DISTINCT - COUNT( + + col2 ) FROM tab1 WHERE NOT + col2 - + - 16 * ( 10 ) <> - col0 * col1 * - - col1 - 73
----
0

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT - COUNT ( + + col2 ) FROM tab1 WHERE NOT + col2 - + - 16 * ( 10 ) <> - col0 * col1 * - - col1 - 73
----
0

query II rowsort
SELECT col0, col1 + col1 - + 54 FROM tab0
----
15
108
87
-12
97
-52

query I rowsort
SELECT ALL - 22 * col1 AS col2 FROM tab1 WHERE NOT NULL BETWEEN ( - 15 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 16 + + + col0 * + + col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5370
SELECT * FROM tab1 AS cor0 WHERE ( 32 ) + + CAST( ( - + col2 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5370
SELECT * FROM tab1 AS cor0 WHERE ( 32 ) + + CAST ( ( - + col2 ) AS INTEGER ) IS NULL
----

query I rowsort
SELECT - 89 - + + 90 * + - 93 * + 19 AS col1 FROM tab2 AS cor0
----
158941
158941
158941

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 - + 64 col0 FROM tab1 AS cor0
----
-157
-157
-157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - col0 + + 12 col1 FROM tab1
----
4289
437
726

query I rowsort
SELECT ALL col1 - - + col2 FROM tab1
----
110
115
64

query I rowsort
SELECT 42 FROM tab2 WHERE - + col0 IS NOT NULL
----
42
42
42

query I rowsort
SELECT - - ( - 16 ) * 54 FROM tab1 cor0 WHERE NOT - 39 IS NULL
----
-864
-864
-864

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 >= ( - ( - col1 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5378
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + + - CAST( NULL AS DECIMAL ) BETWEEN NULL AND + ( + 24 )
----

skipif mysql # not compatible
query III rowsort label-5378
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + + - CAST ( NULL AS REAL ) BETWEEN NULL AND + ( + 24 )
----

query I rowsort
SELECT ALL + col2 * + + ( - ( - col1 ) ) * col0 + + 69 FROM tab1 cor0
----
25144
290905
68613

query I rowsort
SELECT + ( 79 ) AS col0 FROM tab0 AS cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT ( + - CAST( + + 44 AS SIGNED ) ) FROM tab2
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-5381
SELECT ( + - CAST ( + + 44 AS INTEGER ) ) FROM tab2
----
-44
-44
-44

query II rowsort
SELECT ALL + 82, col1 FROM tab2
----
82
51
82
67
82
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT COUNT( * ) * + + 30 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-5383
SELECT COUNT ( * ) * + + 30 FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT - COUNT( * ) * - COUNT( DISTINCT + - col0 ) * + 24 AS col2 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-5384
SELECT - COUNT ( * ) * - COUNT ( DISTINCT + - col0 ) * + 24 AS col2 FROM tab0
----
216

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 5 * 69 AS col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + 40 AS col2 FROM tab2
----
107
117
91

query I rowsort
SELECT - 53 * + col2 FROM tab0
----
-2491
-5247
-530

query III rowsort
SELECT * FROM tab2 WHERE col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col1 * 7 AS col1 FROM tab0
----
-147
-567
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT + MIN( ALL - col0 ) * - 61 FROM tab2
----
4575

skipif mysql # not compatible
query I rowsort label-5391
SELECT + MIN ( ALL - col0 ) * - 61 FROM tab2
----
4575

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 * - col1 ) >= ( + col1 + - col1 * 98 )
----

query I rowsort
SELECT ALL 5 + col1 * - col0 FROM tab0
----
-1210
-1822
-92

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( - 11 ) NOT BETWEEN 27 AND + col1
----

query I rowsort
SELECT col0 + ( col1 ) AS col1 FROM tab2
----
141
142
97

query I rowsort
SELECT 75 + 35 * + col1 FROM tab0
----
110
2910
810

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 63 - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT ALL MIN( 78 ) * - COUNT( * ) AS col2 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL MIN ( 78 ) * - COUNT ( * ) AS col2 FROM tab2
----
-234

query I rowsort
SELECT DISTINCT + AVG ( - ( + 1 ) ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
NULL

query I rowsort
SELECT col0 + + 5 AS col2 FROM tab0
----
102
20
92

query I rowsort
SELECT DISTINCT col0 * + 95 AS col2 FROM tab2
----
4370
6080
7125

query I rowsort
SELECT DISTINCT 51 * + 83 AS col2 FROM tab2 WHERE NOT ( NULL ) < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5404
SELECT DISTINCT + COUNT( ALL + 22 ) * MAX( ALL - ( col2 ) DIV CAST( 91 AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT + COUNT ( ALL + 22 ) * MAX ( ALL - ( col2 ) / CAST ( 91 AS INTEGER ) ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 ) NOT BETWEEN 93 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 * - col1 + 70 AS col1 FROM tab2
----
2416
4998
5095

query I rowsort
SELECT 86 + col2 AS col0 FROM tab0
----
133
185
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL + COUNT( + col1 ) AS col0 FROM tab1 WHERE NOT col2 * col2 + - col0 >= ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL + COUNT ( + col1 ) AS col0 FROM tab1 WHERE NOT col2 * col2 + - col0 >= ( - col1 )
----
0

query I rowsort
SELECT ( - col0 ) + + 94 FROM tab2
----
19
30
48

query I rowsort
SELECT ALL - 47 FROM tab1 WHERE col0 * col2 = ( col0 - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT DISTINCT - SUM( - 34 ) * - 11 FROM tab1 WHERE - col1 IS NOT NULL
----
-1122

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT - SUM ( - 34 ) * - 11 FROM tab1 WHERE - col1 IS NOT NULL
----
-1122

query III rowsort
SELECT ALL * FROM tab0 WHERE 50 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col0 FROM tab0 WHERE NOT - col2 IS NULL
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT ALL + COUNT( col0 ) + SUM( - col0 + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL + COUNT ( col0 ) + SUM ( - col0 + col0 ) FROM tab1
----
3

query I rowsort
SELECT ALL col0 - + col2 AS col2 FROM tab2 WHERE col1 IN ( + col1 )
----
17
23
24

query I rowsort
SELECT ALL + 29 * - ( col0 * 67 ) FROM tab0
----
-169041
-188471
-29145

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE col1 < col2
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - 66 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5420
SELECT ALL col1 - - col1 DIV 15 col0 FROM tab0 cor0
----
1
22
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5420
SELECT ALL col1 - - col1 / 15 col0 FROM tab0 cor0
----
1
22
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT 12 + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-5421
SELECT 12 + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 46 * - ( + col1 ) FROM tab2
----
2346
3082
3542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5424
SELECT DISTINCT + 54 - COUNT( * ) AS col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----
54

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT + 54 - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----
54

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5426
SELECT ALL - ( - CAST( COUNT( * ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0 INNER JOIN tab1 ON NULL BETWEEN NULL AND - 58
----
0

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL - ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0 INNER JOIN tab1 ON NULL BETWEEN NULL AND - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT DISTINCT - + COUNT( ALL + col1 ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT - + COUNT ( ALL + col1 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5428
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 + col0 * 82 ) BETWEEN NULL AND ( CAST( 2 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5428
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 + col0 * 82 ) BETWEEN NULL AND ( CAST ( 2 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT DISTINCT 17 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT 17 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * - 86 NOT IN ( CAST( NULL AS SIGNED ) / col2 )
----

skipif mysql # not compatible
query I rowsort label-5430
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * - 86 NOT IN ( CAST ( NULL AS INTEGER ) / col2 )
----

query I rowsort
SELECT ALL - 55 * col1 AS col0 FROM tab2 AS cor0
----
-2805
-3685
-4235

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN NULL AND ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5433
SELECT DISTINCT + ( + 81 ) DIV 59 AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT + ( + 81 ) / 59 AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT - ( + SUM( 45 ) ) * + 26 AS col0 FROM tab0 AS cor0
----
-3510

skipif mysql # not compatible
query I rowsort label-5434
SELECT - ( + SUM ( 45 ) ) * + 26 AS col0 FROM tab0 AS cor0
----
-3510

query I rowsort
SELECT ALL - ( + 76 ) FROM tab1 cor0
----
-76
-76
-76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5436
SELECT + - col2 DIV CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5436
SELECT + - col2 / CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 72 NOT IN ( 10 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 ) >= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT COUNT( * ) * - 94 AS col2 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-5439
SELECT COUNT ( * ) * - 94 AS col2 FROM tab0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT + COUNT( * ) * - COUNT( * ) + COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-5440
SELECT + COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT - col1 + - 24 + 77 FROM tab0
----
-28
32
52

query I rowsort
SELECT - 74 FROM tab2 WHERE NOT - ( 53 ) + col2 > ( + ( - 7 ) )
----
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT - COUNT( col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5443
SELECT - COUNT ( col0 ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 <> ( col1 * col2 + - 10 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + col0 ) col1 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5446
SELECT - col2 DIV + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5446
SELECT - col2 / + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 93 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ALL - COUNT( * ) * ( 42 ) col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-378

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5448
SELECT ALL - COUNT ( * ) * ( 42 ) col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-378

query II rowsort
SELECT col0 AS col0, + col2 + 84 AS col2 FROM tab2
----
46
107
64
124
75
142

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 ) * col0 NOT IN ( + 44 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT DISTINCT + - col2 + - ( + - col0 ) + 10 AS col0 FROM tab1 AS cor0
----
-35
33
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5453
SELECT ALL + col0 DIV - col1 + + 71 * + col0 - + 12 * col1 FROM tab0 AS cor0
----
5921
6778
93

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL + col0 / - col1 + + 71 * + col0 - + 12 * col1 FROM tab0 AS cor0
----
5921
6778
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT - CAST( NULL AS SIGNED ) + + 36 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT - CAST ( NULL AS INTEGER ) + + 36 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 69 AS col2, - col1 + - + col0 AS col1 FROM tab2 AS cor0
----
69
-141
69
-142
69
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col2 * + + col0 col2 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - - col2 / col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5459
SELECT DISTINCT MIN( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5460
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5461
SELECT ALL - SUM( + col1 ) * - ( + 74 ) * ( + COUNT( ALL + CAST( col1 AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0
----
43290

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL - SUM ( + col1 ) * - ( + 74 ) * ( + COUNT ( ALL + CAST ( col1 AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0
----
43290

onlyif mysql # DIV for integer division: 
query I rowsort label-5462
SELECT + col2 DIV + 15 + - - 51 AS col2 FROM tab1 AS cor0
----
54
55
57

skipif mysql # not compatible
query I rowsort label-5462
SELECT + col2 / + 15 + - - 51 AS col2 FROM tab1 AS cor0
----
54
55
57

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - ( - ( - col2 ) ) ) NOT IN ( col2 + + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> 89
----

query I rowsort
SELECT ALL - 50 * + col0 AS col0 FROM tab2
----
-2300
-3200
-3750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5466
SELECT + 55 * col0 + col2 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-5466
SELECT + 55 * col0 + col2 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL - ( - ( + col1 ) ) * - col2 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT DISTINCT + - COUNT( * ) * 28 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT + - COUNT ( * ) * 28 FROM tab2 AS cor0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5469
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( + 61 AS SIGNED ) + - col2 BETWEEN NULL AND col0
----

skipif mysql # not compatible
query III rowsort label-5469
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( + 61 AS INTEGER ) + - col2 BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5470
SELECT - MIN( + 34 ) * + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-5470
SELECT - MIN ( + 34 ) * + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-5471
SELECT + ( + 26 ) DIV 31 * 21 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT + ( + 26 ) / 31 * 21 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5472
SELECT + SUM( DISTINCT col1 ) DIV 20 FROM tab1 cor0 WHERE NOT ( ( + col1 ) ) = col0 AND NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5472
SELECT + SUM ( DISTINCT col1 ) / 20 FROM tab1 cor0 WHERE NOT ( ( + col1 ) ) = col0 AND NULL IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5473
SELECT ALL + col1 DIV col1 * + + col2 + 53 AS col1 FROM tab1 AS cor0
----
112
121
149

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL + col1 / col1 * + + col2 + 53 AS col1 FROM tab1 AS cor0
----
112
121
149

onlyif mysql # DIV for integer division: 
query I rowsort label-5474
SELECT DISTINCT + 28 DIV - 17 col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5474
SELECT DISTINCT + 28 / - 17 col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + - col1 * - - col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT + 85 FROM tab2, tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN + col0 AND ( + - 88 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 88 col2 FROM tab2
----
134
152
163

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5479
SELECT ALL * FROM tab0 WHERE CAST( NULL AS SIGNED ) BETWEEN col2 * + + 83 / - - ( 88 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5479
SELECT ALL * FROM tab0 WHERE CAST ( NULL AS INTEGER ) BETWEEN col2 * + + 83 / - - ( 88 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5480
SELECT DISTINCT CAST( - 72 AS SIGNED ) * - MIN( - + ( col2 ) ) FROM tab2
----
-4176

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT CAST ( - 72 AS INTEGER ) * - MIN ( - + ( col2 ) ) FROM tab2
----
-4176

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT ALL COUNT( * ) * - COUNT( - col0 ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL COUNT ( * ) * - COUNT ( - col0 ) AS col0 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5482
SELECT DISTINCT - CAST( col0 AS SIGNED ) FROM tab1 WHERE ( NOT ( col2 <> ( - col2 ) ) )
----

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT - CAST ( col0 AS INTEGER ) FROM tab1 WHERE ( NOT ( col2 <> ( - col2 ) ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5483
SELECT ALL CAST( NULL AS DECIMAL ) + + 24 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL CAST ( NULL AS REAL ) + + 24 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT + - 23 + + ( 69 ) DIV - 37 AS col2 FROM tab2 AS cor0
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-5484
SELECT + - 23 + + ( 69 ) / - 37 AS col2 FROM tab2 AS cor0
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 10 col0, col0 AS col1 FROM tab1 AS cor0
----
10
51
10
85
10
91

query I rowsort
SELECT - 49 + ( - + col1 ) FROM tab0 cor0
----
-130
-50
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col2 * - + 97 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5487
SELECT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col2 * - + 97 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + - col0 * - col2 * + + col0 FROM tab2 cor0
----
163840
326250
48668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5489
SELECT + SUM( + col0 ) FROM tab0 AS cor0 WHERE - ( + - 85 ) * + 83 + - col2 + CAST( NULL AS SIGNED ) * col1 - col1 * - col2 + + col2 IS NULL
----
199

skipif mysql # not compatible
query I rowsort label-5489
SELECT + SUM ( + col0 ) FROM tab0 AS cor0 WHERE - ( + - 85 ) * + 83 + - col2 + CAST ( NULL AS INTEGER ) * col1 - col1 * - col2 + + col2 IS NULL
----
199

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col2 + - col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5491
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col2 + - col2 < NULL
----
0

query I rowsort
SELECT ALL col1 - + col0 + - col1 + 16 FROM tab0
----
-71
-81
1

query I rowsort
SELECT - - col1 AS col2 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT col0 - + + col2 AS col2 FROM tab2
----
17
23
24

query II rowsort
SELECT 88 AS col0, - 98 FROM tab0
----
88
-98
88
-98
88
-98

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 + - col2 * 36 AND + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5497
SELECT + COUNT( * ) * - ( + COUNT( * ) ) AS col1, + 28 FROM tab0
----
-9
28

skipif mysql # not compatible
query II rowsort label-5497
SELECT + COUNT ( * ) * - ( + COUNT ( * ) ) AS col1, + 28 FROM tab0
----
-9
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5498
SELECT CAST( NULL AS SIGNED ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-5498
SELECT CAST ( NULL AS INTEGER ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query II rowsort
SELECT ALL - col2 AS col2, 92 FROM tab1 AS cor0
----
-59
92
-68
92
-96
92

query II rowsort
SELECT ALL col2, - 40 FROM tab1 WHERE NULL = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 WHERE NOT 91 * + col0 + + 31 + - col0 * - + col2 / - - 51 * - + ( col1 ) * 49 BETWEEN ( ( col1 ) / 85 + + col0 ) AND col1
----
9

skipif mysql # not compatible
query I rowsort label-5501
SELECT - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 WHERE NOT 91 * + col0 + + 31 + - col0 * - + col2 / - - 51 * - + ( col1 ) * 49 BETWEEN ( ( col1 ) / 85 + + col0 ) AND col1
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / - 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT DISTINCT COUNT( * ) * 60 AS col2 FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT COUNT ( * ) * 60 AS col2 FROM tab1 AS cor0
----
180

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 35 + + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5505
SELECT - col2 DIV - + col0 + + + col2 + + - 16 AS col2 FROM tab2 cor0
----
24
42
7

skipif mysql # not compatible
query I rowsort label-5505
SELECT - col2 / - + col0 + + + col2 + + - 16 AS col2 FROM tab2 cor0
----
24
42
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 + + col0 col1 FROM tab1 AS cor0
----
-31
31
70

query I rowsort
SELECT - 39 + col0 AS col2 FROM tab0
----
-24
48
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 + - 77 NOT IN ( + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5509
SELECT * FROM tab2 WHERE NOT ( + col2 ) BETWEEN col1 * + col0 AND - - CAST( NULL AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5509
SELECT * FROM tab2 WHERE NOT ( + col2 ) BETWEEN col1 * + col0 AND - - CAST ( NULL AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + + col2 * - 98 + + col0 + - - 24 FROM tab0
----
-4552
-782
-9484

query I rowsort
SELECT DISTINCT - col2 * 24 FROM tab1
----
-1416
-1632
-2304

query I rowsort
SELECT ALL col1 * - 34 AS col1 FROM tab1
----
-1598
-170
-476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 col0 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT ALL + 5 + - col2 * - - col2 FROM tab0
----
-2204
-95
-9796

query I rowsort
SELECT + + ( + - 50 ) AS col1 FROM tab0 cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT DISTINCT MIN( - + col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT MIN ( - + col1 ) AS col0 FROM tab0
----
-81

query I rowsort
SELECT + 69 + 21 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5518
SELECT * FROM tab2 WHERE CAST( - col1 AS DECIMAL ) / + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5518
SELECT * FROM tab2 WHERE CAST ( - col1 AS REAL ) / + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - - ( ( col1 ) ) + + 88 FROM tab2 AS cor0
----
139
155
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - ( - col1 ) + col0 col1 FROM tab1 AS cor0
----
-31
31
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5521
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-5521
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT DISTINCT - COUNT( * ) + - - 7 * + SUM( + + 49 ) AS col1 FROM tab1 AS cor0
----
1026

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT - COUNT ( * ) + - - 7 * + SUM ( + + 49 ) AS col1 FROM tab1 AS cor0
----
1026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT ALL - + col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL - + col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5524
SELECT CAST( NULL AS SIGNED ) * - col0 * + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5524
SELECT CAST ( NULL AS INTEGER ) * - col0 * + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - 16 * 67 >= + col2
----

onlyif mysql # aggregate syntax: 
query III rowsort label-5526
SELECT ALL + COUNT( DISTINCT + - col2 ) AS col2, - COUNT( * ) AS col2, + + COUNT( - - col1 ) FROM tab0
----
3
-3
3

skipif mysql # not compatible
query III rowsort label-5526
SELECT ALL + COUNT ( DISTINCT + - col2 ) AS col2, - COUNT ( * ) AS col2, + + COUNT ( - - col1 ) FROM tab0
----
3
-3
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 >= - 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 83 FROM tab1 WHERE NOT - 53 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5529
SELECT * FROM tab2 WHERE NOT 42 / col1 - + 11 * + + ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5529
SELECT * FROM tab2 WHERE NOT 42 / col1 - + 11 * + + ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5530
SELECT - COUNT( * ) DIV + + SUM( - col1 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5530
SELECT - COUNT ( * ) / + + SUM ( - col1 ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5531
SELECT + + 88 * col0 + 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-5531
SELECT + + 88 * col0 + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ( - - 93 ) AS col2, + 11 * + 87 FROM tab2 AS cor0
----
93
957
93
957
93
957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 24 AS col1, ( - col1 ) * col1 + + 86 col2 FROM tab1 AS cor0
----
24
-110
24
-2123
24
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT DISTINCT - COUNT( ALL - ( + col0 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT - COUNT ( ALL - ( + col0 ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT ALL COUNT( * ) + + + 40 col2 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5536
SELECT ALL COUNT ( * ) + + + 40 col2 FROM tab0 AS cor0
----
43

onlyif mysql # DIV for integer division: 
query II rowsort label-5537
SELECT + + col2 AS col1, col1 - + - 82 DIV 18 AS col2 FROM tab1 cor0
----
59
9
68
51
96
18

skipif mysql # not compatible
query II rowsort label-5537
SELECT + + col2 AS col1, col1 - + - 82 / 18 AS col2 FROM tab1 cor0
----
59
9
68
51
96
18

query I rowsort
SELECT DISTINCT - + 27 AS col0 FROM tab0 AS cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-5539
SELECT + - col0 DIV - - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5539
SELECT + - col0 / - - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1, 82 + + col0 + + col2 + col1 - - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + - + ( - col1 ) NOT BETWEEN - col2 + - - 45 AND - - col0 + - - 74 * - + 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( NOT ( NULL ) IN ( + col2, col0 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - col2
----

query III rowsort
SELECT * FROM tab2 WHERE col0 - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT - MAX( + 85 ) AS col2 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-5545
SELECT - MAX ( + 85 ) AS col2 FROM tab2
----
-85

query I rowsort
SELECT col1 + - 83 * - 92 * - + 45 AS col2 FROM tab0
----
-343539
-343599
-343619

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT + 88 + - COUNT( * ) AS col0 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-5547
SELECT + 88 + - COUNT ( * ) AS col0 FROM tab2
----
85

query I rowsort
SELECT ALL col1 + + 65 FROM tab1 AS cor0
----
112
70
79

query I rowsort
SELECT col2 + - 96 AS col2 FROM tab2 AS cor0
----
-38
-56
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 86 * - - 66 + ( - 68 ) * + col2 + 86 col1 FROM tab0 AS cor0
----
-12322
-6270
-8786

query I rowsort
SELECT 14 * - 93 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 00ff021f1c403f425dc62a5604894e82

query II rowsort
SELECT + col1 AS col2, 49 * - - 15 + - ( + - col1 ) AS col0 FROM tab0
----
1
736
21
756
81
816

query I rowsort
SELECT ALL + - 32 AS col1 FROM tab2 AS cor0 WHERE - 78 * col1 IS NULL
----

query I rowsort
SELECT + col1 - + 10 AS col2 FROM tab2 AS cor0
----
41
57
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 97 + 71 + col2 IN ( + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 28 AS col2 FROM tab2 cor0
----
28

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - + 4
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col2 ) / + ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5559
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5559
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE ( - ( - col1 ) * - + 29 + - col1 ) IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT - 94 * + - COUNT( * ) AS col2 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-5561
SELECT - 94 * + - COUNT ( * ) AS col2 FROM tab1
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT COUNT( * ) * 75 AS col0 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-5562
SELECT COUNT ( * ) * 75 AS col0 FROM tab2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT DISTINCT + COUNT( - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT + COUNT ( - col2 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL col0 * - - 2 FROM tab2
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5565
SELECT CAST( NULL AS SIGNED ) * - col2 * 33 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT CAST ( NULL AS INTEGER ) * - col2 * 33 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5566
SELECT 48 DIV - + 86 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5566
SELECT 48 / - + 86 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 cor0 WHERE NOT col2 * col0 + - col1 IS NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, + 70 AS col2 FROM tab1 cor0
----
59
70
68
70
96
70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - + 97 - - - 75 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5570
SELECT DISTINCT col1 AS col2, + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
14
96
47
68
5
59

skipif mysql # not compatible
query II rowsort label-5570
SELECT DISTINCT col1 AS col2, + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
14
96
47
68
5
59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 64 * - col1 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5572
SELECT DISTINCT 56 AS col0, - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
56
-9

skipif mysql # not compatible
query II rowsort label-5572
SELECT DISTINCT 56 AS col0, - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
56
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5574
SELECT DISTINCT * FROM tab2 WHERE ( + - col0 ) * CAST( NULL AS SIGNED ) / - col1 / ( - col1 ) + + 92 < NULL
----

skipif mysql # not compatible
query III rowsort label-5574
SELECT DISTINCT * FROM tab2 WHERE ( + - col0 ) * CAST ( NULL AS INTEGER ) / - col1 / ( - col1 ) + + 92 < NULL
----

query I rowsort
SELECT DISTINCT - 77 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 38 AND col1 / + + ( - 70 )
----

query I rowsort
SELECT ALL - + col0 FROM tab1 AS cor0 WHERE NOT - col0 * + + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5579
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5579
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - col2 ) * - col0 + + 29 * ( - 30 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col1 BETWEEN NULL AND + 9 * - - 56
----

query I rowsort
SELECT col2 * - - col1 + col2 FROM tab1
----
1440
3264
354

onlyif mysql # DIV for integer division: 
query I rowsort label-5583
SELECT - ( + ( col1 ) ) * 14 + + col1 DIV + col1 FROM tab2
----
-1077
-713
-937

skipif mysql # not compatible
query I rowsort label-5583
SELECT - ( + ( col1 ) ) * 14 + + col1 / + col1 FROM tab2
----
-1077
-713
-937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5584
SELECT col2 * CAST( - - col0 AS SIGNED ) col0 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5584
SELECT col2 * CAST ( - - col0 AS INTEGER ) col0 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT ALL * FROM tab2 WHERE - - ( - ( - col1 ) ) + - ( - 63 ) > ( NULL )
----

query I rowsort
SELECT 40 * + 26 FROM tab2
----
1040
1040
1040

query II rowsort
SELECT ALL - 83 + + 90 * + - col0 AS col1, + col0 AS col1 FROM tab1
----
-4673
51
-7733
85
-8273
91

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE NULL <= + col2
----

query I rowsort
SELECT ALL - 38 + - - col1 FROM tab1 AS cor0
----
-24
-33
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5590
SELECT + 19 * - - COUNT( * ) + - CAST( + - 23 AS SIGNED ) AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-5590
SELECT + 19 * - - COUNT ( * ) + - CAST ( + - 23 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
80
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( - 22 + - col2 ) BETWEEN + 83 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 - - + col1 ) = 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 BETWEEN NULL AND 45 * - col1 - - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - + 40 = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT - - 47 * 69 * + MIN( - col0 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
885339

skipif mysql # not compatible
query I rowsort label-5595
SELECT - - 47 * 69 * + MIN ( - col0 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
885339

query I rowsort
SELECT ALL col1 * - + col0 * + col2 + + + ( col0 ) AS col2 FROM tab0 AS cor0
----
-18183
-57090
-9506

onlyif mysql # aggregate syntax: 
query II rowsort label-5597
SELECT + - 8 * 47 AS col0, - COUNT( * ) FROM tab0 AS cor0
----
-376
-3

skipif mysql # not compatible
query II rowsort label-5597
SELECT + - 8 * 47 AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
-376
-3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col2 * ( + - 11 ) + ( + 95 ) - + 75 / 75 / col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5599
SELECT ALL 4 DIV col0 * col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL 4 / col0 * col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 50 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5601
SELECT - 79 DIV - 85 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5601
SELECT - 79 / - 85 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( - 92 ) FROM tab0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5603
SELECT - CAST( NULL AS SIGNED ) AS col0, CAST( - col0 AS SIGNED ) col2 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5603
SELECT - CAST ( NULL AS INTEGER ) AS col0, CAST ( - col0 AS INTEGER ) col2 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT DISTINCT col0 * col2 DIV + + 74 AS col0 FROM tab1
----
66
67
83

skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT col0 * col2 / + + 74 AS col0 FROM tab1
----
66
67
83

query II rowsort
SELECT ALL ( - 85 ) * + 25 AS col1, 66 FROM tab1
----
-2125
66
-2125
66
-2125
66

query I rowsort
SELECT - + col2 * + col2 * + col2 FROM tab2 AS cor0
----
-12167
-195112
-64000

query I rowsort
SELECT ALL col2 + + 21 AS col0 FROM tab1 AS cor0
----
117
80
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 col0 FROM tab2 cor0 WHERE NOT + 17 - 49 IS NOT NULL
----

query I rowsort
SELECT + + col0 * col0 - - - col2 FROM tab2 AS cor0
----
2093
4056
5567

query I rowsort
SELECT DISTINCT - 84 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-84

query II rowsort
SELECT 53 AS col0, - 7 FROM tab1
----
53
-7
53
-7
53
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5612
SELECT DISTINCT - - AVG ( + col1 ) FROM tab2 AS cor0 WHERE NULL <= ( + - 7 ) + col1 + + 21 * + col1 + - + CAST( NULL AS SIGNED ) * - - col1 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT - - AVG ( + col1 ) FROM tab2 AS cor0 WHERE NULL <= ( + - 7 ) + col1 + + 21 * + col1 + - + CAST ( NULL AS INTEGER ) * - - col1 * col1
----
NULL

query II rowsort
SELECT 17, + col0 * + col0 AS col0 FROM tab1 AS cor0
----
17
2601
17
7225
17
8281

query II rowsort
SELECT + + col1, + 46 FROM tab0 cor0
----
1
46
21
46
81
46

query I rowsort
SELECT ALL + ( + col0 ) * + 21 + - - col1 FROM tab1 AS cor0
----
1085
1790
1958

query II rowsort
SELECT DISTINCT + col2 AS col2, col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT DISTINCT 92 + - MAX( DISTINCT col2 ) AS col1 FROM tab2 WHERE NOT + 19 / col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT 92 + - MAX ( DISTINCT col2 ) AS col1 FROM tab2 WHERE NOT + 19 / col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT COUNT( * ) * - + ( COUNT( + + col0 ) ) - + 12 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-5618
SELECT COUNT ( * ) * - + ( COUNT ( + + col0 ) ) - + 12 FROM tab2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5619
SELECT DISTINCT - col2 * - - 3 - + CAST( - col0 AS SIGNED ) + col2 FROM tab0
----
-101
-79
67

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT - col2 * - - 3 - + CAST ( - col0 AS INTEGER ) + col2 FROM tab0
----
-101
-79
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5620
SELECT 89 + + CAST( NULL AS SIGNED ) + col2 * - ( + col2 ) + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5620
SELECT 89 + + CAST ( NULL AS INTEGER ) + col2 * - ( + col2 ) + + col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 + + + col1, + col2 FROM tab0
----
100
99
128
47
31
10

query I rowsort
SELECT col2 + - 13 FROM tab0
----
-3
34
86

query I rowsort
SELECT + col0 + - 27 AS col2 FROM tab0 AS cor0
----
-12
60
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5624
SELECT DISTINCT col1 * + + 5 / CAST( NULL AS DECIMAL ) + - 75 + + + col1 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT col1 * + + 5 / CAST ( NULL AS REAL ) + - 75 + + + col1 + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5625
SELECT ALL SUM( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL SUM ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT + COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5626
SELECT + COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + col2 * - col1 * col1 AS col1 FROM tab0 AS cor0
----
-308367
-4410
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5628
SELECT DISTINCT - 52 AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-5628
SELECT DISTINCT - 52 AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
-52
NULL

query I rowsort
SELECT + 91 * - ( - - col1 ) FROM tab1 AS cor0
----
-1274
-4277
-455

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * 70 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL BETWEEN NULL AND ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT DISTINCT + 67 * COUNT( + - col0 ) col1 FROM tab0
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5632
SELECT DISTINCT + 67 * COUNT ( + - col0 ) col1 FROM tab0
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT DISTINCT + COUNT( * ) * - 68 * COUNT( * ) AS col0 FROM tab0
----
-612

skipif mysql # not compatible
query I rowsort label-5633
SELECT DISTINCT + COUNT ( * ) * - 68 * COUNT ( * ) AS col0 FROM tab0
----
-612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5634
SELECT ALL SUM( ALL + CAST( NULL AS SIGNED ) ) * + COUNT( * ) * + 42 + + - ( + COUNT( * ) ) + 14 + - 21 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL SUM ( ALL + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * + 42 + + - ( + COUNT ( * ) ) + 14 + - 21 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 + - col0 * - col1 NOT IN ( - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5636
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 + - col0 * - col1 NOT IN ( - - col2 )
----
0

query I rowsort
SELECT DISTINCT - - 18 AS col0 FROM tab1 AS cor0
----
18

query I rowsort
SELECT ALL + + col0 * col1 * - 15 FROM tab2 AS cor0
----
-35190
-73920
-75375

onlyif mysql # DIV for integer division: 
query I rowsort label-5639
SELECT DISTINCT 74 DIV + - col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT 74 / + - col0 FROM tab2 AS cor0
----
-1
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( + 57 ) * - col1 + + - col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL + ( - COUNT( * ) ) + - 75 FROM tab2 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL + ( - COUNT ( * ) ) + - 75 FROM tab2 cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT DISTINCT + 47 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT + 47 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT DISTINCT - COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < col2 + - col1
----

query I rowsort
SELECT - col2 + 30 + + - col0 AS col0 FROM tab2 cor0
----
-103
-39
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5647
SELECT ALL - SUM( 73 ) - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL - SUM ( 73 ) - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT + ( SUM( ALL + col1 ) ) * + COUNT( * ) FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-5648
SELECT + ( SUM ( ALL + col1 ) ) * + COUNT ( * ) FROM tab0
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT 51 * COUNT( * ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-5649
SELECT 51 * COUNT ( * ) FROM tab0
----
153

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5650
SELECT ( CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5650
SELECT ( CAST ( NULL AS REAL ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT - COUNT( * ) * 87 - + 32 FROM tab0
----
-293

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT - COUNT ( * ) * 87 - + 32 FROM tab0
----
-293

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5652
SELECT 49 * - SUM( - - col0 ) + + CAST( NULL AS SIGNED ) + - MAX( ALL - col0 ) * - 60 * - 86 AS col0 FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5652
SELECT 49 * - SUM ( - - col0 ) + + CAST ( NULL AS INTEGER ) + - MAX ( ALL - col0 ) * - 60 * - 86 AS col0 FROM tab2 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT 77 FROM tab1 WHERE + 25 IN ( col1, col0, - 88 )
----

query I rowsort
SELECT 60 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL + + 42 AS col0 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT - 80 * + col1 + col2 * - col0 FROM tab0 cor0
----
-2550
-7185
-9683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5657
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ( - + 39 ) * - 11 * - + 8 FROM tab1 AS cor0
----
-3432
-3432
-3432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - 46 col1 FROM tab1 AS cor0
----
2346
3910
4186

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT + + 54 * - - COUNT( * ) + - COUNT( * ) + - + 1 FROM tab0 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-5660
SELECT + + 54 * - - COUNT ( * ) + - COUNT ( * ) + - + 1 FROM tab0 AS cor0
----
158

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 + col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5662
SELECT - 32 / CAST( NULL AS SIGNED ) / + col0 + 75 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5662
SELECT - 32 / CAST ( NULL AS INTEGER ) / + col0 + 75 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 46 AS col1 FROM tab1 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT COUNT( - ( + + col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5664
SELECT COUNT ( - ( + + col0 ) ) FROM tab0
----
3

query I rowsort
SELECT - 85 * + col1 AS col2 FROM tab1 WHERE NOT - col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5666
SELECT * FROM tab0 WHERE NOT - col0 + + CAST( + - col2 AS SIGNED ) / 98 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5666
SELECT * FROM tab0 WHERE NOT - col0 + + CAST ( + - col2 AS INTEGER ) / 98 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT + - COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 87
----
0

skipif mysql # not compatible
query I rowsort label-5667
SELECT + - COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT DISTINCT - COUNT( * ) * - 51 AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT - COUNT ( * ) * - 51 AS col1 FROM tab1
----
153

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 / + + col1 + 48 + ( + col2 ) / - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5670
SELECT + ( CAST( - ( + - ( 22 ) ) AS SIGNED ) ) AS col1 FROM tab1
----
22
22
22

skipif mysql # not compatible
query I rowsort label-5670
SELECT + ( CAST ( - ( + - ( 22 ) ) AS INTEGER ) ) AS col1 FROM tab1
----
22
22
22

query I rowsort
SELECT ALL - ( - col2 ) + - col0 + + + 43 AS col1 FROM tab1 AS cor0
----
17
20
88

query I rowsort
SELECT - + 29 * col1 + - + 75 FROM tab2 AS cor0
----
-1554
-2018
-2308

query I rowsort
SELECT - - col2 + + - 16 AS col1 FROM tab0 AS cor0
----
-6
31
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 * - + col1 col0 FROM tab0
----
1743
6723
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT DISTINCT + COUNT( * ) * + MAX( 16 ) * + - 74 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-10656

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT + COUNT ( * ) * + MAX ( 16 ) * + - 74 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-10656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 col0 FROM tab1 cor0
----
14
14
14

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + - + col1 + + col2 AS col2 FROM tab2 AS cor0
----
18
27
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5679
SELECT + col1 / - col1 / - col1 + - 42 + - 22 + - + col0 * 46 * - 61 + - 45 - - + col1 col2 FROM tab2 AS cor0 WHERE - CAST( - - 33 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5679
SELECT + col1 / - col1 / - col1 + - 42 + - 22 + - + col0 * 46 * - 61 + - 45 - - + col1 col2 FROM tab2 AS cor0 WHERE - CAST ( - - 33 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5680
SELECT - CAST( - COUNT( + - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5680
SELECT - CAST ( - COUNT ( + - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5681
SELECT DISTINCT + - 68 * + CAST( - col1 AS SIGNED ) + - col2 - - col2 FROM tab0 AS cor0
----
1428
5508
68

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT + - 68 * + CAST ( - col1 AS INTEGER ) + - col2 - - col2 FROM tab0 AS cor0
----
1428
5508
68

query I rowsort
SELECT 48 - - col1 AS col0 FROM tab0 cor0
----
129
49
69

query III rowsort
SELECT * FROM tab1 WHERE - col0 * + - col0 <= - ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT DISTINCT COUNT( * ) - + 83 AS col0 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT COUNT ( * ) - + 83 AS col0 FROM tab2
----
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 74 + - + col2 + + col1 col0 FROM tab0
----
-1076
-6427
-7276

query I rowsort
SELECT 30 + - - 2 AS col1 FROM tab1
----
32
32
32

query II rowsort
SELECT + col2 AS col2, - 56 AS col1 FROM tab1 AS cor0
----
59
-56
68
-56
96
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT ALL CAST( col0 AS SIGNED ) * + col2 + + - ( + 70 ) AS col0 FROM tab1 AS cor0
----
4826
4945
6118

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL CAST ( col0 AS INTEGER ) * + col2 + + - ( + 70 ) AS col0 FROM tab1 AS cor0
----
4826
4945
6118

query II rowsort
SELECT - col1 * col0 AS col0, col1 FROM tab2
----
-2346
51
-4928
77
-5025
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5690
SELECT + - ( + COUNT( * ) ) AS col0, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5690
SELECT + - ( + COUNT ( * ) ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT 77 * 12 * + col0 FROM tab1 AS cor0
----
47124
78540
84084

query I rowsort
SELECT - col2 * - - col1 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5693
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) * + 81 AND - col0
----

skipif mysql # not compatible
query III rowsort label-5693
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) * + 81 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT - COUNT( * ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5694
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - 55 + + - 4 + + col2 FROM tab2
----
-1
-19
-36

query I rowsort
SELECT + 5 * - - 44 + + col1 FROM tab1
----
225
234
267

query I rowsort
SELECT - 39 + + + 67 * - ( - col0 ) AS col0 FROM tab2
----
3043
4249
4986

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 77 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 21 + ( - 54 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT DISTINCT + COUNT( * ) + + 47 AS col2 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-5700
SELECT DISTINCT + COUNT ( * ) + + 47 AS col2 FROM tab1 AS cor0
----
50

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NULL = 39
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * 99 * - col2 IS NULL
----

query I rowsort
SELECT + col0 - + 52 * - col1 AS col0 FROM tab2
----
2698
3559
4068

query I rowsort
SELECT DISTINCT - col1 * - + 4 * col1 + + - 37 FROM tab1
----
63
747
8799

query I rowsort
SELECT ALL + col0 + 74 AS col1 FROM tab1 AS cor0
----
125
159
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5706
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col1 + + 92 FROM tab0 AS cor0
----
113
173
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5708
SELECT DISTINCT + + 8 + col2 DIV + - ( col0 ) FROM tab2 cor0
----
8

skipif mysql # not compatible
query I rowsort label-5708
SELECT DISTINCT + + 8 + col2 / + - ( col0 ) FROM tab2 cor0
----
8

query II rowsort
SELECT col0 AS col2, 35 AS col2 FROM tab2 AS cor0
----
46
35
64
35
75
35

query I rowsort
SELECT ALL + - col0 - - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 58 * col2 FROM tab0 cor0
----
2726
5742
580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5712
SELECT DISTINCT - - COUNT( * ) - SUM( - CAST( NULL AS SIGNED ) ) - 6 + + - COUNT( + col2 ) * - - 33 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT - - COUNT ( * ) - SUM ( - CAST ( NULL AS INTEGER ) ) - 6 + + - COUNT ( + col2 ) * - - 33 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + col0 * col2 * + - 52 AS col0 FROM tab2 WHERE - - ( - ( - 57 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT MIN( ALL + - 20 ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-5714
SELECT MIN ( ALL + - 20 ) FROM tab1
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 7 col0, - 55 * + col2 AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-7
-2585
-7
-5445
-7
-550

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT DISTINCT - 11 * 58 * + - COUNT( * ) AS col2 FROM tab0
----
1914

skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT - 11 * 58 * + - COUNT ( * ) AS col2 FROM tab0
----
1914

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT + 43 IS NOT NULL
----

query I rowsort
SELECT ALL - 98 * col0 AS col1 FROM tab2 AS cor0
----
-4508
-6272
-7350

onlyif mysql # aggregate syntax: 
query II rowsort label-5719
SELECT DISTINCT + 94 * - 30 AS col0, MIN( col1 ) AS col2 FROM tab0 AS cor0
----
-2820
1

skipif mysql # not compatible
query II rowsort label-5719
SELECT DISTINCT + 94 * - 30 AS col0, MIN ( col1 ) AS col2 FROM tab0 AS cor0
----
-2820
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT + MIN( - col1 ) AS col1 FROM tab0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5720
SELECT + MIN ( - col1 ) AS col1 FROM tab0 WHERE NOT NULL <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5721
SELECT ALL col2 * + + col0 - + - CAST( NULL AS SIGNED ) * - - 37 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL col2 * + + col0 - + - CAST ( NULL AS INTEGER ) * - - 37 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 16 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col0, col2 * - 78 AS col0 FROM tab2 AS cor0
----
23
-1794
40
-3120
58
-4524

query I rowsort
SELECT - col0 * - - col1 AS col2 FROM tab0 cor0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( - - ( col1 ) ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 23 FROM tab2 WHERE NOT ( NOT NULL BETWEEN + col1 AND ( + col1 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5728
SELECT + + CAST( NULL AS SIGNED ) * MIN( DISTINCT - 10 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5728
SELECT + + CAST ( NULL AS INTEGER ) * MIN ( DISTINCT - 10 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL < - 24
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5730
SELECT 31 DIV - COUNT( * ) + + 26 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-5730
SELECT 31 / - COUNT ( * ) + + 26 FROM tab1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT DISTINCT - COUNT( * ) + - 29 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT - COUNT ( * ) + - 29 FROM tab1
----
-32

query I rowsort
SELECT + col2 + 13 AS col1 FROM tab1 cor0
----
109
72
81

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 - + - col0 IN ( + + col0, + 17 + - col0, + 8 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE 69 * CAST( NULL AS SIGNED ) / + col2 + col1 BETWEEN col2 - + col1 AND + col0 * - col2
----

skipif mysql # not compatible
query I rowsort label-5734
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE 69 * CAST ( NULL AS INTEGER ) / + col2 + col1 BETWEEN col2 - + col1 AND + col0 * - col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN col2 / - + 7 + - col0 * + col1 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT ALL - SUM( ALL col2 ) * + 14 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL - SUM ( ALL col2 ) * + 14 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 14 < ( - 44 )
----

query II rowsort
SELECT + col2 - 30 AS col0, - col0 AS col2 FROM tab2 AS cor0
----
-7
-46
10
-64
28
-75

query II rowsort
SELECT DISTINCT + + col0 + - col1, col1 * + 42 AS col0 FROM tab1 AS cor0
----
37
588
44
1974
80
210

query I rowsort
SELECT - ( - + col1 ) - + - 23 AS col2 FROM tab2 cor0
----
100
74
90

query I rowsort
SELECT DISTINCT 92 + - + 54 + + col2 FROM tab1 AS cor0
----
106
134
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5742
SELECT ALL - CAST( + - 18 AS SIGNED ) col2 FROM tab1
----
18
18
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5742
SELECT ALL - CAST ( + - 18 AS INTEGER ) col2 FROM tab1
----
18
18
18

query II rowsort
SELECT DISTINCT col1, 95 + + 93 FROM tab0
----
1
188
21
188
81
188

query I rowsort
SELECT - ( + 18 ) AS col2 FROM tab2
----
-18
-18
-18

query I rowsort
SELECT DISTINCT 54 * + 96 AS col2 FROM tab1
----
5184

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT + col2 * - col1 <= NULL
----

query II rowsort
SELECT 26, + col1 AS col0 FROM tab0
----
26
1
26
21
26
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5748
SELECT * FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) - - col2 <> + col1 + col2 * 47
----

skipif mysql # not compatible
query III rowsort label-5748
SELECT * FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) - - col2 <> + col1 + col2 * 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT - SUM( ALL + col2 ) AS col2 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5749
SELECT - SUM ( ALL + col2 ) AS col2 FROM tab0 cor0
----
-156

query I rowsort
SELECT ALL col2 * 16 FROM tab2 cor0
----
368
640
928

query I rowsort
SELECT + - 89 * - 69 FROM tab0 WHERE NOT + col0 * - col2 >= - + ( + + col1 )
----
6141
6141
6141

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT ALL + COUNT( ALL + 27 ) * - 15 * - MAX( + 83 ) AS col1 FROM tab2 AS cor0
----
3735

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL + COUNT ( ALL + 27 ) * - 15 * - MAX ( + 83 ) AS col1 FROM tab2 AS cor0
----
3735

onlyif mysql # DIV for integer division: 
query I rowsort label-5753
SELECT DISTINCT - col2 DIV - + col1 AS col2 FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT - col2 / - + col1 AS col2 FROM tab1 cor0
----
1
11
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5754
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) * + + 79 NOT BETWEEN + - ( + CAST( + col0 AS SIGNED ) ) AND - - col0
----

skipif mysql # not compatible
query III rowsort label-5754
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) * + + 79 NOT BETWEEN + - ( + CAST ( + col0 AS INTEGER ) ) AND - - col0
----

query II rowsort
SELECT + + 6 * + col2 AS col0, + col0 AS col1 FROM tab2 cor0
----
138
46
240
64
348
75

query I rowsort
SELECT DISTINCT - + col2 + - - col0 - + 13 AS col2 FROM tab1 AS cor0
----
-58
10
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col2 FROM tab2 AS cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 25 + + col1 col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-24
-4
56

query I rowsort
SELECT + col2 * + col2 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5760
SELECT - CAST( NULL AS SIGNED ) * col1 * + 11 / - ( col1 ) * 89 - col2 * + col0 + - 0 * - col1 * + - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT - CAST ( NULL AS INTEGER ) * col1 * + 11 / - ( col1 ) * 89 - col2 * + col0 + - 0 * - col1 * + - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT 85 + + MIN( DISTINCT - col2 ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-5761
SELECT 85 + + MIN ( DISTINCT - col2 ) FROM tab1
----
-11

query I rowsort
SELECT ALL + 44 * - + col1 FROM tab0
----
-3564
-44
-924

query I rowsort
SELECT 3 + - ( - col0 ) FROM tab2
----
49
67
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT ALL - 62 + COUNT( * ) col0 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5764
SELECT ALL - 62 + COUNT ( * ) col0 FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5765
SELECT col1 DIV - 89 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5765
SELECT col1 / - 89 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + col2 ) + col2 + + col2 FROM tab2
----
120
174
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5767
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) + 76 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) + 76 FROM tab2 AS cor0
----
73

query I rowsort
SELECT DISTINCT - 22 + - col2 FROM tab0 AS cor0
----
-121
-32
-69

query I rowsort
SELECT DISTINCT - 13 + - 18 * - + col2 AS col2 FROM tab1 AS cor0
----
1049
1211
1715

query I rowsort
SELECT DISTINCT + 65 * - + col0 - - col1 AS col1 FROM tab2 AS cor0
----
-2939
-4083
-4808

query I rowsort
SELECT DISTINCT - col1 * - - 69 FROM tab0
----
-1449
-5589
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-5772
SELECT ALL - 29, - MIN( col1 ) AS col1 FROM tab0 AS cor0
----
-29
-1

skipif mysql # not compatible
query II rowsort label-5772
SELECT ALL - 29, - MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
-29
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5773
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5773
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 16 IS NULL
----

query I rowsort
SELECT ALL + col0 FROM tab1 cor0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 82 col1, col1 FROM tab0 AS cor0
----
82
1
82
21
82
81

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT - + ( SUM( ALL 32 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5778
SELECT - + ( SUM ( ALL 32 ) ) FROM tab1 AS cor0
----
-96

query II rowsort
SELECT + col1 AS col2, col0 + + col0 AS col2 FROM tab2 AS cor0
----
51
92
67
150
77
128

query II rowsort
SELECT col0 * + + col2, - col0 - col1 * + col0 AS col1 FROM tab2
----
1058
-2392
2560
-4992
4350
-5100

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT + ( + ( + 56 ) ) * - - col2 NOT BETWEEN + + 2 AND + 1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 col1 FROM tab1 AS cor0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 79 * col1 + col2 col0 FROM tab1 AS cor0
----
-1010
-336
-3645

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 cor0 WHERE NOT - col0 > - + 14
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5785
SELECT * FROM tab2 AS cor0 WHERE NOT - 84 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5785
SELECT * FROM tab2 AS cor0 WHERE NOT - 84 * CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5786
SELECT + col0 DIV - col1 AS col2, col2 FROM tab1 cor0
----
-1
68
-17
59
-3
96

skipif mysql # not compatible
query II rowsort label-5786
SELECT + col0 / - col1 AS col2, col2 FROM tab1 cor0
----
-1
68
-17
59
-3
96

query II rowsort
SELECT - ( - - col0 ) * 46, + ( + 44 ) AS col0 FROM tab2 AS cor0
----
-2116
44
-2944
44
-3450
44

query I rowsort
SELECT + + ( 19 ) AS col1 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT + 52 * 53 AS col0 FROM tab0 AS cor0
----
2756
2756
2756

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5790
SELECT CAST( NULL AS DECIMAL ) * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT CAST ( NULL AS REAL ) * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5791
SELECT ALL - 73 * + - CAST( NULL AS SIGNED ) * - - 6 + - 58, + ( - 70 ) AS col1 FROM tab0 AS cor0
----
NULL
-70
NULL
-70
NULL
-70

skipif mysql # not compatible
query II rowsort label-5791
SELECT ALL - 73 * + - CAST ( NULL AS INTEGER ) * - - 6 + - 58, + ( - 70 ) AS col1 FROM tab0 AS cor0
----
NULL
-70
NULL
-70
NULL
-70

query II rowsort
SELECT + + col1 AS col0, col2 AS col1 FROM tab2 cor0
----
51
23
67
58
77
40

query I rowsort
SELECT - 66 * + 57 FROM tab1 AS cor0
----
-3762
-3762
-3762

query I rowsort
SELECT ALL + - 79 + - - col0 FROM tab0 AS cor0
----
-64
18
8

query I rowsort
SELECT - col2 FROM tab0 WHERE - - ( col0 ) < + col2
----
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 + - - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 + - - col1 AS col0 FROM tab2
----
102
134
154

query I rowsort
SELECT ALL + + AVG ( DISTINCT - + 99 ) FROM tab2 WHERE col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5799
SELECT - COUNT( * ) FROM tab1 WHERE - 21 * col2 * - - 80 >= CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + col0
----
0

skipif mysql # not compatible
query I rowsort label-5799
SELECT - COUNT ( * ) FROM tab1 WHERE - 21 * col2 * - - 80 >= CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + col0
----
0

query I rowsort
SELECT col2 * - + col1 + - col1 AS col0 FROM tab0
----
-100
-231
-3888

query I rowsort
SELECT 21 + + col1 AS col0 FROM tab1
----
26
35
68

query I rowsort
SELECT DISTINCT ( + + col0 ) * - col0 AS col2 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT ALL - COUNT( * ) * - + ( 57 ) - + COUNT( ALL + - 3 ) AS col0 FROM tab0 cor0
----
168

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL - COUNT ( * ) * - + ( 57 ) - + COUNT ( ALL + - 3 ) AS col0 FROM tab0 cor0
----
168

query I rowsort
SELECT + 96 - 32 + col2 FROM tab2
----
104
122
87

query I rowsort
SELECT + col1 - - + col2 FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5806
SELECT DISTINCT - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT DISTINCT - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5807
SELECT CAST( NULL AS SIGNED ) / COUNT( * ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5807
SELECT CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT col2 * - 96 AS col0 FROM tab2 AS cor0
----
-2208
-3840
-5568

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 * col1 AND + 93 * - 39
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5810
SELECT - 57 DIV COUNT( * ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-5810
SELECT - 57 / COUNT ( * ) FROM tab1 AS cor0
----
-19

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 34 + - col1 > - 16
----
46
64
75

query I rowsort
SELECT DISTINCT 49 * 4 AS col0 FROM tab2
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT + SUM( 5 ) AS col1 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-5813
SELECT + SUM ( 5 ) AS col1 FROM tab2
----
15

query I rowsort
SELECT - 64 * + 68 AS col1 FROM tab2
----
-4352
-4352
-4352

query II rowsort
SELECT ALL + col0, + col2 AS col1 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5816
SELECT DISTINCT CAST( + + 91 AS SIGNED ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT CAST ( + + 91 AS INTEGER ) AS col1 FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5817
SELECT - col0 col1 FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5817
SELECT - col0 col1 FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + 48 AS col2 FROM tab0 AS cor0
----
2256
4752
480

query II rowsort
SELECT ALL - col1, col2 AS col2 FROM tab0 cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT col0 * + ( + 73 ) * col0 AS col1 FROM tab1
----
189873
527425
604513

onlyif mysql # aggregate syntax: 
query II rowsort label-5821
SELECT + COUNT( DISTINCT + 66 ), COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL <> NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5821
SELECT + COUNT ( DISTINCT + 66 ), COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL <> NULL
----
0
0

query I rowsort
SELECT ALL 48 * col1 + - 38 + col0 FROM tab0
----
1057
107
3865

query I rowsort
SELECT + col2 * - col0 + - 55 FROM tab1 cor0
----
-4951
-5070
-6243

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT DISTINCT - 77 + - SUM( ALL + + 22 ) FROM tab0 AS cor0
----
-143

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT - 77 + - SUM ( ALL + + 22 ) FROM tab0 AS cor0
----
-143

query I rowsort
SELECT ALL + ( - - col0 ) AS col0 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT + 35 + - 20 + - col1 FROM tab2 AS cor0
----
-36
-52
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5827
SELECT ALL - col2 DIV - 28 + 41 + - col1 FROM tab1 AS cor0
----
-4
30
38

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL - col2 / - 28 + 41 + - col1 FROM tab1 AS cor0
----
-4
30
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5828
SELECT DISTINCT CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5829
SELECT 77 + + + 97 * - - CAST( + 69 AS SIGNED ) AS col2 FROM tab1
----
6770
6770
6770

skipif mysql # not compatible
query I rowsort label-5829
SELECT 77 + + + 97 * - - CAST ( + 69 AS INTEGER ) AS col2 FROM tab1
----
6770
6770
6770

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT ALL - MAX( - col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL - MAX ( - col2 ) AS col0 FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT DISTINCT - col0 DIV 55 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT - col0 / 55 AS col2 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT ALL MAX( + + 74 ) AS col0 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL MAX ( + + 74 ) AS col0 FROM tab1
----
74

query II rowsort
SELECT col2 AS col2, - 87 * col1 FROM tab0
----
10
-1827
47
-7047
99
-87

query I rowsort
SELECT DISTINCT col1 * + - 55 FROM tab1
----
-2585
-275
-770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5835
SELECT ALL + 22 AS col1 FROM tab0 WHERE NOT + - ( - + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
22
22
22

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL + 22 AS col1 FROM tab0 WHERE NOT + - ( - + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT - SUM( - + ( - + 11 ) ) FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-5836
SELECT - SUM ( - + ( - + 11 ) ) FROM tab1
----
-33

query I rowsort
SELECT DISTINCT col1 + - col1 - - col1 AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL 85 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
85
85
85

query III rowsort
SELECT * FROM tab0 WHERE - col1 BETWEEN ( NULL ) AND ( + 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT - 56 + COUNT( * ) AS col1 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-5840
SELECT - 56 + COUNT ( * ) AS col1 FROM tab1
----
-53

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT ( col0 ) IN ( col2 )
----
15
87
97

query I rowsort
SELECT 88 + + col1 FROM tab0
----
109
169
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5844
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT - MAX( 78 ) AS col2 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-5845
SELECT - MAX ( 78 ) AS col2 FROM tab0
----
-78

query I rowsort
SELECT ALL ( + ( - col0 ) ) FROM tab2
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + + 17 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT DISTINCT COUNT( ALL - ( - col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT COUNT ( ALL - ( - col2 ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 6 ) * - 17 NOT IN ( col2 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT + SUM( ALL - col2 ) AS col1 FROM tab1 WHERE - 68 IS NOT NULL
----
-223

skipif mysql # not compatible
query I rowsort label-5850
SELECT + SUM ( ALL - col2 ) AS col1 FROM tab1 WHERE - 68 IS NOT NULL
----
-223

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - col1 AND + 65 * col2
----

query I rowsort
SELECT + ( 39 ) + - col1 FROM tab1
----
-8
25
34

query I rowsort
SELECT ALL 99 - col1 AS col1 FROM tab1
----
52
85
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5854
SELECT DISTINCT 89 + col1 DIV ( - 94 ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT 89 + col1 / ( - 94 ) FROM tab1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT DISTINCT - SUM( DISTINCT 12 ) + + MIN( DISTINCT 35 ) * + SUM( ALL - 89 ) AS col0 FROM tab2
----
-9357

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT - SUM ( DISTINCT 12 ) + + MIN ( DISTINCT 35 ) * + SUM ( ALL - 89 ) AS col0 FROM tab2
----
-9357

query I rowsort
SELECT 72 + - 77 FROM tab0
----
-5
-5
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 * + col0 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 85 - + col1 * col1 IS NOT NULL
----

query I rowsort
SELECT col2 + - col0 AS col2 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5860
SELECT + COUNT( * ) + + MIN( ALL - col0 ) DIV 70 AS col1 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-5860
SELECT + COUNT ( * ) + + MIN ( ALL - col0 ) / 70 AS col1 FROM tab2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT ALL MAX( DISTINCT - 92 ) AS col1 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL MAX ( DISTINCT - 92 ) AS col1 FROM tab1
----
-92

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT + MAX( ALL + col0 ) * 54 AS col2 FROM tab0 AS cor0
----
5238

skipif mysql # not compatible
query I rowsort label-5863
SELECT + MAX ( ALL + col0 ) * 54 AS col2 FROM tab0 AS cor0
----
5238

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT ALL - ( + 80 ) + - COUNT( * ) FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL - ( + 80 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - - col1 <= col0 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 + col0 col2 FROM tab1 AS cor0
----
104
64
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5867
SELECT 62 + 23 DIV 58 AS col2 FROM tab0 cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-5867
SELECT 62 + 23 / 58 AS col2 FROM tab0 cor0
----
62
62
62

query III rowsort
SELECT * FROM tab0 WHERE ( ( - col2 ) / - 36 ) BETWEEN + col2 AND + col2 * col2
----

query I rowsort
SELECT ALL + ( + 69 ) AS col1 FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query III rowsort
SELECT * FROM tab1 WHERE ( 42 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( 95 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT - MIN( DISTINCT 10 ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-5872
SELECT - MIN ( DISTINCT 10 ) FROM tab2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5873
SELECT - SUM( DISTINCT col2 ) DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5873
SELECT - SUM ( DISTINCT col2 ) / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT - COUNT( DISTINCT + 96 ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5874
SELECT - COUNT ( DISTINCT + 96 ) AS col0 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 + - col2 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT MIN( DISTINCT col1 ) * 1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5876
SELECT MIN ( DISTINCT col1 ) * 1 FROM tab0 cor0
----
1

query I rowsort
SELECT DISTINCT + 71 - col1 FROM tab2 AS cor0
----
-6
20
4

query I rowsort
SELECT ALL col0 * - 32 AS col0 FROM tab2 AS cor0
----
-1472
-2048
-2400

query I rowsort
SELECT ALL 13 FROM tab0 cor0 WHERE - col0 IS NOT NULL
----
13
13
13

query I rowsort
SELECT DISTINCT - + col0 + 74 AS col0 FROM tab2 AS cor0
----
-1
10
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5881
SELECT DISTINCT 30 DIV - col2 + col2 * 23 FROM tab0 WHERE NOT - col1 - + 56 IN ( + col0 )
----
1081
227
2277

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT 30 / - col2 + col2 * 23 FROM tab0 WHERE NOT - col1 - + 56 IN ( + col0 )
----
1081
227
2277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( col2 ) col0 FROM tab1 WHERE NULL IS NULL
----
21
54
82

query I rowsort
SELECT DISTINCT + 49 * - col2 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 + - col0 * + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT - MAX( - 26 ) * MIN( 95 ) + COUNT( * ) AS col0 FROM tab1
----
2473

skipif mysql # not compatible
query I rowsort label-5885
SELECT - MAX ( - 26 ) * MIN ( 95 ) + COUNT ( * ) AS col0 FROM tab1
----
2473

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT + MAX( 63 ) + SUM( col0 ) AS col1 FROM tab2
----
248

skipif mysql # not compatible
query I rowsort label-5886
SELECT + MAX ( 63 ) + SUM ( col0 ) AS col1 FROM tab2
----
248

query III rowsort
SELECT ALL * FROM tab0 WHERE + 27 = ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT + 83 + + COUNT( * ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-5888
SELECT + 83 + + COUNT ( * ) FROM tab1
----
86

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 > + col0 + - col0
----

query I rowsort
SELECT ALL - 61 * col2 + - 46 + col1 * 63 FROM tab2 AS cor0
----
1764
2365
637

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL + MAX( DISTINCT col2 ) FROM tab2 AS cor0 WHERE + col0 IN ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL + MAX ( DISTINCT col2 ) FROM tab2 AS cor0 WHERE + col0 IN ( + col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 6 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query II rowsort
SELECT ALL 39 AS col2, col1 FROM tab2
----
39
51
39
67
39
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT DISTINCT - COUNT( * ) + ( 73 ) col2 FROM tab0 AS cor0 WHERE NOT - col0 * - col2 * + 55 > NULL
----
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5894
SELECT DISTINCT - COUNT ( * ) + ( 73 ) col2 FROM tab0 AS cor0 WHERE NOT - col0 * - col2 * + 55 > NULL
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT + COUNT( + col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5895
SELECT + COUNT ( + col0 ) FROM tab0 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5896
SELECT - col1 DIV + + col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5896
SELECT - col1 / + + col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5897
SELECT ALL + 78 DIV + + col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL + 78 / + + col0 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <> 5 - + 23
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5899
SELECT ( 5 ) + + ( 50 + + CAST( NULL AS SIGNED ) ) * - AVG ( + CAST( NULL AS DECIMAL ) * + col0 ) FROM tab1 cor0 WHERE NOT 97 * - 23 / col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5899
SELECT ( 5 ) + + ( 50 + + CAST ( NULL AS INTEGER ) ) * - AVG ( + CAST ( NULL AS REAL ) * + col0 ) FROM tab1 cor0 WHERE NOT 97 * - 23 / col2 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( + 6 )
----

query I rowsort
SELECT DISTINCT 78 * - col0 + col2 AS col0 FROM tab1 AS cor0
----
-3882
-6571
-7030

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( + ( - col0 ) / col0 + - 83 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - col1 * - 50 * - 81 + + ( col2 ) ) IS NOT NULL
----

query I rowsort
SELECT + col2 * - 28 FROM tab0
----
-1316
-2772
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT ALL COUNT( * ) * + 47 AS col2 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL COUNT ( * ) * + 47 AS col2 FROM tab1
----
141

query I rowsort
SELECT + ( + - 17 ) AS col1 FROM tab1
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL COUNT( col1 ) + + 1 AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL COUNT ( col1 ) + + 1 AS col1 FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT ALL - COUNT( * ) + - 83 AS col2 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL - COUNT ( * ) + - 83 AS col2 FROM tab2 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-5909
SELECT - + COUNT( - 47 ), 76 col2 FROM tab0 AS cor0
----
-3
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5909
SELECT - + COUNT ( - 47 ), 76 col2 FROM tab0 AS cor0
----
-3
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT - MIN( ALL + col2 ) * 7 FROM tab2
----
-161

skipif mysql # not compatible
query I rowsort label-5910
SELECT - MIN ( ALL + col2 ) * 7 FROM tab2
----
-161

query I rowsort
SELECT col2 + col1 + + + col2 FROM tab2
----
157
183
97

query I rowsort
SELECT 85 FROM tab2 WHERE NULL < - col2
----

query I rowsort
SELECT ALL - - col1 - + 21 AS col2 FROM tab0 AS cor0
----
-20
0
60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 81 * + col1 NOT IN ( - - 73 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5915
SELECT DISTINCT + 50 + + 49 DIV - - col2 FROM tab0 cor0
----
50
51
54

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT + 50 + + 49 / - - col2 FROM tab0 cor0
----
50
51
54

onlyif mysql # aggregate syntax: 
query II rowsort label-5916
SELECT ALL + 33 AS col1, COUNT( * ) FROM tab1
----
33
3

skipif mysql # not compatible
query II rowsort label-5916
SELECT ALL + 33 AS col1, COUNT ( * ) FROM tab1
----
33
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT DISTINCT COUNT( * ) - - COUNT( * ) * 66 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-5917
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) * 66 FROM tab2
----
201

query I rowsort
SELECT ALL + col0 - - col0 AS col1 FROM tab1
----
102
170
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 74 col2, + col1 FROM tab0
----
-74
1
-74
21
-74
81

query II rowsort
SELECT + 68, - col0 AS col2 FROM tab1
----
68
-51
68
-85
68
-91

query II rowsort
SELECT ALL col2, + 85 AS col0 FROM tab0
----
10
85
47
85
99
85

query II rowsort
SELECT DISTINCT col0 AS col0, 79 FROM tab2
----
46
79
64
79
75
79

query I rowsort
SELECT - 5 + 65 FROM tab2 WHERE - col2 NOT BETWEEN - col0 AND 20
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 * col0 IN ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT - + ( MAX( ALL + + 71 ) ) AS col1 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-5925
SELECT - + ( MAX ( ALL + + 71 ) ) AS col1 FROM tab2 AS cor0
----
-71

query I rowsort
SELECT + + ( + 51 ) FROM tab1 AS cor0
----
51
51
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5927
SELECT DISTINCT + SUM( ALL - col2 ) FROM tab0 AS cor0 WHERE NULL <= ( 91 + - 4 / CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT + SUM ( ALL - col2 ) FROM tab0 AS cor0 WHERE NULL <= ( 91 + - 4 / CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5928
SELECT - 81 DIV + + MIN( - 63 ) col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5928
SELECT - 81 / + + MIN ( - 63 ) col2 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT ALL + MIN( ALL 78 ) AS col1 FROM tab0 cor0
----
78

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL + MIN ( ALL 78 ) AS col1 FROM tab0 cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT - COUNT( * ) * + MIN( + col1 * - col1 ) FROM tab1 cor0 WHERE NOT ( NOT - col2 NOT IN ( + - ( col0 ) + ( + col2 ) ) )
----
6627

skipif mysql # not compatible
query I rowsort label-5930
SELECT - COUNT ( * ) * + MIN ( + col1 * - col1 ) FROM tab1 cor0 WHERE NOT ( NOT - col2 NOT IN ( + - ( col0 ) + ( + col2 ) ) )
----
6627

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT ALL + COUNT( * ) * - 85 + + - 2 * 16 AS col2 FROM tab0 AS cor0
----
-287

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL + COUNT ( * ) * - 85 + + - 2 * 16 AS col2 FROM tab0 AS cor0
----
-287

query I rowsort
SELECT ( + 1 ) FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT + - col1 * + - 37 AS col2 FROM tab0 AS cor0
----
2997
37
777

query I rowsort
SELECT - 75 * + 55 + - col1 AS col2 FROM tab1 AS cor0
----
-4130
-4139
-4172

onlyif mysql # DIV for integer division: 
query I rowsort label-5935
SELECT - 66 DIV + col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-5935
SELECT - 66 / + col2 FROM tab0
----
-1
-6
0

query I rowsort
SELECT + col0 * + - ( - ( col0 ) ) AS col1 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT ALL COUNT( * ) * - + 44 FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL COUNT ( * ) * - + 44 FROM tab2
----
-132

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT DISTINCT - COUNT( * ) + - 14 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT - COUNT ( * ) + - 14 FROM tab1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT + COUNT( * ) + 5 AS col1 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5940
SELECT + COUNT ( * ) + 5 AS col1 FROM tab2 AS cor0
----
8

query I rowsort
SELECT - col1 + + 69 AS col2 FROM tab2 AS cor0
----
-8
18
2

query I rowsort
SELECT col1 + - 56 AS col2 FROM tab1 cor0
----
-42
-51
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT DISTINCT - COUNT( DISTINCT col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT - COUNT ( DISTINCT col2 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, col1 col1 FROM tab0 AS cor0 WHERE col2 = NULL
----

query I rowsort
SELECT ALL + - 34 + - - 17 * - col2 FROM tab0 WHERE NOT ( NOT ( NOT col1 - - 44 IS NOT NULL ) )
----

query I rowsort
SELECT DISTINCT + - 73 + + 47 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + + 78 col2 FROM tab0 AS cor0
----
-3
57
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT + + 86 - COUNT( * ) * COUNT( * ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-5948
SELECT + + 86 - COUNT ( * ) * COUNT ( * ) FROM tab2 cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT DISTINCT + - COUNT( * ) + + - MIN( - col0 ) AS col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT + - COUNT ( * ) + + - MIN ( - col0 ) AS col0 FROM tab2 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 - col0, 69 col2 FROM tab1 AS cor0
----
0
69
0
69
0
69

query I rowsort
SELECT DISTINCT - col2 - - - col1 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT ALL - col1 - - - col1 FROM tab0
----
-162
-2
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT + 22 + + - col2 * - - 92 * col1 AS col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-5953
SELECT + 22 + + - col2 * - - 92 * col1 AS col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT DISTINCT - col2 - ( - - col2 ) + - col2 FROM tab2
----
-120
-174
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL + COUNT( ALL - col1 ) FROM tab0 WHERE NOT - col0 BETWEEN NULL AND - 17
----
1

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL + COUNT ( ALL - col1 ) FROM tab0 WHERE NOT - col0 BETWEEN NULL AND - 17
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT COUNT( 55 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5956
SELECT COUNT ( 55 ) col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT ( 49 ) FROM tab0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col1, 17 + + col0 * + ( + col2 ) - col2 AS col1 FROM tab2 WHERE NOT NULL < NULL
----

query II rowsort
SELECT 10 AS col2, 88 FROM tab0
----
10
88
10
88
10
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5960
SELECT DISTINCT + 69, - COUNT( * ) col1 FROM tab0
----
69
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5960
SELECT DISTINCT + 69, - COUNT ( * ) col1 FROM tab0
----
69
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5961
SELECT - MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5962
SELECT + CAST( NULL AS SIGNED ) * + 55 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT + CAST ( NULL AS INTEGER ) * + 55 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 18 AS col1 FROM tab2 cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT ALL + COUNT( 65 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL + COUNT ( 65 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 / - 48 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5966
SELECT ALL col0, col2 DIV + 55 AS col0 FROM tab0
----
15
0
87
0
97
1

skipif mysql # not compatible
query II rowsort label-5966
SELECT ALL col0, col2 / + 55 AS col0 FROM tab0
----
15
0
87
0
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT - - ( + + COUNT( * ) ) - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-5967
SELECT - - ( + + COUNT ( * ) ) - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
0

query II rowsort
SELECT col0, + col1 AS col1 FROM tab2 cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5969
SELECT - - ( CAST( - MIN( - + col2 ) AS SIGNED ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5969
SELECT - - ( CAST ( - MIN ( - + col2 ) AS INTEGER ) ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT DISTINCT - MAX( ( col2 ) ) col2 FROM tab1 cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5970
SELECT DISTINCT - MAX ( ( col2 ) ) col2 FROM tab1 cor0
----
-96

query II rowsort
SELECT ALL - 75 AS col0, - col0 AS col2 FROM tab0 AS cor0
----
-75
-15
-75
-87
-75
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5972
SELECT - COUNT( * ) + - - SUM( ALL - col2 ) + - 99 / + 12 * - 25 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5972
SELECT - COUNT ( * ) + - - SUM ( ALL - col2 ) + - 99 / + 12 * - 25 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - - col0 AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 + - ( + 71 ) col2 FROM tab1
----
-86
-86
-86

query II rowsort
SELECT col0 + 0 AS col2, col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT - COUNT( * ) FROM tab2 WHERE - col2 >= - col1
----
-3

skipif mysql # not compatible
query I rowsort label-5976
SELECT - COUNT ( * ) FROM tab2 WHERE - col2 >= - col1
----
-3

query I rowsort
SELECT 17 * col2 AS col1 FROM tab0
----
1683
170
799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5978
SELECT DISTINCT + CAST( - + 6 AS SIGNED ) + + col2 - + ( + - col0 ) FROM tab1
----
138
141
153

skipif mysql # not compatible
query I rowsort label-5978
SELECT DISTINCT + CAST ( - + 6 AS INTEGER ) + + col2 - + ( + - col0 ) FROM tab1
----
138
141
153

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 89 NOT BETWEEN + col2 AND - 40 * - + col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT ALL + COUNT( * ) + - COUNT( * ) * - 91 AS col1 FROM tab1 cor0
----
276

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL + COUNT ( * ) + - COUNT ( * ) * - 91 AS col1 FROM tab1 cor0
----
276

query I rowsort
SELECT + + 1 - - + col1 + + 77 * + ( - col1 ) FROM tab0 AS cor0
----
-1595
-6155
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5983
SELECT ALL col0 DIV + + 16 AS col1 FROM tab2
----
2
4
4

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL col0 / + + 16 AS col1 FROM tab2
----
2
4
4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5984
SELECT ALL + CAST( NULL AS SIGNED ) / + - CAST( - - col0 AS DECIMAL ), + ( col1 ) AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5984
SELECT ALL + CAST ( NULL AS INTEGER ) / + - CAST ( - - col0 AS REAL ), + ( col1 ) AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5985
SELECT ALL + + col0 DIV 97 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL + + col0 / 97 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( 72 ) AS col0 FROM tab2 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5987
SELECT + CAST( - col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5987
SELECT + CAST ( - col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT ALL + COUNT( - + col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5988
SELECT ALL + COUNT ( - + col1 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * - 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 51 + - col2 * col0 AS col2 FROM tab2 WHERE NOT ( + col2 ) / + + col1 IS NULL
----
-1109
-2611
-4401

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 * + col0 col0 FROM tab0 AS cor0
----
3306
3686
570

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT DISTINCT + - ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT + - ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5994
SELECT ALL + 85 DIV 92 * ( - col0 ) + - ( + col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL + 85 / 92 * ( - col0 ) + - ( + col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 49 - + - col1 + col0 ) IS NOT NULL
----

query II rowsort
SELECT col1 AS col2, + ( + col0 ) + - col0 AS col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

query II rowsort
SELECT ALL col1, 51 FROM tab0 cor0
----
1
51
21
51
81
51

query I rowsort
SELECT + col1 * + - col2 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT - col0 * ( + col0 ) * - col1 + + col0 AS col1 FROM tab1 AS cor0
----
36210
36465
389298

query I rowsort
SELECT 6 * + - col1 AS col2 FROM tab1
----
-282
-30
-84

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6002
SELECT ALL 29 / - CAST( NULL AS SIGNED ) / col1 + - - 79 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL 29 / - CAST ( NULL AS INTEGER ) / col1 + - - 79 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - col2 AS col2 FROM tab2 WHERE + 75 * col0 - - col1 + + 72 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT DISTINCT 46 + + - COUNT( * ) AS col1 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT 46 + + - COUNT ( * ) AS col1 FROM tab2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT COUNT( * ) + SUM( DISTINCT + 38 ) AS col2 FROM tab2 cor0
----
41

skipif mysql # not compatible
query I rowsort label-6005
SELECT COUNT ( * ) + SUM ( DISTINCT + 38 ) AS col2 FROM tab2 cor0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 + - + col2 col2, - ( + col2 ) FROM tab0 AS cor0
----
-98
-99
11
-10
34
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT ALL MAX( + + col2 ) AS col2 FROM tab2 AS cor0 WHERE + 7 * + - col1 IS NOT NULL
----
58

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL MAX ( + + col2 ) AS col2 FROM tab2 AS cor0 WHERE + 7 * + - col1 IS NOT NULL
----
58

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - ( + 82 ) + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6010
SELECT - col0 * - CAST( - + 34 AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6010
SELECT - col0 * - CAST ( - + 34 AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 61 + - col0 * col0
----

query I rowsort
SELECT DISTINCT - col2 * + 59 FROM tab2
----
-1357
-2360
-3422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6013
SELECT - COUNT( DISTINCT + CAST( 94 AS SIGNED ) ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6013
SELECT - COUNT ( DISTINCT + CAST ( 94 AS INTEGER ) ) AS col1 FROM tab2
----
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( - col2 ) > NULL
----

query II rowsort
SELECT ALL col1 AS col1, + 67 * col2 FROM tab0
----
1
6633
21
670
81
3149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 26 AS col1, 88 col2 FROM tab0 cor0
----
26
88
26
88
26
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6017
SELECT ALL - COUNT( * ) AS col2, + MIN( col1 ) FROM tab1 AS cor0
----
-3
5

skipif mysql # not compatible
query II rowsort label-6017
SELECT ALL - COUNT ( * ) AS col2, + MIN ( col1 ) FROM tab1 AS cor0
----
-3
5

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT 51 + 16 - 28 * - ( - + col0 ) IS NOT NULL
----

query I rowsort
SELECT col1 - - - col0 + col2 + - + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 / + col2 AND ( - 5 )
----

query I rowsort
SELECT DISTINCT + ( - + col1 ) FROM tab0 AS cor0 WHERE + col1 / + col0 + + 28 - 65 IS NULL
----

query I rowsort
SELECT ALL + col2 * col1 - + - 99 FROM tab1 WHERE - 76 = + - col1 + - - ( + + 7 )
----

query I rowsort
SELECT DISTINCT + 46 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
46

query I rowsort
SELECT ALL col0 * - - col0 FROM tab2 AS cor0 WHERE NULL < NULL
----

query II rowsort
SELECT DISTINCT + + col0 AS col0, 20 / col2 * + col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT DISTINCT + + 92 * + SUM( DISTINCT - col2 ) + - + COUNT( * ) FROM tab1 AS cor0
----
-20519

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT + + 92 * + SUM ( DISTINCT - col2 ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-20519

query I rowsort
SELECT ALL - - col1 + 42 AS col2 FROM tab0 cor0
----
123
43
63

query I rowsort
SELECT col2 * - col0 + - 5 FROM tab0 AS cor0
----
-710
-875
-9608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * + col0 col2 FROM tab1
----
3825
6375
6825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * - - 4 col0 FROM tab0
----
324
4
84

query II rowsort
SELECT ALL + 93 * + col1 + - 64, + 74 AS col0 FROM tab1
----
1238
74
401
74
4307
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6031
SELECT ALL - 37 AS col0, COUNT( * ) col0 FROM tab0 cor0
----
-37
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6031
SELECT ALL - 37 AS col0, COUNT ( * ) col0 FROM tab0 cor0
----
-37
3

query I rowsort
SELECT + 91 * - col1 * 30 - + col2 AS col1 FROM tab2 cor0
----
-139253
-182968
-210250

onlyif mysql # aggregate syntax: 
query II rowsort label-6033
SELECT ALL 12, COUNT( * ) AS col0 FROM tab1
----
12
3

skipif mysql # not compatible
query II rowsort label-6033
SELECT ALL 12, COUNT ( * ) AS col0 FROM tab1
----
12
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + ( + - col2 ) ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT 80 + - - 91 * COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
899

skipif mysql # not compatible
query I rowsort label-6035
SELECT 80 + - - 91 * COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6036
SELECT DISTINCT + - col0 FROM tab2 WHERE NOT - 84 * + col2 * + CAST( - - 60 AS SIGNED ) * - - 65 > NULL
----

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT + - col0 FROM tab2 WHERE NOT - 84 * + col2 * + CAST ( - - 60 AS INTEGER ) * - - 65 > NULL
----

query I rowsort
SELECT DISTINCT - col2 * + - ( - 70 ) FROM tab0 AS cor0
----
-3290
-6930
-700

onlyif mysql # DIV for integer division: 
query I rowsort label-6038
SELECT ALL - 70 DIV - 61 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL - 70 / - 61 AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6039
SELECT ALL - - col2 / + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL - - col2 / + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT ( + col2 ) + + col1 + col1, + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
125
46
192
75
194
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 26 AND + 70 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6042
SELECT DISTINCT - col2 AS col1, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-6042
SELECT DISTINCT - col2 AS col1, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query II rowsort
SELECT ALL col2, col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6044
SELECT - CAST( + + CAST( + 49 AS SIGNED ) AS SIGNED ) DIV - - 57 - + ( + CAST( 91 AS SIGNED ) ), - COUNT( * ) + - COUNT( * ) AS col0 FROM tab1
----
-91
-6

skipif mysql # not compatible
query II rowsort label-6044
SELECT - CAST ( + + CAST ( + 49 AS INTEGER ) AS INTEGER ) / - - 57 - + ( + CAST ( 91 AS INTEGER ) ), - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1
----
-91
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6045
SELECT ALL CAST( NULL AS DECIMAL ) * + - col0 * CAST( col1 AS DECIMAL ) + + + ( col0 ) + - 15 AS col0 FROM tab0 WHERE NOT 54 = 30
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL CAST ( NULL AS REAL ) * + - col0 * CAST ( col1 AS REAL ) + + + ( col0 ) + - 15 AS col0 FROM tab0 WHERE NOT 54 = 30
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 20 FROM tab0 WHERE - - 33 >= - + 40 - + - 50
----
-20
-20
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6047
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + 82 AS col2 FROM tab2 AS cor0 WHERE NOT ( + 14 ) * - col0 NOT BETWEEN + ( + + col0 ) + + col1 AND NULL
----

query II rowsort
SELECT col1 AS col0, 68 FROM tab0 AS cor0
----
1
68
21
68
81
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 <= - + col1 + - 70 + - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT MIN( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-75

skipif mysql # not compatible
query I rowsort label-6051
SELECT MIN ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-6052
SELECT - col0 col1, - 94 + col1 DIV + - 33 FROM tab2 AS cor0
----
-46
-95
-64
-96
-75
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6052
SELECT - col0 col1, - 94 + col1 / + - 33 FROM tab2 AS cor0
----
-46
-95
-64
-96
-75
-96

query I rowsort
SELECT + 67 * col0 FROM tab2 cor0
----
3082
4288
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 + col1 col2 FROM tab0 AS cor0
----
158
78
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT 52 + - COUNT( * ) FROM tab0, tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-6055
SELECT 52 + - COUNT ( * ) FROM tab0, tab1 AS cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6056
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6056
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 35 * col1 - + col2 FROM tab2
----
1762
2287
2655

query III rowsort
SELECT * FROM tab0 WHERE ( ( + col2 < NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT MAX( ALL - col0 ) + COUNT( * ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-6059
SELECT MAX ( ALL - col0 ) + COUNT ( * ) FROM tab2
----
-43

query I rowsort
SELECT - col1 + ( + 96 ) AS col1 FROM tab0
----
15
75
95

query I rowsort
SELECT + col1 FROM tab0 WHERE col0 < NULL
----

query I rowsort
SELECT col0 - 12 AS col0 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT 78 + - 41 AS col2 FROM tab0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT ALL ( + + MAX( DISTINCT - + col1 ) ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL ( + + MAX ( DISTINCT - + col1 ) ) FROM tab2
----
-51

query I rowsort
SELECT ALL - 42 + - col1 - + - 13 + - - 36 * ( + col0 ) FROM tab1 AS cor0
----
1793
3026
3200

query I rowsort
SELECT - 33 + - col0 + ( col1 ) + col1 FROM tab1 cor0
----
-108
-30
-56

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 33 * - 34 NOT BETWEEN ( + col0 * - - col1 + + col0 ) AND NULL
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT DISTINCT SUM( + - col0 ) col1 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6068
SELECT DISTINCT SUM ( + - col0 ) col1 FROM tab2
----
-185

query I rowsort
SELECT + 13 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 * col1 <> + + col0
----

query I rowsort
SELECT + ( + - col1 ) * + + col2 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT - 49 * - 75 AS col2 FROM tab2 AS cor0
----
3675
3675
3675

query I rowsort
SELECT col0 * col2 * - 42 AS col1 FROM tab0 AS cor0
----
-29610
-36540
-403326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6074
SELECT + col1 - - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NOT 22 * - col1 NOT IN ( + col1, col2, col2 * - CAST( + - col0 AS SIGNED ) * 5 - col0, ( + 47 ) )
----

skipif mysql # not compatible
query I rowsort label-6074
SELECT + col1 - - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NOT 22 * - col1 NOT IN ( + col1, col2, col2 * - CAST ( + - col0 AS INTEGER ) * 5 - col0, ( + 47 ) )
----

query I rowsort
SELECT DISTINCT + 69 * + + 93 FROM tab1 AS cor0
----
6417

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 col1 FROM tab0 AS cor0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6077
SELECT CAST( NULL AS SIGNED ) * SUM( ALL + - 3 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6077
SELECT CAST ( NULL AS INTEGER ) * SUM ( ALL + - 3 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT ALL SUM( 25 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL SUM ( 25 ) AS col0 FROM tab2
----
75

query I rowsort
SELECT DISTINCT + 94 + 71 + - 11 * - ( 32 ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 71 * + col0 FROM tab2
----
3266
4544
5325

query I rowsort
SELECT ( + 17 ) AS col1 FROM tab2
----
17
17
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6082
SELECT CAST( - SUM( DISTINCT + col1 ) AS SIGNED ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-6082
SELECT CAST ( - SUM ( DISTINCT + col1 ) AS INTEGER ) AS col1 FROM tab1
----
-66

query I rowsort
SELECT ALL - 79 * col1 * 84 FROM tab1
----
-311892
-33180
-92904

query I rowsort
SELECT 42 + + 57 AS col0 FROM tab2 AS cor0 WHERE NOT 68 + col2 IS NULL
----
99
99
99

query I rowsort
SELECT - - 56 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6086
SELECT ALL - COUNT( * ) + - 69 + + CAST( AVG ( DISTINCT - col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-146

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL - COUNT ( * ) + - 69 + + CAST ( AVG ( DISTINCT - col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-146

query I rowsort
SELECT ALL - 75 - ( col0 ) AS col0 FROM tab0 cor0
----
-162
-172
-90

query I rowsort
SELECT DISTINCT + col1 * - col0 + - col1 FROM tab0 cor0
----
-1296
-1848
-98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + col2 + - + 5 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT ALL - MAX( ALL + - col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL - MAX ( ALL + - col2 ) AS col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-6091
SELECT COUNT( * ), + 80 AS col2 FROM tab0
----
3
80

skipif mysql # not compatible
query II rowsort label-6091
SELECT COUNT ( * ), + 80 AS col2 FROM tab0
----
3
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT DISTINCT MAX( 13 ) col1 FROM tab2
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6092
SELECT DISTINCT MAX ( 13 ) col1 FROM tab2
----
13

query I rowsort
SELECT ALL 68 AS col1 FROM tab2 WHERE NOT ( NULL ) < - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6094
SELECT - ( COUNT( * ) ) * + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT - ( COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 15 * - col1 FROM tab2
----
-1005
-1155
-765

query I rowsort
SELECT col0 * - 34 FROM tab0
----
-2958
-3298
-510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6097
SELECT ALL COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6098
SELECT ALL 42 DIV - col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL 42 / - col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 / + + 92 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - + 41
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE + 46 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6101
SELECT DISTINCT - COUNT( * ) AS col0, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-6101
SELECT DISTINCT - COUNT ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT DISTINCT - ( 65 ) AS col1 FROM tab1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT DISTINCT MAX( ALL + col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-6103
SELECT DISTINCT MAX ( ALL + col1 ) AS col2 FROM tab2
----
77

query I rowsort
SELECT col1 - + + 6 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - 96 * col0 AS col0 FROM tab2 AS cor0
----
-4416
-6144
-7200

query I rowsort
SELECT DISTINCT + - col2 / + col2 + - ( - + 18 ) FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + 37 * + col1 * + col1 * - + col2 FROM tab0 cor0
----
-11409579
-163170
-3663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6108
SELECT + - 42 * + CAST( + + AVG ( ALL 52 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2184

skipif mysql # not compatible
query I rowsort label-6108
SELECT + - 42 * + CAST ( + + AVG ( ALL 52 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6109
SELECT - col2 * - 65 - + CAST( NULL AS SIGNED ) * - ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6109
SELECT - col2 * - 65 - + CAST ( NULL AS INTEGER ) * - ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + 26 + + col0 + + 31 col1 FROM tab2 AS cor0 WHERE NOT col0 > + col1
----
1273
1759

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6111
SELECT ALL - 64 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL - 64 * - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT ALL + MIN( - + col1 ) col1 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6112
SELECT ALL + MIN ( - + col1 ) col1 FROM tab1
----
-47

query II rowsort
SELECT DISTINCT 74 * - 73 + 87, - col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5315
-14
-5315
-47
-5315
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + + col2 col1 FROM tab2 cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT DISTINCT - MIN( DISTINCT 7 ) AS col2 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-6115
SELECT DISTINCT - MIN ( DISTINCT 7 ) AS col2 FROM tab0 AS cor0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-6116
SELECT - col0 + col0 DIV - + col1 col0 FROM tab0 AS cor0
----
-15
-194
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6116
SELECT - col0 + col0 / - + col1 col0 FROM tab0 AS cor0
----
-15
-194
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT + COUNT( * ) + - 14 AS col0 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-6117
SELECT + COUNT ( * ) + - 14 AS col0 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT - 63 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT DISTINCT col0 * + + 44 FROM tab2
----
2024
2816
3300

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6120
SELECT COUNT( * ) FROM tab1 WHERE - CAST( - + col2 AS DECIMAL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6120
SELECT COUNT ( * ) FROM tab1 WHERE - CAST ( - + col2 AS REAL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT 53 + col2 AS col2 FROM tab0
----
100
152
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6122
SELECT 14 AS col0, - COUNT( * ) FROM tab2 AS cor0
----
14
-3

skipif mysql # not compatible
query II rowsort label-6122
SELECT 14 AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
14
-3

query II rowsort
SELECT + + 97 AS col2, + 39 * + 20 FROM tab1 AS cor0
----
97
780
97
780
97
780

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col2 * - - ( + ( - col2 ) ) + col2 > - col2
----
3

skipif mysql # not compatible
query I rowsort label-6124
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col2 * - - ( + ( - col2 ) ) + col2 > - col2
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 46 - + 24 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 - col1 + + col1 AS col1 FROM tab2 cor0
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 48 <= NULL
----

query II rowsort
SELECT col1 + - - col1 AS col2, col1 FROM tab2
----
102
51
134
67
154
77

query I rowsort
SELECT - col1 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT 29 + 7 FROM tab0
----
36
36
36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 55 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT COUNT( DISTINCT - - col1 ) + ( + COUNT( * ) ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6133
SELECT COUNT ( DISTINCT - - col1 ) + ( + COUNT ( * ) ) AS col2 FROM tab2
----
6

query I rowsort
SELECT ALL col1 + 37 + + col1 + - col0 FROM tab1
----
-38
14
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6135
SELECT DISTINCT - 36 DIV + col0 * + - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6135
SELECT DISTINCT - 36 / + col0 * + - col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6136
SELECT ALL - 31 AS col0 FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL - 31 AS col0 FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ( 28 ) FROM tab2
----
28
28
28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 89 + - - ( col2 ) <= ( - 25 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 81 ) col2 FROM tab2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL <> 35
----
0

skipif mysql # not compatible
query I rowsort label-6140
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL <> 35
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6141
SELECT + + col0 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6141
SELECT + + col0 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( + - 68, - col1 + + + col0 * + col2, + ( - + 8 ), + col1, - 16 + + 85, col2 * - col2, - - col2 * + col1 + - 86, - 96 / + 27, + col2 )
----

query I rowsort
SELECT 22 * 10 AS col1 FROM tab2 AS cor0
----
220
220
220

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT + - COUNT( * ) * + - COUNT( * ) AS col2 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6144
SELECT + - COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab1 cor0
----
9

query I rowsort
SELECT DISTINCT 14 FROM tab2 AS cor0 WHERE NOT 19 + - col0 IS NULL
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT DISTINCT + SUM( + - col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT + SUM ( + - col1 ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT 40 + + ( col2 ) + - col0 AS col1 FROM tab1 AS cor0
----
14
17
85

query I rowsort
SELECT + col0 * col2 + - col1 + col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL AVG ( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE ( NULL ) <> + + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT DISTINCT + ( COUNT( * ) ) + + ( + 76 ) + + MAX( + col2 ) FROM tab0 AS cor0
----
178

skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT + ( COUNT ( * ) ) + + ( + 76 ) + + MAX ( + col2 ) FROM tab0 AS cor0
----
178

onlyif mysql # aggregate syntax: 
query II rowsort label-6151
SELECT ALL SUM( - col2 ), COUNT( * ) AS col2 FROM tab0 cor0
----
-156
3

skipif mysql # not compatible
query II rowsort label-6151
SELECT ALL SUM ( - col2 ), COUNT ( * ) AS col2 FROM tab0 cor0
----
-156
3

query II rowsort
SELECT col1 AS col2, col1 * - 61 FROM tab0 cor0 WHERE NULL >= ( + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> - - 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT MIN( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6154
SELECT MIN ( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT col0 + - col1 + - + ( + col2 ) AS col1 FROM tab2 cor0
----
-28
-50
-53

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 >= NULL
----

query I rowsort
SELECT ALL - + col2 + + 65 FROM tab2 AS cor0
----
25
42
7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 < col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6159
SELECT + - 63 * 32 DIV - 72 FROM tab1 AS cor0 WHERE 75 + - col2 * + col0 IS NOT NULL
----
28
28
28

skipif mysql # not compatible
query I rowsort label-6159
SELECT + - 63 * 32 / - 72 FROM tab1 AS cor0 WHERE 75 + - col2 * + col0 IS NOT NULL
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT DISTINCT ( - - COUNT( * ) ) - + COUNT( 99 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT ( - - COUNT ( * ) ) - + COUNT ( 99 ) AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + col1 - + col2 - + 1 * col1 col2 FROM tab0
----
-199
-241
-3935

query II rowsort
SELECT - 49 - + 31 * + 70 * - 64, - 73 AS col1 FROM tab2
----
138831
-73
138831
-73
138831
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-6163
SELECT ALL - 32, + COUNT( * ) AS col0 FROM tab1
----
-32
3

skipif mysql # not compatible
query II rowsort label-6163
SELECT ALL - 32, + COUNT ( * ) AS col0 FROM tab1
----
-32
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT ALL MIN( DISTINCT + ( + col2 ) ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL MIN ( DISTINCT + ( + col2 ) ) AS col2 FROM tab0
----
10

query I rowsort
SELECT DISTINCT + 36 * - col2 AS col0 FROM tab2
----
-1440
-2088
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT ALL - - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL - - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT ALL COUNT( * ) * - MIN( col1 ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL COUNT ( * ) * - MIN ( col1 ) FROM tab1 AS cor0
----
-15

query I rowsort
SELECT DISTINCT + - col1 * - 55 * col1 FROM tab0 AS cor0
----
24255
360855
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT - COUNT( DISTINCT + col1 ) * + COUNT( ALL + ( ( + 86 ) ) ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6169
SELECT - COUNT ( DISTINCT + col1 ) * + COUNT ( ALL + ( ( + 86 ) ) ) FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6170
SELECT ALL + 37 DIV col2 DIV + + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL + 37 / col2 / + + col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6171
SELECT DISTINCT col0 + - 29 + 88 FROM tab1 WHERE NULL NOT IN ( CAST( 6 AS SIGNED ) + - + 64 + - col2 / + col0 * - 58 )
----

skipif mysql # not compatible
query I rowsort label-6171
SELECT DISTINCT col0 + - 29 + 88 FROM tab1 WHERE NULL NOT IN ( CAST ( 6 AS INTEGER ) + - + 64 + - col2 / + col0 * - 58 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( col0 ) BETWEEN - col1 AND col2 * + + col2
----
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6173
SELECT - col0 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + 57 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT - col0 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + 57 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL >= - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT + 68 * + - COUNT( 39 ) col1 FROM tab2 cor0
----
-204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6175
SELECT + 68 * + - COUNT ( 39 ) col1 FROM tab2 cor0
----
-204

query I rowsort
SELECT + 2 * 26 + col0 FROM tab2 WHERE + + col0 * - col2 + - col1 IS NOT NULL
----
116
127
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT DISTINCT COUNT( 4 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT COUNT ( 4 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6178
SELECT - + CAST( + - 80 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-17
-7
65

skipif mysql # not compatible
query I rowsort label-6178
SELECT - + CAST ( + - 80 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-17
-7
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL > ( + + 21 ) + + col2
----
0

skipif mysql # not compatible
query I rowsort label-6179
SELECT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL > ( + + 21 ) + + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT COUNT( * ) + + MAX( ALL + + col0 ) AS col0 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-6180
SELECT COUNT ( * ) + + MAX ( ALL + + col0 ) AS col0 FROM tab0 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT + + COUNT( * ) * - + 60 FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-6181
SELECT + + COUNT ( * ) * - + 60 FROM tab2 AS cor0
----
-180

query I rowsort
SELECT + 79 - - 79 AS col1 FROM tab2 AS cor0
----
158
158
158

query I rowsort
SELECT DISTINCT + 53 + col0 + - col2 * col1 - 15 AS col2 FROM tab1 AS cor0
----
-1255
-172
-3067

query I rowsort
SELECT DISTINCT 94 * + col0 - col1 FROM tab0 AS cor0
----
1329
8157
9117

query I rowsort
SELECT + ( - 77 ) - - 71 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT 25 - + col0 AS col1 FROM tab1 cor0
----
-26
-60
-66

query I rowsort
SELECT DISTINCT + - col2 * + 18 + 1 + - + col0 - col0 + - 37 AS col1 FROM tab0 AS cor0
----
-2012
-390
-912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6188
SELECT MAX( - - col2 ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT MAX ( - - col2 ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * - + col1 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-6190
SELECT + COUNT( * ) AS col1, - 97 FROM tab2
----
3
-97

skipif mysql # not compatible
query II rowsort label-6190
SELECT + COUNT ( * ) AS col1, - 97 FROM tab2
----
3
-97

query II rowsort
SELECT - ( - 0 ) * - col2 * - - col0 + + 78 AS col2, 37 FROM tab0
----
78
37
78
37
78
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT - 34 * + + COUNT( * ) FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-6192
SELECT - 34 * + + COUNT ( * ) FROM tab2
----
-102

query I rowsort
SELECT + 0 * + 71 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 * - 91 AS col0 FROM tab2
----
-2093
-3640
-5278

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6195
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * - - 98 BETWEEN - 60 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6195
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * - - 98 BETWEEN - 60 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 40 BETWEEN NULL AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT DISTINCT - SUM( ALL + 77 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT - SUM ( ALL + 77 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= col2
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col1, col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL - + col2 + + col2 FROM tab2 AS cor0 WHERE NOT NULL > - 83
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6200
SELECT + COUNT( * ) AS col0, MAX( DISTINCT - - col0 ) AS col1 FROM tab0
----
3
97

skipif mysql # not compatible
query II rowsort label-6200
SELECT + COUNT ( * ) AS col0, MAX ( DISTINCT - - col0 ) AS col1 FROM tab0
----
3
97

query I rowsort
SELECT ALL 2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-6202
SELECT COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 cor0
----
6

query I rowsort
SELECT ALL - - col0 * col0 + col0 AS col0 FROM tab2 cor0
----
2162
4160
5700

onlyif mysql # aggregate syntax: 
query II rowsort label-6204
SELECT ALL - 34 AS col2, COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
-34
9

skipif mysql # not compatible
query II rowsort label-6204
SELECT ALL - 34 AS col2, COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-34
9

query I rowsort
SELECT + 71 + col1 + + col0 FROM tab0
----
167
169
179

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT + MIN( ALL 72 ) col1 FROM tab2
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6206
SELECT + MIN ( ALL 72 ) col1 FROM tab2
----
72

query I rowsort
SELECT col2 * - 60 * - col0 AS col0 FROM tab1
----
293760
300900
371280

query I rowsort
SELECT DISTINCT - col0 * + col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-2601
-7225
-8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + + col1 col0 FROM tab2
----
117
125
74

query I rowsort
SELECT - 21 - + col2 - + col0 FROM tab2 AS cor0
----
-125
-154
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) + 64 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) + 64 FROM tab1 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT - col2 + + col0 * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT - col2 + + col0 * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
65

query II rowsort
SELECT DISTINCT - 43, - col1 AS col0 FROM tab2 AS cor0
----
-43
-51
-43
-67
-43
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT DISTINCT - COUNT( + + 56 ) * - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT - COUNT ( + + 56 ) * - COUNT ( * ) FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * - 30 * + 39 AS col2 FROM tab0
----
-115830
-11700
-54990

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 54 + + - col1 + + 18 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6219
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 75 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 75 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 17 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6221
SELECT CAST( + 44 AS SIGNED ) + - col2 AS col0 FROM tab1 AS cor0
----
-15
-24
-52

skipif mysql # not compatible
query I rowsort label-6221
SELECT CAST ( + 44 AS INTEGER ) + - col2 AS col0 FROM tab1 AS cor0
----
-15
-24
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT MAX( + - col2 ) * + - COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-6222
SELECT MAX ( + - col2 ) * + - COUNT ( * ) FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT - COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6223
SELECT - COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = 75
----

query I rowsort
SELECT DISTINCT col0 * + col0 * + + col2 FROM tab0
----
10575
75690
931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6226
SELECT ALL - CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL - CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT + COUNT( * ) * 7 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6227
SELECT + COUNT ( * ) * 7 FROM tab2 AS cor0
----
21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - ( - 45 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT - - ( + - COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6229
SELECT - - ( + - COUNT ( * ) ) FROM tab0 cor0
----
-3

query II rowsort
SELECT + - col1 AS col2, ( col1 ) - - col0 FROM tab0 cor0
----
-1
98
-21
108
-81
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6231
SELECT DISTINCT - 48 + - - 87 + CAST( NULL AS SIGNED ) * - 65 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT - 48 + - - 87 + CAST ( NULL AS INTEGER ) * - 65 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 32 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6233
SELECT - col1 DIV - col0 + + col2 DIV + + 59 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6233
SELECT - col1 / - col0 + + col2 / + + 59 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT 93 FROM tab0 WHERE NULL < - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6235
SELECT ALL - COUNT( * ) AS col1, 55 AS col0 FROM tab2 WHERE col1 IS NULL AND NULL IS NULL
----
0
55

skipif mysql # not compatible
query II rowsort label-6235
SELECT ALL - COUNT ( * ) AS col1, 55 AS col0 FROM tab2 WHERE col1 IS NULL AND NULL IS NULL
----
0
55

query I rowsort
SELECT + 69 + ( + col1 ) * col0 FROM tab2
----
2415
4997
5094

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT + 87 + + + COUNT( * ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-6237
SELECT + 87 + + + COUNT ( * ) FROM tab1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6238
SELECT ALL MAX( DISTINCT - 28 ) + - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6238
SELECT ALL MAX ( DISTINCT - 28 ) + - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query I rowsort
SELECT col1 + - + col2 AS col2 FROM tab2
----
28
37
9

query I rowsort
SELECT DISTINCT + col2 * - col0 * - - col0 AS col0 FROM tab1
----
-249696
-426275
-563108

query I rowsort
SELECT + col1 + + - col2 + - col1 AS col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL + col1 + - col1 * - col0 FROM tab0
----
1296
1848
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT + MIN( ALL + col2 ) + - - 7 AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6243
SELECT + MIN ( ALL + col2 ) + - - 7 AS col2 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT 28 * + + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT 28 * + + col1 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6245
SELECT col2 + - + 42 DIV + + col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6245
SELECT col2 + - + 42 / + + col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT ALL + COUNT( * ) + COUNT( * ) col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6246
SELECT ALL + COUNT ( * ) + COUNT ( * ) col2 FROM tab2 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= col2 * + - col1
----

query I rowsort
SELECT DISTINCT ( - + 78 ) + - + col2 FROM tab1 AS cor0
----
-137
-146
-174

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6249
SELECT - CAST( col2 AS SIGNED ) DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6249
SELECT - CAST ( col2 AS INTEGER ) / + col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6250
SELECT ALL col1 DIV 8 AS col2 FROM tab1
----
0
1
5

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL col1 / 8 AS col2 FROM tab1
----
0
1
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 4 IS NOT NULL
----

query I rowsort
SELECT col2 * - ( - col1 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1475
-150212
-18816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col2 FROM tab1 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT ALL - COUNT( - + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col2 * + 93 * + col0 + - 17 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL - COUNT ( - + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col2 * + 93 * + col0 + - 17 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT ALL - COUNT( ALL - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL - COUNT ( ALL - col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT + ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + col1
----
0

skipif mysql # not compatible
query I rowsort label-6256
SELECT + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + col1
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 57 <= - col1 / - + 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 * + 20 col1 FROM tab2
----
820
820
820

query I rowsort
SELECT + 59 * - col0 AS col2 FROM tab1
----
-3009
-5015
-5369

query I rowsort
SELECT ALL + col2 * - - 95 + + 34 FROM tab2 WHERE + col0 = NULL
----

query I rowsort
SELECT ALL + col0 + + + col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, col1 FROM tab0
----
-15
81
-87
21
-97
1

query II rowsort
SELECT col2, col0 * + 16 FROM tab2
----
23
736
40
1024
58
1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6264
SELECT ALL COUNT( * ) * CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL COUNT ( * ) * CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT ALL + MAX( DISTINCT - - col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL + MAX ( DISTINCT - - col2 ) AS col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL - ( + 92 ) AS col1 FROM tab1 WHERE NOT - 72 IN ( - 41 )
----
-92
-92
-92

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 <> 58 * - col1 + - 79
----

query I rowsort
SELECT - 1 FROM tab1 WHERE - 17 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6269
SELECT MIN( ALL CAST( - ( col2 ) AS SIGNED ) ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6269
SELECT MIN ( ALL CAST ( - ( col2 ) AS INTEGER ) ) AS col1 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL ( COUNT( ALL - 68 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL ( COUNT ( ALL - 68 ) ) FROM tab0
----
3

query I rowsort
SELECT 86 * col1 FROM tab1
----
1204
4042
430

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6272
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + ( - 42 ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6272
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + ( - 42 ) AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT 23 * - COUNT( * ) AS col1 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-6273
SELECT 23 * - COUNT ( * ) AS col1 FROM tab2
----
-69

query I rowsort
SELECT 85 + + 36 * ( - 13 ) AS col0 FROM tab1 WHERE col2 <> + col0
----
-383
-383
-383

query I rowsort
SELECT - col1 + col2 FROM tab2 WHERE NOT ( - 28 * 97 ) IN ( + col2 + 96 * + col2 )
----
-28
-37
-9

query I rowsort
SELECT 25 FROM tab0 WHERE NOT ( col2 ) BETWEEN ( NULL ) AND + 56
----
25

query I rowsort
SELECT ALL + 31 + + col1 AS col1 FROM tab2
----
108
82
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT DISTINCT - 35 + + COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
-32

skipif mysql # not compatible
query I rowsort label-6278
SELECT DISTINCT - 35 + + COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
-32

query I rowsort
SELECT ALL - 77 * - ( 75 ) FROM tab2
----
5775
5775
5775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6280
SELECT + MIN( - 14 ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT + MIN ( - 14 ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - 18 AS col1 FROM tab2 WHERE NOT ( - col2 * + col0 ) <> col1
----

query I rowsort
SELECT 19 * + col1 FROM tab0 WHERE NOT 12 * col0 IS NULL
----
1539
19
399

query I rowsort
SELECT DISTINCT + 18 + col1 AS col1 FROM tab1
----
23
32
65

query III rowsort
SELECT * FROM tab1 WHERE 14 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT + COUNT( - col0 ) * + 60 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-6285
SELECT + COUNT ( - col0 ) * + 60 FROM tab1
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6286
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col1 * col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6288
SELECT + col2 DIV col1 + col2 FROM tab1 WHERE ( - col2 ) BETWEEN - col0 AND + col1
----
69
70

skipif mysql # not compatible
query I rowsort label-6288
SELECT + col2 / col1 + col2 FROM tab1 WHERE ( - col2 ) BETWEEN - col0 AND + col1
----
69
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6289
SELECT CAST( NULL AS DECIMAL ) + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6289
SELECT CAST ( NULL AS REAL ) + + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 / - 58 - col1 AS col1 FROM tab2 WHERE NOT ( col1 ) IN ( col1 )
----

query I rowsort
SELECT col1 + + 77 AS col1 FROM tab2
----
128
144
154

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT DISTINCT - MAX( ALL col0 ) * - 21 FROM tab0
----
2037

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT - MAX ( ALL col0 ) * - 21 FROM tab0
----
2037

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 90 BETWEEN ( 36 * 49 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 64 * col2 + 7 * - 64 AS col1 FROM tab1 WHERE NULL IS NULL
----
-4224
-4800
-6592

query I rowsort
SELECT - ( + col2 ) + - col1 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT + 90 + + col0 AS col0 FROM tab1
----
141
175
181

query I rowsort
SELECT + 79 + + col0 * 27 AS col1 FROM tab1
----
1456
2374
2536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6298
SELECT ALL 71 DIV - COUNT( * ) - - 43 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL 71 / - COUNT ( * ) - - 43 FROM tab2
----
20

query I rowsort
SELECT - 77 * col1 + ( col1 ) * + col1 AS col2 FROM tab0 AS cor0
----
-1176
-76
324

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - ( - 13 ) / + 53 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-6300
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - ( - 13 ) / + 53 AND col1
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 77 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT DISTINCT MAX( - col1 ) col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6302
SELECT DISTINCT MAX ( - col1 ) col2 FROM tab0
----
-1

query I rowsort
SELECT 10 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT DISTINCT + MIN( ALL col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT + MIN ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT 15 * - col2 NOT BETWEEN NULL AND - 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT ALL + AVG ( ALL col0 ) + + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col1 AND ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL + AVG ( ALL col0 ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col1 AND ( col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6307
SELECT - - ( col2 ) DIV col0 AS col2 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6307
SELECT - - ( col2 ) / col0 AS col2 FROM tab1 cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT + + 53 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-6308
SELECT + + 53 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-159

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 75 ) BETWEEN ( + col0 ) AND ( col1 * - ( col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6310
SELECT ALL - CAST( NULL AS SIGNED ) / + COUNT( 77 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL - CAST ( NULL AS INTEGER ) / + COUNT ( 77 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 * + col2 FROM tab0 AS cor0 WHERE NOT ( + col0 - - col0 ) IN ( 42 )
----
705
870
9603

query I rowsort
SELECT 88 * col2 FROM tab0 AS cor0
----
4136
8712
880

query I rowsort
SELECT 26 AS col1 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6314
SELECT ALL - col0 DIV + 84 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL - col0 / + 84 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT DISTINCT - MAX( ALL + 68 ) FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT - MAX ( ALL + 68 ) FROM tab1
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 * - col1 col2 FROM tab0
----
-1365
-5265
-65

query I rowsort
SELECT + 28 + 72 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col0 ) NOT IN ( ( - col1 ) + - 72 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * + ( + ( + 77 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
3927
5159
5929

query I rowsort
SELECT ALL - - 77 + 19 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT 86 BETWEEN 31 AND ( col1 )
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6323
SELECT + col2 + col0 + col1 * col2 DIV + 77 FROM tab0 AS cor0
----
111
197
99

skipif mysql # not compatible
query I rowsort label-6323
SELECT + col2 + col0 + col1 * col2 / + 77 FROM tab0 AS cor0
----
111
197
99

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE col1 * + col1 - 86 BETWEEN ( 60 * - ( col2 ) + 7 ) AND - col0 + - 47
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6325
SELECT DISTINCT * FROM tab0 WHERE + + col1 - ( CAST( - col0 AS SIGNED ) ) NOT BETWEEN ( NULL ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6325
SELECT DISTINCT * FROM tab0 WHERE + + col1 - ( CAST ( - col0 AS INTEGER ) ) NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6326
SELECT DISTINCT col2 * - col1 + - - col1 + col0 DIV - col2 FROM tab0 AS cor0
----
-197
-3726
-98

skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT col2 * - col1 + - - col1 + col0 / - col2 FROM tab0 AS cor0
----
-197
-3726
-98

query I rowsort
SELECT DISTINCT + ( + + col1 ) * 4 + + col0 AS col1 FROM tab0 AS cor0
----
101
171
339

query I rowsort
SELECT ALL - col2 + col0 AS col1 FROM tab0 AS cor0 WHERE + 75 NOT BETWEEN ( + col1 * + col2 + - 48 * ( col2 ) ) AND ( NULL )
----
-32

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE + col0 / col1 BETWEEN 10 AND - col2
----

query II rowsort
SELECT col1 AS col2, + col1 * - - col1 AS col1 FROM tab0 AS cor0
----
1
1
21
441
81
6561

query I rowsort
SELECT DISTINCT - col0 + + + 46 - - - ( - col0 ) AS col1 FROM tab0 AS cor0
----
46

query I rowsort
SELECT DISTINCT 90 AS col2 FROM tab2 cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6333
SELECT COUNT( * ) - - + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6333
SELECT COUNT ( * ) - - + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 44 - + col0 col2 FROM tab1 cor0
----
-129
-135
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT COUNT( * ) + - - MAX( + ( - col0 ) ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6335
SELECT COUNT ( * ) + - - MAX ( + ( - col0 ) ) FROM tab1 AS cor0
----
-48

query III rowsort
SELECT * FROM tab0 WHERE + 0 + - col1 + + 26 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6337
SELECT col1 * - + col2 + - col1 DIV - 72 FROM tab1 WHERE NULL IS NULL
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-6337
SELECT col1 * - + col2 + - col1 / - 72 FROM tab1 WHERE NULL IS NULL
----
-1344
-295
-3196

query I rowsort
SELECT ALL + ( col2 ) - - + col1 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT 32 * - COUNT( * ) FROM tab0 WHERE ( + + 84 * - col1 * + 97 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6339
SELECT 32 * - COUNT ( * ) FROM tab0 WHERE ( + + 84 * - col1 * + 97 ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6340
SELECT + col2 DIV col0 AS col2 FROM tab0 WHERE + col2 IS NOT NULL
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6340
SELECT + col2 / col0 AS col2 FROM tab0 WHERE + col2 IS NOT NULL
----
0
1
3

query I rowsort
SELECT col2 * + 66 + - col1 FROM tab0
----
3021
639
6533

query I rowsort
SELECT DISTINCT - ( + 8 ) FROM tab2 WHERE NOT ( - - col1 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT DISTINCT - MAX( DISTINCT + col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6343
SELECT DISTINCT - MAX ( DISTINCT + col2 ) AS col0 FROM tab0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NULL ) = - 98 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 col0 FROM tab1 WHERE ( - 25 * + col1 * + col2 - 63 ) IS NOT NULL
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE ( col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE ( col2 ) IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6347
SELECT + CAST( NULL AS SIGNED ) AS col2, - MIN( + + col0 ) DIV - + 84 FROM tab0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6347
SELECT + CAST ( NULL AS INTEGER ) AS col2, - MIN ( + + col0 ) / - + 84 FROM tab0
----
NULL
0

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE + 51 + 81 = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6349
SELECT - ( - col0 ) * + 66 * - 35 * + CAST( col2 AS SIGNED ) + + col0 FROM tab2
----
-10048425
-2443934
-5913536

skipif mysql # not compatible
query I rowsort label-6349
SELECT - ( - col0 ) * + 66 * - 35 * + CAST ( col2 AS INTEGER ) + + col0 FROM tab2
----
-10048425
-2443934
-5913536

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT DISTINCT - MIN( ALL + col0 ) + COUNT( * ) FROM tab1 WHERE NULL <> col1 * + col0 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6350
SELECT DISTINCT - MIN ( ALL + col0 ) + COUNT ( * ) FROM tab1 WHERE NULL <> col1 * + col0 * col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 + col0 * 27 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT DISTINCT + 17 + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
14

skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT + 17 + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND ( - col2 * - col1 ) IS NULL
----

query I rowsort
SELECT 93 * + ( + 93 ) AS col2 FROM tab1
----
8649
8649
8649

query I rowsort
SELECT + + col2 * - - col2 * 88 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col2 AS col2, col2 + - - 26 AS col1 FROM tab0
----
10
36
47
73
99
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT SUM( 28 ) AS col2 FROM tab2, tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-6357
SELECT SUM ( 28 ) AS col2 FROM tab2, tab0 AS cor0
----
252

query I rowsort
SELECT 34 * + + 94 AS col0 FROM tab0
----
3196
3196
3196

query II rowsort
SELECT col2 AS col2, 77 * col1 AS col1 FROM tab1
----
59
385
68
3619
96
1078

query I rowsort
SELECT DISTINCT col2 + - - 36 AS col0 FROM tab0 WHERE NULL IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6361
SELECT 79 AS col1, - COUNT( * ) FROM tab2, tab0 AS cor0
----
79
-9

skipif mysql # not compatible
query II rowsort label-6361
SELECT 79 AS col1, - COUNT ( * ) FROM tab2, tab0 AS cor0
----
79
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL + COUNT( 29 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL + COUNT ( 29 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT ALL 0, - col1 + + 85 + 82 AS col0, - col0 AS col1 FROM tab0
----
9 values hashing to f20d38a64802edea9f0009829e35165e

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT ALL MAX( col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL MAX ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
99

query II rowsort
SELECT 67, - col1 AS col2 FROM tab0 AS cor0
----
67
-1
67
-21
67
-81

query II rowsort
SELECT ALL 18 + + 75 AS col2, - 17 AS col1 FROM tab0
----
93
-17
93
-17
93
-17

query I rowsort
SELECT 70 * 67 FROM tab1 AS cor0 WHERE ( col1 * - col0 ) NOT BETWEEN ( col1 ) AND NULL
----
4690
4690
4690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6369
SELECT ALL - - 3 + - CAST( NULL AS SIGNED ) + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL - - 3 + - CAST ( NULL AS INTEGER ) + col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > ( col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6371
SELECT DISTINCT - COUNT( * ) - + - 28 * - - 25 col2, - COUNT( * ) FROM tab0 AS cor0
----
697
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6371
SELECT DISTINCT - COUNT ( * ) - + - 28 * - - 25 col2, - COUNT ( * ) FROM tab0 AS cor0
----
697
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT + COUNT( * ) + - 55 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-6372
SELECT + COUNT ( * ) + - 55 FROM tab2 AS cor0
----
-52

query I rowsort
SELECT ALL col2 + col1 * - col2 + - col1 + - col1 * 48 * col0 * - col2 AS col1 FROM tab1 AS cor0
----
1203359
13956953
3288850

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( + col1 * + 82 + - 21 ) BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL - + col2 - + + col1 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6376
SELECT col0 / col2 AS col0 FROM tab2 AS cor0 WHERE 57 * - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) + - - col2 * + col0 * - + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6376
SELECT col0 / col2 AS col0 FROM tab2 AS cor0 WHERE 57 * - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) + - - col2 * + col0 * - + col1 IS NOT NULL
----

query II rowsort
SELECT 49 AS col1, col1 + + - col1 AS col1 FROM tab0
----
49
0
49
0
49
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT ALL + CAST( + + col1 AS SIGNED ) col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6378
SELECT ALL + CAST ( + + col1 AS INTEGER ) col2 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6379
SELECT 82 DIV + 18 - - COUNT( * ) + - MIN( ALL + col2 ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-6379
SELECT 82 / + 18 - - COUNT ( * ) + - MIN ( ALL + col2 ) FROM tab2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT DISTINCT MIN( + - col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT MIN ( + - col1 ) AS col1 FROM tab2
----
-77

query I rowsort
SELECT ALL + 43 - - - 62 AS col2 FROM tab0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-6382
SELECT 40 - SUM( - - col2 ) col1, + ( - 29 ) FROM tab0
----
-116
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6382
SELECT 40 - SUM ( - - col2 ) col1, + ( - 29 ) FROM tab0
----
-116
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT DISTINCT ( - ( - COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT ( - ( - COUNT ( * ) ) ) FROM tab2
----
3

query I rowsort
SELECT col0 * col1 - - 23 * - + col0 * + 10 AS col1 FROM tab0
----
-18183
-22213
-2235

query I rowsort
SELECT 12 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 / - col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 4 ) BETWEEN - - col0 AND - ( + + 26 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6387
SELECT 42 DIV + + 98, - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
-3

skipif mysql # not compatible
query II rowsort label-6387
SELECT 42 / + + 98, - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, + 77 AS col0 FROM tab2 AS cor0
----
46
77
64
77
75
77

query I rowsort
SELECT + col0 * + ( 98 ) FROM tab0
----
1470
8526
9506

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab2 WHERE NOT ( NOT - col1 IN ( - col2, col2 * - + col1 * + col1 ) )
----

query I rowsort
SELECT ALL 57 * + - col0 * - 98 AS col2 FROM tab2
----
256956
357504
418950

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT MIN( ALL + - col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6392
SELECT MIN ( ALL + - col0 ) AS col2 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6393
SELECT + - CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6393
SELECT + - CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - ( - col1 ) * + col1 FROM tab1 AS cor0
----
196
2209
25

query II rowsort
SELECT col1 * 58, col0 AS col1 FROM tab2 AS cor0
----
2958
46
3886
75
4466
64

query I rowsort
SELECT col1 * - 21 FROM tab2 AS cor0
----
-1071
-1407
-1617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6397
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) * 15 * - - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6397
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) * 15 * - - COUNT ( * ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 * - col0 col0 FROM tab0
----
-158949
-18225
-9409

query I rowsort
SELECT 31 * - + 38 AS col0 FROM tab0
----
-1178
-1178
-1178

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6400
SELECT DISTINCT * FROM tab1 WHERE ( - - 47 - + col1 + - 96 * - + CAST( NULL AS SIGNED ) / - ( + col0 ) * col2 + + CAST( NULL AS SIGNED ) * + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6400
SELECT DISTINCT * FROM tab1 WHERE ( - - 47 - + col1 + - 96 * - + CAST ( NULL AS INTEGER ) / - ( + col0 ) * col2 + + CAST ( NULL AS INTEGER ) * + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6401
SELECT ALL + - col1 * - CAST( NULL AS SIGNED ) col0, + col1 col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6401
SELECT ALL + - col1 * - CAST ( NULL AS INTEGER ) col0, + col1 col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * - + col1 + 28 + + 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT DISTINCT + COUNT( * ) * - + 36 AS col1 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT + COUNT ( * ) * - + 36 AS col1 FROM tab1
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT + 63 + + COUNT( * ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-6404
SELECT + 63 + + COUNT ( * ) FROM tab0
----
66

query III rowsort
SELECT * FROM tab1 WHERE + col2 <= col1 + + + col2 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * - 87 FROM tab1
----
-1218
-4089
-435

query III rowsort
SELECT ALL * FROM tab0 WHERE - 2 NOT IN ( col2 + - - col0 - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6408
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 79 * + col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 79 * + col2 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( - 24 ) + + - ( col2 ) FROM tab1 cor0
----
-120
-83
-92

query II rowsort
SELECT DISTINCT + col0, + col1 + + - 86 FROM tab1
----
51
-72
85
-81
91
-39

query I rowsort
SELECT + 45 - - col1 FROM tab2 AS cor0
----
112
122
96

query I rowsort
SELECT ALL - + 84 + - 79 AS col0 FROM tab2 AS cor0
----
-163
-163
-163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6413
SELECT DISTINCT + - 3 DIV 35 + - MIN( + 48 ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT + - 3 / 35 + - MIN ( + 48 ) FROM tab2 AS cor0
----
-48

query I rowsort
SELECT DISTINCT 90 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL AND NOT NULL IS NOT NULL
----
90

query I rowsort
SELECT + col1 * col1 * col0 + - col2 AS col2 FROM tab0 AS cor0
----
-2
38357
98368

query I rowsort
SELECT ( col1 ) + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 71 * + 8 + col2 + + + col1 + - col0 AS col2 FROM tab0 AS cor0
----
512
571
681

query I rowsort
SELECT ALL - - col1 - col0 + - col1 + - col0 AS col0 FROM tab0 WHERE + 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

query II rowsort
SELECT DISTINCT + 21 * + col2 AS col2, col0 * + - 4 FROM tab1
----
1239
-340
1428
-364
2016
-204

query I rowsort
SELECT DISTINCT + 74 * - 48 / + - 46 FROM tab1, tab1 AS cor0 WHERE NOT - 67 * 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT COUNT( + ( - - 31 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6422
SELECT COUNT ( + ( - - 31 ) ) FROM tab0
----
3

query I rowsort
SELECT 43 * - col1 + col0 FROM tab1 cor0
----
-130
-1930
-551

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT DISTINCT + COUNT( DISTINCT + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT + COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT DISTINCT COUNT( * ) * - 1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT COUNT ( * ) * - 1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col2 + - 59 FROM tab2 cor0
----
-117
-82
-99

query II rowsort
SELECT ALL + + 27 AS col1, 5 AS col2 FROM tab1 AS cor0
----
27
5
27
5
27
5

onlyif mysql # DIV for integer division: 
query II rowsort label-6428
SELECT ALL - - col0 AS col0, col0 DIV + + 14 AS col1 FROM tab1 AS cor0
----
51
3
85
6
91
6

skipif mysql # not compatible
query II rowsort label-6428
SELECT ALL - - col0 AS col0, col0 / + + 14 AS col1 FROM tab1 AS cor0
----
51
3
85
6
91
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL IN ( + col1, ( - - 9 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= - col0 / + 62
----

query I rowsort
SELECT ALL - col2 + + 5 * + 70 FROM tab1 AS cor0
----
254
282
291

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT ALL + COUNT( * ) * - 36 AS col2 FROM tab2 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL + COUNT ( * ) * - 36 AS col2 FROM tab2 cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL - COUNT( - + 44 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL - COUNT ( - + 44 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT MAX( 9 ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6434
SELECT MAX ( 9 ) AS col1 FROM tab0
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6435
SELECT ALL CAST( NULL AS DECIMAL ) * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL CAST ( NULL AS REAL ) * - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT + COUNT( * ) * + COUNT( * ) col0 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6436
SELECT + COUNT ( * ) * + COUNT ( * ) col0 FROM tab1
----
9

query I rowsort
SELECT ALL - col0 * + - 22 AS col0 FROM tab0
----
1914
2134
330

query I rowsort
SELECT ALL + col2 * - 5 * + + 86 AS col2 FROM tab2
----
-17200
-24940
-9890

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6440
SELECT DISTINCT + col2 DIV - + 78 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT + col2 / - + 78 AS col0 FROM tab1
----
-1
0

query I rowsort
SELECT DISTINCT + 93 + + col0 * 56 FROM tab0
----
4965
5525
933

query I rowsort
SELECT ALL + ( col0 ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col1 + + + 84 / - col0 AND + col1 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT ALL SUM( col2 ) + + - 73 AS col0 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL SUM ( col2 ) + + - 73 AS col0 FROM tab2 cor0
----
48

query I rowsort
SELECT col0 + - col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <= + col1 - + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6445
SELECT + 16 DIV + col0 + - + col1 + + ( + ( + + 86 ) ) FROM tab0 cor0
----
6
65
85

skipif mysql # not compatible
query I rowsort label-6445
SELECT + 16 / + col0 + - + col1 + + ( + ( + + 86 ) ) FROM tab0 cor0
----
6
65
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6446
SELECT 90 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6446
SELECT 90 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6447
SELECT 92 DIV + - 42 + + + COUNT( * ) AS col2, - COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6447
SELECT 92 / + - 42 + + + COUNT ( * ) AS col2, - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7
-9

query I rowsort
SELECT ALL + ( + col0 ) + - 9 FROM tab1 cor0
----
42
76
82

query I rowsort
SELECT DISTINCT + col1 + - col2 + + ( + + 64 ) AS col2 FROM tab2 cor0
----
101
73
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT + SUM( DISTINCT + ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6450
SELECT + SUM ( DISTINCT + ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT DISTINCT + MIN( ALL + - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT + MIN ( ALL + - col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT ALL - col2 DIV col2 * + col1 * col0 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL - col2 / col2 * + col1 * col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT ALL - 75 * - MIN( ALL + - col2 ) FROM tab1
----
-7200

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL - 75 * - MIN ( ALL + - col2 ) FROM tab1
----
-7200

onlyif mysql # DIV for integer division: 
query I rowsort label-6454
SELECT DISTINCT col0 DIV + + 15 col0 FROM tab2
----
3
4
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6454
SELECT DISTINCT col0 / + + 15 col0 FROM tab2
----
3
4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT MIN( ALL - - ( + col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6455
SELECT MIN ( ALL - - ( + col0 ) ) FROM tab2
----
46

query II rowsort
SELECT ALL ( - - 78 ), + col1 AS col1 FROM tab1
----
78
14
78
47
78
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT DISTINCT - COUNT( DISTINCT - - 57 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT - COUNT ( DISTINCT - - 57 ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT DISTINCT - ( - - MIN( ALL 86 ) ) FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT - ( - - MIN ( ALL 86 ) ) FROM tab2
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 col1, - 57 FROM tab0 AS cor0
----
-10
-57
-47
-57
-99
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT + MAX( DISTINCT - 19 ) AS col0 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-6460
SELECT + MAX ( DISTINCT - 19 ) AS col0 FROM tab2 AS cor0
----
-19

query II rowsort
SELECT ALL + + 25 AS col2, 96 - + + col1 AS col2 FROM tab2 AS cor0
----
25
19
25
29
25
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6462
SELECT - - 99 DIV - col2 + + + col1 AS col1 FROM tab1 AS cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-6462
SELECT - - 99 / - col2 + + + col1 AS col1 FROM tab1 AS cor0
----
13
4
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6463
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NULL >= CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-6463
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NULL >= CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT ALL - + COUNT( ALL - + 20 ) FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL - + COUNT ( ALL - + 20 ) FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + + 72 * - col0 AS col1 FROM tab1 AS cor0
----
-3672
-6120
-6552

query I rowsort
SELECT 57 * col2 + - - col0 FROM tab1 AS cor0
----
3448
3967
5523

query III rowsort
SELECT * FROM tab1 cor0 WHERE + ( + - col0 ) < ( NULL )
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT + + ( - + col2 ) FROM tab2 WHERE col0 BETWEEN + col0 - - + col0 AND - + col0 * - col0 * - col0 - - + col2
----

query I rowsort
SELECT ALL - 73 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6471
SELECT DISTINCT + MIN( - 81 ) DIV - SUM( DISTINCT 80 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT + MIN ( - 81 ) / - SUM ( DISTINCT 80 ) FROM tab0
----
1

query I rowsort
SELECT ALL + col0 + + 60 * 43 FROM tab0
----
2595
2667
2677

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6473
SELECT ALL - + ( + + CAST( + col1 AS SIGNED ) ) * - col2 * - 63 FROM tab2 WHERE 99 + - 41 IS NOT NULL
----
-194040
-244818
-73899

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL - + ( + + CAST ( + col1 AS INTEGER ) ) * - col2 * - 63 FROM tab2 WHERE 99 + - 41 IS NOT NULL
----
-194040
-244818
-73899

query II rowsort
SELECT ( + 36 ) + + 76, - col1 * - + 12 AS col1 FROM tab2
----
112
612
112
804
112
924

query I rowsort
SELECT DISTINCT + - col2 * ( - col1 ) * - + 62 + col0 + + + col1 - - col0 * - + col2 FROM tab1 cor0 WHERE - col0 IS NOT NULL
----
-204202
-23215
-88159

query I rowsort
SELECT DISTINCT col2 * 74 AS col0 FROM tab1 AS cor0
----
4366
5032
7104

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 63 <> 24 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 25 + + + col2 - 36 * - col2 FROM tab2 cor0
----
1505
2171
876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6479
SELECT CAST( NULL AS SIGNED ) * 61 - 0 + + ( + - COUNT( * ) ) col2, 49 + 33 AS col1 FROM tab2
----
NULL
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6479
SELECT CAST ( NULL AS INTEGER ) * 61 - 0 + + ( + - COUNT ( * ) ) col2, 49 + 33 AS col1 FROM tab2
----
NULL
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6480
SELECT + + COUNT( * ) * + + COUNT( * ) + - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6480
SELECT + + COUNT ( * ) * + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT - - 14 FROM tab1 cor0
----
14
14
14

query I rowsort
SELECT - - col0 * - - col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT ALL - MIN( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL - MIN ( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
97

query I rowsort
SELECT + + 70 + - col0 + + + col0 + - - 75 * col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3595
7495
820

onlyif mysql # DIV for integer division: 
query I rowsort label-6485
SELECT DISTINCT 56 DIV - col0 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT 56 / - col0 AS col1 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT DISTINCT + COUNT( * ) col1 FROM tab1 WHERE NULL > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6486
SELECT DISTINCT + COUNT ( * ) col1 FROM tab1 WHERE NULL > NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6487
SELECT ALL + col0 DIV col1 * - col2 col1, col0 AS col1 FROM tab1
----
-1003
85
-288
51
-68
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6487
SELECT ALL + col0 / col1 * - col2 col1, col0 AS col1 FROM tab1
----
-1003
85
-288
51
-68
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT DISTINCT + COUNT( ALL - - 65 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6488
SELECT DISTINCT + COUNT ( ALL - - 65 ) col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6489
SELECT DISTINCT CAST( + 70 AS SIGNED ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-6489
SELECT DISTINCT CAST ( + 70 AS INTEGER ) FROM tab2
----
70

query I rowsort
SELECT + col1 * - col2 * + col1 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query II rowsort label-6491
SELECT - 69 * + COUNT( + col1 ) AS col2, - 58 FROM tab0
----
-207
-58

skipif mysql # not compatible
query II rowsort label-6491
SELECT - 69 * + COUNT ( + col1 ) AS col2, - 58 FROM tab0
----
-207
-58

query I rowsort
SELECT DISTINCT 9 * + 95 * - col1 AS col1 FROM tab1
----
-11970
-40185
-4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6493
SELECT DISTINCT + - 82 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT + - 82 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT ALL + + 85 * COUNT( * ) FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL + + 85 * COUNT ( * ) FROM tab0 AS cor0
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT DISTINCT + ( + COUNT( ALL - col0 ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT + ( + COUNT ( ALL - col0 ) ) FROM tab2 cor0
----
3

query II rowsort
SELECT - ( - col0 ) * + 74 * + col2 * - + col2 AS col2, + col2 + - col2 FROM tab2 AS cor0
----
-1800716
0
-18670200
0
-7577600
0

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE 38 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6498
SELECT ALL col0 DIV + + col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL col0 / + + col1 FROM tab2
----
0
0
1

query I rowsort
SELECT ( col2 ) * col0 * + 60 AS col1 FROM tab1
----
293760
300900
371280

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT - ( - COUNT( - col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6500
SELECT - ( - COUNT ( - col1 ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab0 WHERE NULL IN ( col2, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT SUM( ALL col2 ) FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT SUM ( ALL col2 ) FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - + col1 + - - col1 AND NULL
----

query I rowsort
SELECT - 94 FROM tab1 AS cor0 WHERE + 69 + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6505
SELECT DISTINCT - 31 + CAST( - + 19 AS SIGNED ) AS col2 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-6505
SELECT DISTINCT - 31 + CAST ( - + 19 AS INTEGER ) AS col2 FROM tab1
----
-50

query I rowsort
SELECT col2 * - col2 * + 0 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 * ( - col0 ) AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT + SUM( - + col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-6508
SELECT + SUM ( - + col1 ) AS col0 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT DISTINCT - 63 * + SUM( DISTINCT col2 ) AS col0 FROM tab0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT - 63 * + SUM ( DISTINCT col2 ) AS col0 FROM tab0 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT ALL + - 32 AS col1 FROM tab0 AS cor0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT 48 * - + 30 * - col1 + 3 FROM tab2 cor0
----
110883
73443
96483

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT ALL + 43 + + + ( - ( + COUNT( * ) ) ) + - - ( - COUNT( * ) ) * + MIN( - + ( + - col0 ) ) AS col0 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL + 43 + + + ( - ( + COUNT ( * ) ) ) + - - ( - COUNT ( * ) ) * + MIN ( - + ( + - col0 ) ) AS col0 FROM tab0 AS cor0
----
-5

query II rowsort
SELECT DISTINCT + col1, + col1 + - col2 + - col1 AS col0 FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT - 20 * - col2 FROM tab0
----
1980
200
940

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT - col0 IN ( col1 * - - 71, col0 + - col0, - + 24, - col1 * 4 * col0 )
----
14
47
5

query I rowsort
SELECT ALL - + ( + + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT ALL COUNT( * ) * 95 * + 55 * - 81 AS col0 FROM tab0 cor0
----
-1269675

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL COUNT ( * ) * 95 * + 55 * - 81 AS col0 FROM tab0 cor0
----
-1269675

query I rowsort
SELECT DISTINCT - - 14 * - col2 + 58 * col2 AS col1 FROM tab1 AS cor0
----
2596
2992
4224

query I rowsort
SELECT ALL - ( - + col0 ) * + 5 AS col2 FROM tab2 AS cor0
----
230
320
375

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT + SUM( + col2 ) AS col1 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-6520
SELECT + SUM ( + col2 ) AS col1 FROM tab2 cor0
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6521
SELECT ALL - MAX( DISTINCT + 95 ) DIV + + MAX( ALL col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL - MAX ( DISTINCT + 95 ) / + + MAX ( ALL col2 ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT - 52 * col1 AS col1, 47 AS col1 FROM tab2
----
-2652
47
-3484
47
-4004
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT - SUM( - 42 ) AS col2 FROM tab1 WHERE NOT ( + 26 * - 5 + + + col1 * - 33 ) <> 98 + + col1 - - col2 / col2 + + + 0 + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT - SUM ( - 42 ) AS col2 FROM tab1 WHERE NOT ( + 26 * - 5 + + + col1 * - 33 ) <> 98 + + col1 - - col2 / col2 + + + 0 + + 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT ALL + + 25 * - 39 + - SUM( ALL - 14 ) * - ( 2 ) col0 FROM tab0 WHERE NULL IS NULL
----
-1059

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6524
SELECT ALL + + 25 * - 39 + - SUM ( ALL - 14 ) * - ( 2 ) col0 FROM tab0 WHERE NULL IS NULL
----
-1059

onlyif mysql # aggregate syntax: 
query II rowsort label-6525
SELECT ALL COUNT( DISTINCT - col2 ) AS col2, COUNT( * ) + - COUNT( * ) FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-6525
SELECT ALL COUNT ( DISTINCT - col2 ) AS col2, COUNT ( * ) + - COUNT ( * ) FROM tab0
----
3
0

query I rowsort
SELECT - 33 * - - col0 AS col1 FROM tab0 cor0
----
-2871
-3201
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT - SUM( - - 92 ) + - + 62 FROM tab2 AS cor0
----
-338

skipif mysql # not compatible
query I rowsort label-6527
SELECT - SUM ( - - 92 ) + - + 62 FROM tab2 AS cor0
----
-338

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6528
SELECT CAST( + col1 AS SIGNED ) * col0 * + CAST( NULL AS SIGNED ) + - + 18 + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT CAST ( + col1 AS INTEGER ) * col0 * + CAST ( NULL AS INTEGER ) + - + 18 + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6529
SELECT + CAST( NULL AS SIGNED ) + 55 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6529
SELECT + CAST ( NULL AS INTEGER ) + 55 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - - col2 + col1 * + col2 AS col1 FROM tab2 AS cor0
----
2231
5640
8236

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT + MAX( ALL - 46 ) AS col2 FROM tab1 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6531
SELECT + MAX ( ALL - 46 ) AS col2 FROM tab1 cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6532
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * 46 * + - col0 - col0 * - ( - col2 ) * + 75 <= - col0
----

skipif mysql # not compatible
query III rowsort label-6532
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * 46 * + - col0 - col0 * - ( - col2 ) * + 75 <= - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6533
SELECT - ( - ( + COUNT( * ) ) ) AS col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE col0 + + - col1 IN ( + col2, CAST( NULL AS DECIMAL ) )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6533
SELECT - ( - ( + COUNT ( * ) ) ) AS col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE col0 + + - col1 IN ( + col2, CAST ( NULL AS REAL ) )
----
0
NULL

query I rowsort
SELECT ALL - 55 + 89 * + - col2 FROM tab1 AS cor0
----
-5306
-6107
-8599

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * + + 97 * col1 + col2 IN ( + - col2, 92 + - col0, + + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + + col1 = col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT DISTINCT 40 + - 39 + 8 + - 32 * - COUNT( * ) FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT 40 + - 39 + 8 + - 32 * - COUNT ( * ) FROM tab0 AS cor0
----
105

query I rowsort
SELECT - 36 / - col2 AS col0 FROM tab0 WHERE - col2 * - 16 IS NULL
----

query I rowsort
SELECT ALL - - ( col2 ) FROM tab1 WHERE NOT + 75 - - 24 BETWEEN - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6540
SELECT - 5 DIV + 8 + + col1 AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6540
SELECT - 5 / + 8 + + col1 AS col1 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE - + 54 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT - 43 + + COUNT( * ) AS col0 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-6542
SELECT - 43 + + COUNT ( * ) AS col0 FROM tab0
----
-40

query II rowsort
SELECT ALL col1, ( - ( - col2 ) ) + col2 FROM tab2
----
51
46
67
116
77
80

query II rowsort
SELECT DISTINCT - col1 + - + col0 * col0 * - col0 AS col0, col0 FROM tab2 AS cor0
----
262067
64
421808
75
97285
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT DISTINCT + - SUM( + - col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT + - SUM ( + - col0 ) AS col2 FROM tab1 AS cor0
----
227

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 IN ( 1 * 83, ( col2 ) / - col2, - + ( + col2 ), col0 + + 6 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + - col2 + + col0 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT + + col1 * - - 11 FROM tab2 AS cor0
----
561
737
847

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT + COUNT( * ) * - + ( + COUNT( * ) ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6549
SELECT + COUNT ( * ) * - + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + + ( + + col0 ) * - col0 FROM tab1 cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT ALL COUNT( * ) + + COUNT( - col2 ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL COUNT ( * ) + + COUNT ( - col2 ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + + - col0 + - col0 * - + col2 * + col2 = + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 49 AS col2, col2 * - col1 AS col0 FROM tab1
----
49
-1344
49
-295
49
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab0 WHERE NULL <> - 39
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( col1 ) - - + 70 NOT BETWEEN col1 AND NULL
----
91
47
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6557
SELECT ALL - 47 + + - 48 + - + COUNT( * ) + + + CAST( NULL AS SIGNED ) + + - 86 - + COUNT( * ) FROM tab1 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL - 47 + + - 48 + - + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + + - 86 - + COUNT ( * ) FROM tab1 WHERE col1 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 IS NOT NULL )
----

query I rowsort
SELECT - + 88 * - col0 FROM tab2 AS cor0
----
4048
5632
6600

query I rowsort
SELECT DISTINCT AVG ( ALL - col0 ) FROM tab2 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT col2 + - col1 * + 12 AS col1 FROM tab2
----
-589
-746
-884

onlyif mysql # DIV for integer division: 
query I rowsort label-6562
SELECT ALL col0 + - + col0 DIV - - col0 + + - col2 AS col1 FROM tab0 AS cor0
----
-3
-33
76

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL col0 + - + col0 / - - col0 + + - col2 AS col1 FROM tab0 AS cor0
----
-3
-33
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * col0 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 + + + col2 + - col1 + col2 * - col2 + + col1 col0 FROM tab2 AS cor0
----
-1419
-3164
-409

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT DISTINCT + + COUNT( * ) FROM tab0 AS cor0 WHERE col2 >= - col2 - - 99
----
1

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT + + COUNT ( * ) FROM tab0 AS cor0 WHERE col2 >= - col2 - - 99
----
1

query I rowsort
SELECT - ( + ( + + col0 ) ) * + col2 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT 26 * - SUM( - col1 ) AS col0 FROM tab2
----
5070

skipif mysql # not compatible
query I rowsort label-6567
SELECT 26 * - SUM ( - col1 ) AS col0 FROM tab2
----
5070

onlyif mysql # DIV for integer division: 
query I rowsort label-6568
SELECT ALL 67 DIV + + col0 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL 67 / + + col0 AS col0 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6569
SELECT MAX( - - 91 ) col2 FROM tab2 WHERE + 19 BETWEEN + - 25 + + CAST( NULL AS SIGNED ) AND 13
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6569
SELECT MAX ( - - 91 ) col2 FROM tab2 WHERE + 19 BETWEEN + - 25 + + CAST ( NULL AS INTEGER ) AND 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL MIN( + 37 ) AS col2 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL MIN ( + 37 ) AS col2 FROM tab1
----
37

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 19 / + - 62 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 - + col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6573
SELECT ALL - - COUNT( * ) col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6573
SELECT ALL - - COUNT ( * ) col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, + 24 FROM tab2 AS cor0
----
-51
24
-67
24
-77
24

query I rowsort
SELECT DISTINCT + + ( - 70 ) FROM tab1 AS cor0
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 55 col2 FROM tab0 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT DISTINCT SUM( DISTINCT col0 ) * COUNT( * ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-6577
SELECT DISTINCT SUM ( DISTINCT col0 ) * COUNT ( * ) FROM tab2
----
555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6578
SELECT DISTINCT + 16 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT + 16 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - ( 3 ) FROM tab1
----
-3

query II rowsort
SELECT DISTINCT + col2, 87 AS col0 FROM tab2 AS cor0
----
23
87
40
87
58
87

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 59 + - - col0 + - col0 >= 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT DISTINCT + SUM( DISTINCT + ( - col0 ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT + SUM ( DISTINCT + ( - col0 ) ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT - 99 * + col0 * - - 45 AS col0 FROM tab1 cor0
----
-227205
-378675
-405405

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6584
SELECT + CAST( NULL AS SIGNED ) * - + 37, + col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-6584
SELECT + CAST ( NULL AS INTEGER ) * - + 37, + col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6585
SELECT + COUNT( * ) AS col1, - COUNT( DISTINCT + 39 ) AS col0 FROM tab0 AS cor0
----
3
-1

skipif mysql # not compatible
query II rowsort label-6585
SELECT + COUNT ( * ) AS col1, - COUNT ( DISTINCT + 39 ) AS col0 FROM tab0 AS cor0
----
3
-1

query I rowsort
SELECT col0 * col1 * - 59 + col0 FROM tab1 AS cor0
----
-24990
-252252
-42075

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 <> 87
----
0

skipif mysql # not compatible
query I rowsort label-6587
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 <> 87
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6589
SELECT ALL col1 AS col0, + CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-6589
SELECT ALL col1 AS col0, + CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT COUNT( * ) col0 FROM tab1 WHERE NOT + col0 > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6590
SELECT COUNT ( * ) col0 FROM tab1 WHERE NOT + col0 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT - COUNT( * ) FROM tab2 WHERE NOT NULL > + col1
----
0

skipif mysql # not compatible
query I rowsort label-6591
SELECT - COUNT ( * ) FROM tab2 WHERE NOT NULL > + col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6592
SELECT ALL - 26 DIV 80 + - 57, COUNT( DISTINCT 13 ) + + 68 col0 FROM tab1 WHERE NULL IS NULL
----
-57
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6592
SELECT ALL - 26 / 80 + - 57, COUNT ( DISTINCT 13 ) + + 68 col0 FROM tab1 WHERE NULL IS NULL
----
-57
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT ALL + COUNT( * ) + - - COUNT( * ) col1 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6593
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) col1 FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 col2 FROM tab2 WHERE - - 86 IS NOT NULL
----
-20
-20
-20

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 + 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6596
SELECT 69 + + col1 + - + 9, CAST( + 0 AS SIGNED ) + + - col2 DIV - col0 AS col1 FROM tab2 cor0
----
111
0
127
0
137
0

skipif mysql # not compatible
query II rowsort label-6596
SELECT 69 + + col1 + - + 9, CAST ( + 0 AS INTEGER ) + + - col2 / - col0 AS col1 FROM tab2 cor0
----
111
0
127
0
137
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6597
SELECT ALL - COUNT( col2 ) * + COUNT( * ) DIV - 68 * + ( ( COUNT( * ) ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL - COUNT ( col2 ) * + COUNT ( * ) / - 68 * + ( ( COUNT ( * ) ) ) AS col1 FROM tab0
----
0

query I rowsort
SELECT + 81 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # DIV for integer division: 
query I rowsort label-6599
SELECT + col1 DIV - - col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6599
SELECT + col1 / - - col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT 40 - 30 * + + 69 AS col0 FROM tab1 AS cor0
----
-2030
-2030
-2030

query I rowsort
SELECT ALL ( + col1 ) FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL - col2 * - 20 * - 62 + col2 + - 42 FROM tab1 AS cor0
----
-118986
-73143
-84294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6603
SELECT - col0 * 74 - - + ( - CAST( NULL AS SIGNED ) ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6603
SELECT - col0 * 74 - - + ( - CAST ( NULL AS INTEGER ) ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 28 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 10 - + - col0 FROM tab2 AS cor0
----
56
74
85

query I rowsort
SELECT DISTINCT + col0 - - - col2 AS col1 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT ( - 15 ) * + 47 + + + col1 + + col1 FROM tab0 AS cor0
----
-543
-663
-703

query I rowsort
SELECT DISTINCT - ( - - col1 ) + + + col0 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT - + col0 + - - col1 AS col2 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT DISTINCT + 27 - col1 FROM tab1 AS cor0
----
-20
13
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT + COUNT( * ) * + 66 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-6611
SELECT + COUNT ( * ) * + 66 FROM tab2
----
198

query I rowsort
SELECT + + ( + col0 ) * - col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6613
SELECT CAST( + col0 AS SIGNED ) AS col2, 97 * - + 65 FROM tab1 cor0
----
51
-6305
85
-6305
91
-6305

skipif mysql # not compatible
query II rowsort label-6613
SELECT CAST ( + col0 AS INTEGER ) AS col2, 97 * - + 65 FROM tab1 cor0
----
51
-6305
85
-6305
91
-6305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6614
SELECT + COUNT( * ) + + CAST( 23 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
32

skipif mysql # not compatible
query I rowsort label-6614
SELECT + COUNT ( * ) + + CAST ( 23 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
32

query I rowsort
SELECT + col0 - - col2 + + + col1 FROM tab1 WHERE NOT - 74 NOT IN ( + 55 + + col1 - - 29, + ( - - col0 ) + 95 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6616
SELECT - + 77 * + CAST( ( + - col1 ) AS SIGNED ) + - 97 * + CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6616
SELECT - + 77 * + CAST ( ( + - col1 ) AS INTEGER ) + - 97 * + CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT ALL - + ( - MIN( col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL - + ( - MIN ( col0 ) ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT + 77 + + - SUM( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6618
SELECT + 77 + + - SUM ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-26

onlyif mysql # DIV for integer division: 
query II rowsort label-6619
SELECT ( + + col0 ), 60 + + col1 + + col1 DIV - col1 AS col1 FROM tab2
----
46
110
64
136
75
126

skipif mysql # not compatible
query II rowsort label-6619
SELECT ( + + col0 ), 60 + + col1 + + col1 / - col1 AS col1 FROM tab2
----
46
110
64
136
75
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 88 col2, col2 FROM tab0
----
-88
10
-88
47
-88
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - 32 col0 FROM tab2
----
-1632
-2144
-2464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6622
SELECT + - SUM( - col1 ) AS col1 FROM tab2 WHERE NOT - col0 - col0 * - col2 - - + col0 * CAST( - col2 AS SIGNED ) + - col1 - - + 24 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6622
SELECT + - SUM ( - col1 ) AS col1 FROM tab2 WHERE NOT - col0 - col0 * - col2 - - + col0 * CAST ( - col2 AS INTEGER ) + - col1 - - + 24 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT DISTINCT + SUM( ALL - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT + SUM ( ALL - col2 ) FROM tab1
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 66 col1 FROM tab0
----
-113
-165
-76

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 / + 82 * - + 33 <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6626
SELECT ALL - CAST( NULL AS SIGNED ) * - - col2 + 4 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL - CAST ( NULL AS INTEGER ) * - - col2 + 4 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6627
SELECT ALL ( + - CAST( + + COUNT( - 54 ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL ( + - CAST ( + + COUNT ( - 54 ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col0 + + 58 FROM tab2 AS cor0
----
104
122
133

query I rowsort
SELECT ALL 59 - + col2 AS col0 FROM tab1 AS cor0
----
-37
-9
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 83 col2 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
83
83
83

onlyif mysql # aggregate syntax: 
query II rowsort label-6631
SELECT SUM( ALL col0 ) col1, MIN( - - 13 ) AS col1 FROM tab1 cor0
----
227
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6631
SELECT SUM ( ALL col0 ) col1, MIN ( - - 13 ) AS col1 FROM tab1 cor0
----
227
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6632
SELECT ALL 28 DIV - 24 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL 28 / - 24 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + ( - + 51 ) * - col0 AS col0 FROM tab2
----
2346
3264
3825

query II rowsort
SELECT DISTINCT 18 AS col2, col1 AS col1 FROM tab1
----
18
14
18
47
18
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6635
SELECT COUNT( * ) DIV - 61 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6635
SELECT COUNT ( * ) / - 61 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + col2 * + ( - col2 ) * + 49 AS col1 FROM tab1 AS cor0
----
-170569
-226576
-451584

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT - ( + - COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6637
SELECT - ( + - COUNT ( * ) ) FROM tab2 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT + 93 IS NOT NULL )
----

query I rowsort
SELECT - + AVG ( ( - + col0 ) ) FROM tab0 WHERE NOT + col0 * + col2 * - col2 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 72 + - 49 < col1 * col1 * + col0 * + 76
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6641
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) * + 77 + + + 61 + COUNT( + + col1 ) AS col2 FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) * + 77 + + + 61 + COUNT ( + + col1 ) AS col2 FROM tab2 AS cor0
----
141

query I rowsort
SELECT + 69 * col2 * - + col0 FROM tab1 cor0 WHERE NOT NULL <> + 53
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6643
SELECT DISTINCT + ( MAX( - col2 ) ) DIV + 76 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6643
SELECT DISTINCT + ( MAX ( - col2 ) ) / + 76 AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 * 1 + - 42 AND + 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6645
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col1 / + + ( + col1 ) + - + col1
----

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col1 / + + ( + col1 ) + - + col1
----

query II rowsort
SELECT - + col2 AS col2, 41 * + col2 * - + col2 + - col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ALL - COUNT( * ) * - + 10 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL - COUNT ( * ) * - + 10 FROM tab1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT DISTINCT + COUNT( * ) + + 78 AS col0 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT + COUNT ( * ) + + 78 AS col0 FROM tab1
----
81

query I rowsort
SELECT ( - col1 ) + - col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT - + col2 + - + 59 FROM tab1 cor0
----
-118
-127
-155

query I rowsort
SELECT - 8 + + col1 AS col0 FROM tab1 AS cor0
----
-3
39
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - col2 + + - col2 - col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT MIN( + col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-6653
SELECT MIN ( + col0 ) FROM tab0 cor0
----
15

query I rowsort
SELECT ALL 90 + + - 58 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT - ( - - 48 ) - 95 - col0 + + col0 + col2 AS col1 FROM tab0 AS cor0
----
-133
-44
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT - 53 - 35 FROM tab2
----
-88
-88
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6658
SELECT ALL COUNT( * ) * - + AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL COUNT ( * ) * - + AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6659
SELECT + + COUNT( * ) / COUNT( * ) / COUNT( * ) + 39 + - CAST( NULL AS SIGNED ) + - 94 - - - 23 * + SUM( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT + + COUNT ( * ) / COUNT ( * ) / COUNT ( * ) + 39 + - CAST ( NULL AS INTEGER ) + - 94 - - - 23 * + SUM ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6660
SELECT + CAST( + + col0 AS SIGNED ) - + - col0 col2 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6660
SELECT + CAST ( + + col0 AS INTEGER ) - + - col0 col2 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT + 51 - + col2 * 75 FROM tab0 cor0
----
-3474
-699
-7374

query II rowsort
SELECT ALL + col2 AS col0, col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT + col2 - + col1 + - + col2 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - + ( + col0 ) + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6665
SELECT + col1 AS col2, ( + col2 ) * + - 15 - CAST( + col1 AS SIGNED ) + ( + col2 ) col2 FROM tab0 AS cor0 WHERE NOT + ( + 3 ) + col1 + + + col0 * + col1 IS NULL
----
1
-1387
21
-161
81
-739

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6665
SELECT + col1 AS col2, ( + col2 ) * + - 15 - CAST ( + col1 AS INTEGER ) + ( + col2 ) col2 FROM tab0 AS cor0 WHERE NOT + ( + 3 ) + col1 + + + col0 * + col1 IS NULL
----
1
-1387
21
-161
81
-739

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 WHERE NOT + + col2 + col0 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT + MAX( + - col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6667
SELECT + MAX ( + - col2 ) AS col0 FROM tab0
----
-10

query I rowsort
SELECT 66 * col2 FROM tab2
----
1518
2640
3828

query I rowsort
SELECT ALL + col0 * + col0 * - - col0 AS col2 FROM tab0
----
3375
658503
912673

onlyif mysql # aggregate syntax: 
query II rowsort label-6670
SELECT DISTINCT + COUNT( * ) * 82, COUNT( * ) col2 FROM tab2 AS cor0
----
246
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6670
SELECT DISTINCT + COUNT ( * ) * 82, COUNT ( * ) col2 FROM tab2 AS cor0
----
246
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6671
SELECT DISTINCT - col0 DIV col0 * + col0 + - 99 - - 51 - 72 + col2 + - 8 DIV + col1 AS col1 FROM tab0 cor0
----
-126
-197
-88

skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT - col0 / col0 * + col0 + - 99 - - 51 - 72 + col2 + - 8 / + col1 AS col1 FROM tab0 cor0
----
-126
-197
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6672
SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2 + - col0 - - ( - col0 ) * + col0 + - + CAST( ( + ( 90 ) ) AS SIGNED ) * ( + col2 ) + - + 21
----

skipif mysql # not compatible
query I rowsort label-6672
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2 + - col0 - - ( - col0 ) * + col0 + - + CAST ( ( + ( 90 ) ) AS INTEGER ) * ( + col2 ) + - + 21
----

query II rowsort
SELECT 15 AS col0, - 55 AS col2 FROM tab1 WHERE NOT col0 * ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT DISTINCT 64 + - MAX( DISTINCT - - 47 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
17

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT 64 + - MAX ( DISTINCT - - 47 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6675
SELECT DISTINCT - + ( ( col2 ) ) DIV ( - 52 ) * + + col2 - - - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
0

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT - + ( ( col2 ) ) / ( - 52 ) * + + col2 - - - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6676
SELECT - + CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT - + CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6677
SELECT DISTINCT + 98 DIV - col0 FROM tab2 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT + 98 / - col0 FROM tab2 cor0
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6678
SELECT - col2 * - - col2 * col1 FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
-129024
-17405
-217328

skipif mysql # not compatible
query I rowsort label-6678
SELECT - col2 * - - col2 * col1 FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-129024
-17405
-217328

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-6680
SELECT col2 DIV - + 79 AS col0, col1 AS col1 FROM tab0
----
-1
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-6680
SELECT col2 / - + 79 AS col0, col1 AS col1 FROM tab0
----
-1
1
0
21
0
81

query III rowsort
SELECT * FROM tab1 WHERE NULL > ( ( col0 ) * - 66 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6682
SELECT ALL col0 + + - col2 + col2 + + - col2 DIV - ( + 41 ) - - - col1 AS col1 FROM tab1
----
39
45
81

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL col0 + + - col2 + col2 + + - col2 / - ( + 41 ) - - - col1 AS col1 FROM tab1
----
39
45
81

query I rowsort
SELECT 41 + - col2 FROM tab1 AS cor0 WHERE 35 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND NULL AND NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6685
SELECT - + CAST( NULL AS SIGNED ) + + - 13 + + col1 * + ( col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6685
SELECT - + CAST ( NULL AS INTEGER ) + + - 13 + + col1 * + ( col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 81 + - - col2 FROM tab1
----
140
149
177

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + + 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT DISTINCT + + MIN( + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT + + MIN ( + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6689
SELECT - SUM( DISTINCT - ( - - col2 ) ) AS col0, + COUNT( * ) FROM tab1 AS cor0
----
223
3

skipif mysql # not compatible
query II rowsort label-6689
SELECT - SUM ( DISTINCT - ( - - col2 ) ) AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
223
3

query I rowsort
SELECT DISTINCT + 85 * - 25 FROM tab1 AS cor0
----
-2125

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT SUM( - - col1 ) AS col2 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-6691
SELECT SUM ( - - col1 ) AS col2 FROM tab2 cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT + + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT + + col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT ALL - COUNT( DISTINCT + - col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL - COUNT ( DISTINCT + - col2 ) AS col0 FROM tab2
----
-3

query II rowsort
SELECT ALL col0 AS col1, + 77 * + col1 FROM tab0
----
15
6237
87
1617
97
77

query II rowsort
SELECT DISTINCT + col0, - 18 FROM tab0
----
15
-18
87
-18
97
-18

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE - col2 - - - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6697
SELECT * FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-6697
SELECT * FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col1 BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT + - ( - 32 ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
32

query I rowsort
SELECT + ( 66 ) AS col1 FROM tab2 AS cor0
----
66
66
66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 39 * + - col2 FROM tab0
----
-1833
-3861
-390

query I rowsort
SELECT - ( + col1 ) * col0 AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE 55 IN ( + + 19 + + col2 )
----

query I rowsort
SELECT + ( + 70 ) AS col1 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE 28 - - 12 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT 47 * + col1 FROM tab0 AS cor0
----
3807
47
987

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6708
SELECT - - 11 * MAX( + - col2 ) * - COUNT( * ) + + + 42, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
372
NULL

skipif mysql # not compatible
query II rowsort label-6708
SELECT - - 11 * MAX ( + - col2 ) * - COUNT ( * ) + + + 42, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
372
NULL

query I rowsort
SELECT ALL + + ( + col0 ) - + 14 / + 61 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * + col2 + + 31 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + + col0 AS col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT 22 * + COUNT( * ) col0 FROM tab1, tab1 AS cor0
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6712
SELECT 22 * + COUNT ( * ) col0 FROM tab1, tab1 AS cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT DISTINCT + 49 * COUNT( * ) * + + 71 AS col2 FROM tab0
----
10437

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT + 49 * COUNT ( * ) * + + 71 AS col2 FROM tab0
----
10437

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT DISTINCT + COUNT( * ) * + - 86 FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-6714
SELECT DISTINCT + COUNT ( * ) * + - 86 FROM tab0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT + COUNT( * ) col1 FROM tab2 WHERE NULL > + + col1 * - - 24
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6715
SELECT + COUNT ( * ) col1 FROM tab2 WHERE NULL > + + col1 * - - 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT DISTINCT ( - COUNT( * ) ) + 45 + - + MIN( DISTINCT + + col2 ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT ( - COUNT ( * ) ) + 45 + - + MIN ( DISTINCT + + col2 ) FROM tab0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT - 94 + + - COUNT( * ) FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6717
SELECT - 94 + + - COUNT ( * ) FROM tab1 AS cor0
----
-97

query II rowsort
SELECT + + col2 AS col1, + col2 FROM tab2 cor0
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT - - ( 26 ) FROM tab2 cor0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6720
SELECT - 85 DIV + COUNT( * ) FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-6720
SELECT - 85 / + COUNT ( * ) FROM tab2
----
-28

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE + 53 IS NULL
----

query I rowsort
SELECT DISTINCT + 67 - + 78 AS col2 FROM tab1
----
-11

query I rowsort
SELECT - 2 * + col0 FROM tab2 WHERE NOT - 38 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6724
SELECT ALL - 75 * + CAST( NULL AS SIGNED ) + col1 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL - 75 * + CAST ( NULL AS INTEGER ) + col1 * + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col1 * + 31 AS col1 FROM tab2
----
1632
2144
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT ALL 44 * + COUNT( * ) + - 17 FROM tab1
----
115

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL 44 * + COUNT ( * ) + - 17 FROM tab1
----
115

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 > ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * + 44 FROM tab1 WHERE col1 + - 64 IS NULL
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT - MAX( + ( col0 ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-6730
SELECT - MAX ( + ( col0 ) ) FROM tab1
----
-91

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT - SUM( DISTINCT + 63 ) AS col0 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-6732
SELECT - SUM ( DISTINCT + 63 ) AS col0 FROM tab2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6733
SELECT ALL - CAST( ( + 13 ) AS SIGNED ) FROM tab2
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL - CAST ( ( + 13 ) AS INTEGER ) FROM tab2
----
-13
-13
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6734
SELECT - COUNT( ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6734
SELECT - COUNT ( ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * 56 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL - MAX( DISTINCT - col1 ) AS col1 FROM tab0 WHERE NOT ( 45 - + 67 ) > - col1
----
1

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL - MAX ( DISTINCT - col1 ) AS col1 FROM tab0 WHERE NOT ( 45 - + 67 ) > - col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6738
SELECT CAST( NULL AS SIGNED ) + MAX( ALL col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6738
SELECT CAST ( NULL AS INTEGER ) + MAX ( ALL col1 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT ALL COUNT( * ) + - 94 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + 14 AND - 34 / + 24
----
-94

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL COUNT ( * ) + - 94 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + 14 AND - 34 / + 24
----
-94

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( + col2 )
----

query I rowsort
SELECT + 51 FROM tab0 WHERE NOT NULL BETWEEN ( 17 ) AND NULL
----

query I rowsort
SELECT DISTINCT 5 * - col1 FROM tab0 WHERE NULL IS NULL
----
-105
-405
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( ( + 53 ) ) + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + 48 AS col1 FROM tab0
----
135
145
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT - COUNT( * ) * + 61 AS col2 FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-6746
SELECT - COUNT ( * ) * + 61 AS col2 FROM tab2 AS cor0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT + ( SUM( + 60 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT + ( SUM ( + 60 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6749
SELECT ALL ( + ( + ( CAST( NULL AS SIGNED ) ) ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL ( + ( + ( CAST ( NULL AS INTEGER ) ) ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN 81 AND col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 2 > ( - 54 )
----

query I rowsort
SELECT DISTINCT - 1 * col1 AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT col2 * col0 - + 84 FROM tab2 WHERE ( NULL ) IS NULL
----
2476
4266
974

query I rowsort
SELECT + 73 * - col0 + - ( - 25 ) FROM tab2 AS cor0
----
-3333
-4647
-5450

onlyif mysql # DIV for integer division: 
query I rowsort label-6755
SELECT ALL + 53 DIV 63 + 56 AS col0 FROM tab1 AS cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL + 53 / 63 + 56 AS col0 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT + 43 * col1 AS col2 FROM tab1 AS cor0
----
2021
215
602

query I rowsort
SELECT ALL - col1 * + col1 FROM tab0 AS cor0 WHERE NOT col0 IN ( + col1 )
----
-1
-441
-6561

query I rowsort
SELECT ALL + - col1 * - 83 AS col1 FROM tab0 AS cor0
----
1743
6723
83

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6760
SELECT + col0 * CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6760
SELECT + col0 * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 ) + col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 77 * 31 FROM tab2 cor0
----
2387
2387
2387

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) >= 26 + - 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 95 * + col0 FROM tab2 AS cor0
----
-4370
-6080
-7125

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT ALL - SUM( - 8 ) * + 49 - 49 AS col1 FROM tab2
----
1127

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL - SUM ( - 8 ) * + 49 - 49 AS col1 FROM tab2
----
1127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6766
SELECT SUM( ALL col2 ) * CAST( - 11 * COUNT( col2 ) AS SIGNED ) FROM tab2
----
-3993

skipif mysql # not compatible
query I rowsort label-6766
SELECT SUM ( ALL col2 ) * CAST ( - 11 * COUNT ( col2 ) AS INTEGER ) FROM tab2
----
-3993

onlyif mysql # DIV for integer division: 
query I rowsort label-6767
SELECT DISTINCT + ( + 45 ) DIV - 17 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT + ( + 45 ) / - 17 FROM tab0
----
-2

query I rowsort
SELECT - 77 / col0 FROM tab2 WHERE NULL BETWEEN ( + col0 ) AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 ) = + 43
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 3 - + 28 AS col2 FROM tab2
----
-25
-25
-25

query I rowsort
SELECT - ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE 4 + + 46 > + col1 * - ( 9 )
----
14
47
5

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT ( NULL ) = col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT 17 + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
26

skipif mysql # not compatible
query I rowsort label-6774
SELECT 17 + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6775
SELECT DISTINCT - COUNT( ALL + col1 ) DIV - 31 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT - COUNT ( ALL + col1 ) / - 31 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 84 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
84

query II rowsort
SELECT ALL + col1, col0 * + col1 FROM tab2 AS cor0
----
51
2346
67
5025
77
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT ALL + ( - - COUNT( col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL + ( - - COUNT ( col1 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col2 + - 65 * - col1 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT ALL + col1 * 31 * + 28 - 25 AS col0 FROM tab0 cor0
----
18203
70283
843

query I rowsort
SELECT + col2 * - - ( + 39 ) AS col0 FROM tab0 AS cor0
----
1833
3861
390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE NOT - col0 * col0 + - col0 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 * 64 / - ( 95 / 6 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 1 * + col2 NOT BETWEEN col1 * col2 AND ( - 99 * 11 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT + COUNT( + + col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6785
SELECT + COUNT ( + + col2 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6786
SELECT DISTINCT + + col2, 13 * + - col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-6786
SELECT DISTINCT + + col2, 13 * + - col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT MIN( DISTINCT 54 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6787
SELECT MIN ( DISTINCT 54 ) FROM tab2 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 57 ) col1, - 91 * - col0 FROM tab2
----
57
4186
57
5824
57
6825

query I rowsort
SELECT + + 48 AS col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + col2 + - col1 FROM tab0 WHERE NOT + col1 > ( - - 25 / - 70 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6792
SELECT * FROM tab0 WHERE NOT ( - col1 + + - CAST( NULL AS SIGNED ) * + col0 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6792
SELECT * FROM tab0 WHERE NOT ( - col1 + + - CAST ( NULL AS INTEGER ) * + col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 83 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + 3 + 31 + col2 FROM tab0 AS cor0
----
128
232
54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 IN ( col2 + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 19 * + - 57 * + col1 AS col2 FROM tab0 AS cor0
----
-1083
-22743
-87723

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT ALL - ( + - SUM( + + col0 ) ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL - ( + - SUM ( + + col0 ) ) AS col1 FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT - - col1 * - - col1 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab2 WHERE - + col0 * - 93 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * 86 AS col1 FROM tab1
----
1204
4042
430

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6802
SELECT - col1 AS col2, + ( col2 ) + + ( + col2 ) DIV + 13 FROM tab0 AS cor0
----
-1
106
-21
10
-81
50

skipif mysql # not compatible
query II rowsort label-6802
SELECT - col1 AS col2, + ( col2 ) + + ( + col2 ) / + 13 FROM tab0 AS cor0
----
-1
106
-21
10
-81
50

query I rowsort
SELECT DISTINCT + col1 + - col1 + + + 69 + + - col0 AS col0 FROM tab0 AS cor0
----
-18
-28
54

query I rowsort
SELECT + + 92 + + + col1 + - 46 FROM tab2 AS cor0
----
113
123
97

query I rowsort
SELECT - + col1 + - ( - col0 ) AS col2 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE ( col0 * col1 ) NOT BETWEEN NULL AND col0 / + col1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6807
SELECT DISTINCT + CAST( - col1 AS SIGNED ) - - ( col0 ) FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) - - ( col0 ) FROM tab0
----
-66
66
96

query I rowsort
SELECT 65 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + + col2 * + col1 * - col2 - - - col1 NOT IN ( - col0 )
----

query I rowsort
SELECT ALL + + col2 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6811
SELECT CAST( NULL AS DECIMAL ) * 44 + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT CAST ( NULL AS REAL ) * 44 + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 56 AS col0 FROM tab0 WHERE NOT ( + col0 ) NOT IN ( col2 * + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT DISTINCT COUNT( DISTINCT + 63 ) * - 9 FROM tab0 WHERE NOT ( + col1 * + col1 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6813
SELECT DISTINCT COUNT ( DISTINCT + 63 ) * - 9 FROM tab0 WHERE NOT ( + col1 * + col1 ) >= NULL
----
0

query I rowsort
SELECT + ( col2 ) + - 48 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( 51 ) AS col1 FROM tab2
----
51
51
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6816
SELECT + ( - ( col2 ) ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( CAST( - + col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-6816
SELECT + ( - ( col2 ) ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( CAST ( - + col0 AS REAL ) )
----

query I rowsort
SELECT ALL - 1 + 23 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT DISTINCT - + ( col1 ) * - - col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

query II rowsort
SELECT + col0, col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + 17 * - col1 )
----

query II rowsort
SELECT ALL - 49, + col1 FROM tab1 AS cor0
----
-49
14
-49
47
-49
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6821
SELECT DISTINCT 91 FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT 91 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
91

query II rowsort
SELECT col2 * - col2, - 63 AS col2 FROM tab0
----
-100
-63
-2209
-63
-9801
-63

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - col0, 5 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 84 * + col0 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT ALL - - COUNT( - 19 ) * + COUNT( ALL + col0 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL - - COUNT ( - 19 ) * + COUNT ( ALL + col0 ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - ( + col1 ) * - 0 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - ( - 11 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( ( NOT ( NULL < col0 ) ) )
----

query I rowsort
SELECT 85 * - ( 71 ) * ( col2 ) FROM tab1 cor0 WHERE NOT ( - 29 ) IS NULL
----
-356065
-410380
-579360

onlyif mysql # DIV for integer division: 
query II rowsort label-6829
SELECT DISTINCT + + col2 DIV + ( - col2 ) AS col1, col1 FROM tab0 AS cor0
----
-1
1
-1
21
-1
81

skipif mysql # not compatible
query II rowsort label-6829
SELECT DISTINCT + + col2 / + ( - col2 ) AS col1, col1 FROM tab0 AS cor0
----
-1
1
-1
21
-1
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6830
SELECT DISTINCT CAST( - COUNT( + - col1 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6830
SELECT DISTINCT CAST ( - COUNT ( + - col1 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL ( - - COUNT( * ) ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL ( - - COUNT ( * ) ) AS col0 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - - 47 AS col2 FROM tab0 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT + - COUNT( * ) FROM tab2 WHERE NOT + col0 * - + col2 NOT BETWEEN NULL AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-6833
SELECT + - COUNT ( * ) FROM tab2 WHERE NOT + col0 * - + col2 NOT BETWEEN NULL AND - col0
----
0

query I rowsort
SELECT + 57 * - ( + 52 ) AS col2 FROM tab2
----
-2964
-2964
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col0 FROM tab2
----
77
77
77

query II rowsort
SELECT - col1 AS col2, - col1 * + 42 + + - 64 AS col1 FROM tab2
----
-51
-2206
-67
-2878
-77
-3298

query I rowsort
SELECT DISTINCT col1 + - 20 FROM tab1
----
-15
-6
27

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NULL BETWEEN - 39 * - - col1 * - col1 AND + + col0
----

query I rowsort
SELECT AVG ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NULL >= NULL
----
NULL

query I rowsort
SELECT ALL - + col2 * col0 + + + col0 + + + col2 * + 80 + + 36 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 23 AND NULL
----

query I rowsort
SELECT + 89 + - col0 + - - col2 + + col0 * + col2 + - 96 + 9 AS col2 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
1037
2538
4335

query I rowsort
SELECT col2 + ( col0 ) - col0 + + + col2 FROM tab0
----
198
20
94

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT + 90 + + COUNT( * ) col1 FROM tab2
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6844
SELECT + 90 + + COUNT ( * ) col1 FROM tab2
----
93

query III rowsort
SELECT * FROM tab0 WHERE ( - 47 ) NOT BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT ALL col2, col2 FROM tab0 WHERE NOT 25 IS NOT NULL
----

query I rowsort
SELECT + col2 + - 70 + + col1 AS col0 FROM tab2 AS cor0
----
4
47
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT - COUNT( ALL 14 ) * - 18 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6848
SELECT - COUNT ( ALL 14 ) * - 18 FROM tab1 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query III rowsort label-6849
SELECT ALL col2 - - - col1 + + col1 DIV - col0, + col2 AS col1, col2 FROM tab2 AS cor0
----
9 values hashing to 1f9b6e4d2d735dde20076d3b2bec5b48

skipif mysql # not compatible
query III rowsort label-6849
SELECT ALL col2 - - - col1 + + col1 / - col0, + col2 AS col1, col2 FROM tab2 AS cor0
----
9 values hashing to 1f9b6e4d2d735dde20076d3b2bec5b48

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT - MIN( ALL col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6850
SELECT - MIN ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col0 * + - col0 * - 79 AS col1 FROM tab2
----
-167164
-323584
-444375

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT - MIN( 93 ) - - COUNT( * ) AS col1 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-6852
SELECT - MIN ( 93 ) - - COUNT ( * ) AS col1 FROM tab0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6853
SELECT ALL CAST( NULL AS SIGNED ) - + - col0 / col1 * - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL CAST ( NULL AS INTEGER ) - + - col0 / col1 * - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 62 * col1 - + + 93 FROM tab0
----
-31
1209
4929

query I rowsort
SELECT + col0 - + - col2 FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 IS NULL AND 22 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6857
SELECT ALL CAST( NULL AS SIGNED ) * - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL CAST ( NULL AS INTEGER ) * - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 <> + col1
----

query I rowsort
SELECT ALL 8 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6860
SELECT ALL COUNT( * ) DIV SUM( DISTINCT + col0 ), - COUNT( * ) col0 FROM tab1 cor0
----
0
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6860
SELECT ALL COUNT ( * ) / SUM ( DISTINCT + col0 ), - COUNT ( * ) col0 FROM tab1 cor0
----
0
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - ( + col0 ) * col0 + col2 * ( + col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT ALL - COUNT( * ) * - + 54 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL - COUNT ( * ) * - + 54 FROM tab1 AS cor0
----
162

query I rowsort
SELECT + + 71 * + + 37 AS col1 FROM tab1 AS cor0
----
2627
2627
2627

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 + + ( 61 ) + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 BETWEEN - 35 AND - col1 / - ( + + 79 ) + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT ALL COUNT( * ) * + SUM( DISTINCT + - 78 ) AS col2 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL COUNT ( * ) * + SUM ( DISTINCT + - 78 ) AS col2 FROM tab2
----
-234

query I rowsort
SELECT DISTINCT + + col2 * - + col1 AS col2 FROM tab1 cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL - 30 * + ( + + col0 ) + col0 AS col2 FROM tab0 AS cor0
----
-2523
-2813
-435

onlyif mysql # DIV for integer division: 
query I rowsort label-6869
SELECT DISTINCT 21 DIV - 94 col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6869
SELECT DISTINCT 21 / - 94 col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT ALL + + COUNT( * ) * - 88 + MAX( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL + + COUNT ( * ) * - 88 + MAX ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6871
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query II rowsort
SELECT ALL - - col2 AS col1, - col2 - col2 - col1 FROM tab1 AS cor0
----
59
-123
68
-183
96
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT DISTINCT - COUNT( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT - COUNT ( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - 46 * col0 AS col1 FROM tab2 WHERE - + ( - col2 ) <= NULL
----

query II rowsort
SELECT col1 + - 18, + col0 FROM tab2
----
33
46
49
75
59
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 3 * 82 * - + col2 * - 60 + + 75 col0, - col0 + - 61 AS col0 FROM tab2
----
339555
-107
590475
-125
856155
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT DISTINCT 99 + + - COUNT( * ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT 99 + + - COUNT ( * ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT + + 31 + + COUNT( * ) * - COUNT( * ) * - 82 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
2245

skipif mysql # not compatible
query I rowsort label-6878
SELECT + + 31 + + COUNT ( * ) * - COUNT ( * ) * - 82 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
2245

query I rowsort
SELECT DISTINCT - col0 + + col2 * - - 55 AS col1 FROM tab1 AS cor0
----
3160
3649
5229

query I rowsort
SELECT - - 37 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT DISTINCT - COUNT( * ) + MAX( ALL - col2 ) + - 55 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT - COUNT ( * ) + MAX ( ALL - col2 ) + - 55 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6882
SELECT + col1 DIV ( + col2 ) - col1 AS col0 FROM tab0
----
-1
-19
-80

skipif mysql # not compatible
query I rowsort label-6882
SELECT + col1 / ( + col2 ) - col1 AS col0 FROM tab0
----
-1
-19
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT - 7 - + + COUNT( * ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6883
SELECT - 7 - + + COUNT ( * ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT COUNT( * ) - - 64 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-6884
SELECT COUNT ( * ) - - 64 FROM tab2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT + - COUNT( * ) - COUNT( * ) col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6885
SELECT + - COUNT ( * ) - COUNT ( * ) col2 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT col0 * 47 + col2 AS col1 FROM tab1 AS cor0
----
2493
4054
4345

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6887
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 = - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6887
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 = - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 5 + - + col2 FROM tab1 cor0
----
-54
-63
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6889
SELECT ALL + + col1 AS col1 FROM tab2 AS cor0 WHERE NULL <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL + + col1 AS col1 FROM tab2 AS cor0 WHERE NULL <> + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6890
SELECT DISTINCT ( + + 3 ), - MIN( - col0 ) AS col1 FROM tab1
----
3
91

skipif mysql # not compatible
query II rowsort label-6890
SELECT DISTINCT ( + + 3 ), - MIN ( - col0 ) AS col1 FROM tab1
----
3
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6891
SELECT + col2 * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT + col2 * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6892
SELECT ( col0 ) DIV + - 2 FROM tab0
----
-43
-48
-7

skipif mysql # not compatible
query I rowsort label-6892
SELECT ( col0 ) / + - 2 FROM tab0
----
-43
-48
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6893
SELECT + 4 * - + MIN( + CAST( NULL AS SIGNED ) ) * - AVG ( ALL col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6893
SELECT + 4 * - + MIN ( + CAST ( NULL AS INTEGER ) ) * - AVG ( ALL col1 ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6894
SELECT ALL - 84 * col2 * CAST( NULL AS SIGNED ) * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL - 84 * col2 * CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6895
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * - col2 AS col0 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * - col2 AS col0 FROM tab1
----
1344
295
3196

query II rowsort
SELECT ALL + - col0, col1 / - col1 + - col1 FROM tab0 cor0 WHERE NOT ( NULL ) > - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6897
SELECT - COUNT( * ) DIV + 10 + + MIN( ALL - + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6897
SELECT - COUNT ( * ) / + 10 + + MIN ( ALL - + col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6898
SELECT 37 DIV + 83 + - CAST( - MIN( col1 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6898
SELECT 37 / + 83 + - CAST ( - MIN ( col1 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 BETWEEN col0 AND - col1 + + 59 * - 53
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6900
SELECT + + 30 AS col1, 21 * - COUNT( * ) col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
30
-189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6900
SELECT + + 30 AS col1, 21 * - COUNT ( * ) col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
30
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT + COUNT( * ) col2 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6901
SELECT + COUNT ( * ) col2 FROM tab2, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT DISTINCT COUNT( * ) * - 67 AS col1 FROM tab0
----
-201

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT COUNT ( * ) * - 67 AS col1 FROM tab0
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6903
SELECT ALL - + CAST( NULL AS SIGNED ) + - 4 * - col1 / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL - + CAST ( NULL AS INTEGER ) + - 4 * - col1 / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + ( + col2 ) + - 64 + 73 AS col2 FROM tab0 AS cor0
----
108
219
3816

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT DISTINCT + MAX( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT + MAX ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT 2 * col0 FROM tab2 cor0
----
128
150
92

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE + col2 > col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6908
SELECT ALL CAST( + MIN( + 30 ) AS SIGNED ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL CAST ( + MIN ( + 30 ) AS INTEGER ) FROM tab1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6909
SELECT ALL - 89 + + COUNT( ALL 96 ) DIV 62 AS col1 FROM tab0 WHERE NULL < NULL
----
-89

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL - 89 + + COUNT ( ALL 96 ) / 62 AS col1 FROM tab0 WHERE NULL < NULL
----
-89

query II rowsort
SELECT col0 * col0 AS col2, 17 + ( + ( + 81 ) ) + - ( + 68 ) AS col0 FROM tab1
----
2601
30
7225
30
8281
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6911
SELECT - 55 col2, - col0 * ( ( + + col0 ) ) FROM tab0 WHERE NULL > - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6911
SELECT - 55 col2, - col0 * ( ( + + col0 ) ) FROM tab0 WHERE NULL > - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col1 * + 12 FROM tab0
----
-12
-252
-972

onlyif mysql # DIV for integer division: 
query II rowsort label-6913
SELECT DISTINCT ( + 73 ) + - + ( - col2 ) - + - 7 * ( + col1 ) DIV - ( - col2 ) AS col2, col1 * + 29 AS col1 FROM tab1
----
132
145
145
1363
170
406

skipif mysql # not compatible
query II rowsort label-6913
SELECT DISTINCT ( + 73 ) + - + ( - col2 ) - + - 7 * ( + col1 ) / - ( - col2 ) AS col2, col1 * + 29 AS col1 FROM tab1
----
132
145
145
1363
170
406

query I rowsort
SELECT ALL + 25 AS col0 FROM tab1 WHERE - col2 NOT BETWEEN NULL AND - + 55
----

query I rowsort
SELECT DISTINCT 68 * - col2 + - col2 FROM tab0
----
-3243
-6831
-690

query I rowsort
SELECT DISTINCT + 49 + col2 AS col0 FROM tab2 AS cor0
----
107
72
89

query I rowsort
SELECT + ( - + 89 ) * + col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1246
-4183
-445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6918
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) + - - 23 AS col0 FROM tab2 AS cor0 WHERE 87 IS NOT NULL
----
46
63
81

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) + - - 23 AS col0 FROM tab2 AS cor0 WHERE 87 IS NOT NULL
----
46
63
81

query I rowsort
SELECT DISTINCT - ( + col2 ) * col0 AS col2 FROM tab0
----
-705
-870
-9603

query II rowsort
SELECT ALL 63 + - - col0, + col2 FROM tab2
----
109
23
127
40
138
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6921
SELECT DISTINCT COUNT( * ) DIV + + 64 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6921
SELECT DISTINCT COUNT ( * ) / + + 64 AS col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 / col1 + - 4 IS NOT NULL
----

query I rowsort
SELECT ALL 6 * - - col0 AS col1 FROM tab1 AS cor0
----
306
510
546

query I rowsort
SELECT DISTINCT + col2 * + ( + col1 ) * + + 94 AS col1 FROM tab0 AS cor0
----
19740
357858
9306

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT - - SUM( - - 66 ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-6925
SELECT - - SUM ( - - 66 ) FROM tab1 AS cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT ALL + 85 * + ( - 43 ) + - ( + MAX( ALL + - 33 ) ) AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6926
SELECT ALL + 85 * + ( - 43 ) + - ( + MAX ( ALL + - 33 ) ) AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6927
SELECT + col0 col2 FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) <> - ( - col2 ) * + + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6927
SELECT + col0 col2 FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> - ( - col2 ) * + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + + 90 ) col2 FROM tab2
----
-90
-90
-90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL = col0 / 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT ALL + COUNT( * ) * + COUNT( * ) FROM tab1 WHERE NOT ( NOT + 69 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL + COUNT ( * ) * + COUNT ( * ) FROM tab1 WHERE NOT ( NOT + 69 IS NULL )
----
0

query I rowsort
SELECT DISTINCT + ( + - 91 ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 75 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT col2 DIV col1 - col0 * col1 + 73 FROM tab1 cor0
----
-341
-4203
-635

skipif mysql # not compatible
query I rowsort label-6933
SELECT col2 / col1 - col0 * col1 + 73 FROM tab1 cor0
----
-341
-4203
-635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, - col2 col1 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query II rowsort
SELECT col0, - 27 + + + col1 FROM tab0 cor0
----
15
54
87
-6
97
-26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6936
SELECT DISTINCT * FROM tab2 WHERE + ( - + CAST( 15 AS SIGNED ) ) NOT IN ( - col1 + - col1 - - - col2 + - + 37 + - col1 * - col0 * col1 * ( col0 ), col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6936
SELECT DISTINCT * FROM tab2 WHERE + ( - + CAST ( 15 AS INTEGER ) ) NOT IN ( - col1 + - col1 - - - col2 + - + 37 + - col1 * - col0 * col1 * ( col0 ), col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + - + col0 - + col0 - col1 - - col2 * - + 83 FROM tab0 cor0
----
-1004
-3931
-8411

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 - + col0 + + + col0 IS NULL
----

query I rowsort
SELECT - + 56 * 46 FROM tab0 cor0
----
-2576
-2576
-2576

query I rowsort
SELECT + - ( 53 ) * + 7 FROM tab1 cor0
----
-371
-371
-371

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - col0 * - 82 NOT BETWEEN col2 + 54 * - col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6942
SELECT 19 + - COUNT( * ) DIV + + 87 + + - 64 AS col2 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6942
SELECT 19 + - COUNT ( * ) / + + 87 + + - 64 AS col2 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT DISTINCT + 17 * 65 FROM tab2
----
1105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col0 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL col0 * + + ( + col0 ) * 82 AS col2 FROM tab2
----
173512
335872
461250

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col2, - col2 * - 99, - col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT ALL + COUNT( * ) * + + 98 AS col2 FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL + COUNT ( * ) * + + 98 AS col2 FROM tab1
----
294

query III rowsort
SELECT * FROM tab0 WHERE - 89 * col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6949
SELECT DISTINCT - 90 DIV 86 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT - 90 / 86 FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6950
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) + - COUNT( * ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab2
----
-6

query I rowsort
SELECT ALL 40 * - - col0 FROM tab0
----
3480
3880
600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + + col2 col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE - col1 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 36 * col0 * - 61 + + - 5 FROM tab1
----
111991
186655
199831

query I rowsort
SELECT DISTINCT - 93 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( col0, ( + + col2 ), col2, col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6956
SELECT ALL 13 DIV + - ( col2 ) * + col2 + + - 36 AS col2 FROM tab2
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL 13 / + - ( col2 ) * + col2 + + - 36 AS col2 FROM tab2
----
-36
-36
-36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) > col2 * - col2 / - ( + - col2 ) + + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6958
SELECT DISTINCT 73 * - + CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6958
SELECT DISTINCT 73 * - + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col2 FROM tab0
----
NULL
3

query I rowsort
SELECT ALL + + col2 * + - col2 AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query II rowsort
SELECT DISTINCT + + col0 AS col0, - 86 FROM tab2 cor0
----
46
-86
64
-86
75
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-6961
SELECT DISTINCT - MIN( ALL - - col1 ), 24 AS col2 FROM tab0
----
-1
24

skipif mysql # not compatible
query II rowsort label-6961
SELECT DISTINCT - MIN ( ALL - - col1 ), 24 AS col2 FROM tab0
----
-1
24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT + - SUM( DISTINCT ( 32 ) ) AS col1 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-6963
SELECT + - SUM ( DISTINCT ( 32 ) ) AS col1 FROM tab1 AS cor0
----
-32

query I rowsort
SELECT DISTINCT - col2 * + col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 59 col0, 26 FROM tab1
----
-59
26
-59
26
-59
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT ALL - 90 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-810

skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL - 90 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-810

onlyif mysql # DIV for integer division: 
query II rowsort label-6967
SELECT DISTINCT + col0 AS col1, col0 DIV - 89 FROM tab1
----
51
0
85
0
91
-1

skipif mysql # not compatible
query II rowsort label-6967
SELECT DISTINCT + col0 AS col1, col0 / - 89 FROM tab1
----
51
0
85
0
91
-1

query I rowsort
SELECT DISTINCT + 78 + - col1 AS col2 FROM tab2
----
1
11
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT ALL + MAX( ALL col1 ) + MIN( - ( 25 ) ) AS col1 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL + MAX ( ALL col1 ) + MIN ( - ( 25 ) ) AS col1 FROM tab2
----
52

query I rowsort
SELECT ALL + 95 * + col1 + col0 AS col0 FROM tab1 AS cor0
----
1381
4556
560

query II rowsort
SELECT - col1 * - col0 + - + col0 + - 8 - 31 * - col1 + + 70, col1 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * - col0 * - 62 FROM tab0 AS cor0
----
113274
6014
75330

query III rowsort
SELECT * FROM tab0 WHERE - + col2 * + col1 * + 68 * - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND 80
----

query I rowsort
SELECT - ( col1 ) * - col2 AS col2 FROM tab1
----
1344
295
3196

query II rowsort
SELECT + col0 * - col1 AS col0, - col1 AS col1 FROM tab2
----
-2346
-51
-4928
-77
-5025
-67

query I rowsort
SELECT + 19 * - ( col1 ) FROM tab1
----
-266
-893
-95

query I rowsort
SELECT ALL col0 * + col2 * + col0 FROM tab0 WHERE NULL NOT IN ( - col2, col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 21 * + ( - col1 ) <= - + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6980
SELECT - CAST( col0 AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE col2 + col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-6980
SELECT - CAST ( col0 AS REAL ) AS col1 FROM tab0 AS cor0 WHERE col2 + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT COUNT( * ) + 78 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-6981
SELECT COUNT ( * ) + 78 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT - COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-6982
SELECT - COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
-9

query I rowsort
SELECT ( 79 ) * 41 AS col2 FROM tab2 AS cor0
----
3239
3239
3239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6984
SELECT 97 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 - + + col0 * + col0 + - - col1 NOT BETWEEN col1 AND + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6984
SELECT 97 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 - + + col0 * + col0 + - - col1 NOT BETWEEN col1 AND + CAST ( - col0 AS INTEGER )
----

query II rowsort
SELECT DISTINCT ( col0 ) * - col2 + - - ( 51 ), + col1 * col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1007
-59823
-2509
-237160
-4299
-260362

query I rowsort
SELECT - 54 * col0 FROM tab2 AS cor0
----
-2484
-3456
-4050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6987
SELECT DISTINCT COUNT( * ) * MIN( - - CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-6987
SELECT DISTINCT COUNT ( * ) * MIN ( - - CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-225

query I rowsort
SELECT ALL - 21 * + - col1 FROM tab1 AS cor0
----
105
294
987

onlyif mysql # DIV for integer division: 
query I rowsort label-6989
SELECT DISTINCT + - col2 DIV + + 70 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT + - col2 / + + 70 FROM tab1 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6990
SELECT - + col0 DIV - - col2 AS col1 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6990
SELECT - + col0 / - - col2 AS col1 FROM tab0 AS cor0
----
-8
0
0

query II rowsort
SELECT + 98 AS col2, col0 AS col0 FROM tab1 AS cor0
----
98
51
98
85
98
91

query I rowsort
SELECT ALL ( - 88 ) AS col2 FROM tab2 AS cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-6993
SELECT DISTINCT - 65 AS col2, SUM( ALL - col0 ) FROM tab2
----
-65
-185

skipif mysql # not compatible
query II rowsort label-6993
SELECT DISTINCT - 65 AS col2, SUM ( ALL - col0 ) FROM tab2
----
-65
-185

query II rowsort
SELECT ALL 68 AS col2, col0 + + 93 FROM tab1
----
68
144
68
178
68
184

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 > - ( - 19 ) + - col2 + - + col0 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT DISTINCT - SUM( + + col1 ) AS col0 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT - SUM ( + + col1 ) AS col0 FROM tab1 cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT + - 91 + + - ( - 30 ) + - 91 AS col2 FROM tab1 AS cor0
----
-152
-152
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT + COUNT( * ) * + + COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6999
SELECT + COUNT ( * ) * + + COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT ALL + MAX( ALL 86 ) AS col2 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL + MAX ( ALL 86 ) AS col2 FROM tab1 AS cor0
----
86

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE + 44 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7002
SELECT ALL + 17 + - col1 col2, CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-34
-46
-50
-75
-60
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7002
SELECT ALL + 17 + - col1 col2, CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-34
-46
-50
-75
-60
-64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 * - col1 col1 FROM tab2 AS cor0
----
-2578
-4431
-5889

query I rowsort
SELECT 41 + 60 - - col0 AS col2 FROM tab1 AS cor0
----
152
186
192

query I rowsort
SELECT ALL + - col1 - - 62 FROM tab0 AS cor0
----
-19
41
61

query I rowsort
SELECT + col1 AS col2 FROM tab0 cor0 WHERE ( - - col1 ) BETWEEN - col0 - - 3 + + - col2 + + col0 * col1 * + col0 AND col0
----

query II rowsort
SELECT 44 * 53 + + + col0, + col0 FROM tab0 AS cor0
----
2347
15
2419
87
2429
97

query I rowsort
SELECT + 28 + - - 87 FROM tab0
----
115
115
115

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - ( - + col2 ) * col0 BETWEEN NULL AND - - 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7011
SELECT COUNT( * ) * + 67 + + COUNT( * ), + MIN( DISTINCT col0 ) AS col0 FROM tab0
----
204
15

skipif mysql # not compatible
query II rowsort label-7011
SELECT COUNT ( * ) * + 67 + + COUNT ( * ), + MIN ( DISTINCT col0 ) AS col0 FROM tab0
----
204
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT SUM( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7012
SELECT SUM ( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL 13 * col0 AS col0 FROM tab1 AS cor0
----
1105
1183
663

query I rowsort
SELECT + 61 * 83 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT - - 93 * + col0 AS col2 FROM tab2 AS cor0
----
4278
5952
6975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7016
SELECT ALL + + CAST( NULL AS SIGNED ) * + 34 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + + CAST ( NULL AS INTEGER ) * + 34 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN - 89 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7018
SELECT DISTINCT - col1 DIV col1 col1, col2 - 64 FROM tab2 cor0
----
-1
-24
-1
-41
-1
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7018
SELECT DISTINCT - col1 / col1 col1, col2 - 64 FROM tab2 cor0
----
-1
-24
-1
-41
-1
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE col2 IS NULL
----
0

query I rowsort
SELECT ALL + 39 * + col1 * + col1 FROM tab2
----
101439
175071
231231

query III rowsort
SELECT ALL * FROM tab2 WHERE + 93 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7022
SELECT + col0 AS col2, ( + + CAST( NULL AS SIGNED ) ) - - + CAST( + - col0 AS SIGNED ) col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7022
SELECT + col0 AS col2, ( + + CAST ( NULL AS INTEGER ) ) - - + CAST ( + - col0 AS INTEGER ) col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT MIN( DISTINCT 2 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-7023
SELECT MIN ( DISTINCT 2 ) FROM tab2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT DISTINCT + SUM( ALL + + col1 ) FROM tab0 AS cor0 WHERE NOT + 6 * + 24 + + + col0 IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-7024
SELECT DISTINCT + SUM ( ALL + + col1 ) FROM tab0 AS cor0 WHERE NOT + 6 * + 24 + + + col0 IS NULL
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 40 col2 FROM tab0 AS cor0 WHERE NOT col2 / + + 74 NOT BETWEEN + 33 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT ALL - ( - + MAX( ALL + col0 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL - ( - + MAX ( ALL + col0 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7027
SELECT - COUNT( * ) col2, COUNT( * ) AS col1 FROM tab2 WHERE NULL = - - col1
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7027
SELECT - COUNT ( * ) col2, COUNT ( * ) AS col1 FROM tab2 WHERE NULL = - - col1
----
0
0

query I rowsort
SELECT DISTINCT + + col1 + 42 FROM tab0 AS cor0
----
123
43
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7029
SELECT ALL + col0 + - col0 AS col2, col2 * CAST( NULL AS SIGNED ) + + ( - - col2 ) + - - col2 AS col0 FROM tab0 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-7029
SELECT ALL + col0 + - col0 AS col2, col2 * CAST ( NULL AS INTEGER ) + + ( - - col2 ) + - - col2 AS col0 FROM tab0 AS cor0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7030
SELECT 5 AS col0 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) / col1 + col1 / - 26 + + 38 - - - col0 IS NULL
----
5
5
5

skipif mysql # not compatible
query I rowsort label-7030
SELECT 5 AS col0 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) / col1 + col1 / - 26 + + 38 - - - col0 IS NULL
----
5
5
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * col0 / - 67 + 76 < + ( 30 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + col2 + - - col0 * + 69 * - 60 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 78 IS NULL
----

query I rowsort
SELECT col1 - - - col2 AS col2 FROM tab2
----
28
37
9

query I rowsort
SELECT col2 - + 75 * + 50 AS col0 FROM tab1
----
-3654
-3682
-3691

query I rowsort
SELECT 22 - + col1 * + - col0 + 78 * + ( col1 ) AS col2 FROM tab0
----
197
3487
7555

query I rowsort
SELECT col2 * + col0 AS col0 FROM tab2 WHERE - col0 NOT IN ( + col0 * - col1, - col0, - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7039
SELECT col2 - col0 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7039
SELECT col2 - col0 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 78 AS col0 FROM tab2 WHERE + 83 - + col1 IS NOT NULL
----
-78
-78
-78

query I rowsort
SELECT ALL - ( col1 ) + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - ( 47 ) AS col1 FROM tab1 AS cor0
----
-47
-47
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7043
SELECT * FROM tab0 WHERE NOT + CAST( + col2 AS DECIMAL ) <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7043
SELECT * FROM tab0 WHERE NOT + CAST ( + col2 AS REAL ) <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7044
SELECT - 88 AS col2, - MIN( + - 19 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-88
19

skipif mysql # not compatible
query II rowsort label-7044
SELECT - 88 AS col2, - MIN ( + - 19 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-88
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7045
SELECT CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7045
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT ALL - - MIN( - 8 ) col0 FROM tab1 cor0
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7046
SELECT ALL - - MIN ( - 8 ) col0 FROM tab1 cor0
----
-8

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 / - - 63 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT + + SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7048
SELECT + + SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT - + ( - 82 ) AS col1 FROM tab0 AS cor0
----
82

query II rowsort
SELECT - - col2, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7051
SELECT DISTINCT CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7051
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 43 = + ( - col0 ) + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT 53 * - col2 > ( + + ( + col1 ) + - 72 )
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT BETWEEN + - 62 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * 2 FROM tab0
----
-162
-2
-42

query II rowsort
SELECT ALL - col2 * + + col0 AS col1, col1 AS col0 FROM tab1
----
-4896
14
-5015
5
-6188
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 92 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7058
SELECT COUNT( ALL + col0 ) * MAX( DISTINCT CAST( NULL AS SIGNED ) ) + 87 * - 63 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7058
SELECT COUNT ( ALL + col0 ) * MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + 87 * - 63 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT - 73 + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-64

skipif mysql # not compatible
query I rowsort label-7059
SELECT - 73 + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7060
SELECT col0 * + col1 - col0 + - CAST( + col1 AS SIGNED ) + - col0 FROM tab2
----
2203
4723
4808

skipif mysql # not compatible
query I rowsort label-7060
SELECT col0 * + col1 - col0 + - CAST ( + col1 AS INTEGER ) + - col0 FROM tab2
----
2203
4723
4808

query I rowsort
SELECT DISTINCT + 62 + - col1 * - 43 * col0 + + + col2 AS col2 FROM tab1 AS cor0
----
18396
184041
30860

query I rowsort
SELECT + col1 * - 49 FROM tab1 cor0 WHERE + ( col2 ) IS NOT NULL
----
-2303
-245
-686

query I rowsort
SELECT DISTINCT - col2 + + + 54 AS col0 FROM tab1 AS cor0
----
-14
-42
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7064
SELECT + + 4 + CAST( - col0 AS SIGNED ) * - 76 + - + col0 - 84 AS col1 FROM tab1 AS cor0
----
3745
6295
6745

skipif mysql # not compatible
query I rowsort label-7064
SELECT + + 4 + CAST ( - col0 AS INTEGER ) * - 76 + - + col0 - 84 AS col1 FROM tab1 AS cor0
----
3745
6295
6745

query I rowsort
SELECT DISTINCT - + col1 * - - 21 FROM tab0 AS cor0
----
-1701
-21
-441

query I rowsort
SELECT 43 * col0 AS col0 FROM tab0
----
3741
4171
645

query I rowsort
SELECT ALL - + col1 * + col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col0, 54 col2 FROM tab2
----
-46
54
-64
54
-75
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7069
SELECT ALL - 50 DIV + - COUNT( * ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL - 50 / + - COUNT ( * ) FROM tab0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7070
SELECT + + col1 AS col2, CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
1
99
21
10
81
47

skipif mysql # not compatible
query II rowsort label-7070
SELECT + + col1 AS col2, CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
1
99
21
10
81
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 78 + - 57 > + 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 64 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT DISTINCT + - ( + - MIN( DISTINCT + col2 ) ) FROM tab0 WHERE - 40 * - + 1 + ( col0 ) IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT + - ( + - MIN ( DISTINCT + col2 ) ) FROM tab0 WHERE - 40 * - + 1 + ( col0 ) IS NOT NULL
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7074
SELECT - COUNT( * ) DIV + + MAX( + col1 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7074
SELECT - COUNT ( * ) / + + MAX ( + col1 ) AS col2 FROM tab2
----
0

query II rowsort
SELECT DISTINCT 81 * - col2, - 98 AS col1 FROM tab1 AS cor0
----
-4779
-98
-5508
-98
-7776
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7076
SELECT DISTINCT + col1 * - 26 * - col2 FROM tab0 AS cor0 WHERE NOT - 64 * + 25 NOT BETWEEN NULL AND - - 56 / + - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT + col1 * - 26 * - col2 FROM tab0 AS cor0 WHERE NOT - 64 * + 25 NOT BETWEEN NULL AND - - 56 / + - CAST ( col0 AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( NOT NULL NOT IN ( - ( 21 ) + + col2, col0 - - + 89, col1 * - + col1 ) ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 17 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT DISTINCT - COUNT( * ) * - + MIN( ALL + 82 ) FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT - COUNT ( * ) * - + MIN ( ALL + 82 ) FROM tab2
----
246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7081
SELECT ALL col0 * - CAST( + 20 AS SIGNED ) FROM tab2
----
-1280
-1500
-920

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL col0 * - CAST ( + 20 AS INTEGER ) FROM tab2
----
-1280
-1500
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT DISTINCT COUNT( * ) * + 92 AS col1 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT COUNT ( * ) * + 92 AS col1 FROM tab1
----
276

onlyif mysql # DIV for integer division: 
query I rowsort label-7083
SELECT col1 DIV col2 * 99 DIV + col1 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7083
SELECT col1 / col2 * 99 / + col1 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 40 + + + col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + col1 FROM tab1 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 89 + + + col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7087
SELECT * FROM tab0 AS cor0 WHERE col0 * - CAST( 48 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-7087
SELECT * FROM tab0 AS cor0 WHERE col0 * - CAST ( 48 AS INTEGER ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7088
SELECT DISTINCT COUNT( * ) - CAST( NULL AS DECIMAL ) + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT COUNT ( * ) - CAST ( NULL AS REAL ) + + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT - 59 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT ALL + col1 * + - col2 + 21 + - + col1 + - ( col2 ) + col2 FROM tab1 WHERE NULL IS NULL
----
-1337
-279
-3222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + 1 ) AS col1, 65 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 ) < - + col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= - col1 + + ( + col1 ) * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT - + MAX( col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7094
SELECT - + MAX ( col1 ) FROM tab1 cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT DISTINCT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7096
SELECT ALL 38 DIV CAST( - - MIN( + col0 ) AS SIGNED ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7096
SELECT ALL 38 / CAST ( - - MIN ( + col0 ) AS INTEGER ) AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7097
SELECT DISTINCT 50 AS col2, col0 DIV + - 19 AS col0 FROM tab0
----
50
-4
50
-5
50
0

skipif mysql # not compatible
query II rowsort label-7097
SELECT DISTINCT 50 AS col2, col0 / + - 19 AS col0 FROM tab0
----
50
-4
50
-5
50
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT ALL - MAX( DISTINCT 99 ) AS col0 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-7098
SELECT ALL - MAX ( DISTINCT 99 ) AS col0 FROM tab2
----
-99

query I rowsort
SELECT DISTINCT 32 * + 44 + - col0 AS col2 FROM tab0 AS cor0
----
1311
1321
1393

query I rowsort
SELECT ( - 26 ) FROM tab0 AS cor0
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 77 col1, - col2 + - + ( - + col0 ) + - 92 * + - col0 AS col1 FROM tab2 cor0
----
-77
4255
-77
5912
-77
6917

query I rowsort
SELECT DISTINCT + - ( + col2 ) * - col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7103
SELECT COUNT( * ) DIV + + ( + 84 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7103
SELECT COUNT ( * ) / + + ( + 84 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7104
SELECT DISTINCT + COUNT( * ) DIV 12 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7104
SELECT DISTINCT + COUNT ( * ) / 12 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT COUNT( * ) * - + 95 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-7105
SELECT COUNT ( * ) * - + 95 FROM tab1
----
-285

query I rowsort
SELECT - 50 * + 2 AS col2 FROM tab2 cor0
----
-100
-100
-100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7107
SELECT ALL - - 47 / - CAST( NULL AS DECIMAL ) + + COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL - - 47 / - CAST ( NULL AS REAL ) + + COUNT ( * ) FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 22, 82 * + col2 + + + col1 col0 FROM tab1 AS cor0
----
22
4843
22
5623
22
7886

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT ALL - COUNT( * ) * + 6 AS col1 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL - COUNT ( * ) * + 6 AS col1 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT + 28 * + col1 + 71 FROM tab2
----
1499
1947
2227

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT DISTINCT SUM( - 32 ) + 41 * - COUNT( * ) AS col1 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT SUM ( - 32 ) + 41 * - COUNT ( * ) AS col1 FROM tab1
----
-219

onlyif mysql # DIV for integer division: 
query I rowsort label-7112
SELECT 4 DIV + - col0 * col2 + + - 18 * col2 AS col2 FROM tab2
----
-1044
-414
-720

skipif mysql # not compatible
query I rowsort label-7112
SELECT 4 / + - col0 * col2 + + - 18 * col2 AS col2 FROM tab2
----
-1044
-414
-720

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 + - + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT + COUNT( * ) * - 36 + MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-7114
SELECT + COUNT ( * ) * - 36 + MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
-17

query II rowsort
SELECT DISTINCT + col2 + + + col1 AS col2, col1 * + + col0 * col2 FROM tab2 AS cor0
----
117
197120
125
291450
74
53958

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE 15 * - 68 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-7117
SELECT DISTINCT - COUNT( * ) - 49 AS col2, - 96 AS col0 FROM tab0 AS cor0
----
-52
-96

skipif mysql # not compatible
query II rowsort label-7117
SELECT DISTINCT - COUNT ( * ) - 49 AS col2, - 96 AS col0 FROM tab0 AS cor0
----
-52
-96

query I rowsort
SELECT DISTINCT + col2 + - col1 + - col2 + col2 AS col0 FROM tab1 cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT DISTINCT 75 - COUNT( * ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT 75 - COUNT ( * ) FROM tab2
----
72

query I rowsort
SELECT - col0 + - col1 + - - col2 AS col0 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7121
SELECT DISTINCT col1 - + + CAST( + col2 AS SIGNED ) col1, col0 FROM tab1
----
-21
91
-54
85
-82
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7121
SELECT DISTINCT col1 - + + CAST ( + col2 AS INTEGER ) col1, col0 FROM tab1
----
-21
91
-54
85
-82
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT ALL + 23 + MAX( DISTINCT - col2 ) * + ( + 38 ) col0 FROM tab0 AS cor0
----
-357

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7122
SELECT ALL + 23 + MAX ( DISTINCT - col2 ) * + ( + 38 ) col0 FROM tab0 AS cor0
----
-357

query I rowsort
SELECT + 51 + + col0 FROM tab2 AS cor0
----
115
126
97

query I rowsort
SELECT - 55 + - 5 FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT + + ( + col1 ) + col1 AS col0 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT DISTINCT + col1 * - - 14 + + + 6 FROM tab2 AS cor0
----
1084
720
944

query I rowsort
SELECT ALL ( - - col1 ) * - col0 + + 7 AS col0 FROM tab1 cor0
----
-418
-4270
-707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7128
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + COUNT( * ) / + SUM( DISTINCT + - col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + COUNT ( * ) / + SUM ( DISTINCT + - col0 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 79 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT - COUNT( * ) * + + 74 AS col2 FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-7130
SELECT - COUNT ( * ) * + + 74 AS col2 FROM tab0
----
-222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7131
SELECT - COUNT( * ) * CAST( MAX( + - col1 ) AS SIGNED ) AS col0 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-7131
SELECT - COUNT ( * ) * CAST ( MAX ( + - col1 ) AS INTEGER ) AS col0 FROM tab2
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-7132
SELECT DISTINCT - ( + col0 ) DIV + 3 FROM tab1 AS cor0
----
-17
-28
-30

skipif mysql # not compatible
query I rowsort label-7132
SELECT DISTINCT - ( + col0 ) / + 3 FROM tab1 AS cor0
----
-17
-28
-30

query II rowsort
SELECT ( - 25 ), col1 AS col2 FROM tab2 AS cor0
----
-25
51
-25
67
-25
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 18 col2 FROM tab0 AS cor0
----
1566
1746
270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7135
SELECT + COUNT( * ) DIV + 79 FROM tab1, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7135
SELECT + COUNT ( * ) / + 79 FROM tab1, tab0 AS cor0
----
0

query I rowsort
SELECT col1 + col2 + - 8 FROM tab2
----
109
117
66

query I rowsort
SELECT col0 + + ( + 39 ) AS col2 FROM tab0 AS cor0
----
126
136
54

query I rowsort
SELECT ALL col2 + - 97 FROM tab2 AS cor0
----
-39
-57
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT ALL + 91 DIV - + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL + 91 / - + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-52
-68
-78

query I rowsort
SELECT ALL 98 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7141
SELECT + col1 * + ( - - CAST( - col1 AS SIGNED ) ) FROM tab1
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-7141
SELECT + col1 * + ( - - CAST ( - col1 AS INTEGER ) ) FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-7142
SELECT + COUNT( * ), COUNT( + col0 ) col0 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7142
SELECT + COUNT ( * ), COUNT ( + col0 ) col0 FROM tab0
----
3
3

query I rowsort
SELECT col2 * - col0 * + 28 AS col0 FROM tab1
----
-137088
-140420
-173264

query I rowsort
SELECT 5 * - + ( col0 ) AS col1 FROM tab2
----
-230
-320
-375

query I rowsort
SELECT col2 * + - 2 * col1 FROM tab2
----
-2346
-6160
-7772

query I rowsort
SELECT - col2 FROM tab2 WHERE NULL < + col1
----

query I rowsort
SELECT ALL 39 + + ( col0 ) * - col1 * col2 AS col0 FROM tab1
----
-25036
-290797
-68505

query I rowsort
SELECT - col1 - + 48 FROM tab2
----
-115
-125
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 79 + + col1 + + col1 AS col2 FROM tab0 AS cor0
----
121
241
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT ALL - MAX( - + ( + 22 ) ) FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL - MAX ( - + ( + 22 ) ) FROM tab0 AS cor0
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - + 19 col1 FROM tab1 AS cor0 WHERE ( NOT NULL <= col2 / - col1 * + col1 * + + 42 - - 36 - - 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT ALL COUNT( * ) - + - COUNT( * ) + - + MAX( col2 ) AS col2 FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL COUNT ( * ) - + - COUNT ( * ) + - + MAX ( col2 ) AS col2 FROM tab2
----
-52

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NULL OR NULL NOT BETWEEN NULL AND - 56
----

query II rowsort
SELECT col1 * col2 * - 52 AS col1, - col2 AS col2 FROM tab1
----
-15340
-59
-166192
-68
-69888
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7156
SELECT DISTINCT - col1 DIV + 23 + + + col2 + - col0 * - 73 AS col0 FROM tab0
----
1139
6361
7180

skipif mysql # not compatible
query I rowsort label-7156
SELECT DISTINCT - col1 / + 23 + + + col2 + - col0 * - 73 AS col0 FROM tab0
----
1139
6361
7180

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT ALL - COUNT( 58 ) * 70 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 70 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL - COUNT ( 58 ) * 70 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 70 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 col2 FROM tab2
----
25
25
25

query I rowsort
SELECT 16 * col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND + 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7161
SELECT ALL + CAST( NULL AS SIGNED ) * - 80 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL + CAST ( NULL AS INTEGER ) * - 80 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT DISTINCT - 97 * MIN( 46 ) FROM tab1 AS cor0
----
-4462

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT - 97 * MIN ( 46 ) FROM tab1 AS cor0
----
-4462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7163
SELECT + + MAX( DISTINCT col1 ) DIV COUNT( * ) col1 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7163
SELECT + + MAX ( DISTINCT col1 ) / COUNT ( * ) col1 FROM tab2 AS cor0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7164
SELECT ALL + col2 DIV col2 - col0 AS col0 FROM tab0 cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL + col2 / col2 - col0 AS col0 FROM tab0 cor0
----
-14
-86
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT DISTINCT COUNT( * ) * 2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT COUNT ( * ) * 2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT DISTINCT + - ( 16 ) AS col1 FROM tab2 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT + COUNT( ALL - 23 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7167
SELECT + COUNT ( ALL - 23 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT DISTINCT - + COUNT( * ) col0 FROM tab1 WHERE + - 23 * - 61 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7168
SELECT DISTINCT - + COUNT ( * ) col0 FROM tab1 WHERE + - 23 * - 61 IS NOT NULL
----
-3

query II rowsort
SELECT + col2 AS col0, + ( - 33 ) FROM tab2
----
23
-33
40
-33
58
-33

query I rowsort
SELECT 4 + col0 FROM tab1 WHERE NOT col2 + - 71 / + 11 >= NULL
----

query II rowsort
SELECT - 29 * + col1 / - 71 + - 32 + + col0 AS col0, col1 + - col1 AS col1 FROM tab1 WHERE NOT + col0 <> NULL
----

query I rowsort
SELECT + ( - - 64 ) FROM tab2
----
64
64
64

query I rowsort
SELECT ALL 27 AS col1 FROM tab2 cor0
----
27
27
27

query I rowsort
SELECT - ( - col2 ) * 88 FROM tab2 AS cor0
----
2024
3520
5104

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 53 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT ALL - SUM( DISTINCT - 10 ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL - SUM ( DISTINCT - 10 ) FROM tab1 AS cor0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7177
SELECT DISTINCT CAST( + MIN( ALL 92 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT CAST ( + MIN ( ALL 92 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
92

query II rowsort
SELECT DISTINCT - col2, + col1 AS col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7179
SELECT + 63 DIV - 37 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7179
SELECT + 63 / - 37 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * - 31 IN ( + 1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT ALL - SUM( col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL - SUM ( col0 ) AS col1 FROM tab2
----
-185

query I rowsort
SELECT DISTINCT col2 + - 40 FROM tab2
----
-17
0
18

query I rowsort
SELECT 23 + - 1 * col0 FROM tab2 WHERE NOT ( col1 ) BETWEEN col0 AND col1
----
-52

query I rowsort
SELECT DISTINCT 42 * col1 + 68 * col1 AS col2 FROM tab1
----
1540
5170
550

query I rowsort
SELECT ALL col0 * ( 35 ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT - 5 >= - col2
----
0

skipif mysql # not compatible
query I rowsort label-7186
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT - 5 >= - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT DISTINCT - COUNT( col0 ) * - MAX( col2 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT - COUNT ( col0 ) * - MAX ( col2 ) FROM tab2
----
174

query I rowsort
SELECT 83 + + 59 FROM tab0
----
142
142
142

query III rowsort
SELECT * FROM tab2 WHERE NOT - 11 > ( + 80 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 * col1 col0 FROM tab2
----
-1122
-3003
-3819

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT + col0 NOT BETWEEN + 72 AND ( col2 )
----

query I rowsort
SELECT ALL - 39 * + ( col2 ) FROM tab1
----
-2301
-2652
-3744

query I rowsort
SELECT DISTINCT + col0 * 95 AS col0 FROM tab1
----
4845
8075
8645

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT COUNT( * ) + COUNT( * ) AS col0 FROM tab2 WHERE NULL < - col2
----
0

skipif mysql # not compatible
query I rowsort label-7194
SELECT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 WHERE NULL < - col2
----
0

query I rowsort
SELECT DISTINCT - 80 * + col1 AS col1 FROM tab0
----
-1680
-6480
-80

query I rowsort
SELECT - col2 + + 78 * + col0 FROM tab2
----
3565
4952
5792

query I rowsort
SELECT + 5 + 34 * - col2 AS col1 FROM tab1
----
-2001
-2307
-3259

query I rowsort
SELECT - 21 * + col1 AS col0 FROM tab1
----
-105
-294
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT - MAX( DISTINCT col0 ) * + 9 AS col2 FROM tab2
----
-675

skipif mysql # not compatible
query I rowsort label-7199
SELECT - MAX ( DISTINCT col0 ) * + 9 AS col2 FROM tab2
----
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7200
SELECT DISTINCT - col2 + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT - col2 + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT + COUNT( * ) * + 36 AS col1 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-7201
SELECT + COUNT ( * ) * + 36 AS col1 FROM tab2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT ALL - 39 * + COUNT( * ) AS col2 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL - 39 * + COUNT ( * ) AS col2 FROM tab0
----
-117

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NULL IN ( + col2 * + 45 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7204
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS SIGNED ) + col1 IN ( ( col1 ) )
----

skipif mysql # not compatible
query III rowsort label-7204
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) + col1 IN ( ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT + 46 * - COUNT( * ) AS col1 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-7205
SELECT + 46 * - COUNT ( * ) AS col1 FROM tab0
----
-138

query I rowsort
SELECT - col0 * + col2 + + col0 AS col2 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT + col2 * ( + col1 ) FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7208
SELECT COUNT( * ) * + MAX( + CAST( col0 AS SIGNED ) ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-7208
SELECT COUNT ( * ) * + MAX ( + CAST ( col0 AS INTEGER ) ) FROM tab2
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7209
SELECT + col1 * - 28 col2 FROM tab2 WHERE NOT - 78 + col1 * - CAST( NULL AS SIGNED ) > - 85
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7209
SELECT + col1 * - 28 col2 FROM tab2 WHERE NOT - 78 + col1 * - CAST ( NULL AS INTEGER ) > - 85
----

query I rowsort
SELECT DISTINCT col0 + ( + 97 + col1 ) AS col0 FROM tab0
----
193
195
205

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7211
SELECT ALL * FROM tab1 WHERE NOT ( col0 * - col0 ) BETWEEN ( - 54 * CAST( NULL AS DECIMAL ) ) AND ( 27 )
----

skipif mysql # not compatible
query III rowsort label-7211
SELECT ALL * FROM tab1 WHERE NOT ( col0 * - col0 ) BETWEEN ( - 54 * CAST ( NULL AS REAL ) ) AND ( 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT COUNT( DISTINCT 18 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7212
SELECT COUNT ( DISTINCT 18 ) FROM tab2
----
1

query I rowsort
SELECT ALL 49 + - 23 FROM tab2 AS cor0
----
26
26
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7214
SELECT - ( + 52 ) DIV col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7214
SELECT - ( + 52 ) / col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - ( 74 ) + 75 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7216
SELECT + CAST( 0 AS SIGNED ) * - 42 FROM tab1 cor0 WHERE ( col1 + col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7216
SELECT + CAST ( 0 AS INTEGER ) * - 42 FROM tab1 cor0 WHERE ( col1 + col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7217
SELECT ALL + col0 - - col1 DIV col1 AS col2 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL + col0 - - col1 / col1 AS col2 FROM tab1 AS cor0
----
52
86
92

query I rowsort
SELECT 12 * + col1 FROM tab0
----
12
252
972

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT 33 IS NOT NULL
----

query I rowsort
SELECT - col2 * 23 AS col2 FROM tab1 AS cor0
----
-1357
-1564
-2208

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 91 * 35 + + col2 IN ( col2 )
----

query I rowsort
SELECT ( 23 ) AS col0 FROM tab1
----
23
23
23

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT col1 * - 24 FROM tab2
----
-1224
-1608
-1848

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 / - 42 + col1 ) = - 90 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * + - col2 AS col0 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL - col2 * - 19 * col0 FROM tab0
----
13395
16530
182457

query III rowsort
SELECT * FROM tab2 WHERE NOT 59 * - col1 IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT MAX( DISTINCT + - 0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7230
SELECT MAX ( DISTINCT + - 0 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col0 * + col1 FROM tab2 WHERE NULL IS NULL
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7232
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 62 + + col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 62 + + col2 AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 38 * 75 + + 10 / col2 ) NOT BETWEEN + col1 AND col1
----

query I rowsort
SELECT DISTINCT - 55 * - col0 FROM tab1 AS cor0
----
2805
4675
5005

query I rowsort
SELECT DISTINCT 25 - col0 * - 8 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
393
537
625

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT DISTINCT MIN( DISTINCT col2 ) col0 FROM tab1 AS cor0 WHERE NOT NULL <= + col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7236
SELECT DISTINCT MIN ( DISTINCT col2 ) col0 FROM tab1 AS cor0 WHERE NOT NULL <= + col1
----
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( col0 ) * + 88
----

query I rowsort
SELECT DISTINCT - col2 * - 53 AS col0 FROM tab0 AS cor0
----
2491
5247
530

onlyif mysql # DIV for integer division: 
query I rowsort label-7239
SELECT 70 DIV - col0 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7239
SELECT 70 / - col0 AS col1 FROM tab2
----
-1
-1
0

query I rowsort
SELECT DISTINCT - 30 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 90 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT SUM( ALL + col2 ) + 50 FROM tab0
----
206

skipif mysql # not compatible
query I rowsort label-7241
SELECT SUM ( ALL + col2 ) + 50 FROM tab0
----
206

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT 19 + + COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-7242
SELECT 19 + + COUNT ( * ) FROM tab1
----
22

query I rowsort
SELECT + 32 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - col1 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7245
SELECT ALL 73 DIV CAST( + col0 AS SIGNED ) col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7245
SELECT ALL 73 / CAST ( + col0 AS INTEGER ) col0 FROM tab0
----
0
0
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7246
SELECT ALL + MAX( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 26 - 44 * + 50 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL + MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 26 - 44 * + 50 AND NULL
----
NULL

query I rowsort
SELECT - 35 * ( + col2 ) FROM tab2 AS cor0 WHERE col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7248
SELECT col1 / - CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7248
SELECT col1 / - CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7249
SELECT ALL col0 - - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL col0 - - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT IN ( - 59 )
----

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE - col0 = + + 59 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT 5 - - - COUNT( + ( + col2 ) ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-7252
SELECT 5 - - - COUNT ( + ( + col2 ) ) FROM tab1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7253
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE 80 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7253
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE 80 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - + + 25 - + col1 AS col0 FROM tab1
----
-4
29
57

query III rowsort
SELECT * FROM tab2 WHERE ( - ( 66 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - MAX( ALL - ( + + col0 ) ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7256
SELECT - MAX ( ALL - ( + + col0 ) ) AS col2 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7257
SELECT ALL COUNT( * ) DIV SUM( ALL col1 * + col2 ) AS col1 FROM tab1 AS cor0 WHERE + 2 NOT IN ( + + col1 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL COUNT ( * ) / SUM ( ALL col1 * + col2 ) AS col1 FROM tab1 AS cor0 WHERE + 2 NOT IN ( + + col1 + col0 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7258
SELECT COUNT( - 42 ), COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7258
SELECT COUNT ( - 42 ), COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7259
SELECT ALL * FROM tab2 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) + + 97 ) >= + 62 * + col0 - + col1
----

skipif mysql # not compatible
query III rowsort label-7259
SELECT ALL * FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) + + 97 ) >= + 62 * + col0 - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT COUNT( * ) * - - 46 AS col1 FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-7260
SELECT COUNT ( * ) * - - 46 AS col1 FROM tab0
----
138

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7262
SELECT ALL + - MAX( + col0 ) * - MIN( - CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT + + 93 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL + - MAX ( + col0 ) * - MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT + + 93 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 55 * + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 19 / + - col0 BETWEEN ( + col0 / col2 * - col0 + col1 ) AND ( - col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 19 / + - col0 BETWEEN ( + col0 / col2 * - col0 + col1 ) AND ( - col1 )
----
-3

query I rowsort
SELECT + ( + - 28 ) AS col2 FROM tab0 AS cor0
----
-28
-28
-28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7266
SELECT + 87 / CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT + 63 > - + col0 + col0
----

skipif mysql # not compatible
query I rowsort label-7266
SELECT + 87 / CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT + 63 > - + col0 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + 72 + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT + COUNT( ALL - 18 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7268
SELECT + COUNT ( ALL - 18 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 * + col1 NOT BETWEEN - + col2 * + 49 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT COUNT( DISTINCT 80 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7270
SELECT COUNT ( DISTINCT 80 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > ( - 54 ) / + col0 * + col0
----

query I rowsort
SELECT DISTINCT - col0 * - + col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT ALL 80 * - COUNT( * ) * + 63 FROM tab2
----
-15120

skipif mysql # not compatible
query I rowsort label-7273
SELECT ALL 80 * - COUNT ( * ) * + 63 FROM tab2
----
-15120

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NULL NOT IN ( - col1, - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7275
SELECT ALL + 71, + 14 * - ( + COUNT( - - col1 ) ) col1 FROM tab1
----
71
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7275
SELECT ALL + 71, + 14 * - ( + COUNT ( - - col1 ) ) col1 FROM tab1
----
71
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7276
SELECT DISTINCT + CAST( + 78 AS SIGNED ) FROM tab0, tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT + CAST ( + 78 AS INTEGER ) FROM tab0, tab0 AS cor0
----
78

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > - + ( - - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col1 * - 64 / - ( - + col0 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 + + 60 col1 FROM tab2 cor0
----
58
58
58

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE col1 < - col0
----

query I rowsort
SELECT ALL - ( + col1 ) * - col1 * + + col0 + - + col2 AS col2 FROM tab0 AS cor0
----
-2
38357
98368

query I rowsort
SELECT col0 / - col2 * - 90 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( col2 / col2 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT + + COUNT( - col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7283
SELECT + + COUNT ( - col0 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT COUNT( col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7284
SELECT COUNT ( col0 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE + 51 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7286
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - col2 * + 86 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - col2 * + 86 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + ( - col2 ) + col2 + + + 0 * - - col2 * col2 col1 FROM tab0
----
-200
-3760
0

query I rowsort
SELECT ALL - - col0 + col1 + + col0 + - col0 * - + 33 * 66 + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + 84 - + - col2 AS col2 FROM tab2 AS cor0
----
107
124
142

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7290
SELECT * FROM tab2 AS cor0 WHERE - 47 BETWEEN - - 86 AND - col0 * + - CAST( NULL AS SIGNED ) / + - 45
----

skipif mysql # not compatible
query III rowsort label-7290
SELECT * FROM tab2 AS cor0 WHERE - 47 BETWEEN - - 86 AND - col0 * + - CAST ( NULL AS INTEGER ) / + - 45
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7292
SELECT - COUNT( * ) + + SUM( DISTINCT CAST( NULL AS SIGNED ) ) * COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7292
SELECT - COUNT ( * ) + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * COUNT ( * ) FROM tab2 cor0
----
NULL

query II rowsort
SELECT + col2 + + col1, col2 AS col1 FROM tab0 AS cor0
----
100
99
128
47
31
10

query I rowsort
SELECT DISTINCT col2 * - 49 + + 73 FROM tab0 AS cor0
----
-2230
-417
-4778

onlyif mysql # aggregate syntax: 
query II rowsort label-7295
SELECT ALL + COUNT( * ) - + - COUNT( - col0 ) col0, SUM( - 2 ) AS col1 FROM tab0 AS cor0
----
6
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7295
SELECT ALL + COUNT ( * ) - + - COUNT ( - col0 ) col0, SUM ( - 2 ) AS col1 FROM tab0 AS cor0
----
6
-6

query II rowsort
SELECT ALL + col1, col1 + col2 AS col2 FROM tab1
----
14
110
47
115
5
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7297
SELECT DISTINCT + COUNT( * ), 30 + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL < NULL
----
0
30

skipif mysql # not compatible
query II rowsort label-7297
SELECT DISTINCT + COUNT ( * ), 30 + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL < NULL
----
0
30

query I rowsort
SELECT + + col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7299
SELECT ( - CAST( 91 AS SIGNED ) ) AS col2 FROM tab2
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-7299
SELECT ( - CAST ( 91 AS INTEGER ) ) AS col2 FROM tab2
----
-91
-91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col2 FROM tab0
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7301
SELECT DISTINCT - col2 * - ( - 64 ) * + 60 + + - CAST( + col2 AS SIGNED ) AS col2, col1 FROM tab1 AS cor0
----
-226619
5
-261188
47
-368736
14

skipif mysql # not compatible
query II rowsort label-7301
SELECT DISTINCT - col2 * - ( - 64 ) * + 60 + + - CAST ( + col2 AS INTEGER ) AS col2, col1 FROM tab1 AS cor0
----
-226619
5
-261188
47
-368736
14

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE col2 + + 21 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7303
SELECT + col2 AS col0, CAST( NULL AS SIGNED ) FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-7303
SELECT + col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 AND NULL AND NOT NULL NOT BETWEEN + col0 + col1 AND - col0 + + + col2
----

query I rowsort
SELECT - col1 * col2 + + col0 - + col2 AS col0 FROM tab1 AS cor0
----
-1389
-269
-3173

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > 31
----

query I rowsort
SELECT ALL col2 * - + col0 + - 59 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-4955
-5074
-6247

query III rowsort
SELECT * FROM tab0 WHERE NOT + 93 IS NOT NULL
----

query I rowsort
SELECT ( - - 99 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL - 96 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # DIV for integer division: 
query I rowsort label-7311
SELECT 10 DIV + + col1 * 54 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7311
SELECT 10 / + + col1 * 54 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + 62 AS col2 FROM tab0 cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT DISTINCT + - MAX( + ( - 2 ) ) AS col1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT + - MAX ( + ( - 2 ) ) AS col1 FROM tab1 AS cor0
----
2

query I rowsort
SELECT ALL + 74 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 + - col0 + - 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT DISTINCT - - ( + MAX( + - col1 ) ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT - - ( + MAX ( + - col1 ) ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT col0 FROM tab1 WHERE NOT 98 * - col1 + - col2 NOT IN ( + col0 * col0 + + + col2 * col2 + - col0 + - col2 )
----

query II rowsort
SELECT DISTINCT - col2, - ( + col0 ) AS col0 FROM tab0
----
-10
-87
-47
-15
-99
-97

query I rowsort
SELECT ALL + col0 + + 7 AS col0 FROM tab2
----
53
71
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT ALL 62 + COUNT( * ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL 62 + COUNT ( * ) FROM tab0
----
65

query II rowsort
SELECT DISTINCT - col0, - 48 * + 97 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + + - 3 AS col1 FROM tab0 AS cor0
----
-102
-13
-50

query I rowsort
SELECT col1 * - col0 - - 44 + + + col2 * + col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col2 * + 39
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7325
SELECT - 79 * - - MAX( - + col0 ) + - - 32 AS col1, 98 + + 23 + - + 46 AS col2 FROM tab2
----
3666
75

skipif mysql # not compatible
query II rowsort label-7325
SELECT - 79 * - - MAX ( - + col0 ) + - - 32 AS col1, 98 + + 23 + - + 46 AS col2 FROM tab2
----
3666
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT ALL - COUNT( * ) * + 3 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-27

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL - COUNT ( * ) * + 3 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-27

query I rowsort
SELECT 97 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 / - 0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + + 38 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT COUNT( * ) * - 69 FROM tab1 AS cor0 WHERE NULL IN ( + 24 - - 72 - 45 )
----
0

skipif mysql # not compatible
query I rowsort label-7329
SELECT COUNT ( * ) * - 69 FROM tab1 AS cor0 WHERE NULL IN ( + 24 - - 72 - 45 )
----
0

query I rowsort
SELECT DISTINCT - 57 + + col0 AS col0 FROM tab2 AS cor0
----
-11
18
7

query II rowsort
SELECT - col1, + 62 + + 77 AS col2 FROM tab0 AS cor0
----
-1
139
-21
139
-81
139

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 <> NULL
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE col1 + + col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + 85 - - - 84 AS col2 FROM tab0
----
1

query I rowsort
SELECT - col0 - + - col2 + + + col0 * - col1 + + col1 FROM tab0
----
-1102
-1883
-94

query I rowsort
SELECT ALL + ( - - 56 ) FROM tab1
----
56
56
56

query I rowsort
SELECT ALL + + col0 * - + col1 FROM tab2 WHERE col2 * - col1 / col1 * col2 NOT BETWEEN + + col2 AND - ( + + 34 )
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query II rowsort label-7338
SELECT - MAX( - col2 ) AS col1, - COUNT( * ) FROM tab0
----
10
-3

skipif mysql # not compatible
query II rowsort label-7338
SELECT - MAX ( - col2 ) AS col1, - COUNT ( * ) FROM tab0
----
10
-3

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT - 84 IS NULL
----
51
85
91

query I rowsort
SELECT ALL ( - + 80 ) FROM tab1
----
-80
-80
-80

query II rowsort
SELECT DISTINCT col0 * col2 AS col1, col0 FROM tab0 cor0
----
705
15
870
87
9603
97

onlyif mysql # DIV for integer division: 
query II rowsort label-7342
SELECT DISTINCT + col0 * - - col0 AS col0, + col2 DIV + - col2 + - + col0 * - + 29 FROM tab1 cor0
----
2601
1478
7225
2464
8281
2638

skipif mysql # not compatible
query II rowsort label-7342
SELECT DISTINCT + col0 * - - col0 AS col0, + col2 / + - col2 + - + col0 * - + 29 FROM tab1 cor0
----
2601
1478
7225
2464
8281
2638

query I rowsort
SELECT ALL + 33 * + - col0 AS col1 FROM tab0 AS cor0
----
-2871
-3201
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT - COUNT( * ) * 79 AS col2 FROM tab1 cor0
----
-237

skipif mysql # not compatible
query I rowsort label-7344
SELECT - COUNT ( * ) * 79 AS col2 FROM tab1 cor0
----
-237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7345
SELECT ALL + SUM( DISTINCT + ( - 75 ) ) * + + CAST( - 13 AS SIGNED ), 36 * + ( + 37 ) AS col1 FROM tab0 AS cor0
----
975
1332

skipif mysql # not compatible
query II rowsort label-7345
SELECT ALL + SUM ( DISTINCT + ( - 75 ) ) * + + CAST ( - 13 AS INTEGER ), 36 * + ( + 37 ) AS col1 FROM tab0 AS cor0
----
975
1332

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT - SUM( DISTINCT 63 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7346
SELECT - SUM ( DISTINCT 63 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT + col2, - col1 * - col1 FROM tab1
----
59
25
68
2209
96
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7348
SELECT + COUNT( * ), CAST( NULL AS SIGNED ) + + - 2 * - 56 AS col2 FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7348
SELECT + COUNT ( * ), CAST ( NULL AS INTEGER ) + + - 2 * - 56 AS col2 FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL WHERE NOT NULL IS NULL
----
0
NULL

query I rowsort
SELECT ALL - + col1 FROM tab1 WHERE NOT 0 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 53 NOT BETWEEN - - col2 AND + 90
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7351
SELECT ALL - - col1 * - col2 DIV + + col2, + col0 col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7351
SELECT ALL - - col1 * - col2 / + + col2, + col0 col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT - 53 * + 79 * - col1 FROM tab0 AS cor0
----
339147
4187
87927

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7353
SELECT + col1 DIV - CAST( + col1 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-7353
SELECT + col1 / - CAST ( + col1 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-2
-22
-82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 53 IN ( + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - 5 ) col2 FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT + + MAX( + - col2 ) * + MAX( ALL col0 ) FROM tab0 AS cor0
----
-970

skipif mysql # not compatible
query I rowsort label-7356
SELECT + + MAX ( + - col2 ) * + MAX ( ALL col0 ) FROM tab0 AS cor0
----
-970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7357
SELECT + col1 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT + col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7358
SELECT col0 DIV 40 * + col0 * + CAST( + col1 AS SIGNED ) FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-7358
SELECT col0 / 40 * + col0 * + CAST ( + col1 AS INTEGER ) FROM tab2
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 / + ( - + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * 79 + - col2 FROM tab1 WHERE NOT ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT + 6 AS col0 FROM tab2 WHERE NULL >= ( + + col2 )
----

query I rowsort
SELECT ALL col1 + + 51 + + 71 AS col0 FROM tab2
----
173
189
199

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE + col0 + col2 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7364
SELECT CAST( + COUNT( * ) AS SIGNED ) col1, COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7364
SELECT CAST ( + COUNT ( * ) AS INTEGER ) col1, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE col0 IN ( col1 + - + 98 - - 44, + 88, + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-7365
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE col0 IN ( col1 + - + 98 - - 44, + 88, + col0 )
----
3

query I rowsort
SELECT 77 + - col0 FROM tab0 AS cor0
----
-10
-20
62

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col2 > - 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT ALL + 60 - - ( + + 55 ) + - + SUM( DISTINCT - 66 ) AS col1 FROM tab0 AS cor0
----
181

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL + 60 - - ( + + 55 ) + - + SUM ( DISTINCT - 66 ) AS col1 FROM tab0 AS cor0
----
181

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE 35 * + col1 * + 97 + + + col1 * - ( ( 14 ) ) / + - col2 IN ( - 90 * col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7370
SELECT DISTINCT + col2 * - - 53 + col2 + - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT + col2 * - - 53 + col2 + - + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT DISTINCT 2 - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT 2 - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 + + col0 col0 FROM tab2 cor0
----
41
59
70

query II rowsort
SELECT ALL col1 AS col2, + col0 * + ( + + col2 ) FROM tab1 AS cor0
----
14
4896
47
6188
5
5015

query II rowsort
SELECT DISTINCT 97, + col2 FROM tab0
----
97
10
97
47
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7375
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) col1 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7376
SELECT - CAST( - col0 AS SIGNED ) FROM tab0 WHERE NOT + + ( + 95 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-7376
SELECT - CAST ( - col0 AS INTEGER ) FROM tab0 WHERE NOT + + ( + 95 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7377
SELECT CAST( NULL AS SIGNED ) * - col2 / + 96 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7377
SELECT CAST ( NULL AS INTEGER ) * - col2 / + 96 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 66 * col0 FROM tab1
----
3366
5610
6006

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7380
SELECT + col2 * + - col2 + - col1 / - col2 - + 55 / - + col0 - CAST( - CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7380
SELECT + col2 * + - col2 + - col1 / - col2 - + 55 / - + col0 - CAST ( - CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT ALL MAX( + col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL MAX ( + col1 ) FROM tab0 cor0
----
81

query II rowsort
SELECT DISTINCT col0 AS col2, 39 + + + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
90
64
116
75
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT DISTINCT - COUNT( - + ( + - 0 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT - COUNT ( - + ( + - 0 ) ) FROM tab1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7384
SELECT ALL + COUNT( + 44 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 48 * + col1 * - + col2 AND + - col1 * + col1 / - col0 * - - 48 * + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL + COUNT ( + 44 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 48 * + col1 * - + col2 AND + - col1 * + col1 / - col0 * - - 48 * + CAST ( NULL AS INTEGER )
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 >= - col2
----

query I rowsort
SELECT + col2 * + 40 AS col0 FROM tab0
----
1880
3960
400

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT DISTINCT 69 * + ( COUNT( DISTINCT - + 10 ) ) AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT 69 * + ( COUNT ( DISTINCT - + 10 ) ) AS col2 FROM tab0
----
69

query I rowsort
SELECT - 66 + + col2 FROM tab2 WHERE NULL > + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7389
SELECT COUNT( * ) AS col0, + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7389
SELECT COUNT ( * ) AS col0, + COUNT ( * ) FROM tab0
----
3
3

query I rowsort
SELECT ( - 78 ) FROM tab2
----
-78
-78
-78

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE ( NOT 4 / - col0 IS NULL )
----
10
47
99

query I rowsort
SELECT ALL - 11 * col1 AS col2 FROM tab0 AS cor0
----
-11
-231
-891

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 25 + + + 80 FROM tab0 AS cor0
----
105
105
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7395
SELECT col0 + + CAST( NULL AS SIGNED ) - - + CAST( - col1 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7395
SELECT col0 + + CAST ( NULL AS INTEGER ) - - + CAST ( - col1 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 NOT BETWEEN ( col0 ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL MAX( - ( ( col1 ) ) ) + + - 0 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL MAX ( - ( ( col1 ) ) ) + + - 0 AS col2 FROM tab0
----
-1

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT ( - col0 ) IS NOT NULL )
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT 47 IS NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 IN ( - - 93, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + ( + + 57 ) AS col1 FROM tab1 cor0
----
-57
-57
-57

query II rowsort
SELECT col0, 94 FROM tab0
----
15
94
87
94
97
94

query I rowsort
SELECT ALL + 92 * col2 AS col2 FROM tab1
----
5428
6256
8832

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL < - ( + + 50 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 87 * 96 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * + - col2 IS NOT NULL
----

query I rowsort
SELECT - 53 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT ALL + + COUNT( * ) * 15 + - COUNT( * ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL + + COUNT ( * ) * 15 + - COUNT ( * ) FROM tab2 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + - 8 col0 FROM tab1
----
-104
-67
-76

query I rowsort
SELECT - col2 * - ( ( + - col1 ) ) * + - 24 FROM tab1 AS cor0
----
32256
7080
76704

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT COUNT( * ) * - ( - MIN( col0 ) ) + - - COUNT( * ) FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-7411
SELECT COUNT ( * ) * - ( - MIN ( col0 ) ) + - - COUNT ( * ) FROM tab2 AS cor0
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7412
SELECT ALL + CAST( - 86 AS SIGNED ) FROM tab0 AS cor0
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL + CAST ( - 86 AS INTEGER ) FROM tab0 AS cor0
----
-86
-86
-86

query I rowsort
SELECT ALL 51 * - + col2 FROM tab1
----
-3009
-3468
-4896

onlyif mysql # DIV for integer division: 
query II rowsort label-7414
SELECT DISTINCT 78 DIV 82 AS col0, - col1 AS col1 FROM tab0
----
0
-1
0
-21
0
-81

skipif mysql # not compatible
query II rowsort label-7414
SELECT DISTINCT 78 / 82 AS col0, - col1 AS col1 FROM tab0
----
0
-1
0
-21
0
-81

query I rowsort
SELECT - - col0 AS col0 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * col2 * + 76 AS col0 FROM tab0
----
53580
66120
729828

query I rowsort
SELECT ALL - 46 * col0 + col2 AS col2 FROM tab2
----
-2093
-2904
-3392

query II rowsort
SELECT ALL - 80 * - 32 AS col0, - 53 AS col2 FROM tab2
----
2560
-53
2560
-53
2560
-53

query II rowsort
SELECT col2 + + col1, + col2 * + col0 * - col0 AS col1 FROM tab2
----
117
-163840
125
-326250
74
-48668

query I rowsort
SELECT 16 + + 52 AS col1 FROM tab1
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7421
SELECT + 11 / + 17 * col0 + 25 * - - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7421
SELECT + 11 / + 17 * col0 + 25 * - - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7422
SELECT + CAST( + 67 AS SIGNED ) FROM tab1 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-7422
SELECT + CAST ( + 67 AS INTEGER ) FROM tab1 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT ALL - 65 - - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL - 65 - - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7424
SELECT ALL + COUNT( * ) * 2 DIV 30 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL + COUNT ( * ) * 2 / 30 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7425
SELECT - SUM( + + col0 ) AS col0, COUNT( * ) * - COUNT( + col1 ) AS col0 FROM tab1 AS cor0
----
-227
-9

skipif mysql # not compatible
query II rowsort label-7425
SELECT - SUM ( + + col0 ) AS col0, COUNT ( * ) * - COUNT ( + col1 ) AS col0 FROM tab1 AS cor0
----
-227
-9

query III rowsort
SELECT * FROM tab2 WHERE + + col1 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7427
SELECT DISTINCT + SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT + SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT + 71 * - 77 AS col0 FROM tab2
----
-5467
-5467
-5467

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT - MIN( DISTINCT + 76 ) FROM tab1 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-7429
SELECT - MIN ( DISTINCT + 76 ) FROM tab1 cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT + COUNT( * ) * + 1 AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7430
SELECT + COUNT ( * ) * + 1 AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 = NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE col1 BETWEEN + 55 AND ( - 23 )
----

query II rowsort
SELECT - col1 AS col0, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query II rowsort
SELECT DISTINCT - col2 AS col1, - col0 AS col1 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

query I rowsort
SELECT ALL - 21 AS col0 FROM tab2 cor0
----
-21
-21
-21

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + + col0 NOT IN ( + 35 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7437
SELECT ALL 22 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL 22 / col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 44 FROM tab1 WHERE NOT + - 3 + - col0 IS NULL
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-7439
SELECT DISTINCT + ( + COUNT( * ) ), 9 AS col0 FROM tab0
----
3
9

skipif mysql # not compatible
query II rowsort label-7439
SELECT DISTINCT + ( + COUNT ( * ) ), 9 AS col0 FROM tab0
----
3
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + col1 * col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT + 48 + col0 FROM tab1 AS cor0
----
133
139
99

query I rowsort
SELECT ALL - + 83 + + + col0 AS col2 FROM tab2 AS cor0
----
-19
-37
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-7444
SELECT ALL COUNT( * ), + COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7444
SELECT ALL COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0
----
3
3

query I rowsort
SELECT col1 * + ( - col1 ) AS col2 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT ALL - 19 * - + col2 AS col1 FROM tab1
----
1121
1292
1824

query III rowsort
SELECT * FROM tab0 WHERE + + col2 * - + 44 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 44 * - col1 * - 18 - col0 + - - 16 + col0 * - + col0 * + col0 AS col1 FROM tab1
----
-143774
-618154
-790870

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT DISTINCT + COUNT( ALL col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT + COUNT ( ALL col0 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7450
SELECT ALL col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 8 - - 26 * - col0 AS col0 FROM tab0
----
-2254
-2514
-382

onlyif mysql # DIV for integer division: 
query I rowsort label-7452
SELECT + - col0 + + + col1 DIV - + col0 FROM tab2 cor0
----
-47
-65
-75

skipif mysql # not compatible
query I rowsort label-7452
SELECT + - col0 + + + col1 / - + col0 FROM tab2 cor0
----
-47
-65
-75

query II rowsort
SELECT DISTINCT - col0 - ( + col0 ) * col1 AS col1, - 42 FROM tab2 AS cor0
----
-2392
-42
-4992
-42
-5100
-42

query I rowsort
SELECT - - col2 + - col0 - - col2 FROM tab0 AS cor0
----
-67
101
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7455
SELECT + + CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7455
SELECT + + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT ALL 69 - - SUM( + col2 ) FROM tab1 AS cor0
----
292

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL 69 - - SUM ( + col2 ) FROM tab1 AS cor0
----
292

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 11 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT + 10 + + 57 - + COUNT( * ) FROM tab1, tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7458
SELECT + 10 + + 57 - + COUNT ( * ) FROM tab1, tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT DISTINCT - + COUNT( * ) * + + 9 * + 92 AS col2 FROM tab1 AS cor0
----
-2484

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT - + COUNT ( * ) * + + 9 * + 92 AS col2 FROM tab1 AS cor0
----
-2484

query I rowsort
SELECT ALL 31 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
31
31
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7461
SELECT ( 72 ) * col1 DIV col0 col1 FROM tab2 AS cor0
----
64
79
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7461
SELECT ( 72 ) * col1 / col0 col1 FROM tab2 AS cor0
----
64
79
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7462
SELECT CAST( col1 AS SIGNED ) AS col0, 6 FROM tab2 AS cor0
----
51
6
67
6
77
6

skipif mysql # not compatible
query II rowsort label-7462
SELECT CAST ( col1 AS INTEGER ) AS col0, 6 FROM tab2 AS cor0
----
51
6
67
6
77
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7463
SELECT ALL 53 DIV 59 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7463
SELECT ALL 53 / 59 col2 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * + 21 <= NULL
----

query I rowsort
SELECT DISTINCT + 97 * col2 AS col1 FROM tab0
----
4559
9603
970

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7466
SELECT ALL - col2 AS col0, CAST( + col1 AS SIGNED ) FROM tab2
----
-23
51
-40
77
-58
67

skipif mysql # not compatible
query II rowsort label-7466
SELECT ALL - col2 AS col0, CAST ( + col1 AS INTEGER ) FROM tab2
----
-23
51
-40
77
-58
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7467
SELECT - - CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT - - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7468
SELECT DISTINCT - col0, CAST( NULL AS SIGNED ) / - + col2 AS col2 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-7468
SELECT DISTINCT - col0, CAST ( NULL AS INTEGER ) / - + col2 AS col2 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

query II rowsort
SELECT + - col2 * + 77 * + col2 + - 29 + col2 * - col1 * + - col0 + + 8 AS col1, + 99 * - col2 FROM tab2 AS cor0
----
13204
-2277
32401
-5742
73899
-3960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7470
SELECT - + col1 * + col2 col0 FROM tab2 AS cor0 WHERE NULL IN ( - 30 * - 7 * - + col0, CAST( - - ( + col2 ) AS SIGNED ) + - col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7470
SELECT - + col1 * + col2 col0 FROM tab2 AS cor0 WHERE NULL IN ( - 30 * - 7 * - + col0, CAST ( - - ( + col2 ) AS INTEGER ) + - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE - 12 < - col2
----

query I rowsort
SELECT + col2 * - + col0 + + - col0 * 76 * 47 + 63 + - 59 FROM tab0 WHERE col1 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT DISTINCT - ( - + COUNT( * ) ) + + 6 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
15

skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT - ( - + COUNT ( * ) ) + + 6 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7474
SELECT ALL SUM( + 69 ) - - 36 * - ( + + 16 ) DIV + 2 + - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL SUM ( + 69 ) - - 36 * - ( + + 16 ) / + 2 + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT - 31 + + col1 AS col1 FROM tab0 AS cor0
----
-10
-30
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT ALL + - 12 + COUNT( * ) * ( + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL + - 12 + COUNT ( * ) * ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT + + 6 + - MIN( ALL - 73 ) FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-7477
SELECT + + 6 + - MIN ( ALL - 73 ) FROM tab2 AS cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 + - ( + - 40 ) * - col1 col0 FROM tab1 AS cor0
----
-1744
-368
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col2 FROM tab0 WHERE 93 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 * + + col1 col2 FROM tab2 WHERE NOT - + col0 + col2 = col2
----
1479
1943
2233

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT + SUM( ALL + ( + + col1 ) ) * + 56 * + COUNT( ALL - col1 ) + + 16 FROM tab2
----
32776

skipif mysql # not compatible
query I rowsort label-7481
SELECT + SUM ( ALL + ( + + col1 ) ) * + 56 * + COUNT ( ALL - col1 ) + + 16 FROM tab2
----
32776

query III rowsort
SELECT * FROM tab2 WHERE + - col2 BETWEEN + 7 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - - col1 col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL + col2 + - - 77 AS col1 FROM tab0 WHERE NOT - 84 IS NULL
----
124
176
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT ALL - - col1 * - + col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7487
SELECT DISTINCT - COUNT( * ) DIV - 31 AS col1 FROM tab1 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT - COUNT ( * ) / - 31 AS col1 FROM tab1 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - col2 * + col0 + col1 AS col0 FROM tab0 AS cor0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query II rowsort label-7489
SELECT - ( 51 ) AS col1, COUNT( col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-51
3

skipif mysql # not compatible
query II rowsort label-7489
SELECT - ( 51 ) AS col1, COUNT ( col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-51
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT SUM( ALL 0 ) * - 1 + + 8 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7490
SELECT SUM ( ALL 0 ) * - 1 + + 8 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT ALL + - col2 * - col0, - 89 + + + col1 FROM tab0 WHERE NOT - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL - MAX( DISTINCT + 95 ) AS col0 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL - MAX ( DISTINCT + 95 ) AS col0 FROM tab0
----
-95

query I rowsort
SELECT ALL 62 * - ( + - col2 ) AS col2 FROM tab1
----
3658
4216
5952

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7494
SELECT DISTINCT - ( - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT - ( - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7495
SELECT ALL + MAX( - ( + + CAST( NULL AS DECIMAL ) ) ) * - MIN( DISTINCT - col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL + MAX ( - ( + + CAST ( NULL AS REAL ) ) ) * - MIN ( DISTINCT - col1 ) FROM tab1
----
NULL

query I rowsort
SELECT ( - - 43 ) * col2 FROM tab0
----
2021
4257
430

onlyif mysql # DIV for integer division: 
query I rowsort label-7497
SELECT ALL + - 31 DIV col0 FROM tab0 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL + - 31 / col0 FROM tab0 cor0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT - COUNT( * ) * - MIN( col2 ) AS col2 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7498
SELECT - COUNT ( * ) * - MIN ( col2 ) AS col2 FROM tab0 AS cor0
----
30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND ( NOT + col0 IS NULL )
----

query I rowsort
SELECT ALL + + 42 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT DISTINCT + 41 + - col2 AS col0 FROM tab2
----
-17
1
18

query I rowsort
SELECT - col2 * - - col1 * + 40 + + 78 AS col0 FROM tab1
----
-11722
-127762
-53682

query I rowsort
SELECT 94 + col0 FROM tab0
----
109
181
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7504
SELECT col0 + - 22 * - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7504
SELECT col0 + - 22 * - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 75 + - ( + 27 ) FROM tab1 AS cor0
----
48
48
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7506
SELECT ALL + + CAST( NULL AS SIGNED ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL + + CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7507
SELECT DISTINCT + - SUM( + col2 ) + - COUNT( * ) AS col1, - COUNT( * ) FROM tab1 AS cor0
----
-226
-3

skipif mysql # not compatible
query II rowsort label-7507
SELECT DISTINCT + - SUM ( + col2 ) + - COUNT ( * ) AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
-226
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7508
SELECT ALL - col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-7508
SELECT ALL - col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT ALL col1 * - 95 - + col1 AS col0 FROM tab1
----
-1344
-4512
-480

query I rowsort
SELECT - 50 - 87 + - col0 AS col0 FROM tab2
----
-183
-201
-212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7511
SELECT CAST( col2 AS SIGNED ) - - 1 AS col2 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-7511
SELECT CAST ( col2 AS INTEGER ) - - 1 AS col2 FROM tab0
----
100
11
48

query I rowsort
SELECT - ( + ( - ( + 41 ) ) ) FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT col1 * - 41 * col0 AS col1 FROM tab0 AS cor0
----
-3977
-49815
-74907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 19 col2 FROM tab1 cor0
----
19
19
19

query I rowsort
SELECT ALL 78 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT 54 * + - col0 FROM tab0
----
-4698
-5238
-810

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( - ( col2 ) ) IN ( - - col0 * ( - col0 ) + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( col2 ) * + col2 + + - 89 AS col0 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT - + 39 AS col0 FROM tab2 cor0
----
-39
-39
-39

query I rowsort
SELECT ALL col0 * col0 + 49 AS col1 FROM tab1 AS cor0
----
2650
7274
8330

query II rowsort
SELECT ALL - col0, 8 AS col2 FROM tab0 AS cor0
----
-15
8
-87
8
-97
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT - MIN( ALL - col0 ) col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7522
SELECT - MIN ( ALL - col0 ) col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT 89 * 31 + col0 + col0 FROM tab1 AS cor0
----
2861
2929
2941

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * 34 <> 79
----

query II rowsort
SELECT DISTINCT col0 + + 23, + 22 AS col1 FROM tab2
----
69
22
87
22
98
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT DISTINCT - 41 * COUNT( * ) AS col0 FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT - 41 * COUNT ( * ) AS col0 FROM tab2
----
-123

query I rowsort
SELECT DISTINCT - 79 AS col2 FROM tab1 WHERE ( NOT - col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT + 40 + + 98 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
334

skipif mysql # not compatible
query I rowsort label-7528
SELECT + 40 + + 98 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
334

query II rowsort
SELECT col0 AS col0, - col1 + 94 AS col0 FROM tab2 AS cor0
----
46
43
64
17
75
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, 94 col0 FROM tab1 cor0
----
-51
94
-85
94
-91
94

query II rowsort
SELECT ALL + col1 AS col2, col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT ALL + 25 * 85 * - COUNT( * ) FROM tab1
----
-6375

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL + 25 * 85 * - COUNT ( * ) FROM tab1
----
-6375

query I rowsort
SELECT - 49 AS col0 FROM tab0 WHERE + 82 <= + col1 + + 9
----
-49

query I rowsort
SELECT DISTINCT - col0 * - + 31 FROM tab0
----
2697
3007
465

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT + - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7535
SELECT + - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7536
SELECT col1 - col2 DIV + - col1 FROM tab1
----
16
20
48

skipif mysql # not compatible
query I rowsort label-7536
SELECT col1 - col2 / + - col1 FROM tab1
----
16
20
48

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - - col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT - 3 * - 87 * - COUNT( * ) + + 61 + - 29 * - 97 col2 FROM tab1 AS cor0
----
2091

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7538
SELECT - 3 * - 87 * - COUNT ( * ) + + 61 + - 29 * - 97 col2 FROM tab1 AS cor0
----
2091

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7539
SELECT + - col0 / - ( + - col2 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT + - col0 / - ( + - col2 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + 48 AS col2 FROM tab2 AS cor0
----
-19
-29
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - col1 col1 FROM tab2 AS cor0
----
117
125
74

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 - + + col2 * + col0 < NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE col1 = ( - col0 )
----

query I rowsort
SELECT DISTINCT - col0 - - col0 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL - ( - col0 ) - + + col1 FROM tab0
----
-66
66
96

query III rowsort
SELECT * FROM tab0 WHERE - 72 * col0 * + 41 IN ( + + 27, - 90, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT DISTINCT + COUNT( DISTINCT - + 47 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT + COUNT ( DISTINCT - + 47 ) AS col2 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + 34 + - col0 * + - col1 * col0 FROM tab1 WHERE ( + 32 + - 29 ) <= col0
----
51
36448
85
36159
91
389241

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT ALL 32 - + COUNT( * ) AS col0 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL 32 - + COUNT ( * ) AS col0 FROM tab0
----
29

query I rowsort
SELECT ALL 46 * - - col1 FROM tab2
----
2346
3082
3542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - + 0 * 8 col0, col2 col1 FROM tab1
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT + COUNT( ALL + + ( + - col2 ) ) * + COUNT( * ) + 39 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-7552
SELECT + COUNT ( ALL + + ( + - col2 ) ) * + COUNT ( * ) + 39 FROM tab0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7553
SELECT + MIN( DISTINCT + ( + CAST( - col2 AS SIGNED ) ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7553
SELECT + MIN ( DISTINCT + ( + CAST ( - col2 AS INTEGER ) ) ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL + 47 FROM tab0 AS cor0 WHERE 1 * - + 83 >= ( - 32 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 67 - 19 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 col2 FROM tab2 AS cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7557
SELECT - CAST( NULL AS SIGNED ) * + 9 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7557
SELECT - CAST ( NULL AS INTEGER ) * + 9 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 37 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-7559
SELECT - + col1 DIV + + 86 * col2 + - col0, + 82 + 5 AS col0 FROM tab0 AS cor0
----
-15
87
-87
87
-97
87

skipif mysql # not compatible
query II rowsort label-7559
SELECT - + col1 / + + 86 * col2 + - col0, + 82 + 5 AS col0 FROM tab0 AS cor0
----
-15
87
-87
87
-97
87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN - + 27 * - - col1 AND NULL
----

query II rowsort
SELECT DISTINCT - col0, - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 18 * col2 + + col2 * + - ( col0 ) FROM tab0 AS cor0
----
-690
-7821
141

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 87 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( - - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT ( - col1 ) AS col0, col1 AS col0 FROM tab1 cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7566
SELECT DISTINCT - 68 * - 27, + 99 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
1836
96

skipif mysql # not compatible
query II rowsort label-7566
SELECT DISTINCT - 68 * - 27, + 99 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
1836
96

query I rowsort
SELECT DISTINCT + 38 FROM tab0 AS cor0 WHERE NOT - 52 * - ( + - 25 ) IS NOT NULL
----

query II rowsort
SELECT ALL + - 88 * - - 71 AS col2, + col0 + + ( - 69 ) + - col0 + + col0 FROM tab2 AS cor0
----
-6248
-23
-6248
-5
-6248
6

query I rowsort
SELECT DISTINCT + col1 * + + 34 AS col0 FROM tab2
----
1734
2278
2618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT col1 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7570
SELECT col1 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT ALL 23 * COUNT( * ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL 23 * COUNT ( * ) FROM tab2
----
69

query II rowsort
SELECT col2 AS col2, - col1 + - col0 + col0 + + ( - col2 ) FROM tab2
----
23
-74
40
-117
58
-125

query III rowsort
SELECT * FROM tab2 WHERE col0 * + 49 + - - ( - col2 ) <= - col1 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7574
SELECT 23 DIV col1 AS col2 FROM tab0
----
0
1
23

skipif mysql # not compatible
query I rowsort label-7574
SELECT 23 / col1 AS col2 FROM tab0
----
0
1
23

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - 42 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7576
SELECT - CAST( NULL AS SIGNED ) / col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7576
SELECT - CAST ( NULL AS INTEGER ) / col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7577
SELECT DISTINCT COUNT( * ) * MAX( + col0 ) AS col0, - 98 AS col2 FROM tab0
----
291
-98

skipif mysql # not compatible
query II rowsort label-7577
SELECT DISTINCT COUNT ( * ) * MAX ( + col0 ) AS col0, - 98 AS col2 FROM tab0
----
291
-98

query III rowsort
SELECT * FROM tab1 WHERE - 9 + - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 22 col2 FROM tab1
----
118
81
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT 71 * - 70 * - COUNT( * ) FROM tab1
----
14910

skipif mysql # not compatible
query I rowsort label-7580
SELECT 71 * - 70 * - COUNT ( * ) FROM tab1
----
14910

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT ALL + COUNT( * ) + 3 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL + COUNT ( * ) + 3 FROM tab1
----
6

query I rowsort
SELECT - ( + 56 ) AS col2 FROM tab1 AS cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT + col0 - - 24 FROM tab0
----
111
121
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7584
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) + col0 AS col1 FROM tab1
----
NULL

query II rowsort
SELECT ALL col1, - 49 AS col2 FROM tab2 AS cor0
----
51
-49
67
-49
77
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7586
SELECT ALL - - 29 + - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL - - 29 + - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 87 * - - 21 - + + 53 FROM tab0 AS cor0
----
-1880
-1880
-1880

onlyif mysql # DIV for integer division: 
query I rowsort label-7588
SELECT - col0 DIV + 22 FROM tab0 AS cor0
----
-3
-4
0

skipif mysql # not compatible
query I rowsort label-7588
SELECT - col0 / + 22 FROM tab0 AS cor0
----
-3
-4
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7589
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + + col1 >= + ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-7589
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + col1 >= + ( + col2 )
----

query II rowsort
SELECT + col0 AS col2, col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT ALL + col1 * 9 AS col2 FROM tab1
----
126
423
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 76 * - col0, col0 + - 7 col1 FROM tab0
----
-1140
8
-6612
80
-7372
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7593
SELECT DISTINCT + 47 DIV - + 70 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT + 47 / - + 70 FROM tab0
----
0

query II rowsort
SELECT col1 * - + col0 AS col2, - 29 FROM tab1
----
-425
-29
-4277
-29
-714
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-7595
SELECT - ( - col1 ) DIV ( 9 ) + col1 AS col0 FROM tab1 AS cor0
----
15
5
52

skipif mysql # not compatible
query I rowsort label-7595
SELECT - ( - col1 ) / ( 9 ) + col1 AS col0 FROM tab1 AS cor0
----
15
5
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7596
SELECT DISTINCT CAST( ( + - col0 ) AS SIGNED ) col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7596
SELECT DISTINCT CAST ( ( + - col0 ) AS INTEGER ) col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col1, + col2 AS col1 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7598
SELECT + 94 col1 FROM tab1 WHERE NOT ( + - CAST( - col1 AS SIGNED ) ) IS NULL
----
94
94
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7598
SELECT + 94 col1 FROM tab1 WHERE NOT ( + - CAST ( - col1 AS INTEGER ) ) IS NULL
----
94
94
94

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + + 9 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, 24 AS col2 FROM tab1 AS cor0
----
59
24
68
24
96
24

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( 26 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * + col2 + - col1 * - - col0 AS col0 FROM tab1 AS cor0
----
1911
4182
4590

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT DISTINCT + COUNT( + col2 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7603
SELECT DISTINCT + COUNT ( + col2 ) col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT - 21 + - + col2 * + col2, - col1 * + 38 - + 94 + + - col1 AS col1 FROM tab0 AS cor0
----
-121
-913
-2230
-3253
-9822
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT DISTINCT MIN( ALL + + col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7605
SELECT DISTINCT MIN ( ALL + + col2 ) AS col1 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7606
SELECT col1 * + + ( + - CAST( + col1 AS SIGNED ) ) + 58 AS col2 FROM tab1
----
-138
-2151
33

skipif mysql # not compatible
query I rowsort label-7606
SELECT col1 * + + ( + - CAST ( + col1 AS INTEGER ) ) + 58 AS col2 FROM tab1
----
-138
-2151
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT DISTINCT - ( + MIN( ALL - 12 ) ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT - ( + MIN ( ALL - 12 ) ) FROM tab1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7608
SELECT ALL + ( + + MAX( + CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL + ( + + MAX ( + CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7609
SELECT + 35 * 46 DIV 61 + col1, + col2 AS col2 FROM tab1
----
31
59
40
96
73
68

skipif mysql # not compatible
query II rowsort label-7609
SELECT + 35 * 46 / 61 + col1, + col2 AS col2 FROM tab1
----
31
59
40
96
73
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7610
SELECT DISTINCT col0 DIV col1 + - col0 + + + col1 DIV - col1 FROM tab0
----
-1
-16
-84

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT col0 / col1 + - col0 + + + col1 / - col1 FROM tab0
----
-1
-16
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-7611
SELECT ALL ( + COUNT( * ) ) AS col0, + 33 * 12 AS col2 FROM tab2 AS cor0
----
3
396

skipif mysql # not compatible
query II rowsort label-7611
SELECT ALL ( + COUNT ( * ) ) AS col0, + 33 * 12 AS col2 FROM tab2 AS cor0
----
3
396

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7612
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 39 AND col2 * + + col2 / 22 * col1 + - CAST( + ( 52 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7612
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 39 AND col2 * + + col2 / 22 * col1 + - CAST ( + ( 52 ) AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 IN ( - col0, col1, + + col2 * ( + 17 ), - col1 - - - col1, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - - col2 col1 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT DISTINCT + col1 + - - 82 FROM tab1
----
129
87
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7616
SELECT + col0 * ( - col1 ) FROM tab1 WHERE - ( + + CAST( - col1 AS SIGNED ) ) >= col0
----

skipif mysql # not compatible
query I rowsort label-7616
SELECT + col0 * ( - col1 ) FROM tab1 WHERE - ( + + CAST ( - col1 AS INTEGER ) ) >= col0
----

query I rowsort
SELECT + 47 + + - 20 + + + col1 FROM tab1 cor0
----
32
41
74

query I rowsort
SELECT + + col0 + - col0 * 64 * - 28 AS col0 FROM tab2 AS cor0
----
114752
134475
82478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 + - col2 col0 FROM tab1 AS cor0
----
-41
-50
-78

query I rowsort
SELECT col2 * + + col0 * + col0 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT DISTINCT + col1 * - + col2 * + col0 - - - col1 FROM tab2 AS cor0
----
-197197
-291517
-54009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, 76 col1 FROM tab0 AS cor0
----
15
76
87
76
97
76

query I rowsort
SELECT DISTINCT - + col0 * - 64 FROM tab0 AS cor0
----
5568
6208
960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7624
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7625
SELECT ALL + col1 AS col1, - 79 / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-7625
SELECT ALL + col1 AS col1, - 79 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT ALL - col2 * + + 62 AS col1 FROM tab0
----
-2914
-6138
-620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7627
SELECT ALL + ( + - CAST( - col1 AS SIGNED ) ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL + ( + - CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 28 = + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 AS col1, 45 AS col2 FROM tab0
----
-15
45
-87
45
-97
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, ( - col1 ) FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT DISTINCT 73 * col2 AS col1 FROM tab0 AS cor0
----
3431
7227
730

query I rowsort
SELECT DISTINCT - - col0 * + + col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7633
SELECT ALL + 13 DIV + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL + 13 / + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL COUNT( ALL + ( col1 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL COUNT ( ALL + ( col1 ) ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT - MAX( DISTINCT + + 17 ) AS col1 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-7635
SELECT - MAX ( DISTINCT + + 17 ) AS col1 FROM tab2
----
-17

query II rowsort
SELECT DISTINCT ( 28 ), col0 FROM tab2
----
28
46
28
64
28
75

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 WHERE + col2 * - 67 * + 48 > + 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7638
SELECT + ( - CAST( NULL AS SIGNED ) ) + - + 47 + 95 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7638
SELECT + ( - CAST ( NULL AS INTEGER ) ) + - + 47 + 95 col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 = - 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 14 + + col1 + - + col0 AS col1 FROM tab2 AS cor0
----
19
27
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7641
SELECT DISTINCT CAST( - + 11 AS SIGNED ) AS col1, COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
-11
6

skipif mysql # not compatible
query II rowsort label-7641
SELECT DISTINCT CAST ( - + 11 AS INTEGER ) AS col1, COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
-11
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * col1 >= - col2 + + col1 * - col2
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7643
SELECT DISTINCT - ( COUNT( * ) ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT - ( COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 99 / + + col2 * col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7645
SELECT DISTINCT 5 DIV + + SUM( DISTINCT - 86 ) DIV - - 3 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT 5 / + + SUM ( DISTINCT - 86 ) / - - 3 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col0 + col2 + + col0 * col2 + 37 FROM tab0 AS cor0
----
774
830
9642

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - 49 ) FROM tab0
----
-49

query II rowsort
SELECT + col2, col0 * + + 80 AS col0 FROM tab1
----
59
6800
68
7280
96
4080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7650
SELECT 30 DIV + COUNT( * ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7650
SELECT 30 / + COUNT ( * ) AS col1 FROM tab0
----
10

query III rowsort
SELECT * FROM tab1 WHERE col1 = + - col1
----

query I rowsort
SELECT col0 - 86 FROM tab0
----
-71
1
11

query I rowsort
SELECT DISTINCT + 78 + col1 AS col1 FROM tab0 AS cor0
----
159
79
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7654
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE col1 / CAST( NULL AS DECIMAL ) IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE col1 / CAST ( NULL AS REAL ) IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT DISTINCT + + MAX( DISTINCT - 63 ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT + + MAX ( DISTINCT - 63 ) FROM tab0 AS cor0
----
-63

query I rowsort
SELECT + ( + col2 ) * 95 FROM tab2
----
2185
3800
5510

onlyif mysql # DIV for integer division: 
query I rowsort label-7657
SELECT ALL 5 DIV - 71 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL 5 / - 71 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7658
SELECT 58 DIV col0 + - CAST( - col2 AS SIGNED ) AS col1 FROM tab1
----
59
68
97

skipif mysql # not compatible
query I rowsort label-7658
SELECT 58 / col0 + - CAST ( - col2 AS INTEGER ) AS col1 FROM tab1
----
59
68
97

query I rowsort
SELECT col2 + + 59 AS col2 FROM tab2
----
117
82
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7660
SELECT DISTINCT - col2 * + ( + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT ( - col2 / + col1 + col2 * 28 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT - col2 * + ( + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT ( - col2 / + col1 + col2 * 28 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 WHERE col0 * 86 <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - 73 ) * col0 + col2 IS NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT ( - ( + 95 ) ) >= - col0 * + 75
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7664
SELECT 47 DIV 11 + + col2 col2 FROM tab2
----
27
44
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7664
SELECT 47 / 11 + + col2 col2 FROM tab2
----
27
44
62

query III rowsort
SELECT ALL * FROM tab2 WHERE + 38 IN ( + col1 )
----

query I rowsort
SELECT ALL 1 * 50 + + col1 AS col0 FROM tab1 WHERE NULL IN ( col2 + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7667
SELECT ( 82 ) + + col0 DIV - col2 AS col1 FROM tab2
----
80
81
81

skipif mysql # not compatible
query I rowsort label-7667
SELECT ( 82 ) + + col0 / - col2 AS col1 FROM tab2
----
80
81
81

query I rowsort
SELECT ( 82 ) FROM tab1 WHERE NOT NULL NOT BETWEEN - 83 + - 70 AND ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 63 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 52 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col2 + - col0 )
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE ( 88 ) > 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + 32 AS col0 FROM tab2
----
109
83
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT COUNT( * ) + - 33 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-7674
SELECT COUNT ( * ) + - 33 FROM tab1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT - 6 + - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7675
SELECT - 6 + - COUNT ( * ) FROM tab0
----
-9

query III rowsort
SELECT * FROM tab1 WHERE col1 / - col2 IS NULL
----

query I rowsort
SELECT - 22 FROM tab2 WHERE NOT col1 NOT IN ( - col1 )
----

query I rowsort
SELECT ALL ( col1 ) FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - 21 + + 83 FROM tab1 AS cor0
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 94 ) * - col1 col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT col1 * - 49 AS col0 FROM tab1 AS cor0
----
-2303
-245
-686

onlyif mysql # DIV for integer division: 
query I rowsort label-7682
SELECT - ( col2 ) DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7682
SELECT - ( col2 ) / col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7683
SELECT + col2 * - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( - ( + col2 ) + CAST( NULL AS SIGNED ) * col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7683
SELECT + col2 * - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( - ( + col2 ) + CAST ( NULL AS INTEGER ) * col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 76 - - col2 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT COUNT( * ) * ( MIN( 19 ) ) AS col0 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-7685
SELECT COUNT ( * ) * ( MIN ( 19 ) ) AS col0 FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL + COUNT( DISTINCT + col1 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7686
SELECT ALL + COUNT ( DISTINCT + col1 ) col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + col2 * + 65 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 77 * col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + 87 FROM tab0 cor0
----
6
66
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT - MIN( DISTINCT + ( - 73 ) ) FROM tab0 cor0
----
73

skipif mysql # not compatible
query I rowsort label-7690
SELECT - MIN ( DISTINCT + ( - 73 ) ) FROM tab0 cor0
----
73

query I rowsort
SELECT ALL + col0 * 97 + 75 AS col2 FROM tab2 AS cor0
----
4537
6283
7350

query I rowsort
SELECT ALL + 2 + - col0 AS col0 FROM tab2 AS cor0 WHERE ( 96 ) IN ( + col0 )
----

query I rowsort
SELECT ALL + 85 + - col1 * + col0 FROM tab0 cor0 WHERE + 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT + 96 + COUNT( * ) col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7694
SELECT + 96 + COUNT ( * ) col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL - col1 + + 22 * - 69 AS col2 FROM tab2 AS cor0
----
-1569
-1585
-1595

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7696
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7696
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN CAST ( NULL AS REAL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col0 / col0 + + col2 * - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7697
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col0 / col0 + + col2 * - col1 IS NOT NULL
----
-3

query I rowsort
SELECT ALL 66 + col2 * 56 FROM tab2 cor0
----
1354
2306
3314

query I rowsort
SELECT col1 + + 7 AS col2 FROM tab0 AS cor0
----
28
8
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 0 NOT IN ( col2 * + ( col2 ) + - 81 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * 62 + - col2 * - 66 FROM tab1 AS cor0
----
4204
7204
7402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 7 + 17 col2 FROM tab2 cor0
----
-340
-452
-522

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col0 + 51 ) = col1 - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7704
SELECT - 92 DIV + 95 + + col2 * col1 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-7704
SELECT - 92 / + 95 + + col2 * col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT 2 + col1 FROM tab0
----
23
3
83

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 0 NOT BETWEEN - ( col0 ) + - 95 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col0 AND + 3 + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7708
SELECT DISTINCT + col2 * 19 DIV - 74 AS col0 FROM tab0
----
-12
-2
-25

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT + col2 * 19 / - 74 AS col0 FROM tab0
----
-12
-2
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 col2 FROM tab0 WHERE NOT - 36 / col0 + - col2 NOT BETWEEN ( + col2 ) AND 53
----

query I rowsort
SELECT col1 FROM tab2 WHERE ( col2 ) = + col1
----

query I rowsort
SELECT ALL + + col2 + - + col0 * + 79 FROM tab1 AS cor0
----
-3933
-6656
-7121

query I rowsort
SELECT DISTINCT - col0 - + col0 AS col0 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT + ( + col1 ) * col2 - + col1 FROM tab1 AS cor0
----
1330
290
3149

query I rowsort
SELECT 18 * + - col2 * + col0 - + col1 AS col2 FROM tab2 AS cor0
----
-19095
-46157
-78367

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7715
SELECT ALL - CAST( NULL AS SIGNED ) + 22 + 30 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL - CAST ( NULL AS INTEGER ) + 22 + 30 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = col2 + - ( 39 )
----

query II rowsort
SELECT col0 AS col2, col1 + + col0 AS col0 FROM tab2
----
46
97
64
141
75
142

query II rowsort
SELECT + 59 AS col1, col1 + + 39 FROM tab0
----
59
120
59
40
59
60

query II rowsort
SELECT ALL col0, 67 + + 65 + col1 * col1 FROM tab2
----
46
2733
64
6061
75
4621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, - 31 * + col0 AS col2 FROM tab2 AS cor0
----
-46
-1426
-64
-1984
-75
-2325

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) BETWEEN - col2 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2, + 30 FROM tab1 AS cor0
----
59
30
68
30
96
30

query I rowsort
SELECT 68 AS col1 FROM tab0 AS cor0 WHERE NOT + 96 IS NULL
----
68
68
68

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT 20 IS NULL
----
46
64
75

query I rowsort
SELECT ALL ( + col1 ) AS col2 FROM tab2 cor0 WHERE ( 70 / - col1 ) <> ( - col2 )
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + ( - col1 ) * - col2 col2 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT + col2 <= + - col0 + 57
----
-3

skipif mysql # not compatible
query I rowsort label-7727
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col2 <= + - col0 + 57
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT DISTINCT + 44 * - COUNT( * ) FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT + 44 * - COUNT ( * ) FROM tab1
----
-132

query I rowsort
SELECT DISTINCT - 41 / 23 AS col1 FROM tab2 WHERE ( col0 + - ( 59 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7730
SELECT ALL ( - + 11 ) AS col2, COUNT( * ) FROM tab0
----
-11
3

skipif mysql # not compatible
query II rowsort label-7730
SELECT ALL ( - + 11 ) AS col2, COUNT ( * ) FROM tab0
----
-11
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 93 BETWEEN ( NULL ) AND - 14
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7732
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + ( - - col0 ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7732
SELECT DISTINCT + CAST ( NULL AS REAL ) * + ( - - col0 ) col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT DISTINCT MAX( ALL - col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT MAX ( ALL - col0 ) AS col2 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT ALL - COUNT( * ) + + + 75 AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL - COUNT ( * ) + + + 75 AS col0 FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7735
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 + + col2 ) IS NOT NULL
----

query I rowsort
SELECT + + 43 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL col1 + + + 65 AS col1 FROM tab2 AS cor0
----
116
132
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7739
SELECT DISTINCT + 58 * - + col0 * CAST( NULL AS SIGNED ) + - - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT + 58 * - + col0 * CAST ( NULL AS INTEGER ) + - - col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col2 + - + col1 * + col2 < ( + 44 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7741
SELECT DISTINCT + CAST( + - 34 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT + CAST ( + - 34 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + + - col2 AS col2 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT ALL - COUNT( * ) * 73 FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL - COUNT ( * ) * 73 FROM tab2 AS cor0
----
-219

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT ALL 40 - + + ( - col1 ) FROM tab2 AS cor0
----
107
117
91

query I rowsort
SELECT - ( ( + - col1 ) ) AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT 45 * - + col1 AS col1 FROM tab1 AS cor0
----
-2115
-225
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT DISTINCT - MAX( ALL - col1 ) - - COUNT( * ) + - MAX( ALL - - 59 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT - MAX ( ALL - col1 ) - - COUNT ( * ) + - MAX ( ALL - - 59 ) AS col2 FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col1 FROM tab0
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 - col0 col0 FROM tab0
----
-11
-83
-93

query I rowsort
SELECT 33 - + - 5 + col1 - col2 * + ( - 84 ) AS col2 FROM tab0
----
4067
8355
899

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT DISTINCT COUNT( * ) * + 47 AS col2 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT COUNT ( * ) * + 47 AS col2 FROM tab2
----
141

query I rowsort
SELECT - 50 + col1 * col2 FROM tab0
----
160
3757
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7754
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7754
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT 82 * - col0 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT IN ( - col0 + - - col0 )
----

query I rowsort
SELECT DISTINCT - col1 + ( + ( 54 ) ) FROM tab0 WHERE ( NULL ) > 75 * - + 95
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 col1 FROM tab0 cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT + 14 * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 82 * - 78 * col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7759
SELECT + 14 * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 82 * - 78 * col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7760
SELECT - COUNT( * ) DIV - 40 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7760
SELECT - COUNT ( * ) / - 40 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + ( 13 ) * - col1 FROM tab0 AS cor0
----
-1053
-13
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7762
SELECT + col2 * - col1 + - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7762
SELECT + col2 * - col1 + - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7763
SELECT COUNT( - + 84 ) DIV COUNT( * ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7763
SELECT COUNT ( - + 84 ) / COUNT ( * ) FROM tab2 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col0 FROM tab1 cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT SUM( DISTINCT - 80 ) AS col1 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-7765
SELECT SUM ( DISTINCT - 80 ) AS col1 FROM tab0 AS cor0
----
-80

query II rowsort
SELECT + 93, 96 AS col0 FROM tab0
----
93
96
93
96
93
96

query II rowsort
SELECT col2 AS col0, - 33 * - col0 AS col1 FROM tab0
----
10
2871
47
495
99
3201

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7768
SELECT CAST( NULL AS DECIMAL ), col2 col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7768
SELECT CAST ( NULL AS REAL ), col2 col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT DISTINCT - col2 * + col0 + + 35 FROM tab0
----
-670
-835
-9568

query III rowsort
SELECT * FROM tab1 WHERE NOT + 41 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT DISTINCT col1 DIV + col1 + - - col1 AS col0 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT col1 / + col1 + - - col1 AS col0 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT DISTINCT - col2 * + - col2 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT ALL + col2 * - 25 FROM tab0
----
-1175
-2475
-250

query I rowsort
SELECT DISTINCT + - 15 * - 31 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
465

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 - - col1 > NULL
----

query I rowsort
SELECT ALL - 46 + + col1 AS col1 FROM tab2 AS cor0
----
21
31
5

query I rowsort
SELECT - - 77 + col0 AS col1 FROM tab0 AS cor0
----
164
174
92

query I rowsort
SELECT ALL + col2 - + - 32 AS col0 FROM tab0 AS cor0
----
131
42
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7779
SELECT DISTINCT MIN( DISTINCT - col2 ) DIV 52 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT MIN ( DISTINCT - col2 ) / 52 AS col0 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 - - col0 - + + col1 * + col1 * - col0 * + 17 col1 FROM tab0 cor0
----
1672989
1745
652305

onlyif mysql # DIV for integer division: 
query I rowsort label-7781
SELECT DISTINCT + - 58 - + ( col1 ) * + col1 + - col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
-2659
-4547
-5987

skipif mysql # not compatible
query I rowsort label-7781
SELECT DISTINCT + - 58 - + ( col1 ) * + col1 + - col2 / + col0 AS col1 FROM tab2 AS cor0
----
-2659
-4547
-5987

query I rowsort
SELECT + - 3 + + col1 AS col1 FROM tab0 AS cor0
----
-2
18
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + col2 col0 FROM tab1
----
-21
-54
-82

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - - col0 + - + col2 + + - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7786
SELECT ALL + 94 + + ( + 34 ), - COUNT( ALL + - col2 ) * + 31 col2 FROM tab1
----
128
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7786
SELECT ALL + 94 + + ( + 34 ), - COUNT ( ALL + - col2 ) * + 31 col2 FROM tab1
----
128
-93

query I rowsort
SELECT DISTINCT - 68 / - + 24 + - + AVG ( ALL + 79 ) AS col2 FROM tab2 WHERE NOT + 9 NOT IN ( - + col0, col1 + - 14 )
----
NULL

query I rowsort
SELECT col0 * - - col0 * + - col2 AS col1 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # DIV for integer division: 
query I rowsort label-7789
SELECT col0 DIV - - 58 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7789
SELECT col0 / - - 58 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7790
SELECT col1, CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-7790
SELECT col1, CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7791
SELECT ALL col1 AS col1, - CAST( NULL AS SIGNED ) * 4 AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-7791
SELECT ALL col1 AS col1, - CAST ( NULL AS INTEGER ) * 4 AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT DISTINCT - SUM( ALL - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT - SUM ( ALL - col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-7793
SELECT - - SUM( 57 ) * - SUM( ALL - - col0 ) AS col2, 88 * - + COUNT( * ) FROM tab2 AS cor0
----
-31635
-264

skipif mysql # not compatible
query II rowsort label-7793
SELECT - - SUM ( 57 ) * - SUM ( ALL - - col0 ) AS col2, 88 * - + COUNT ( * ) FROM tab2 AS cor0
----
-31635
-264

query I rowsort
SELECT ALL + col1 * col2 + - col1 + + col1 * + + ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1526
315
5358

query I rowsort
SELECT ALL + ( + 20 ) AS col1 FROM tab1 AS cor0 WHERE - col2 NOT IN ( 26, - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7796
SELECT ALL + col2 DIV - - col0 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL + col2 / - - col0 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 9 * 84 + + 89 AS col1 FROM tab2, tab0 AS cor0
----
845

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + col1 col1, - 15 FROM tab2
----
102
-15
134
-15
154
-15

query II rowsort
SELECT - 13, 56 FROM tab2 WHERE ( + + col1 * - 65 + col1 + - + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT - MIN( + + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7800
SELECT - MIN ( + + col1 ) FROM tab1 AS cor0
----
-5

query II rowsort
SELECT DISTINCT 86 AS col1, col0 - + + col2 AS col0 FROM tab1
----
86
-45
86
23
86
26

query I rowsort
SELECT - 72 + col1 AS col1 FROM tab0
----
-51
-71
9

onlyif mysql # DIV for integer division: 
query II rowsort label-7803
SELECT + ( - col1 ) DIV + 39 + 15, + col2 FROM tab2
----
14
23
14
40
14
58

skipif mysql # not compatible
query II rowsort label-7803
SELECT + ( - col1 ) / + 39 + 15, + col2 FROM tab2
----
14
23
14
40
14
58

query I rowsort
SELECT ALL + - col1 + + - col1 AS col2 FROM tab1 AS cor0
----
-10
-28
-94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 66 NOT BETWEEN NULL AND + 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 15 - col0 AS col2 FROM tab1 AS cor0
----
-100
-106
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + ( 5 ) col2 FROM tab1 AS cor0
----
101
64
73

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT 88 - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-7809
SELECT 88 - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
85

query I rowsort
SELECT col2 * - - col2 - 89 AS col0 FROM tab2
----
1511
3275
440

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7811
SELECT * FROM tab2 WHERE CAST( - col1 AS SIGNED ) / col0 + - + 58 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7811
SELECT * FROM tab2 WHERE CAST ( - col1 AS INTEGER ) / col0 + - + 58 IS NULL
----

query I rowsort
SELECT + col2 * 17 FROM tab0
----
1683
170
799

onlyif mysql # DIV for integer division: 
query I rowsort label-7813
SELECT col0 DIV - 30 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-7813
SELECT col0 / - 30 FROM tab2
----
-1
-2
-2

query I rowsort
SELECT col1 * + + 93 AS col2 FROM tab0
----
1953
7533
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT 4 DIV - col0 * + + col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7815
SELECT 4 / - col0 * + + col1 AS col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7816
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 58 + col2 = - 74 * + + CAST( - 6 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7816
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 58 + col2 = - 74 * + + CAST ( - 6 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7817
SELECT ALL + 6 DIV - 14 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL + 6 / - 14 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7818
SELECT ALL col1 DIV + col1 AS col2, - ( - - ( col1 ) ) * + col2 FROM tab2 AS cor0
----
1
-1173
1
-3080
1
-3886

skipif mysql # not compatible
query II rowsort label-7818
SELECT ALL col1 / + col1 AS col2, - ( - - ( col1 ) ) * + col2 FROM tab2 AS cor0
----
1
-1173
1
-3080
1
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 44 col2 FROM tab0 cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT + COUNT( * ) * - ( 99 ) * - 93 * + + 80 AS col0 FROM tab1 AS cor0
----
2209680

skipif mysql # not compatible
query I rowsort label-7820
SELECT + COUNT ( * ) * - ( 99 ) * - 93 * + + 80 AS col0 FROM tab1 AS cor0
----
2209680

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7821
SELECT - + CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7821
SELECT - + CAST ( NULL AS REAL ) FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT - col2, - 50 AS col2 FROM tab1
----
-59
-50
-68
-50
-96
-50

query I rowsort
SELECT DISTINCT 94 AS col0 FROM tab1 WHERE + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 26 col0, col1 FROM tab1 AS cor0
----
26
14
26
47
26
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 26 ) = - ( - col2 ) * - col0
----

query I rowsort
SELECT ALL - col1 + - col2 + col2 - + col1 - 89 * ( + 12 ) AS col1 FROM tab2 AS cor0
----
-1170
-1202
-1222

query I rowsort
SELECT + 68 * col1 FROM tab0 cor0
----
1428
5508
68

query II rowsort
SELECT - + 56 AS col2, - col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT + - COUNT( ALL - + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7829
SELECT + - COUNT ( ALL - + col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7830
SELECT 14 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7830
SELECT 14 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 47 + ( + - 40 ) * col0 * col0 FROM tab1
----
-103993
-288953
-331193

query II rowsort
SELECT ALL col1, + ( 54 ) + + col0 + col1 + - + 19 * - col2 FROM tab2
----
51
588
67
1298
77
955

query I rowsort
SELECT + - col2 + + col2 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT ( + col0 ) + col0 AS col0 FROM tab2
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7835
SELECT ALL + CAST( - ( - - 42 ) AS SIGNED ) AS col1 FROM tab0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL + CAST ( - ( - - 42 ) AS INTEGER ) AS col1 FROM tab0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - 0 + - col0 AS col0 FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 + + - 89 col0 FROM tab2
----
-55
-55
-55

query I rowsort
SELECT DISTINCT col2 + - 18 AS col0 FROM tab0 AS cor0
----
-8
29
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7839
SELECT - COUNT( * ) AS col1, + ( 27 ) FROM tab0 AS cor0
----
-3
27

skipif mysql # not compatible
query II rowsort label-7839
SELECT - COUNT ( * ) AS col1, + ( 27 ) FROM tab0 AS cor0
----
-3
27

query I rowsort
SELECT + + col2 * - + col1 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT - - MAX( 8 ) AS col2 FROM tab2 WHERE NULL = col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT - - MAX ( 8 ) AS col2 FROM tab2 WHERE NULL = col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT ALL - COUNT( * ) + 74 AS col1 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL - COUNT ( * ) + 74 AS col1 FROM tab2
----
71

query II rowsort
SELECT 7 + 89, + 36 * - col1 AS col0 FROM tab1 AS cor0
----
96
-1692
96
-180
96
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT ALL SUM( DISTINCT - 48 ) - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL SUM ( DISTINCT - 48 ) - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT + ( - col1 ) + 71 AS col0 FROM tab1 AS cor0
----
24
57
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND 39
----

query I rowsort
SELECT ALL - + 53 AS col0 FROM tab1 AS cor0
----
-53
-53
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7848
SELECT ALL + col2 * - + CAST( NULL AS SIGNED ) * - + 93 * + - ( + col1 ) FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL + col2 * - + CAST ( NULL AS INTEGER ) * - + 93 * + - ( + col1 ) FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * col0 <= + + 39
----

query I rowsort
SELECT ALL - 67 * - col1 FROM tab2
----
3417
4489
5159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7851
SELECT ALL + CAST( + ( + - COUNT( + 0 ) ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL + CAST ( + ( + - COUNT ( + 0 ) ) AS INTEGER ) FROM tab1
----
-3

query II rowsort
SELECT ALL col0 AS col2, - 6 AS col2 FROM tab1
----
51
-6
85
-6
91
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT - COUNT( * ) * + + 74 AS col1 FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-7853
SELECT - COUNT ( * ) * + + 74 AS col1 FROM tab1
----
-222

query II rowsort
SELECT - col1 * col1 * + col2 AS col2, + col0 AS col2 FROM tab1
----
-1475
85
-150212
91
-18816
51

query II rowsort
SELECT - 8 AS col2, col1 AS col1 FROM tab0 AS cor0
----
-8
1
-8
21
-8
81

query II rowsort
SELECT DISTINCT + col0 AS col1, - col1 * - 15 AS col2 FROM tab1 AS cor0
----
51
210
85
75
91
705

query II rowsort
SELECT + col0 AS col0, + col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7858
SELECT DISTINCT CAST( - col2 AS SIGNED ) * - 36 FROM tab0
----
1692
3564
360

skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * - 36 FROM tab0
----
1692
3564
360

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT - - COUNT( * ) FROM tab2 WHERE NOT - + 42 + col1 NOT BETWEEN + 66 + 16 + - 43 + + 25 + - - 19 * + 57 + col2 * col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7859
SELECT - - COUNT ( * ) FROM tab2 WHERE NOT - + 42 + col1 NOT BETWEEN + 66 + 16 + - 43 + + 25 + - - 19 * + 57 + col2 * col2 AND NULL
----
0

query I rowsort
SELECT ALL 40 * - col0 AS col1 FROM tab2
----
-1840
-2560
-3000

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT DISTINCT MAX( DISTINCT + col1 ) + + - 49 col0 FROM tab2
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7861
SELECT DISTINCT MAX ( DISTINCT + col1 ) + + - 49 col0 FROM tab2
----
28

query I rowsort
SELECT DISTINCT + 67 + col2 * col1 FROM tab2
----
1240
3147
3953

query I rowsort
SELECT ALL - + col2 FROM tab0 AS cor0 WHERE NOT + 71 / - 35 / + col1 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 / - 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT + - COUNT( + col1 ) + + - 71 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-7865
SELECT + - COUNT ( + col1 ) + + - 71 FROM tab2 AS cor0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7866
SELECT DISTINCT - - AVG ( 14 ) + - 63 + + 14 + + ( + + 60 ) * SUM( DISTINCT CAST( NULL AS SIGNED ) ) + - 60 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT - - AVG ( 14 ) + - 63 + + 14 + + ( + + 60 ) * SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) + - 60 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 64 + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 - - + ( + 21 ) col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) > ( col0 ) * + col2 - col2
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + col2 AS col2, + 59 / col0 * + col0 + col0 col2 FROM tab2 AS cor0 WHERE ( NOT ( - col0 * - - ( 87 ) IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT DISTINCT - COUNT( * ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7870
SELECT DISTINCT - COUNT ( * ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT ( + - COUNT( * ) ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7871
SELECT ( + - COUNT ( * ) ) col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7872
SELECT + - 81 - - col1 - + col1 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7872
SELECT + - 81 - - col1 - + col1 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7874
SELECT ALL col1 + + col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL col1 + + col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + + 75 ) AS col2 FROM tab2
----
75
75
75

query I rowsort
SELECT DISTINCT + 65 + + 70 + + 83 FROM tab2
----
218

query I rowsort
SELECT - col1 - 5 AS col1 FROM tab2
----
-56
-72
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7878
SELECT ALL - CAST( NULL AS SIGNED ) + 85 + + 66 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7878
SELECT ALL - CAST ( NULL AS INTEGER ) + 85 + + 66 col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN col1 AND + col2
----

query II rowsort
SELECT - 92 - + col0 - + col0 AS col0, 15 AS col0 FROM tab0
----
-122
15
-266
15
-286
15

query I rowsort
SELECT - ( + + col2 ) - + 55 AS col1 FROM tab1
----
-114
-123
-151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7882
SELECT ALL + COUNT( * ) DIV - COUNT( ALL col0 ) - COUNT( * ) FROM tab2 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7882
SELECT ALL + COUNT ( * ) / - COUNT ( ALL col0 ) - COUNT ( * ) FROM tab2 cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT DISTINCT - 43 - SUM( + col2 ) FROM tab1
----
-266

skipif mysql # not compatible
query I rowsort label-7883
SELECT DISTINCT - 43 - SUM ( + col2 ) FROM tab1
----
-266

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 64 + + col0 < - col1 + - 32 * + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2, - col0 AS col1 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7886
SELECT - COUNT( * ) DIV 3 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-3

skipif mysql # not compatible
query I rowsort label-7886
SELECT - COUNT ( * ) / 3 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7887
SELECT + - col2 + CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL BETWEEN + col2 AND - - col2 * + - 96
----

skipif mysql # not compatible
query I rowsort label-7887
SELECT + - col2 + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL BETWEEN + col2 AND - - col2 * + - 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT - - ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT - col0 * + - 63 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7888
SELECT - - ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT - col0 * + - 63 IS NOT NULL
----
0

query II rowsort
SELECT ALL + 11 AS col1, 47 AS col1 FROM tab0 AS cor0
----
11
47
11
47
11
47

query II rowsort
SELECT ALL - col2, col1 AS col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 81 col2, col2 FROM tab2 AS cor0
----
-81
23
-81
40
-81
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + + col2 + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT MIN( ALL + col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7893
SELECT MIN ( ALL + col2 ) AS col1 FROM tab1
----
59

query I rowsort
SELECT ALL + col2 / - col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT DISTINCT + + ( - - COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT + + ( - - COUNT ( * ) ) FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 99 * - - 81 * col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT DISTINCT - MIN( - col0 ) * - - 80 + 99 + + 56 FROM tab0 cor0 WHERE col1 * + ( 72 ) IS NOT NULL
----
7915

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT - MIN ( - col0 ) * - - 80 + 99 + + 56 FROM tab0 cor0 WHERE col1 * + ( 72 ) IS NOT NULL
----
7915

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 * - 69 NOT BETWEEN - + col0 AND + col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT DISTINCT - COUNT( * ) + 47 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
38

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT - COUNT ( * ) + 47 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
38

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col1 NOT BETWEEN - 53 + ( + - 30 ) * 79 AND NULL
----

query II rowsort
SELECT + col1 AS col0, col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT + col0 + - + 61 FROM tab1 cor0
----
-10
24
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT ALL + 37 + - COUNT( * ) col1 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7903
SELECT ALL + 37 + - COUNT ( * ) col1 FROM tab0 AS cor0
----
34

query II rowsort
SELECT col2 * col2 + - col1 * col0, + col0 AS col2 FROM tab0 AS cor0
----
-1727
87
9704
97
994
15

query II rowsort
SELECT DISTINCT - + col1 + + ( col2 ) AS col2, col1 AS col2 FROM tab0 AS cor0
----
-11
21
-34
81
98
1

query I rowsort
SELECT ALL - col0 * + 93 FROM tab0
----
-1395
-8091
-9021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7907
SELECT DISTINCT + CAST( col1 AS SIGNED ) * + - col1 + - 31 FROM tab0
----
-32
-472
-6592

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * + - col1 + - 31 FROM tab0
----
-32
-472
-6592

query I rowsort
SELECT ALL 41 * + col1 FROM tab0
----
3321
41
861

onlyif mysql # DIV for integer division: 
query I rowsort label-7909
SELECT ALL + 5 DIV - col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL + 5 / - col1 AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT + ( + 37 ), col2 AS col2 FROM tab0
----
37
10
37
47
37
99

query I rowsort
SELECT ALL col0 + col1 + + 4 + - - col2 AS col1 FROM tab0 AS cor0
----
122
147
201

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT + 51 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
459

skipif mysql # not compatible
query I rowsort label-7912
SELECT + 51 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
459

onlyif mysql # aggregate syntax: 
query II rowsort label-7913
SELECT ALL - COUNT( * ) AS col0, - COUNT( * ) - COUNT( * ) - + 69 AS col1 FROM tab0
----
-3
-75

skipif mysql # not compatible
query II rowsort label-7913
SELECT ALL - COUNT ( * ) AS col0, - COUNT ( * ) - COUNT ( * ) - + 69 AS col1 FROM tab0
----
-3
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 77 col2, col2 + - col1 + + - col0 + - 81 + 5 AS col0 FROM tab0 AS cor0
----
77
-125
77
-174
77
-75

query II rowsort
SELECT ALL - 50, col2 FROM tab0 cor0
----
-50
10
-50
47
-50
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7916
SELECT DISTINCT - + CAST( + 66 AS SIGNED ) * - - MAX( col0 ) FROM tab1 AS cor0
----
-6006

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT - + CAST ( + 66 AS INTEGER ) * - - MAX ( col0 ) FROM tab1 AS cor0
----
-6006

onlyif mysql # DIV for integer division: 
query I rowsort label-7917
SELECT DISTINCT + 99 DIV + + 29 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT + 99 / + + 29 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7918
SELECT * FROM tab0 WHERE NOT ( - + CAST( - - 97 AS SIGNED ) * 36 ) BETWEEN col2 * - - col0 AND col0 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7918
SELECT * FROM tab0 WHERE NOT ( - + CAST ( - - 97 AS INTEGER ) * 36 ) BETWEEN col2 * - - col0 AND col0 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - col2 ) * col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( - 74 ) FROM tab2
----
-74
-74
-74

query II rowsort
SELECT DISTINCT - + col1 + - ( ( - col2 ) ) AS col0, col2 FROM tab1 WHERE 97 IS NULL OR NOT + col0 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 + col2 + + + 18 * - 59 * + 14 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - 75 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT + COUNT( * ) + 2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
11

skipif mysql # not compatible
query I rowsort label-7924
SELECT + COUNT ( * ) + 2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7925
SELECT - - 33 * - 82 + + COUNT( * ) AS col2 FROM tab2 WHERE + CAST( NULL AS DECIMAL ) / 11 + - col0 * + 5 * - 96 + - CAST( NULL AS SIGNED ) IS NULL
----
-2703

skipif mysql # not compatible
query I rowsort label-7925
SELECT - - 33 * - 82 + + COUNT ( * ) AS col2 FROM tab2 WHERE + CAST ( NULL AS REAL ) / 11 + - col0 * + 5 * - 96 + - CAST ( NULL AS INTEGER ) IS NULL
----
-2703

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT COUNT( DISTINCT - col0 ) * + + 92 + MIN( + 36 ) * - + COUNT( * ) FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-7926
SELECT COUNT ( DISTINCT - col0 ) * + + 92 + MIN ( + 36 ) * - + COUNT ( * ) FROM tab2
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7927
SELECT DISTINCT - CAST( - + 50 AS SIGNED ) + col0 FROM tab0 AS cor0
----
137
147
65

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT - CAST ( - + 50 AS INTEGER ) + col0 FROM tab0 AS cor0
----
137
147
65

onlyif mysql # DIV for integer division: 
query I rowsort label-7928
SELECT DISTINCT + + 92 DIV col0 + - - col2 + - + col0 * col2 * 55 AS col1 FROM tab2 AS cor0
----
-140759
-239191
-58165

skipif mysql # not compatible
query I rowsort label-7928
SELECT DISTINCT + + 92 / col0 + - - col2 + - + col0 * col2 * 55 AS col1 FROM tab2 AS cor0
----
-140759
-239191
-58165

query I rowsort
SELECT ALL - 72 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 16 * - 58 AS col2 FROM tab2 AS cor0
----
-928
-928
-928

query II rowsort
SELECT - col1 * col0 * - col2 AS col2, 66 AS col0 FROM tab2
----
197120
66
291450
66
53958
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT ALL COUNT( * ) * 60 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL COUNT ( * ) * 60 FROM tab2
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ALL + MAX( ALL + + col1 ) * + COUNT( * ) AS col0 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL + MAX ( ALL + + col1 ) * + COUNT ( * ) AS col0 FROM tab2
----
231

query I rowsort
SELECT DISTINCT col1 + 34 + ( + col1 ) AS col1 FROM tab0
----
196
36
76

query I rowsort
SELECT + col0 * + col1 - col0 FROM tab1
----
340
4186
663

query I rowsort
SELECT DISTINCT + + ( - 10 ) * + col0 FROM tab2 AS cor0 WHERE - 69 / col1 IS NULL
----

query I rowsort
SELECT ALL - - col0 - + 36 FROM tab2 AS cor0
----
10
28
39

query II rowsort
SELECT + col1 + - 91 + - col1, col1 FROM tab2 AS cor0
----
-91
51
-91
67
-91
77

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 84 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 40 / + col0 * + 86 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7941
SELECT ALL - 97 DIV - col0 AS col0 FROM tab0 AS cor0
----
1
1
6

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL - 97 / - col0 AS col0 FROM tab0 AS cor0
----
1
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT + SUM( + - col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7942
SELECT + SUM ( + - col1 ) FROM tab1 cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7943
SELECT * FROM tab0 WHERE NOT + CAST( - - 28 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7943
SELECT * FROM tab0 WHERE NOT + CAST ( - - 28 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
45

query I rowsort
SELECT + col0 * + 67 AS col0 FROM tab0
----
1005
5829
6499

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT MAX( DISTINCT - 78 ) FROM tab0 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7946
SELECT MAX ( DISTINCT - 78 ) FROM tab0 cor0
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 63 col1 FROM tab1 AS cor0 WHERE NOT col0 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 87 BETWEEN col0 + col2 AND + col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 29 >= NULL
----

query I rowsort
SELECT DISTINCT - ( - 96 ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT COUNT( DISTINCT + 49 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7951
SELECT COUNT ( DISTINCT + 49 ) FROM tab2
----
1

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT ( NOT col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT ALL + ( - SUM( - col2 ) ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL + ( - SUM ( - col2 ) ) AS col2 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7954
SELECT ALL - CAST( NULL AS SIGNED ) * col1 + CAST( NULL AS SIGNED ) + + col2 / + - col2 + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 + CAST ( NULL AS INTEGER ) + + col2 / + - col2 + + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - - col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7956
SELECT CAST( NULL AS SIGNED ) * - 3 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT CAST ( NULL AS INTEGER ) * - 3 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 72 FROM tab0 WHERE - col2 NOT IN ( + 29 - col2, + col2, + 40 )
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT - COUNT( * ) * - - 49 + + + 52 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-389

skipif mysql # not compatible
query I rowsort label-7958
SELECT - COUNT ( * ) * - - 49 + + + 52 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-389

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT COUNT( * ) AS col2 FROM tab2 WHERE - + 61 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7959
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE - + 61 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT ALL + COUNT( * ) + - - 6 + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
6

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL + COUNT ( * ) + - - 6 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
6

query I rowsort
SELECT ALL + + col2 + + + col2 FROM tab1 cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT ALL + MAX( ALL col0 ) - + 5 AS col2 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL + MAX ( ALL col0 ) - + 5 AS col2 FROM tab2 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT - COUNT( * ) + + + 9 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7963
SELECT - COUNT ( * ) + + + 9 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL - col0 * - col1 + - 9 + - - 62 FROM tab2 AS cor0
----
2399
4981
5078

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 - col2 <= + + 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 89 - - col0 * - + 3 AS col0 FROM tab1 AS cor0
----
-166
-184
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 WHERE col1 IS NULL
----

query I rowsort
SELECT + 28 + + - 83 * col1 * + col2 FROM tab1
----
-111524
-24457
-265240

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + - col0
----

query II rowsort
SELECT DISTINCT - 88 * - 49 AS col1, 12 + + col2 FROM tab1 AS cor0
----
4312
108
4312
71
4312
80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 9 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 66 * + col0 + + 70 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 12 + - + col0 IS NOT NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT ( 71 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT ALL + ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT ALL + col0, + 8 FROM tab0
----
15
8
87
8
97
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7977
SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - 85 BETWEEN col0 * + col0 AND NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - 85 BETWEEN col0 * + col0 AND NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 17 * - - col1 AS col0 FROM tab1 AS cor0
----
238
799
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 95 > col0
----
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7980
SELECT + COUNT( * ) col2, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7980
SELECT + COUNT ( * ) col2, COUNT ( * ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT - 54 * + - col1 * + 40 * col1 FROM tab2 AS cor0
----
12806640
5618160
9696240

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT DISTINCT + - ( + + COUNT( * ) ) * COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT + - ( + + COUNT ( * ) ) * COUNT ( * ) FROM tab2 AS cor0
----
-9

query II rowsort
SELECT + col0 AS col2, 58 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + - 28 AS col2 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
-28
-28
-28

query I rowsort
SELECT ALL + col0 * + col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
1215
1827
97

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE - 14 > + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7987
SELECT ALL - col2 DIV - + 35 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL - col2 / - + 35 FROM tab1
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7988
SELECT DISTINCT col1 + 36 AS col0, + ( 11 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
103
NULL
113
NULL
87
NULL

skipif mysql # not compatible
query II rowsort label-7988
SELECT DISTINCT col1 + 36 AS col0, + ( 11 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
103
NULL
113
NULL
87
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7989
SELECT - 28 col2, - COUNT( * ) FROM tab1 AS cor0 WHERE 39 * col0 IS NOT NULL
----
-28
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7989
SELECT - 28 col2, - COUNT ( * ) FROM tab1 AS cor0 WHERE 39 * col0 IS NOT NULL
----
-28
-3

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE 3 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT + + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7991
SELECT + + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT + 97 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7993
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) <= + 76 * col2
----

skipif mysql # not compatible
query III rowsort label-7993
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <= + 76 * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7994
SELECT ALL col1 DIV - 60 - + 12 col1 FROM tab1 AS cor0
----
-12
-12
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7994
SELECT ALL col1 / - 60 - + 12 col1 FROM tab1 AS cor0
----
-12
-12
-12

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT - COUNT( * ) - 33 AS col0 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7996
SELECT - COUNT ( * ) - 33 AS col0 FROM tab0 AS cor0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7997
SELECT DISTINCT - + 51 AS col1, - 21 DIV + COUNT( * ) FROM tab2 AS cor0
----
-51
-7

skipif mysql # not compatible
query II rowsort label-7997
SELECT DISTINCT - + 51 AS col1, - 21 / + COUNT ( * ) FROM tab2 AS cor0
----
-51
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT DISTINCT - COUNT( * ) - COUNT( * ) + + MAX( DISTINCT + col2 ) * + + COUNT( * ) AS col2 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) + + MAX ( DISTINCT + col2 ) * + + COUNT ( * ) AS col2 FROM tab1
----
282

query II rowsort
SELECT ALL 76 AS col2, col1 AS col2 FROM tab0
----
76
1
76
21
76
81

query I rowsort
SELECT 90 - + col2 AS col0 FROM tab1
----
-6
22
31

query I rowsort
SELECT col2 + + col1 - - - col2 AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT col2 * - + 98 FROM tab0
----
-4606
-9702
-980

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 / - + col2 + + col0 + + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= col1 + 3
----

query I rowsort
SELECT ALL - 36 AS col2 FROM tab0 WHERE NULL IS NULL
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT - + MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8006
SELECT - + MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
-47

query II rowsort
SELECT + col0 AS col1, + col2 AS col1 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8008
SELECT 37 DIV - - col2 AS col1 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-8008
SELECT 37 / - - col2 AS col1 FROM tab0
----
0
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8009
SELECT CAST( NULL AS SIGNED ) / 68 + 15 * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT CAST ( NULL AS INTEGER ) / 68 + 15 * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 - 17 + - ( - col1 ) + 53 * + - col1 / + 62 >= NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NULL BETWEEN NULL AND ( + 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT DISTINCT - COUNT( DISTINCT 83 ) * COUNT( * ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT - COUNT ( DISTINCT 83 ) * COUNT ( * ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT ALL 13 * COUNT( * ) + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL 13 * COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
42

query II rowsort
SELECT ALL - 54 AS col2, col1 + - col0 FROM tab0 AS cor0
----
-54
-66
-54
-96
-54
66

query I rowsort
SELECT - ( 4 ) AS col2 FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL col0 + 27 FROM tab2
----
102
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT COUNT( * ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8017
SELECT COUNT ( * ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT + + COUNT( * ) FROM tab2 cor0 WHERE 65 + + 43 NOT BETWEEN + + col2 AND - - col1 * - + col1
----
3

skipif mysql # not compatible
query I rowsort label-8018
SELECT + + COUNT ( * ) FROM tab2 cor0 WHERE 65 + + 43 NOT BETWEEN + + col2 AND - - col1 * - + col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT + COUNT( * ) + + 52 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-8019
SELECT + COUNT ( * ) + + 52 FROM tab2 AS cor0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8020
SELECT DISTINCT - 43 - col2 + - 69 + - 54 + col0 + - + col2 * col0 * - col2 - + col0 + - CAST( col1 AS SIGNED ) * - + col2 * - - ( 24 ) FROM tab2 AS cor0
----
176114
345340
52297

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT - 43 - col2 + - 69 + - 54 + col0 + - + col2 * col0 * - col2 - + col0 + - CAST ( col1 AS INTEGER ) * - + col2 * - - ( 24 ) FROM tab2 AS cor0
----
176114
345340
52297

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8022
SELECT DISTINCT - col2 + + col0 * - CAST( + - col2 AS SIGNED ), col1 FROM tab2 AS cor0
----
1035
51
2520
77
4292
67

skipif mysql # not compatible
query II rowsort label-8022
SELECT DISTINCT - col2 + + col0 * - CAST ( + - col2 AS INTEGER ), col1 FROM tab2 AS cor0
----
1035
51
2520
77
4292
67

query I rowsort
SELECT DISTINCT - - col2 - + + col1 + 58 + + 99 * - + col1 FROM tab0 AS cor0
----
-2032
-7995
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8024
SELECT * FROM tab2 cor0 WHERE NULL >= CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8024
SELECT * FROM tab2 cor0 WHERE NULL >= CAST ( + - col2 AS INTEGER )
----

query II rowsort
SELECT ALL - - col2 - + - col1 AS col2, col2 FROM tab0 AS cor0
----
100
99
128
47
31
10

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 87 <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8027
SELECT ALL + ( - + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL + ( - + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8028
SELECT DISTINCT 31 AS col2, 24 + - + ( + SUM( + col1 ) ) AS col1 FROM tab0
----
31
-79

skipif mysql # not compatible
query II rowsort label-8028
SELECT DISTINCT 31 AS col2, 24 + - + ( + SUM ( + col1 ) ) AS col1 FROM tab0
----
31
-79

query II rowsort
SELECT DISTINCT + 16 AS col0, - 98 FROM tab1 AS cor0
----
16
-98

query I rowsort
SELECT DISTINCT col1 * - - col1 AS col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT 21 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col1
----

query I rowsort
SELECT - 50 + - - col2 AS col0 FROM tab0 AS cor0
----
-3
-40
49

query II rowsort
SELECT DISTINCT + 2 AS col2, col1 FROM tab1 AS cor0
----
2
14
2
47
2
5

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT + - MAX( ALL - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8036
SELECT + - MAX ( ALL - col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT - col1 * - 10 AS col1 FROM tab2 cor0
----
510
670
770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST( NULL AS SIGNED ) AND col0
----

skipif mysql # not compatible
query I rowsort label-8038
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST ( NULL AS INTEGER ) AND col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8039
SELECT + col1 DIV + col2, - col2 + col2 AS col2 FROM tab0
----
0
0
1
0
2
0

skipif mysql # not compatible
query II rowsort label-8039
SELECT + col1 / + col2, - col2 + col2 AS col2 FROM tab0
----
0
0
1
0
2
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 * 8 BETWEEN - col1 AND ( NULL ) )
----

query II rowsort
SELECT ( col2 ) AS col1, col2 FROM tab1
----
59
59
68
68
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 * col1 col1 FROM tab1
----
182
611
65

query I rowsort
SELECT col2 + + + 24 AS col1 FROM tab0 WHERE ( NOT ( NULL ) >= + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT SUM( + - col2 ) + + 99 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-8044
SELECT SUM ( + - col2 ) + + 99 FROM tab2 AS cor0
----
-22

query I rowsort
SELECT + + 9 AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col2 + col2
----

query I rowsort
SELECT ALL - 86 + + + col1 FROM tab0 AS cor0
----
-5
-65
-85

query I rowsort
SELECT ALL - col0 * - - 8 AS col1 FROM tab1 AS cor0
----
-408
-680
-728

query II rowsort
SELECT + + col1 AS col2, 97 + - + 19 FROM tab2 AS cor0
----
51
78
67
78
77
78

query I rowsort
SELECT - col0 * + 40 FROM tab1 AS cor0
----
-2040
-3400
-3640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8051
SELECT ALL col2 * + col0 - - - col0 - - col0 - - col0 * + + CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL col2 * + col0 - - - col0 - - col0 - - col0 * + + CAST ( NULL AS INTEGER ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE 77 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8053
SELECT ALL 47 DIV COUNT( * ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL 47 / COUNT ( * ) FROM tab0
----
15

query I rowsort
SELECT - 66 * - col1 FROM tab2
----
3366
4422
5082

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT + 32 * MIN( ALL + 95 ) AS col0 FROM tab0
----
3040

skipif mysql # not compatible
query I rowsort label-8055
SELECT + 32 * MIN ( ALL + 95 ) AS col0 FROM tab0
----
3040

query I rowsort
SELECT - + 13 + 45 + - 51 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) < + 25
----

query I rowsort
SELECT ALL 12 FROM tab1 AS cor0 WHERE NOT 38 + + col0 IS NULL
----
12
12
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8058
SELECT ALL + MIN( DISTINCT + col1 ) AS col2, + MAX( - col1 ) AS col0 FROM tab1 AS cor0
----
5
-5

skipif mysql # not compatible
query II rowsort label-8058
SELECT ALL + MIN ( DISTINCT + col1 ) AS col2, + MAX ( - col1 ) AS col0 FROM tab1 AS cor0
----
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT + MIN( - - ( - - col2 ) ) AS col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-8059
SELECT + MIN ( - - ( - - col2 ) ) AS col1 FROM tab2 cor0
----
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * 23 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT DISTINCT MAX( DISTINCT + - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT MAX ( DISTINCT + - col0 ) FROM tab0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT DISTINCT - 13 + - - COUNT( * ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT - 13 + - - COUNT ( * ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT 90 + + + col2 AS col0 FROM tab2 AS cor0
----
113
130
148

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + + col0 ) >= - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8066
SELECT - - CAST( NULL AS SIGNED ) + + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT - - CAST ( NULL AS INTEGER ) + + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT - 16 + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-8067
SELECT - 16 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-13

query I rowsort
SELECT + - 39 + col2 AS col0 FROM tab1 AS cor0
----
20
29
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT ALL - COUNT( ALL - + col0 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL - COUNT ( ALL - + col0 ) AS col2 FROM tab0 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 * col1 + col2 + 13 * + col0 + - 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT DISTINCT - SUM( ALL - + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT - SUM ( ALL - + col2 ) FROM tab0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-8072
SELECT - 88 * col2 DIV col2 + + - 59 FROM tab2
----
-147
-147
-147

skipif mysql # not compatible
query I rowsort label-8072
SELECT - 88 * col2 / col2 + + - 59 FROM tab2
----
-147
-147
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8073
SELECT ALL - 2 * - + CAST( + 85 AS SIGNED ) + col2 + + + col1 - - + col2 AS col1 FROM tab0
----
211
345
369

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL - 2 * - + CAST ( + 85 AS INTEGER ) + col2 + + + col1 - - + col2 AS col1 FROM tab0
----
211
345
369

query I rowsort
SELECT + 35 * col1 * + + 74 FROM tab0 WHERE NULL IS NULL
----
209790
2590
54390

query I rowsort
SELECT DISTINCT - - 70 FROM tab0 WHERE 61 >= + col0
----
70

query II rowsort
SELECT ALL - col1, + col0 AS col0 FROM tab0
----
-1
97
-21
87
-81
15

query III rowsort
SELECT * FROM tab2 WHERE + 44 < NULL
----

query I rowsort
SELECT ( - - 77 ) AS col2 FROM tab0
----
77
77
77

query II rowsort
SELECT - col2, col0 AS col1 FROM tab0 cor0
----
-10
87
-47
15
-99
97

query II rowsort
SELECT - col1, col1 - - 25 AS col1 FROM tab1 AS cor0
----
-14
39
-47
72
-5
30

query I rowsort
SELECT ALL - + col2 + - + 46 FROM tab0 cor0 WHERE col0 + + col0 NOT BETWEEN + + 58 AND NULL
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8082
SELECT CAST( NULL AS SIGNED ) AS col1, + 24 * - + 64 - - - COUNT( * ) FROM tab1 AS cor0
----
NULL
-1539

skipif mysql # not compatible
query II rowsort label-8082
SELECT CAST ( NULL AS INTEGER ) AS col1, + 24 * - + 64 - - - COUNT ( * ) FROM tab1 AS cor0
----
NULL
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT + + MIN( - 59 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-8083
SELECT + + MIN ( - 59 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-59

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN + col1 AND - + 54
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8086
SELECT ALL - col1 * - col1 AS col1, + col2 * - + CAST( NULL AS SIGNED ) - + + ( 45 ) FROM tab1 AS cor0
----
196
NULL
2209
NULL
25
NULL

skipif mysql # not compatible
query II rowsort label-8086
SELECT ALL - col1 * - col1 AS col1, + col2 * - + CAST ( NULL AS INTEGER ) - + + ( 45 ) FROM tab1 AS cor0
----
196
NULL
2209
NULL
25
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8087
SELECT ALL CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 46 + - col1 + - - 56 IS NOT NULL
----

query II rowsort
SELECT + col1 AS col1, + col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL - ( col2 ) AS col0 FROM tab2 WHERE - - 30 IS NULL
----

query I rowsort
SELECT ALL 29 * - - 18 FROM tab1
----
522
522
522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + col2 * - 13 col1 FROM tab0
----
127413
1300
28717

query I rowsort
SELECT + + 70 AS col2 FROM tab1 AS cor0 WHERE NOT - 39 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8094
SELECT ALL + 94 DIV + + 13 AS col2 FROM tab0 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL + 94 / + + 13 AS col2 FROM tab0 AS cor0
----
7
7
7

query I rowsort
SELECT DISTINCT + ( + + 77 ) AS col1 FROM tab2 AS cor0
----
77

query I rowsort
SELECT + col1 * + 13 + - col1 FROM tab0
----
12
252
972

query I rowsort
SELECT ALL + col0 * 32 FROM tab1
----
1632
2720
2912

query I rowsort
SELECT + col0 * 98 AS col0 FROM tab0
----
1470
8526
9506

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 60 - col0 <> NULL
----

query I rowsort
SELECT 24 * 6 FROM tab2
----
144
144
144

query I rowsort
SELECT 12 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 55 * - col2 + - col2 NOT BETWEEN NULL AND 77 / + col2
----

query I rowsort
SELECT ALL 36 * + col0 + - col2 FROM tab2
----
1633
2264
2642

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT ALL ( - COUNT( * ) ) FROM tab2 WHERE NULL NOT BETWEEN col1 / + col1 AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL ( - COUNT ( * ) ) FROM tab2 WHERE NULL NOT BETWEEN col1 / + col1 AND + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT DISTINCT - MAX( - col0 ) * COUNT( * ) + + COUNT( DISTINCT col1 + col1 ) * + COUNT( * ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT - MAX ( - col0 ) * COUNT ( * ) + + COUNT ( DISTINCT col1 + col1 ) * + COUNT ( * ) FROM tab2
----
147

query I rowsort
SELECT col2 * - 47 AS col0 FROM tab0
----
-2209
-4653
-470

query I rowsort
SELECT DISTINCT + ( 82 ) * 3 AS col0 FROM tab2
----
246

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8108
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + CAST( CAST( - col1 AS SIGNED ) AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8108
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + CAST ( CAST ( - col1 AS INTEGER ) AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT DISTINCT - COUNT( DISTINCT col2 ) * + COUNT( - col2 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT - COUNT ( DISTINCT col2 ) * + COUNT ( - col2 ) FROM tab0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 WHERE NOT - col2 IS NULL
----
-10
-47
-99

query I rowsort
SELECT - col1 * col0 + - col0 AS col2 FROM tab2
----
-2392
-4992
-5100

query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT IN ( + 14 )
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8113
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT BETWEEN CAST( - col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8113
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT BETWEEN CAST ( - col0 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT COUNT( ALL 65 ) * - ( 77 ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8114
SELECT COUNT ( ALL 65 ) * - ( 77 ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - col0 + col0 * 94 FROM tab1
----
4743
7905
8463

query I rowsort
SELECT + ( 69 ) + + 60 FROM tab2
----
129
129
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8117
SELECT DISTINCT + col1 + col0 AS col0 FROM tab1 WHERE - 25 > ( - CAST( NULL AS SIGNED ) * 96 )
----

skipif mysql # not compatible
query I rowsort label-8117
SELECT DISTINCT + col1 + col0 AS col0 FROM tab1 WHERE - 25 > ( - CAST ( NULL AS INTEGER ) * 96 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT DISTINCT 37 - + COUNT( * ) AS col0 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT 37 - + COUNT ( * ) AS col0 FROM tab2
----
34

query I rowsort
SELECT DISTINCT col1 + + ( col0 ) AS col0 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8120
SELECT - col1 * - ( + col1 ) AS col2 FROM tab0 WHERE NOT col2 * - CAST( NULL AS SIGNED ) = - col0
----

skipif mysql # not compatible
query I rowsort label-8120
SELECT - col1 * - ( + col1 ) AS col2 FROM tab0 WHERE NOT col2 * - CAST ( NULL AS INTEGER ) = - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( - 33 ) col1 FROM tab0
----
1551
3267
330

query I rowsort
SELECT DISTINCT col2 * - col1 + + 57 AS col0 FROM tab2 cor0
----
-1116
-3023
-3829

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT - COUNT( * ) * 23 + SUM( - col0 ) FROM tab0 AS cor0
----
-268

skipif mysql # not compatible
query I rowsort label-8123
SELECT - COUNT ( * ) * 23 + SUM ( - col0 ) FROM tab0 AS cor0
----
-268

query I rowsort
SELECT ALL + col1 * + 80 FROM tab2
----
4080
5360
6160

query I rowsort
SELECT col1 * - col0 FROM tab2 AS cor0 WHERE NOT + 93 * 37 IN ( - col0 * 67 + - col1 )
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT DISTINCT + MIN( - col1 ) AS col0 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT + MIN ( - col1 ) AS col0 FROM tab0 cor0
----
-81

query I rowsort
SELECT ALL 66 * - col2 FROM tab2 AS cor0
----
-1518
-2640
-3828

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8128
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * col2 - - CAST( - col1 + - 13 AS SIGNED ) * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8128
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * col2 - - CAST ( - col1 + - 13 AS INTEGER ) * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col0 > NULL
----
0

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8131
SELECT + MAX( ALL - col0 ) DIV - COUNT( * ) AS col1 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-8131
SELECT + MAX ( ALL - col0 ) / - COUNT ( * ) AS col1 FROM tab2
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col0 ) col2 FROM tab2
----
46
64
75

query I rowsort
SELECT col1 * + - 11 AS col1 FROM tab1
----
-154
-517
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL < + col0 + + col0 / col0
----
0

skipif mysql # not compatible
query I rowsort label-8134
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL < + col0 + + col0 / col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 ) >= ( - col0 )
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT DISTINCT COUNT( * ) - 83 AS col2 FROM tab0 WHERE ( - 95 ) IS NOT NULL
----
-80

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT COUNT ( * ) - 83 AS col2 FROM tab0 WHERE ( - 95 ) IS NOT NULL
----
-80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 93 ) NOT IN ( + 24 )
----

query I rowsort
SELECT - col2 * - - col2 * - col2 AS col2 FROM tab0
----
1000
103823
970299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8139
SELECT COUNT( * ) DIV - 88 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8139
SELECT COUNT ( * ) / - 88 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL - col1 + + 96 AS col0 FROM tab1
----
49
82
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8141
SELECT ALL 46 AS col1, 35 * - + 76 * - SUM( col2 ) FROM tab1
----
46
593180

skipif mysql # not compatible
query II rowsort label-8141
SELECT ALL 46 AS col1, 35 * - + 76 * - SUM ( col2 ) FROM tab1
----
46
593180

query I rowsort
SELECT DISTINCT + col2 + - 35 * + col0 * + 19 + 60 AS col0 FROM tab0 cor0
----
-57785
-64346
-9868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8143
SELECT + 54 + + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8143
SELECT + 54 + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8144
SELECT + 92 + - - 0 * + + 14 DIV col2 AS col1 FROM tab0 AS cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-8144
SELECT + 92 + - - 0 * + + 14 / col2 AS col1 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT + + col0 + + 95 * - 95 - col1 FROM tab1 AS cor0
----
-8945
-8981
-8988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8146
SELECT - ( - 15 ) + + col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8146
SELECT - ( - 15 ) + + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( - + col2 ) ) IN ( + ( 60 ) + col1 * 34 )
----

query I rowsort
SELECT ALL + - ( + - col2 ) + - col1 AS col0 FROM tab2 cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT DISTINCT 72 + + + COUNT( * ) * + COUNT( * ) col2 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8149
SELECT DISTINCT 72 + + + COUNT ( * ) * + COUNT ( * ) col2 FROM tab1 AS cor0
----
81

query I rowsort
SELECT + 48 + + col0 - col2 FROM tab1 AS cor0
----
3
71
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT ALL + + ( MIN( - col1 ) ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL + + ( MIN ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( - - col2 * col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8153
SELECT col1 + 45 * - col0 / + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8153
SELECT col1 + 45 * - col0 / + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8154
SELECT - ( 18 ) + - CAST( NULL AS SIGNED ) * 63 / - 53 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8154
SELECT - ( 18 ) + - CAST ( NULL AS INTEGER ) * 63 / - 53 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 90 * - 3 * col2 * - col0 * col2 - - ( 28 ) FROM tab2
----
27648028
6570208
68121028

query III rowsort
SELECT * FROM tab1 WHERE + col0 > ( 97 / ( col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE col1 * col2 - 66 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL + COUNT( - + 71 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL + COUNT ( - + 71 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col2 + - ( - col0 ) AS col2 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8160
SELECT - COUNT( 76 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8160
SELECT - COUNT ( 76 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 - + col2 * + ( - col1 ) AS col1 FROM tab1 AS cor0
----
1395
3287
380

query I rowsort
SELECT - 18 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8163
SELECT ( + COUNT( * ) ) DIV - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8163
SELECT ( + COUNT ( * ) ) / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - - 27 * 91 + - col1 * - 60 FROM tab1 AS cor0
----
2757
3297
5277

query I rowsort
SELECT DISTINCT 87 FROM tab1 AS cor0 WHERE + 24 > ( + col1 )
----
87

query II rowsort
SELECT col1, + 52 AS col1 FROM tab1
----
14
52
47
52
5
52

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= ( ( + col1 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * col1 - + ( + col1 ) = col2 * + col1 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * col2 * col2 AS col1 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT DISTINCT COUNT( * ) * - COUNT( * ) col1 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8170
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) col1 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8171
SELECT ALL - ( - + CAST( NULL AS SIGNED ) ) * + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL - ( - + CAST ( NULL AS INTEGER ) ) * + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - - 24 FROM tab0
----
1944
24
504

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL - COUNT( DISTINCT + 96 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL - COUNT ( DISTINCT + 96 ) FROM tab1 AS cor0
----
-1

query II rowsort
SELECT DISTINCT + col2, col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8175
SELECT col2 + - CAST( + + 66 AS SIGNED ) + 57 AS col2 FROM tab1
----
50
59
87

skipif mysql # not compatible
query I rowsort label-8175
SELECT col2 + - CAST ( + + 66 AS INTEGER ) + 57 AS col2 FROM tab1
----
50
59
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8176
SELECT - 37 * col0 + CAST( - col1 AS SIGNED ) FROM tab2
----
-1753
-2445
-2842

skipif mysql # not compatible
query I rowsort label-8176
SELECT - 37 * col0 + CAST ( - col1 AS INTEGER ) FROM tab2
----
-1753
-2445
-2842

query I rowsort
SELECT DISTINCT + ( + - col2 ) + col1 - 78 AS col1 FROM tab2 AS cor0
----
-41
-50
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT ALL + - COUNT( DISTINCT 38 ) - + 66 FROM tab0 cor0
----
-67

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL + - COUNT ( DISTINCT 38 ) - + 66 FROM tab0 cor0
----
-67

query I rowsort
SELECT col0 / - - ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 - - 13 + + col2 * + col1 + + 60 NOT BETWEEN ( + col2 ) AND col0 / col2 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) = ( 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8182
SELECT * FROM tab0 cor0 WHERE col2 * - - 18 <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8182
SELECT * FROM tab0 cor0 WHERE col2 * - - 18 <> + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8183
SELECT ALL - 78 - + CAST( NULL AS SIGNED ) + - + 60 + + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL - 78 - + CAST ( NULL AS INTEGER ) + - + 60 + + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 67 / - 39 / - col1 AS col2 FROM tab1 AS cor0 WHERE NULL = ( - col0 )
----

query I rowsort
SELECT DISTINCT 61 * - + 18 FROM tab0
----
-1098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8186
SELECT 40 - - SUM( CAST( - col2 AS SIGNED ) ) AS col1 FROM tab0
----
-116

skipif mysql # not compatible
query I rowsort label-8186
SELECT 40 - - SUM ( CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab0
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-8187
SELECT ALL + ( + col2 ) * + col2 DIV col2 + + - col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL + ( + col2 ) * + col2 / col2 + + - col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col0 - + + 85 FROM tab0
----
-70
12
2

query I rowsort
SELECT 1 FROM tab0 WHERE 45 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col2 - - ( - 92 ) AS col0 FROM tab1
----
-151
-160
-188

query I rowsort
SELECT + 80 - - col0 FROM tab1
----
131
165
171

onlyif mysql # DIV for integer division: 
query I rowsort label-8192
SELECT 80 - + col0 DIV + ( + - col0 ) FROM tab0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-8192
SELECT 80 - + col0 / + ( + - col0 ) FROM tab0
----
81
81
81

query I rowsort
SELECT - col2 * + col0 + col1 AS col2 FROM tab0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT ( - COUNT( DISTINCT - col1 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT ( - COUNT ( DISTINCT - col1 ) ) FROM tab0
----
-3

query I rowsort
SELECT + - col2 FROM tab2 WHERE - col2 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - 73 / - - col0 * - col2 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT ALL + MIN( DISTINCT col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL + MIN ( DISTINCT col0 ) FROM tab0
----
15

query I rowsort
SELECT ALL col1 + 7 + - col1 * - + col0 + - col0 FROM tab1 AS cor0
----
352
4240
684

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 97 > NULL
----

query I rowsort
SELECT col1 * + + col1 AS col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT ( col0 * + 50 + col1 + - - col2 ) > ( 11 )
----

query II rowsort
SELECT + + col1, col1 AS col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT * FROM tab0 WHERE NOT 65 * col1 = NULL
----

query I rowsort
SELECT ALL 96 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT - COUNT( * ) + - SUM( - - 56 ) FROM tab1 cor0 WHERE NOT - col1 IS NULL
----
-171

skipif mysql # not compatible
query I rowsort label-8205
SELECT - COUNT ( * ) + - SUM ( - - 56 ) FROM tab1 cor0 WHERE NOT - col1 IS NULL
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-8206
SELECT + col2 DIV 63 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8206
SELECT + col2 / 63 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col1 / + col2 FROM tab0 WHERE NOT 29 * - col2 NOT BETWEEN NULL AND - + col0
----

query I rowsort
SELECT DISTINCT col0 * + col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8209
SELECT ALL + col0 * 58 + - 85 / + ( - - col0 ) * + 82 * 26 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL + col0 * 58 + - 85 / + ( - - col0 ) * + 82 * 26 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 47 + - col2 + - col1 * + + col2 AS col0 FROM tab2
----
-1243
-3167
-3991

query I rowsort
SELECT + col0 * - col0 FROM tab2 WHERE NOT ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + 16 FROM tab2
----
67
83
93

query I rowsort
SELECT + col1 * col2 + - 8 * + col1 * + + col0 * col0 + + col2 AS col0 FROM tab1
----
-288646
-289872
-3110392

query I rowsort
SELECT + + ( - - col2 ) FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT col0 * - + 34 AS col1 FROM tab0 AS cor0
----
-2958
-3298
-510

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT ALL + 56 + + COUNT( * ) + + + MAX( ALL col1 ) / - + AVG ( ALL col1 ) * 51 AS col0 FROM tab1 WHERE NULL NOT IN ( 13 * + 54, col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL + 56 + + COUNT ( * ) + + + MAX ( ALL col1 ) / - + AVG ( ALL col1 ) * 51 AS col0 FROM tab1 WHERE NULL NOT IN ( 13 * + 54, col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 * col0 + 40 col1 FROM tab2
----
2202
4200
5740

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT ALL - 19 + + MIN( ALL + ( + 32 ) ) AS col2 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL - 19 + + MIN ( ALL + ( + 32 ) ) AS col2 FROM tab1 AS cor0
----
13

query I rowsort
SELECT DISTINCT - 69 + col0 + + - col1 + + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT - 5 + - 54 + + 30 + MAX( + 77 ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8221
SELECT - 5 + - 54 + + 30 + MAX ( + 77 ) FROM tab1 AS cor0
----
48

query I rowsort
SELECT - - 35 + - + col1 FROM tab1 AS cor0
----
-12
21
30

query I rowsort
SELECT 43 + + 75 AS col1 FROM tab0 AS cor0
----
118
118
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8224
SELECT + CAST( - 33 AS SIGNED ) * + COUNT( * ) FROM tab2 AS cor0 WHERE ( - CAST( - + col2 AS DECIMAL ) ) - col0 <= 12
----
-99

skipif mysql # not compatible
query I rowsort label-8224
SELECT + CAST ( - 33 AS INTEGER ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE ( - CAST ( - + col2 AS REAL ) ) - col0 <= 12
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT ALL 88 DIV 76 + + + col2 AS col1 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL 88 / 76 + + + col2 AS col1 FROM tab1 AS cor0
----
60
69
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + 79 + - - ( + + ( + col0 ) ) col0 FROM tab2 WHERE + col2 * col1 + col2 - + col0 <= + 58
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8227
SELECT ALL col0 * - - CAST( NULL AS DECIMAL ), col0 col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8227
SELECT ALL col0 * - - CAST ( NULL AS REAL ), col0 col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT DISTINCT 33 * 59 FROM tab1 WHERE NOT col0 IN ( + col0, + col1 * - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8229
SELECT - - ( - SUM( - col0 ) ) DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-8229
SELECT - - ( - SUM ( - col0 ) ) / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-61

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 47 + + - col2 FROM tab2 AS cor0 WHERE NOT - 39 IS NULL
----
-105
-70
-87

query I rowsort
SELECT ( - + col0 ) AS col2 FROM tab2 cor0
----
-46
-64
-75

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - ( + 42 ) FROM tab0 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8235
SELECT DISTINCT + col1, + 5 DIV - col2 * + col2 * + col2 * + CAST( + - CAST( - ( col0 ) AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
1
0
21
0
81
0

skipif mysql # not compatible
query II rowsort label-8235
SELECT DISTINCT + col1, + 5 / - col2 * + col2 * + col2 * + CAST ( + - CAST ( - ( col0 ) AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
1
0
21
0
81
0

query I rowsort
SELECT col1 * - + 30 AS col1 FROM tab1 AS cor0
----
-1410
-150
-420

query I rowsort
SELECT DISTINCT + 41 + - col0 AS col1 FROM tab0 AS cor0
----
-46
-56
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8238
SELECT DISTINCT + - 29 DIV - - ( + + col1 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT + - 29 / - - ( + + col1 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col1 AS col0 FROM tab1 cor0 WHERE NOT - col2 NOT IN ( - - col0 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL >= - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8241
SELECT * FROM tab1 WHERE NOT + col1 + col2 IN ( - + col0, - CAST( NULL AS SIGNED ) * - 78 )
----

skipif mysql # not compatible
query III rowsort label-8241
SELECT * FROM tab1 WHERE NOT + col1 + col2 IN ( - + col0, - CAST ( NULL AS INTEGER ) * - 78 )
----

query I rowsort
SELECT DISTINCT - col1 * 74 + - - col1 + + col1 FROM tab1
----
-1008
-3384
-360

query I rowsort
SELECT + 64 * + col2 AS col2 FROM tab2
----
1472
2560
3712

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE + 37 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT - ( SUM( ALL - col0 ) ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8245
SELECT - ( SUM ( ALL - col0 ) ) AS col2 FROM tab0
----
199

query I rowsort
SELECT ALL 25 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 * - 40 * + + 3 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT DISTINCT COUNT( * ) * 71 + - 82 FROM tab2
----
131

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT COUNT ( * ) * 71 + - 82 FROM tab2
----
131

query I rowsort
SELECT - - ( + + 23 ) AS col1 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT DISTINCT - 65 * + - 83 FROM tab2 cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT + col2 + - - 74 * + col0 FROM tab0 cor0
----
1157
6448
7277

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL + ( + COUNT( * ) ) FROM tab0 cor0 WHERE col1 * - ( - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL + ( + COUNT ( * ) ) FROM tab0 cor0 WHERE col1 * - ( - col0 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL - - ( + - COUNT( * ) ) + + + 42 AS col2 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL - - ( + - COUNT ( * ) ) + + + 42 AS col2 FROM tab0 AS cor0
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-8254
SELECT ALL + 10 * + col1 + + + col0 + - col0 * + col2, col0 DIV - - ( - 11 ) AS col1 FROM tab0 AS cor0
----
-573
-7
-9496
-8
120
-1

skipif mysql # not compatible
query II rowsort label-8254
SELECT ALL + 10 * + col1 + + + col0 + - col0 * + col2, col0 / - - ( - 11 ) AS col1 FROM tab0 AS cor0
----
-573
-7
-9496
-8
120
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= - col1 / - + 0
----

query I rowsort
SELECT ALL col1 - - + col0 + - 85 * col2 AS col1 FROM tab1 AS cor0
----
-4925
-5642
-8095

query I rowsort
SELECT - - 49 FROM tab2 AS cor0 WHERE col1 > NULL
----

query I rowsort
SELECT - ( - 36 ) - + 1 AS col2 FROM tab2 cor0
----
35
35
35

query I rowsort
SELECT - - col1 - + col1 + + col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT - 25 + col1 + - 57 + - col1 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
-82

query I rowsort
SELECT - col1 - col1 * col2 AS col0 FROM tab0
----
-100
-231
-3888

onlyif mysql # aggregate syntax: 
query II rowsort label-8262
SELECT + COUNT( * ), + COUNT( * ) col1 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8262
SELECT + COUNT ( * ), + COUNT ( * ) col1 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT - MAX( + 74 ) AS col2 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-8263
SELECT - MAX ( + 74 ) AS col2 FROM tab2
----
-74

query I rowsort
SELECT 22 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 * 65 AS col2 FROM tab0
----
1365
5265
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8266
SELECT - 82 * col0 DIV + 76 FROM tab1
----
-55
-91
-98

skipif mysql # not compatible
query I rowsort label-8266
SELECT - 82 * col0 / + 76 FROM tab1
----
-55
-91
-98

query II rowsort
SELECT DISTINCT 99 AS col0, col0 AS col2 FROM tab2
----
99
46
99
64
99
75

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT ALL + COUNT( ALL + 78 ) * - 87 AS col1 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL + COUNT ( ALL + 78 ) * - 87 AS col1 FROM tab1 AS cor0
----
-261

query I rowsort
SELECT ALL - + col2 * - col0 * - 22 AS col1 FROM tab1 AS cor0
----
-107712
-110330
-136136

query I rowsort
SELECT DISTINCT + col2 * - 69 * + - 57 + - 8 - - + col0 AS col2 FROM tab0 cor0
----
184858
389456
39409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8272
SELECT ALL + CAST( - + col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL + CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-8273
SELECT DISTINCT 91, 8 DIV - + 39 * + col0 AS col0 FROM tab2 WHERE + + col1 <= + + 63
----
91
0

skipif mysql # not compatible
query II rowsort label-8273
SELECT DISTINCT 91, 8 / - + 39 * + col0 AS col0 FROM tab2 WHERE + + col1 <= + + 63
----
91
0

query I rowsort
SELECT DISTINCT - + 82 AS col0 FROM tab0 AS cor0
----
-82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - ( + col0 ) * col2 + - 92
----

query I rowsort
SELECT DISTINCT col2 * - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8277
SELECT DISTINCT + col0 DIV + - 75 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT + col0 / + - 75 FROM tab0 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT DISTINCT - + 58 + - COUNT( col0 ) FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT - + 58 + - COUNT ( col0 ) FROM tab1 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8279
SELECT DISTINCT + CAST( 70 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT + CAST ( 70 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
70

query I rowsort
SELECT + 83 + - ( - - col1 ) * + + 33 FROM tab0 AS cor0
----
-2590
-610
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT + COUNT( * ) + - + COUNT( + col0 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8281
SELECT + COUNT ( * ) + - + COUNT ( + col0 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + ( 30 ) AS col0 FROM tab1
----
30

query I rowsort
SELECT - col1 + - 56 AS col2 FROM tab1
----
-103
-61
-70

query I rowsort
SELECT DISTINCT col2 + - - col2 FROM tab1 cor0
----
118
136
192

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 45 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col0 - + col2 AS col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT col1 IS NOT NULL AND NOT ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 73 * - 48 * - 51 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8290
SELECT - + 47 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * ( + CAST( + 34 AS SIGNED ) ) IS NOT NULL
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-8290
SELECT - + 47 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * ( + CAST ( + 34 AS INTEGER ) ) IS NOT NULL
----
-47
-47
-47

query I rowsort
SELECT DISTINCT 54 * col1 AS col1 FROM tab1 AS cor0
----
2538
270
756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT + CAST( + 64 AS SIGNED ) AS col1 FROM tab0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-8292
SELECT + CAST ( + 64 AS INTEGER ) AS col1 FROM tab0
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8293
SELECT ( - ( - - 83 ) ) DIV col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8293
SELECT ( - ( - - 83 ) ) / col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL 32 * + 49 FROM tab0
----
1568
1568
1568

query I rowsort
SELECT 42 * + - 12 * - - 6 FROM tab0
----
-3024
-3024
-3024

query I rowsort
SELECT + col2 + + col0 + - col1 FROM tab0 cor0
----
-19
195
76

query I rowsort
SELECT DISTINCT 52 + + col1 AS col2 FROM tab1 AS cor0
----
57
66
99

query I rowsort
SELECT 96 + - - col2 * col0 * - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-102304
-24238
-252204

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * - - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + 86 * - 42 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - + col2, col2 AS col1 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query II rowsort
SELECT DISTINCT - col0, - 0 AS col1 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE + + 95 < NULL
----

skipif mysql # not compatible
query I rowsort label-8303
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE + + 95 < NULL
----

query I rowsort
SELECT + col2 * + 14 * - col1 FROM tab0
----
-1386
-2940
-53298

query I rowsort
SELECT DISTINCT - col0 * + 13 AS col2 FROM tab1
----
-1105
-1183
-663

query I rowsort
SELECT - col1 - 85 * + col2 + - 73 FROM tab0
----
-4149
-8489
-944

query I rowsort
SELECT col1 - + col1 * 57 FROM tab1
----
-2632
-280
-784

query I rowsort
SELECT DISTINCT 23 + + col1 + - 60 * - + 54 * + 37 FROM tab0
----
119904
119924
119984

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL - 7 + + + COUNT( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL - 7 + + + COUNT ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-4

query I rowsort
SELECT DISTINCT - + 36 - - 8 * col1 AS col0 FROM tab2 AS cor0
----
372
500
580

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT + COUNT( * ) * - 68 AS col0 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-8311
SELECT + COUNT ( * ) * - 68 AS col0 FROM tab0
----
-204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 64 col0 FROM tab1
----
-3776
-4352
-6144

query I rowsort
SELECT + col0 * col0 * + - col2 FROM tab2
----
-163840
-326250
-48668

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8315
SELECT DISTINCT - 57, - col2 AS col1 FROM tab2 AS cor0 WHERE CAST( - ( + ( - - ( + 70 ) ) ) AS SIGNED ) <> - - col2
----
-57
-23
-57
-40
-57
-58

skipif mysql # not compatible
query II rowsort label-8315
SELECT DISTINCT - 57, - col2 AS col1 FROM tab2 AS cor0 WHERE CAST ( - ( + ( - - ( + 70 ) ) ) AS INTEGER ) <> - - col2
----
-57
-23
-57
-40
-57
-58

query II rowsort
SELECT ALL + 13 * - col2 AS col2, col1 FROM tab1
----
-1248
14
-767
5
-884
47

query I rowsort
SELECT + 86 * + + 30 * + + col1 AS col0 FROM tab1 WHERE NOT ( + col2 * - col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8318
SELECT DISTINCT + - col1 DIV - + col1 AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8318
SELECT DISTINCT + - col1 / - + col1 AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - + 9 * - col2 AS col1 FROM tab2 AS cor0
----
207
360
522

query I rowsort
SELECT ALL + ( + 50 ) * col2 AS col2 FROM tab2 AS cor0
----
1150
2000
2900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8321
SELECT MIN( - - col2 ) * ( - AVG ( - - col1 ) ) * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8321
SELECT MIN ( - - col2 ) * ( - AVG ( - - col1 ) ) * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE - col0 BETWEEN NULL AND + col1 + + 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT + MIN( DISTINCT 88 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
88

skipif mysql # not compatible
query I rowsort label-8323
SELECT + MIN ( DISTINCT 88 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
88

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8325
SELECT - CAST( + + 15 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

skipif mysql # not compatible
query I rowsort label-8325
SELECT - CAST ( + + 15 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 * + 66 IS NULL
----

query II rowsort
SELECT DISTINCT + col0, 12 - - 5 FROM tab0 AS cor0 WHERE NOT + col2 IN ( - col1 * + - col1 + 26 )
----
15
17
87
17
97
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + ( + col0 ) col2, 88 + + 92 FROM tab2 AS cor0
----
-13
180
-5
180
8
180

query I rowsort
SELECT DISTINCT - - col0 + - - 78 AS col1 FROM tab0 AS cor0
----
165
175
93

query I rowsort
SELECT ALL - 10 + - 49 AS col1 FROM tab0 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-8332
SELECT + + COUNT( * ) + + SUM( DISTINCT col0 ) col1, + 29 AS col0 FROM tab0 cor0
----
202
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8332
SELECT + + COUNT ( * ) + + SUM ( DISTINCT col0 ) col1, + 29 AS col0 FROM tab0 cor0
----
202
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT DISTINCT + + 64 + - - 49 + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT + + 64 + - - 49 + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
110

query I rowsort
SELECT ALL + 56 * + col1 FROM tab1 AS cor0
----
2632
280
784

query I rowsort
SELECT col1 * + 10 * + col2 AS col0 FROM tab1
----
13440
2950
31960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 * + col1 * - col1 col1 FROM tab2
----
22557225
29218112
6101946

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT DISTINCT - COUNT( * ) + + 89 col1 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8338
SELECT DISTINCT - COUNT ( * ) + + 89 col1 FROM tab2 AS cor0
----
86

query I rowsort
SELECT ALL + ( - - 94 ) - + + 12 FROM tab1 AS cor0
----
82
82
82

query II rowsort
SELECT + 26, col1 AS col2 FROM tab2 AS cor0
----
26
51
26
67
26
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8341
SELECT - 10 * - - ( + + CAST( + + COUNT( * ) AS SIGNED ) ) - COUNT( + col0 ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8341
SELECT - 10 * - - ( + + CAST ( + + COUNT ( * ) AS INTEGER ) ) - COUNT ( + col0 ) FROM tab1 AS cor0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8342
SELECT + CAST( MIN( ALL + col2 ) AS SIGNED ) - + - COUNT( * ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8342
SELECT + CAST ( MIN ( ALL + col2 ) AS INTEGER ) - + - COUNT ( * ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT - 58 - + col0 AS col2 FROM tab2 AS cor0
----
-104
-122
-133

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 > + col1
----

query I rowsort
SELECT + + col2 * + ( col2 ) AS col1 FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 16 <= 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT ALL + - ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL + - ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - - 96 * + + 14 FROM tab1 WHERE NOT - 1 / + 99 + + 54 - - - 94 IN ( - col2, col0, - col2 )
----
1344
1344
1344

query II rowsort
SELECT 98, - col1 * col1 + 36 AS col1 FROM tab0
----
98
-405
98
-6525
98
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT DISTINCT COUNT( * ) * - 82 AS col1 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-8350
SELECT DISTINCT COUNT ( * ) * - 82 AS col1 FROM tab1
----
-246

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8351
SELECT col1 AS col1, CAST( + - col2 AS SIGNED ) AS col2 FROM tab1
----
14
-96
47
-68
5
-59

skipif mysql # not compatible
query II rowsort label-8351
SELECT col1 AS col1, CAST ( + - col2 AS INTEGER ) AS col2 FROM tab1
----
14
-96
47
-68
5
-59

query I rowsort
SELECT + col2 * + - col0 * + col2 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8353
SELECT DISTINCT + COUNT( ALL - - col2 ) * - 94 + + 50 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN - + col1 AND col0
----
50

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT + COUNT ( ALL - - col2 ) * - 94 + + 50 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN - + col1 AND col0
----
50

query II rowsort
SELECT ALL + 98, + col0 AS col2 FROM tab1
----
98
51
98
85
98
91

query I rowsort
SELECT ALL 66 + col2 AS col1 FROM tab2 AS cor0
----
106
124
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8356
SELECT 17 DIV 79 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8356
SELECT 17 / 79 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT ALL + 63 * COUNT( * ) col0 FROM tab2
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8357
SELECT ALL + 63 * COUNT ( * ) col0 FROM tab2
----
189

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= + ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 37 + + col0 IS NULL
----

query II rowsort
SELECT DISTINCT + 15, + 10 * - 46 * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1, 11 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8361
SELECT ALL * FROM tab1 WHERE NOT 41 * - CAST( NULL AS DECIMAL ) * + 77 / ( - 7 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8361
SELECT ALL * FROM tab1 WHERE NOT 41 * - CAST ( NULL AS REAL ) * + 77 / ( - 7 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8362
SELECT + - ( + col2 ) - 32 DIV + 30 AS col1 FROM tab1 WHERE ( col1 IS NOT NULL )
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-8362
SELECT + - ( + col2 ) - 32 / + 30 AS col1 FROM tab1 WHERE ( col1 IS NOT NULL )
----
-60
-69
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8363
SELECT ALL 75 DIV + col2 AS col1 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL 75 / + col2 AS col1 FROM tab0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT DISTINCT 76 + COUNT( * ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-8364
SELECT DISTINCT 76 + COUNT ( * ) FROM tab1
----
79

query I rowsort
SELECT col1 * + - 10 + 93 * 34 AS col0 FROM tab2
----
2392
2492
2652

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT - - COUNT( * ) + + + 56 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8366
SELECT - - COUNT ( * ) + + + 56 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ALL + 68 + COUNT( * ) + + 14 * - - 41 AS col0 FROM tab0 AS cor0
----
645

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL + 68 + COUNT ( * ) + + 14 * - - 41 AS col0 FROM tab0 AS cor0
----
645

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8368
SELECT ALL CAST( + col0 AS SIGNED ) DIV - 81 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL CAST ( + col0 AS INTEGER ) / - 81 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 52 col1, ( + col1 ) * + - 82 + 81 + - + 77 AS col0 FROM tab2 AS cor0
----
-52
-4178
-52
-5490
-52
-6310

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8370
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8370
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL + + MIN( - ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL + + MIN ( - ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8372
SELECT ALL + + 34 * - SUM( DISTINCT - + col0 ) + + - 34 * - 94 + - - CAST( NULL AS SIGNED ) / + COUNT( * ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8372
SELECT ALL + + 34 * - SUM ( DISTINCT - + col0 ) + + - 34 * - 94 + - - CAST ( NULL AS INTEGER ) / + COUNT ( * ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col1 * + ( 55 ) + col0 AS col2 FROM tab0 AS cor0
----
1242
152
4470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8374
SELECT CAST( NULL AS SIGNED ) * + - col2 + - + 36 / - col2 * - - col2 + + 2 * + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8374
SELECT CAST ( NULL AS INTEGER ) * + - col2 + - + 36 / - col2 * - - col2 + + 2 * + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT MIN( - - col0 ) FROM tab0 AS cor0 WHERE NOT NULL >= + col0 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT MIN ( - - col0 ) FROM tab0 AS cor0 WHERE NOT NULL >= + col0 * + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8376
SELECT + 29 * col1, ( + col2 ) * 1 - - + ( + col1 ) / CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
2349
NULL
29
NULL
609
NULL

skipif mysql # not compatible
query II rowsort label-8376
SELECT + 29 * col1, ( + col2 ) * 1 - - + ( + col1 ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
2349
NULL
29
NULL
609
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 * + col2 col0 FROM tab2
----
-237160
-260362
-59823

query I rowsort
SELECT DISTINCT - ( ( col2 ) ) FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT - MAX( ALL - col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8379
SELECT - MAX ( ALL - col0 ) AS col2 FROM tab1
----
51

query I rowsort
SELECT DISTINCT - col0 + 6 * + + 70 * col2 FROM tab1
----
24695
28469
40269

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 56 / - col2 + + col2 NOT BETWEEN NULL AND - col0 + - col2
----

query I rowsort
SELECT + - col1 * - - 91 FROM tab2 AS cor0
----
-4641
-6097
-7007

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8383
SELECT - CAST( NULL AS DECIMAL ) * col0 * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8383
SELECT - CAST ( NULL AS REAL ) * col0 * + col2 FROM tab2
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8385
SELECT ALL + col0 + + CAST( + col2 AS SIGNED ) + + col1 DIV - 88 AS col0 FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL + col0 + + CAST ( + col2 AS INTEGER ) + + col1 / - 88 AS col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT DISTINCT 97 DIV + col1 + + + 55 + - col0 FROM tab0 AS cor0
----
-28
41
55

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT 97 / + col1 + + + 55 + - col0 FROM tab0 AS cor0
----
-28
41
55

query I rowsort
SELECT ALL - col2 + - 97 FROM tab2 AS cor0
----
-120
-137
-155

query I rowsort
SELECT col2 + + 17 AS col0 FROM tab2 AS cor0
----
40
57
75

query I rowsort
SELECT DISTINCT - col1 - ( + col2 ) AS col0 FROM tab2 AS cor0
----
-117
-125
-74

query II rowsort
SELECT + col0 + - ( - col1 ), col0 FROM tab0 AS cor0
----
108
87
96
15
98
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT ALL COUNT( * ) * 56 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL COUNT ( * ) * 56 FROM tab1 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL 83 - - COUNT( * ) FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL 83 - - COUNT ( * ) FROM tab1 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT + COUNT( DISTINCT + ( - + 47 ) ) + - - MAX( ALL + - col2 ) FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-8393
SELECT + COUNT ( DISTINCT + ( - + 47 ) ) + - - MAX ( ALL + - col2 ) FROM tab2 AS cor0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8394
SELECT CAST( - MAX( DISTINCT 97 ) AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
-97

skipif mysql # not compatible
query I rowsort label-8394
SELECT CAST ( - MAX ( DISTINCT 97 ) AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 0 >= NULL
----

query I rowsort
SELECT DISTINCT - 9 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8397
SELECT DISTINCT - col2 + + col2 DIV - col0 FROM tab0
----
-10
-100
-50

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT - col2 + + col2 / - col0 FROM tab0
----
-10
-100
-50

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT NULL > 49 / + col0
----

query I rowsort
SELECT - - 15 AS col2 FROM tab1 AS cor0
----
15
15
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8400
SELECT 16 DIV - - COUNT( DISTINCT + col1 ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8400
SELECT 16 / - - COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT ALL - + COUNT( * ) * + MAX( 90 ) col0 FROM tab0 AS cor0
----
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8401
SELECT ALL - + COUNT ( * ) * + MAX ( 90 ) col0 FROM tab0 AS cor0
----
-270

query I rowsort
SELECT 6 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query II rowsort
SELECT DISTINCT - col0, - ( - + 43 ) * col2 AS col1 FROM tab0
----
-15
2021
-87
430
-97
4257

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8405
SELECT DISTINCT - col2, + col0 + - 7 + + + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8405
SELECT DISTINCT - col2, + col0 + - 7 + + + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - 38 AS col1 FROM tab1 cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT ALL + MAX( + - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL + MAX ( + - col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT - col1 * + 38 AS col0 FROM tab2 AS cor0
----
-1938
-2546
-2926

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8409
SELECT DISTINCT + 97 * - CAST( NULL AS SIGNED ) * - col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT + 97 * - CAST ( NULL AS INTEGER ) * - col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 col1 FROM tab2 cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT ALL - - COUNT( * ) FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL - - COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
3

query II rowsort
SELECT DISTINCT + 93 AS col2, col1 FROM tab0 WHERE - col0 * + + col0 * + - col2 IS NOT NULL
----
93
1
93
21
93
81

query I rowsort
SELECT ALL - ( + + col1 ) + 70 AS col2 FROM tab2
----
-7
19
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT DISTINCT + SUM( + 79 ) + + 98 FROM tab1
----
335

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT + SUM ( + 79 ) + + 98 FROM tab1
----
335

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 AS col2, col2 col1 FROM tab2 cor0
----
27
23
27
40
27
58

query I rowsort
SELECT AVG ( + col0 ) FROM tab1 AS cor0 WHERE NULL IN ( col1 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 32, - col1, - col0, - col0 + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 78 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT - COUNT( * ) + + - 60 AS col1 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-8420
SELECT - COUNT ( * ) + + - 60 AS col1 FROM tab0
----
-63

query I rowsort
SELECT + 52 * + col2 * + - ( 35 ) AS col2 FROM tab1
----
-107380
-123760
-174720

query I rowsort
SELECT DISTINCT + col2 * - 56 + + + col1 AS col1 FROM tab0
----
-2551
-539
-5543

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8423
SELECT CAST( + col2 AS SIGNED ), + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

skipif mysql # not compatible
query II rowsort label-8423
SELECT CAST ( + col2 AS INTEGER ), + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT + COUNT( * ) + 4 FROM tab1 AS cor0 WHERE col0 * col2 IS NOT NULL
----
7

skipif mysql # not compatible
query I rowsort label-8425
SELECT + COUNT ( * ) + 4 FROM tab1 AS cor0 WHERE col0 * col2 IS NOT NULL
----
7

query I rowsort
SELECT + + 81 AS col1 FROM tab2 AS cor0 WHERE 19 - - col0 IS NOT NULL
----
81
81
81

query I rowsort
SELECT ALL + col1 + 76 AS col1 FROM tab2 AS cor0
----
127
143
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT - COUNT( * ) - SUM( ALL + 77 ) FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-8428
SELECT - COUNT ( * ) - SUM ( ALL + 77 ) FROM tab1 AS cor0
----
-234

query II rowsort
SELECT ALL col0 AS col0, - col2 AS col1 FROM tab1
----
51
-96
85
-59
91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8430
SELECT + col0 / col0 * + - 47 - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8430
SELECT + col0 / col0 * + - 47 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT - 36 + + COUNT( * ) col0 FROM tab0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8431
SELECT - 36 + + COUNT ( * ) col0 FROM tab0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT - COUNT( DISTINCT - - col2 ) * - - 41 + MAX( DISTINCT + col0 ) AS col2 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-8432
SELECT - COUNT ( DISTINCT - - col2 ) * - - 41 + MAX ( DISTINCT + col0 ) AS col2 FROM tab1
----
-32

query II rowsort
SELECT DISTINCT - col1, 83 AS col1 FROM tab1
----
-14
83
-47
83
-5
83

query I rowsort
SELECT ALL 82 * 70 FROM tab0
----
5740
5740
5740

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT + SUM( + col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
103

skipif mysql # not compatible
query I rowsort label-8435
SELECT + SUM ( + col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
103

query II rowsort
SELECT ALL + 69 AS col0, - col2 * - ( 61 ) * col2 * ( col2 ) AS col1 FROM tab2 AS cor0
----
69
11901832
69
3904000
69
742187

query II rowsort
SELECT DISTINCT col2, ( 37 ) AS col1 FROM tab0 cor0
----
10
37
47
37
99
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8438
SELECT DISTINCT + CAST( + + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT + CAST ( + + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT - 94, col1 FROM tab1 AS cor0
----
-94
14
-94
47
-94
5

query I rowsort
SELECT ALL ( + 45 ) AS col0 FROM tab2 cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT DISTINCT COUNT( DISTINCT - ( - - 40 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT COUNT ( DISTINCT - ( - - 40 ) ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8442
SELECT DISTINCT CAST( + col2 AS SIGNED ) * - 9 FROM tab1
----
-531
-612
-864

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * - 9 FROM tab1
----
-531
-612
-864

query I rowsort
SELECT ALL - 44 FROM tab0 AS cor0 WHERE NOT NULL < + col2
----

query I rowsort
SELECT - - 45 + + col2 AS col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 - col0
----

query II rowsort
SELECT - col0 + 46 AS col2, col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-18
77
-29
67
0
51

query I rowsort
SELECT DISTINCT + - 62 AS col2 FROM tab2 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT COUNT( * ) * MIN( ALL + 76 ) AS col0 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-8447
SELECT COUNT ( * ) * MIN ( ALL + 76 ) AS col0 FROM tab1 AS cor0
----
228

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8448
SELECT ALL - + col2 / + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL - + col2 / + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT ALL COUNT( ALL - 25 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL COUNT ( ALL - 25 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8451
SELECT - 42 DIV + 51 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8451
SELECT - 42 / + 51 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 29 + - col1 AS col0 FROM tab2
----
-22
-38
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT DISTINCT - COUNT( * ) * - 41 AS col2 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT - COUNT ( * ) * - 41 AS col2 FROM tab2
----
123

query I rowsort
SELECT col0 + - col2 - 31 FROM tab2
----
-14
-7
-8

query I rowsort
SELECT DISTINCT 93 FROM tab1 WHERE - 80 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 22 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 80 + + ( + 2 ) FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT + ( - - 60 ) * col0 FROM tab1 AS cor0
----
3060
5100
5460

query II rowsort
SELECT + 73 * + col0 * - col1 AS col1, col1 * + col1 FROM tab2 AS cor0
----
-171258
2601
-359744
5929
-366825
4489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * - - 38 * - col1 FROM tab2
----
-187264
-190950
-89148

query I rowsort
SELECT DISTINCT 84 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8463
SELECT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT ALL + 12 + - 75 * + col1 * - col1 AS col2 FROM tab1
----
14712
165687
1887

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT - ( + COUNT( * ) ) + 17 AS col2 FROM tab0 cor0
----
14

skipif mysql # not compatible
query I rowsort label-8465
SELECT - ( + COUNT ( * ) ) + 17 AS col2 FROM tab0 cor0
----
14

query I rowsort
SELECT 16 * - 67 + + col2 FROM tab0 AS cor0
----
-1025
-1062
-973

query I rowsort
SELECT + 33 + - - col0 FROM tab2 AS cor0
----
108
79
97

query I rowsort
SELECT - + col1 + - col1 AS col0 FROM tab0 cor0
----
-162
-2
-42

query I rowsort
SELECT ALL - 66 + - 79 FROM tab1 AS cor0
----
-145
-145
-145

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8471
SELECT ALL - CAST( NULL AS SIGNED ) - SUM( col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL - CAST ( NULL AS INTEGER ) - SUM ( col1 ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - - col2 AS col2, 55 AS col1 FROM tab2 AS cor0
----
23
55
40
55
58
55

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - + 89
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 * + 16 col0 FROM tab1 WHERE NOT - 44 / col1 IS NOT NULL
----

query II rowsort
SELECT - 79 * + col1, ( - col1 ) FROM tab1 WHERE NOT col0 + col2 * - col0 - - 47 + col2 <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT - MIN( - - 68 ) FROM tab1, tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT - MIN ( - - 68 ) FROM tab1, tab0 AS cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8477
SELECT DISTINCT + CAST( - - col1 AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT + CAST ( - - col1 AS INTEGER ) AS col2 FROM tab0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 9 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8479
SELECT + col0 DIV + 18 - - col2 AS col1 FROM tab0 AS cor0
----
104
14
47

skipif mysql # not compatible
query I rowsort label-8479
SELECT + col0 / + 18 - - col2 AS col1 FROM tab0 AS cor0
----
104
14
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT COUNT( ALL + 37 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8480
SELECT COUNT ( ALL + 37 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8481
SELECT DISTINCT + 16 AS col2, - 30 + + + col1 AS col0 FROM tab0 WHERE - CAST( + col2 AS SIGNED ) / - 79 * - - ( - col2 ) + 8 + - col0 * - + col0 BETWEEN + - col2 AND - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-8481
SELECT DISTINCT + 16 AS col2, - 30 + + + col1 AS col0 FROM tab0 WHERE - CAST ( + col2 AS INTEGER ) / - 79 * - - ( - col2 ) + 8 + - col0 * - + col0 BETWEEN + - col2 AND - CAST ( + col0 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL - 62 + COUNT( * ) - 1 AS col2 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL - 62 + COUNT ( * ) - 1 AS col2 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT - col1 * col0 * 33 FROM tab2 AS cor0
----
-162624
-165825
-77418

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8485
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE ( NOT - col2 NOT IN ( + col1 - CAST( NULL AS SIGNED ), 24 + - CAST( NULL AS DECIMAL ) * col1 * col1 ) )
----

skipif mysql # not compatible
query I rowsort label-8485
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE ( NOT - col2 NOT IN ( + col1 - CAST ( NULL AS INTEGER ), 24 + - CAST ( NULL AS REAL ) * col1 * col1 ) )
----

query I rowsort
SELECT col1 * - + 14 AS col2 FROM tab0
----
-1134
-14
-294

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8487
SELECT ALL * FROM tab2 WHERE - CAST( 51 AS SIGNED ) NOT BETWEEN + col0 AND - col0 + - 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8487
SELECT ALL * FROM tab2 WHERE - CAST ( 51 AS INTEGER ) NOT BETWEEN + col0 AND - col0 + - 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - col1 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL - - 52 + + MIN( - ( + col0 ) ) FROM tab0 WHERE NOT col2 IS NULL
----
-45

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL - - 52 + + MIN ( - ( + col0 ) ) FROM tab0 WHERE NOT col2 IS NULL
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8490
SELECT - + 9 * col2 + col2 + + ( + col0 ) - - CAST( - 38 AS SIGNED ) * 88 FROM tab2 WHERE - col2 * - 49 >= + 93
----
-3482
-3600
-3733

skipif mysql # not compatible
query I rowsort label-8490
SELECT - + 9 * col2 + col2 + + ( + col0 ) - - CAST ( - 38 AS INTEGER ) * 88 FROM tab2 WHERE - col2 * - 49 >= + 93
----
-3482
-3600
-3733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8491
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 70 * + SUM( DISTINCT 4 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 70 * + SUM ( DISTINCT 4 ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 69 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col2 + 8 AS col2, col0 FROM tab0
----
107
97
18
87
55
15

query I rowsort
SELECT DISTINCT - 79 * + - col1 * + 33 AS col0 FROM tab1 AS cor0
----
122529
13035
36498

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8495
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE ( 39 ) BETWEEN NULL AND + ( 82 ) * + 21
----

skipif mysql # not compatible
query I rowsort label-8495
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE ( 39 ) BETWEEN NULL AND + ( 82 ) * + 21
----

query II rowsort
SELECT ALL + col2 * - + col2 AS col1, - col0 AS col0 FROM tab0 AS cor0
----
-100
-87
-2209
-15
-9801
-97

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE - 90 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 49 + + 62 + - col2 + col2 FROM tab1 cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> 67 * col1 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-8500
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> 67 * col1 + - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8501
SELECT + - 40 AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN + CAST( - + col2 AS SIGNED ) * - col0 + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8501
SELECT + - 40 AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN + CAST ( - + col2 AS INTEGER ) * - col0 + col2 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + col0 + + col1 + - col1 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query II rowsort label-8503
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-8503
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8504
SELECT MIN( - + CAST( - + 64 AS SIGNED ) ) AS col0 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-8504
SELECT MIN ( - + CAST ( - + 64 AS INTEGER ) ) AS col0 FROM tab1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL MAX( - - 57 ) AS col0 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL MAX ( - - 57 ) AS col0 FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT - ( + - COUNT( - + col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8506
SELECT - ( + - COUNT ( - + col0 ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT + 35 / col1 AS col1 FROM tab2 WHERE 44 <= NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT NULL <= - 5 * + - 21
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 20 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8510
SELECT DISTINCT COUNT( * ) AS col2, ( - - 81 ) AS col2 FROM tab0
----
3
81

skipif mysql # not compatible
query II rowsort label-8510
SELECT DISTINCT COUNT ( * ) AS col2, ( - - 81 ) AS col2 FROM tab0
----
3
81

query II rowsort
SELECT ALL 94 AS col1, - 20 FROM tab0
----
94
-20
94
-20
94
-20

query II rowsort
SELECT DISTINCT - 35 AS col1, col2 AS col1 FROM tab0
----
-35
10
-35
47
-35
99

query I rowsort
SELECT ALL - + col1 FROM tab2 AS cor0 WHERE NOT col1 + 64 IS NOT NULL
----

query I rowsort
SELECT col1 * - + 97 AS col1 FROM tab1 AS cor0 WHERE NOT ( + 36 - - + col2 <= + col1 * - + 21 )
----
-1358
-4559
-485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8515
SELECT + COUNT( DISTINCT - col2 ) DIV + 38 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8515
SELECT + COUNT ( DISTINCT - col2 ) / + 38 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col0, col0 col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT DISTINCT - - col1 * + col0 * + 84 FROM tab1 cor0
----
35700
359268
59976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col0 FROM tab2 WHERE NOT - col2 IS NULL
----
8
8
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8519
SELECT + SUM( ALL + CAST( - ( 36 ) AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-324

skipif mysql # not compatible
query I rowsort label-8519
SELECT + SUM ( ALL + CAST ( - ( 36 ) AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-324

query I rowsort
SELECT ALL 27 * - 40 + - col0 + + col2 FROM tab0 AS cor0
----
-1048
-1078
-1157

query I rowsort
SELECT ( + - 27 ) AS col0 FROM tab2 AS cor0
----
-27
-27
-27

query I rowsort
SELECT col0 + + + col0 * + + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-158862
-18210
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT + - ( 62 ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8523
SELECT + - ( 62 ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT DISTINCT 54 * - - 72 AS col2 FROM tab0 AS cor0
----
3888

query I rowsort
SELECT col0 + + 35 FROM tab1
----
120
126
86

query I rowsort
SELECT DISTINCT - 87 * col2 AS col0 FROM tab1
----
-5133
-5916
-8352

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT COUNT( * ) + 79 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-8527
SELECT COUNT ( * ) + 79 FROM tab2
----
82

onlyif mysql # DIV for integer division: 
query III rowsort label-8528
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN col2 DIV 44 DIV col2 + - - col1 AND - col2 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8528
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN col2 / 44 / col2 + - - col1 AND - col2 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 - + 55 FROM tab0 AS cor0
----
-45
-8
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8530
SELECT ALL + 79 DIV col2 col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8530
SELECT ALL + 79 / col2 col1 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL 35 AS col1 FROM tab0 WHERE 98 IS NOT NULL
----
35
35
35

query I rowsort
SELECT DISTINCT + col0 * col2 - - col1 * + 43 FROM tab0
----
1773
4188
9646

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8533
SELECT ALL - COUNT( * ) DIV SUM( DISTINCT col1 ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8533
SELECT ALL - COUNT ( * ) / SUM ( DISTINCT col1 ) col0 FROM tab0
----
0

query I rowsort
SELECT ALL + 77 - col1 / col0 FROM tab2 WHERE NULL = + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8535
SELECT 43 DIV 80 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8535
SELECT 43 / 80 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE + col1 * + col2 NOT IN ( + col2 * 39 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN 37 + + col0 AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 69 * col2 + - col1 AS col0 FROM tab0
----
3162
669
6830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col2 + col2 * 22 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8540
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col2 + col2 * 22 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 97 ) BETWEEN + col0 AND ( col1 - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE col1 * - col1 <= - ( + col1 ) + + 41
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + - 31 AS col1 FROM tab0
----
-16
56
66

query I rowsort
SELECT ALL col1 FROM tab1 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 65 + col0 ) NOT IN ( - col1 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8546
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN + 31 AND ( 50 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8546
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN + 31 AND ( 50 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT - CAST( col2 AS SIGNED ) + col0 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-8547
SELECT - CAST ( col2 AS INTEGER ) + col0 FROM tab2
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8548
SELECT ALL col0 + + 6 FROM tab2 WHERE 50 NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL col0 + + 6 FROM tab2 WHERE 50 NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col2 + 21 * + col1 AS col2 FROM tab1
----
1055
164
390

onlyif mysql # DIV for integer division: 
query I rowsort label-8550
SELECT DISTINCT - 96 + - ( col2 ) DIV ( col1 * - 91 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT - 96 + - ( col2 ) / ( col1 * - 91 ) AS col1 FROM tab1
----
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL COUNT( ALL + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL COUNT ( ALL + col1 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 + + col1 * + col1 ) IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8554
SELECT DISTINCT col1 DIV - 97 AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT col1 / - 97 AS col1 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8555
SELECT DISTINCT COUNT( * ) / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 20 FROM tab2 AS cor0 CROSS JOIN tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT COUNT( * ) * ( - 18 ) + + 18 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-8557
SELECT COUNT ( * ) * ( - 18 ) + + 18 FROM tab2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT COUNT( * ) + ( COUNT( * ) ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8558
SELECT COUNT ( * ) + ( COUNT ( * ) ) FROM tab1
----
6

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT 83 + COUNT( * ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-8560
SELECT 83 + COUNT ( * ) FROM tab2
----
86

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( - col0 + - col2 * col1 )
----

query I rowsort
SELECT DISTINCT - + 11 + col2 FROM tab0 AS cor0
----
-1
36
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 * col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NULL BETWEEN ( + col0 ) AND + col0
----

query I rowsort
SELECT ALL 45 * col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8566
SELECT DISTINCT - col0 DIV + col2 - - col2 AS col2 FROM tab1 AS cor0
----
58
67
96

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT - col0 / + col2 - - col2 AS col2 FROM tab1 AS cor0
----
58
67
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + - 34 IS NULL
----

query I rowsort
SELECT ALL + col2 * 66 FROM tab1 cor0
----
3894
4488
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * col2 IS NOT NULL
----
0

query I rowsort
SELECT 74 AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
74
74
74

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND - col0
----

query I rowsort
SELECT - col1 - + ( - col0 ) * col2 FROM tab0
----
624
849
9602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8573
SELECT ( + 95 ) / CAST( NULL AS SIGNED ) - + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT ( + 95 ) / CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL SUM( + - 86 ) FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL SUM ( + - 86 ) FROM tab2
----
-258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8575
SELECT CAST( + 49 AS SIGNED ) * 20 + MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT CAST ( + 49 AS INTEGER ) * 20 + MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8576
SELECT 64 * CAST( + 87 AS SIGNED ) + - col2 AS col0 FROM tab1
----
5472
5500
5509

skipif mysql # not compatible
query I rowsort label-8576
SELECT 64 * CAST ( + 87 AS INTEGER ) + - col2 AS col0 FROM tab1
----
5472
5500
5509

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8577
SELECT * FROM tab2 WHERE + 81 <= col2 * CAST( NULL AS SIGNED ) + 31
----

skipif mysql # not compatible
query III rowsort label-8577
SELECT * FROM tab2 WHERE + 81 <= col2 * CAST ( NULL AS INTEGER ) + 31
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col2 AS col1 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8579
SELECT DISTINCT - CAST( + - col0 AS SIGNED ) AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT - CAST ( + - col0 AS INTEGER ) AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT - 77 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + ( + 33 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 50 * - - col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 * - + col1 * - 99 FROM tab0 AS cor0
----
-20790
-376893
-9801

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 60 * + col0 NOT IN ( col1 / 65 + - col2 )
----

query I rowsort
SELECT ALL + 8 + - 28 * + col0 FROM tab2 AS cor0 WHERE NOT - ( - col2 ) * col0 > col0 * + col1
----
-1280
-1784
-2092

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 * 33 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8587
SELECT + ( + col1 ) * - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8587
SELECT + ( + col1 ) * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8588
SELECT DISTINCT 71 * 27 DIV - 84 + - col2 * col1 FROM tab2 AS cor0
----
-1195
-3102
-3908

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT 71 * 27 / - 84 + - col2 * col1 FROM tab2 AS cor0
----
-1195
-3102
-3908

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE ( 2 ) NOT BETWEEN 71 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE ( 2 ) NOT BETWEEN 71 AND NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8590
SELECT ALL - + ( col0 ) DIV col2 * - ( 23 ) - col0 * 42 FROM tab1 cor0
----
-2142
-3547
-3799

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL - + ( col0 ) / col2 * - ( 23 ) - col0 * 42 FROM tab1 cor0
----
-2142
-3547
-3799

query I rowsort
SELECT + col1 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT - 24 * + COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-8592
SELECT - 24 * + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT + SUM( + - 32 ) AS col2 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-8593
SELECT + SUM ( + - 32 ) AS col2 FROM tab0
----
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + + 29 * + 89 ) <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - + 41 ) FROM tab1
----
-41

query I rowsort
SELECT DISTINCT 87 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT DISTINCT 52 * COUNT( * ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT 52 * COUNT ( * ) AS col0 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + MAX( col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8598
SELECT + MAX ( col2 ) AS col2 FROM tab1
----
96

query II rowsort
SELECT ALL - ( + + 81 ) AS col0, - 80 FROM tab1
----
-81
-80
-81
-80
-81
-80

query I rowsort
SELECT ALL - col2 * + + ( 18 ) * + ( col1 ) + + ( + 32 ) FROM tab2
----
-21082
-55408
-69916

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT DISTINCT 18 * + COUNT( * ) * - 65 AS col2 FROM tab0
----
-3510

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT 18 * + COUNT ( * ) * - 65 AS col2 FROM tab0
----
-3510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - col2 ) * - col2 col0 FROM tab2
----
1600
3364
529

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 >= - - 36 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 42 ) <= NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE ( - + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT DISTINCT MIN( - col1 ) + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( ( + col0 ) ) >= - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT MIN ( - col1 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( ( + col0 ) ) >= - col2
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( + - 49 )
----

query I rowsort
SELECT + - 4 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8609
SELECT MAX( ALL - - col2 ) DIV - - 20 + - COUNT( * ) col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8609
SELECT MAX ( ALL - - col2 ) / - - 20 + - COUNT ( * ) col0 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 * - 17 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 08fa07fed055c156e813d5e2e0eb1103

query III rowsort
SELECT * FROM tab0 WHERE ( - ( + 79 ) ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 60 + 21 AS col2 FROM tab0 AS cor0
----
-39
-39
-39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 67 + 70 ) = ( NULL ) AND NOT 80 * - 67 BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT ALL + 43 * - - col0 + + col2 FROM tab1 AS cor0
----
2289
3714
3981

query I rowsort
SELECT 48 + + 59 FROM tab0 AS cor0
----
107
107
107

query III rowsort
SELECT * FROM tab1 cor0 WHERE 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 12 * - 0 + - col2 + + col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8618
SELECT - CAST( NULL AS SIGNED ) * + col0 + + - col1 + + col2 + - col1 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8618
SELECT - CAST ( NULL AS INTEGER ) * + col0 + + - col1 + + col2 + - col1 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 47 FROM tab2 cor0 WHERE + 0 + - 74 IS NOT NULL
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT DISTINCT + COUNT( + 70 ) * - 34 + + + 79 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT + COUNT ( + 70 ) * - 34 + + + 79 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT + 19 + - 68 FROM tab0 AS cor0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-8622
SELECT COUNT( * ) AS col1, - COUNT( * ) * MIN( ALL + 56 ) AS col1 FROM tab0
----
3
-168

skipif mysql # not compatible
query II rowsort label-8622
SELECT COUNT ( * ) AS col1, - COUNT ( * ) * MIN ( ALL + 56 ) AS col1 FROM tab0
----
3
-168

onlyif mysql # aggregate syntax: 
query II rowsort label-8623
SELECT ALL 17, COUNT( * ) AS col1 FROM tab0
----
17
3

skipif mysql # not compatible
query II rowsort label-8623
SELECT ALL 17, COUNT ( * ) AS col1 FROM tab0
----
17
3

query I rowsort
SELECT + col2 * ( - + col1 ) FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT DISTINCT - - MAX( ALL - col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 53 * + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT - - MAX ( ALL - col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 53 * + - col2
----
NULL

query II rowsort
SELECT - - col1 AS col1, + col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT DISTINCT - - MIN( - - 89 ) col2 FROM tab1 cor0
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8627
SELECT DISTINCT - - MIN ( - - 89 ) col2 FROM tab1 cor0
----
89

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 * - col0 - + col0 < ( - 20 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 18 IS NOT NULL
----

query I rowsort
SELECT - + col0 * - col0 AS col2 FROM tab0 cor0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8631
SELECT - 30 * + CAST( - 52 AS SIGNED ) FROM tab2 AS cor0
----
1560
1560
1560

skipif mysql # not compatible
query I rowsort label-8631
SELECT - 30 * + CAST ( - 52 AS INTEGER ) FROM tab2 AS cor0
----
1560
1560
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT ALL - - MAX( ALL + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL - - MAX ( ALL + col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8633
SELECT ALL + 53 DIV + COUNT( * ) - - ( COUNT( * ) ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL + 53 / + COUNT ( * ) - - ( COUNT ( * ) ) FROM tab0 AS cor0
----
20

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( - ( + 82 ) * + col1 + - ( col1 ) + - col2 = ( col1 ) )
----
14
47
5

query I rowsort
SELECT DISTINCT col0 * - - ( - - col2 ) FROM tab2
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 86 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT ( MIN( + ( 48 ) ) ) AS col0 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-8637
SELECT ( MIN ( + ( 48 ) ) ) AS col0 FROM tab0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT - SUM( DISTINCT - ( 83 ) ) AS col2 FROM tab1 WHERE NOT + col1 + - col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT - SUM ( DISTINCT - ( 83 ) ) AS col2 FROM tab1 WHERE NOT + col1 + - col0 >= NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - 21 AS col0 FROM tab1
----
38
47
75

query I rowsort
SELECT - col1 * - - 82 FROM tab1
----
-1148
-3854
-410

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 * + 75 + - 88 ) NOT BETWEEN col1 + + + ( + col1 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8642
SELECT - col0 * ( + 0 ) DIV + - 54 - - col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8642
SELECT - col0 * ( + 0 ) / + - 54 - - col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8643
SELECT ALL - ( + - CAST( NULL AS SIGNED ) ) + 88 * + 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL - ( + - CAST ( NULL AS INTEGER ) ) + 88 * + 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - + col0 - - 41 * - - col1 * - - col1 FROM tab1 AS cor0
----
1025
8036
90569

query III rowsort
SELECT ALL * FROM tab1 WHERE - 50 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8646
SELECT * FROM tab0 cor0 WHERE - col0 / CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8646
SELECT * FROM tab0 cor0 WHERE - col0 / CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 28 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 + - col1 * + 63 )
----

query I rowsort
SELECT col2 * col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL - SUM( + + col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL - SUM ( + + col0 ) AS col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT - col2 * + col0 + - 72 + + col0 * + ( 30 ) FROM tab2 AS cor0
----
-2172
-712
250

query I rowsort
SELECT col1 - + col0 * - 10 FROM tab2
----
511
717
817

query I rowsort
SELECT ALL - 81 * + col2 - ( - col1 ) FROM tab2
----
-1812
-3163
-4631

query I rowsort
SELECT - 52 + 82 * - col0 AS col2 FROM tab2
----
-3824
-5300
-6202

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8654
SELECT DISTINCT - ( - col1 ) / + + CAST( NULL AS DECIMAL ) + + + col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT - ( - col1 ) / + + CAST ( NULL AS REAL ) + + + col0 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + - col2 AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
-1058
-2560
-4350

query I rowsort
SELECT - 87 * - - 96 * - col0 FROM tab2 WHERE ( + - col1 ) IS NOT NULL
----
384192
534528
626400

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE + col0 * - + col2 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT - COUNT( ALL - col1 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8659
SELECT - COUNT ( ALL - col1 ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT ALL - MAX( DISTINCT + col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL - MAX ( DISTINCT + col1 ) AS col0 FROM tab1
----
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-8661
SELECT + col0 col2, - 38 DIV col2 FROM tab1
----
51
0
85
0
91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8661
SELECT + col0 col2, - 38 / col2 FROM tab1
----
51
0
85
0
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT ALL MAX( ALL + + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL MAX ( ALL + + col0 ) FROM tab2
----
75

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 IN ( 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT DISTINCT - COUNT( + 4 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT - COUNT ( + 4 ) FROM tab1
----
-3

query II rowsort
SELECT ALL col0 AS col0, + col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 col2 FROM tab1 AS cor0
----
-47
-47
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 2 <> + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 57 + + col1, + 67 col1 FROM tab2
----
-6
67
10
67
20
67

query I rowsort
SELECT 60 + + - col2 FROM tab0
----
-39
13
50

query I rowsort
SELECT ALL 71 + + col2 * 87 FROM tab1
----
5204
5987
8423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8671
SELECT 83 AS col2 FROM tab1 WHERE - - CAST( NULL AS SIGNED ) + + 1 IS NULL
----
83
83
83

skipif mysql # not compatible
query I rowsort label-8671
SELECT 83 AS col2 FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) + + 1 IS NULL
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT + MIN( - 24 ) FROM tab2 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8672
SELECT + MIN ( - 24 ) FROM tab2 cor0
----
-24

query I rowsort
SELECT 48 * - + 8 + col1 FROM tab0 AS cor0
----
-303
-363
-383

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 * + - col1 * + ( - + 72 ) col0 FROM tab1 AS cor0
----
21168
71064
7560

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT + 29 * COUNT( * ) - ( - SUM( + 80 ) ) AS col0 FROM tab1 cor0
----
327

skipif mysql # not compatible
query I rowsort label-8675
SELECT + 29 * COUNT ( * ) - ( - SUM ( + 80 ) ) AS col0 FROM tab1 cor0
----
327

query I rowsort
SELECT DISTINCT - - col2 - - - col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 + + + col1 + - col0 FROM tab1 AS cor0
----
-112
-133
-139

query I rowsort
SELECT DISTINCT - + col1 - - col1 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT 52 + - COUNT( + - col0 ) AS col1 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8679
SELECT 52 + - COUNT ( + - col0 ) AS col1 FROM tab2 AS cor0
----
49

query I rowsort
SELECT + + col2 * 46 FROM tab1 AS cor0
----
2714
3128
4416

query I rowsort
SELECT ALL + - 45 - col2 AS col2 FROM tab2 AS cor0
----
-103
-68
-85

query I rowsort
SELECT DISTINCT 24 * + col0 - - col1 AS col1 FROM tab0
----
2109
2329
441

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) NOT BETWEEN - col1 + 57 - + + col0 AND - ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + 78 ) * + col1 AS col2 FROM tab2
----
3978
5226
6006

onlyif mysql # DIV for integer division: 
query I rowsort label-8685
SELECT DISTINCT 2 DIV - col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT 2 / - col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8686
SELECT ALL MAX( - - 63 ), + MIN( ALL col0 ) AS col0 FROM tab0
----
63
15

skipif mysql # not compatible
query II rowsort label-8686
SELECT ALL MAX ( - - 63 ), + MIN ( ALL col0 ) AS col0 FROM tab0
----
63
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8687
SELECT ( - + col1 ) DIV + col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-8687
SELECT ( - + col1 ) / + col0 FROM tab0
----
-5
0
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND 1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 + - 67 ) BETWEEN ( - 14 ) AND NULL
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT DISTINCT + + COUNT( * ) * + + 29 AS col2 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT + + COUNT ( * ) * + + 29 AS col2 FROM tab2 AS cor0
----
87

query I rowsort
SELECT DISTINCT + ( - 74 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-74

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 < + col0 )
----
87
21
10

query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
91

query I rowsort
SELECT DISTINCT - - 92 AS col0 FROM tab0 AS cor0
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8695
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 91, 60 * col0, - col2 * - col2 / - - ( - 42 ) + - col2 + - + col0 * - CAST( NULL AS DECIMAL ) * + col0 * - col1 + - + 86 * col2 )
----

skipif mysql # not compatible
query III rowsort label-8695
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 91, 60 * col0, - col2 * - col2 / - - ( - 42 ) + - col2 + - + col0 * - CAST ( NULL AS REAL ) * + col0 * - col1 + - + 86 * col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 18, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL + MAX( - col0 ) * + + COUNT( * ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + MAX ( - col0 ) * + + COUNT ( * ) FROM tab2
----
-138

query I rowsort
SELECT ALL 44 * col1 + - - col1 AS col0 FROM tab0
----
3645
45
945

query I rowsort
SELECT DISTINCT 54 + - col0 FROM tab0
----
-33
-43
39

query I rowsort
SELECT ALL col1 + col0 + 87 FROM tab2
----
184
228
229

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT - 3 * 67 + + + COUNT( * ) FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-8701
SELECT - 3 * 67 + + + COUNT ( * ) FROM tab1 AS cor0
----
-198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 73 + col1 * col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
4025
7848
9259

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT DISTINCT + COUNT( * ) + - - 25 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8703
SELECT DISTINCT + COUNT ( * ) + - - 25 FROM tab0 AS cor0
----
28

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + col2 + - 47 IS NULL )
----

query I rowsort
SELECT + col2 * + + 70 FROM tab0
----
3290
6930
700

query I rowsort
SELECT - ( + col2 ) * col2 AS col0 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT + COUNT( * ) * - 57 FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-8707
SELECT + COUNT ( * ) * - 57 FROM tab1
----
-171

query I rowsort
SELECT ALL - col0 * - 77 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( 39 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + + ( - 72 ) - + col0
----

query I rowsort
SELECT ALL + 15 FROM tab1 AS cor0 WHERE NULL IS NULL AND NOT 44 + - col1 - + 99 IS NULL
----
15
15
15

query I rowsort
SELECT + - 31 - - + 3 AS col1 FROM tab2 AS cor0
----
-28
-28
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8712
SELECT ALL 53 DIV + - 69 + + col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL 53 / + - 69 + + col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT + - COUNT( ALL + - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8713
SELECT + - COUNT ( ALL + - col1 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT col0, 45 AS col2 FROM tab0
----
15
45
87
45
97
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 49 col1, col0 AS col0 FROM tab2
----
-49
46
-49
64
-49
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT - COUNT( ALL 98 ) * + - MIN( + 0 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8716
SELECT - COUNT ( ALL 98 ) * + - MIN ( + 0 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL col0 * + - 67 AS col0 FROM tab1
----
-3417
-5695
-6097

query II rowsort
SELECT col2 * + + col1 * - col1, - col1 AS col2 FROM tab0 AS cor0
----
-308367
-81
-4410
-21
-99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT + - SUM( 47 ) AS col1 FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-8719
SELECT + - SUM ( 47 ) AS col1 FROM tab0 AS cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT + + SUM( ALL + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8720
SELECT + + SUM ( ALL + col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT DISTINCT - ( - + COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT - ( - + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8722
SELECT * FROM tab0 cor0 WHERE NOT col0 BETWEEN + 83 * - col2 AND + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8722
SELECT * FROM tab0 cor0 WHERE NOT col0 BETWEEN + 83 * - col2 AND + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT + COUNT( * ) * COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8723
SELECT + COUNT ( * ) * COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
12

query I rowsort
SELECT + + 73 + + + col2 FROM tab2 AS cor0
----
113
131
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - 52 NOT BETWEEN ( - - col1 * col2 * + + col2 ) AND + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8726
SELECT + + CAST( NULL AS SIGNED ) + + 93 - + ( col2 ) + ( + - 87 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8726
SELECT + + CAST ( NULL AS INTEGER ) + + 93 - + ( col2 ) + ( + - 87 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT + 2 * - MAX( DISTINCT - ( - col2 ) ) + 45 AS col1 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-8727
SELECT + 2 * - MAX ( DISTINCT - ( - col2 ) ) + 45 AS col1 FROM tab0
----
-153

query I rowsort
SELECT DISTINCT col2 + - col0 AS col1 FROM tab0 WHERE - ( + + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT 97 FROM tab2 WHERE NOT col0 IS NULL
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + col1 * + - col2, + col0 col2 FROM tab1
----
-1330
51
-290
85
-3149
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8731
SELECT col1 AS col2, + CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8731
SELECT col1 AS col2, + CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8732
SELECT ALL + 14 AS col0 FROM tab0 AS cor0 WHERE 77 NOT IN ( - col0, - CAST( NULL AS SIGNED ), + + 6 * col0 + + 62 )
----

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL + 14 AS col0 FROM tab0 AS cor0 WHERE 77 NOT IN ( - col0, - CAST ( NULL AS INTEGER ), + + 6 * col0 + + 62 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 5 ) * - col2 - - ( - col2 ) + - col2 col2 FROM tab2 AS cor0
----
120
174
69

query I rowsort
SELECT ALL - 24 - + col1 FROM tab0 cor0
----
-105
-25
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8735
SELECT * FROM tab0 cor0 WHERE NULL = CAST( NULL AS SIGNED ) * + + col2 * - - col0
----

skipif mysql # not compatible
query III rowsort label-8735
SELECT * FROM tab0 cor0 WHERE NULL = CAST ( NULL AS INTEGER ) * + + col2 * - - col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 - + - col2 <= - col1
----

query II rowsort
SELECT ALL - col1, ( - col2 ) AS col0 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-8738
SELECT ALL - 51 AS col2, + 4 DIV - ( + + 39 ) FROM tab0 cor0
----
-51
0
-51
0
-51
0

skipif mysql # not compatible
query II rowsort label-8738
SELECT ALL - 51 AS col2, + 4 / - ( + + 39 ) FROM tab0 cor0
----
-51
0
-51
0
-51
0

query I rowsort
SELECT DISTINCT col1 * 38 FROM tab0
----
3078
38
798

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT + 90 * - - ( - - COUNT( col1 ) ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-8740
SELECT + 90 * - - ( - - COUNT ( col1 ) ) FROM tab0
----
270

query II rowsort
SELECT DISTINCT + col1 * + + col1 + + ( 20 ) / + col0 AS col0, - col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8742
SELECT - col1 * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8742
SELECT - col1 * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 8 * + - col1 FROM tab0
----
-168
-648
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT - + COUNT( * ) * - 88 FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-8744
SELECT - + COUNT ( * ) * - 88 FROM tab1 AS cor0
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( ( NOT ( + col0 ) IS NOT NULL ) ) )
----
-3

skipif mysql # not compatible
query I rowsort label-8745
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( ( NOT ( + col0 ) IS NOT NULL ) ) )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8746
SELECT + col0 * col2 * - CAST( + - col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
33135
8700
950697

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8746
SELECT + col0 * col2 * - CAST ( + - col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
33135
8700
950697

query II rowsort
SELECT + + col1 * + col2, + col1 FROM tab2 AS cor0
----
1173
51
3080
77
3886
67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8749
SELECT * FROM tab0 WHERE NOT NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8749
SELECT * FROM tab0 WHERE NOT NULL >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8750
SELECT 60 col2, 1 * + + MIN( DISTINCT + ( - col0 ) ) FROM tab0 AS cor0
----
60
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8750
SELECT 60 col2, 1 * + + MIN ( DISTINCT + ( - col0 ) ) FROM tab0 AS cor0
----
60
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 69 * + col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 + 86 col0 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT + 53 * - 85 + - col1 + - + 26 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-4532
-4552
-4612

onlyif mysql # DIV for integer division: 
query II rowsort label-8754
SELECT ALL + col0, + col1 DIV - 99 AS col2 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-8754
SELECT ALL + col0, + col1 / - 99 AS col2 FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8755
SELECT - CAST( - - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8755
SELECT - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + + 32 AS col0 FROM tab1 AS cor0
----
32

query I rowsort
SELECT ALL + col1 * 36 AS col0 FROM tab1 AS cor0 WHERE NOT 95 >= NULL
----

query I rowsort
SELECT DISTINCT ( col1 ) * ( 0 ) + + + 34 * + col2 FROM tab1 AS cor0
----
2006
2312
3264

query I rowsort
SELECT col0 * + col0 * 85 FROM tab2
----
179860
348160
478125

query II rowsort
SELECT - 62 * + 74 AS col1, + col2 + + ( 49 ) - 44 FROM tab0
----
-4588
104
-4588
15
-4588
52

query I rowsort
SELECT - col1 - - ( - 95 ) FROM tab0
----
-116
-176
-96

query I rowsort
SELECT ALL 15 + + 10 AS col2 FROM tab0
----
25
25
25

query I rowsort
SELECT + 93 + 31 AS col2 FROM tab1
----
124
124
124

query I rowsort
SELECT ALL 42 + + + col1 * + + col2 FROM tab2
----
1215
3122
3928

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT + COUNT( * ) + - COUNT( * ) * - COUNT( * ) col2 FROM tab1
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8765
SELECT + COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) col2 FROM tab1
----
12

query II rowsort
SELECT col1 + col2 AS col2, + col2 * - ( + col1 ) * - ( + - col1 ) AS col1 FROM tab0
----
100
-99
128
-308367
31
-4410

query I rowsort
SELECT + 92 * - col0 + - - col0 FROM tab2 AS cor0
----
-4186
-5824
-6825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 96 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT + ( + ( 10 ) ) + 86 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query II rowsort
SELECT ALL col1 AS col0, + 91 + + 21 + + + 41 + - - col0 * - + col1 AS col1 FROM tab1
----
14
-561
47
-4124
5
-272

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8773
SELECT ALL - col1 * + - CAST( - col2 AS SIGNED ) AS col0, - col0 * + 52 FROM tab2 cor0
----
-1173
-2392
-3080
-3328
-3886
-3900

skipif mysql # not compatible
query II rowsort label-8773
SELECT ALL - col1 * + - CAST ( - col2 AS INTEGER ) AS col0, - col0 * + 52 FROM tab2 cor0
----
-1173
-2392
-3080
-3328
-3886
-3900

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + - col1 + + col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * - 51 AS col1 FROM tab1 cor0
----
-2397
-255
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT ALL + - SUM( ALL + - 36 ) AS col1 FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL + - SUM ( ALL + - 36 ) AS col1 FROM tab2 AS cor0
----
108

query I rowsort
SELECT + + ( + 23 ) AS col1 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT 54 * 24 FROM tab2
----
1296
1296
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT + MIN( DISTINCT - 62 ) AS col1 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-8780
SELECT + MIN ( DISTINCT - 62 ) AS col1 FROM tab2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL + COUNT( * ) * - COUNT( ALL - 24 ) * + COUNT( DISTINCT - 56 ) - + SUM( - 60 ) FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL + COUNT ( * ) * - COUNT ( ALL - 24 ) * + COUNT ( DISTINCT - 56 ) - + SUM ( - 60 ) FROM tab2
----
171

onlyif mysql # DIV for integer division: 
query II rowsort label-8782
SELECT DISTINCT - col0, 15 DIV col2 AS col1 FROM tab0
----
-15
0
-87
1
-97
0

skipif mysql # not compatible
query II rowsort label-8782
SELECT DISTINCT - col0, 15 / col2 AS col1 FROM tab0
----
-15
0
-87
1
-97
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 75 * + col1 NOT BETWEEN ( NULL ) AND col2 * - col1
----
51
14
96

query I rowsort
SELECT - col1 * - ( col1 ) AS col1 FROM tab0
----
1
441
6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + - col0 col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query II rowsort label-8786
SELECT ALL + 6, - ( - COUNT( * ) ) + + COUNT( * ) AS col1 FROM tab0 cor0
----
6
6

skipif mysql # not compatible
query II rowsort label-8786
SELECT ALL + 6, - ( - COUNT ( * ) ) + + COUNT ( * ) AS col1 FROM tab0 cor0
----
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT + COUNT( ALL 49 ) * + + 61 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-8787
SELECT + COUNT ( ALL 49 ) * + + 61 FROM tab2 AS cor0
----
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 63 col0, - col0 FROM tab1 cor0
----
63
-51
63
-85
63
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT + ( - COUNT( * ) ) FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8789
SELECT + ( - COUNT ( * ) ) FROM tab0, tab0 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - - col2 * - - col2 + + col2 * - 82 - col2 col2 FROM tab2 WHERE ( col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8791
SELECT + ( + CAST( + - col1 AS SIGNED ) ) AS col0 FROM tab0 cor0 WHERE - 94 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8791
SELECT + ( + CAST ( + - col1 AS INTEGER ) ) AS col0 FROM tab0 cor0 WHERE - 94 IS NULL
----

query I rowsort
SELECT DISTINCT 96 + - - 98 + + 49 AS col1 FROM tab0 AS cor0
----
243

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8793
SELECT + CAST( NULL AS DECIMAL ) + + - 37 * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8793
SELECT + CAST ( NULL AS REAL ) + + - 37 * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8794
SELECT - + 37 DIV - - col2 + - col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8794
SELECT - + 37 / - - col2 + - col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL - col2 * col1 * - col2 - + col1 AS col0 FROM tab2 AS cor0
----
123123
225321
26928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8796
SELECT - - CAST( 64 AS SIGNED ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-8796
SELECT - - CAST ( 64 AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8797
SELECT ALL col1 * - CAST( NULL AS SIGNED ) * - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8798
SELECT ALL 70 DIV COUNT( * ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL 70 / COUNT ( * ) FROM tab2
----
23

query II rowsort
SELECT - col1, + 40 * col0 - col0 + + col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8800
SELECT ALL CAST( col0 AS SIGNED ) + + col2 + + col1 * + col1 FROM tab1
----
169
2368
343

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL CAST ( col0 AS INTEGER ) + + col2 + + col1 * + col1 FROM tab1
----
169
2368
343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 43 * + 79 * col1, 61 * - + col0 + + col1 * + 58 + - + col0 col1 FROM tab0
----
275157
3768
3397
-5956
71337
-4176

onlyif mysql # DIV for integer division: 
query I rowsort label-8802
SELECT ALL + col2 DIV + col2 + - col2 FROM tab0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL + col2 / + col2 + - col2 FROM tab0
----
-46
-9
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8803
SELECT ALL 63 - + CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE NULL = col0
----
63

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL 63 - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE NULL = col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT ALL + COUNT( + col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL + COUNT ( + col2 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col2 - 56 FROM tab2 AS cor0
----
-16
-33
2

query I rowsort
SELECT ALL - 94 * + col1 * 45 - - - col0 * col1 FROM tab2 AS cor0
----
-218076
-288435
-330638

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT DISTINCT COUNT( - + col2 ) - + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT COUNT ( - + col2 ) - + COUNT ( * ) AS col2 FROM tab2
----
0

query I rowsort
SELECT - 87 * - - col1 FROM tab1 AS cor0
----
-1218
-4089
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT DISTINCT - + COUNT( + col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT - + COUNT ( + col0 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL < + 95
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 * col0 col1 FROM tab1 AS cor0
----
1938
3230
3458

query I rowsort
SELECT - - col1 + - 30 AS col1 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + col1 AND - 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL COUNT( + col1 ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8813
SELECT ALL COUNT ( + col1 ) col0 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT - 43 AS col1 FROM tab0 cor0
----
-43

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 + - ( - col2 ) < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL + COUNT( DISTINCT + 42 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL + COUNT ( DISTINCT + 42 ) AS col0 FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT 31 BETWEEN + - col2 AND - 75 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT + MAX( DISTINCT - + col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8818
SELECT + MAX ( DISTINCT - + col1 ) FROM tab2
----
-51

query I rowsort
SELECT 71 * - - col1 FROM tab1
----
3337
355
994

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8820
SELECT + CAST( - 30 AS SIGNED ) DIV - + col1 FROM tab0 AS cor0
----
0
1
30

skipif mysql # not compatible
query I rowsort label-8820
SELECT + CAST ( - 30 AS INTEGER ) / - + col1 FROM tab0 AS cor0
----
0
1
30

onlyif mysql # DIV for integer division: 
query II rowsort label-8821
SELECT 96 * 44 DIV - 85 AS col0, - col2 + + 95 FROM tab2 AS cor0
----
-49
37
-49
55
-49
72

skipif mysql # not compatible
query II rowsort label-8821
SELECT 96 * 44 / - 85 AS col0, - col2 + + 95 FROM tab2 AS cor0
----
-49
37
-49
55
-49
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8822
SELECT ALL - 45 * - col2 DIV col2 + - col0 AS col1 FROM tab1 AS cor0
----
-40
-46
-6

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL - 45 * - col2 / col2 + - col0 AS col1 FROM tab1 AS cor0
----
-40
-46
-6

query I rowsort
SELECT 17 + - 71 * + col0 AS col1 FROM tab2
----
-3249
-4527
-5308

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT DISTINCT 34 * COUNT( * ) col1 FROM tab2
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8824
SELECT DISTINCT 34 * COUNT ( * ) col1 FROM tab2
----
102

query I rowsort
SELECT DISTINCT - 9 + - 46 AS col0 FROM tab2 AS cor0
----
-55

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 74 AND + - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 53 = + col1
----

query I rowsort
SELECT + 88 - col1 * - 70 + + + col2 AS col2 FROM tab1
----
1164
3446
497

query II rowsort
SELECT ALL col1 + + col0, + col2 FROM tab2
----
141
40
142
58
97
23

query II rowsort
SELECT col0 + - 1 + - + col2 AS col1, 63 * + col2 + col2 AS col0 FROM tab1
----
-46
6144
22
4352
25
3776

query I rowsort
SELECT - col1 + + 0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT col1 + - col2 + + col1 AS col2 FROM tab1
----
-49
-68
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 23 col1 FROM tab0 AS cor0
----
104
24
44

query II rowsort
SELECT ALL + - col0 * - 21 AS col0, col2 * - col1 * col2 AS col2 FROM tab0 AS cor0
----
1827
-2100
2037
-9801
315
-178929

onlyif mysql # DIV for integer division: 
query I rowsort label-8835
SELECT DISTINCT - 82 DIV col2 AS col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT - 82 / col2 AS col2 FROM tab2
----
-1
-2
-3

query I rowsort
SELECT - col1 * + + 77 FROM tab0
----
-1617
-6237
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 * + + ( col2 ) col0 FROM tab0
----
1980
200
940

query II rowsort
SELECT DISTINCT 14 AS col2, 12 FROM tab2 AS cor0
----
14
12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 73 / - col0 * - 75 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 2 - - col1 >= - - col2 - col0
----
51
14
96

query I rowsort
SELECT DISTINCT col0 * 36 FROM tab0 AS cor0
----
3132
3492
540

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT ALL + SUM( ALL 25 ) AS col1 FROM tab1 cor0
----
75

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL + SUM ( ALL 25 ) AS col1 FROM tab1 cor0
----
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 <> - col1
----

query I rowsort
SELECT ALL + - col0 FROM tab2 AS cor0 WHERE 40 * + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 AS cor0 WHERE NOT NULL <= + 70
----

query I rowsort
SELECT + + col2 * col1 FROM tab0 AS cor0 WHERE NOT - col2 < - 31
----
210

query II rowsort
SELECT ALL - col1 AS col0, col1 AS col1 FROM tab1 cor0
----
-14
14
-47
47
-5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - col2 col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8849
SELECT 63 DIV - + 17 FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-8849
SELECT 63 / - + 17 FROM tab0 AS cor0
----
-3
-3
-3

query II rowsort
SELECT - col1 + + 13 AS col1, - ( + col2 ) AS col1 FROM tab0
----
-68
-47
-8
-10
12
-99

query I rowsort
SELECT - 89 * - col0 + + col2 + - - 38 FROM tab1
----
4673
7662
8205

query I rowsort
SELECT 77 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col0 + 31 ) AND NOT NULL <= - ( - col1 ) + - col1
----

query I rowsort
SELECT ALL col0 * col2 + col0 AS col1 FROM tab2 cor0
----
1104
2624
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT ALL + + COUNT( * ) + COUNT( ALL 61 ) * - 68 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL + + COUNT ( * ) + COUNT ( ALL 61 ) * - 68 FROM tab2 AS cor0
----
-201

query I rowsort
SELECT DISTINCT - col1 + + - col2 FROM tab1 AS cor0
----
-110
-115
-64

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + col1 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 <> col0 * - + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT - ( - MIN( - + 16 ) ) FROM tab0 AS cor0 WHERE NULL >= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8858
SELECT - ( - MIN ( - + 16 ) ) FROM tab0 AS cor0 WHERE NULL >= col2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 0 <= NULL
----

query I rowsort
SELECT - - col2 + + + col2 * + col1 FROM tab1 cor0
----
1440
3264
354

query I rowsort
SELECT DISTINCT - - col2 + - 40 FROM tab2 AS cor0
----
-17
0
18

onlyif mysql # aggregate syntax: 
query II rowsort label-8862
SELECT - + 83 + - + MAX( DISTINCT + - col1 ) AS col0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-78
3

skipif mysql # not compatible
query II rowsort label-8862
SELECT - + 83 + - + MAX ( DISTINCT + - col1 ) AS col0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-78
3

query I rowsort
SELECT ALL col1 * + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1173
3080
3886

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT IN ( 28 * + + col2 + + col2, - col1 )
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE - col2 >= ( 70 )
----

query I rowsort
SELECT col1 + - - 37 AS col0 FROM tab1 AS cor0
----
42
51
84

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 > + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT - COUNT( * ) * + 41 AS col2 FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-8868
SELECT - COUNT ( * ) * + 41 AS col2 FROM tab1 AS cor0
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8869
SELECT + col2 * - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8869
SELECT + col2 * - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT 24 * + COUNT( * ) AS col2 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-8870
SELECT 24 * + COUNT ( * ) AS col2 FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT ( + COUNT( * ) ) * + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8871
SELECT ( + COUNT ( * ) ) * + COUNT ( * ) FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT 77 * - 95 - - - MAX( + col1 ) AS col2 FROM tab1
----
-7362

skipif mysql # not compatible
query I rowsort label-8872
SELECT 77 * - 95 - - - MAX ( + col1 ) AS col2 FROM tab1
----
-7362

query I rowsort
SELECT 32 - 39 FROM tab1
----
-7
-7
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8874
SELECT + COUNT( * ) FROM tab0 WHERE NOT + col0 * - col1 BETWEEN + col0 AND + - ( + + CAST( NULL AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-8874
SELECT + COUNT ( * ) FROM tab0 WHERE NOT + col0 * - col1 BETWEEN + col0 AND + - ( + + CAST ( NULL AS INTEGER ) )
----
3

query I rowsort
SELECT col1 * + ( - col0 ) AS col1 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT DISTINCT - 69 * + MAX( + 81 ) FROM tab2 AS cor0
----
-5589

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT - 69 * + MAX ( + 81 ) FROM tab2 AS cor0
----
-5589

query I rowsort
SELECT DISTINCT + + col1 * - col2 + - ( + col1 ) FROM tab2 AS cor0
----
-1224
-3157
-3953

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT + col2 * + + col1 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8879
SELECT ALL - + CAST( NULL AS SIGNED ) * + + 62 + - + CAST( + + MIN( ALL 77 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL - + CAST ( NULL AS INTEGER ) * + + 62 + - + CAST ( + + MIN ( ALL 77 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT - - COUNT( * ) * - 22 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8880
SELECT - - COUNT ( * ) * - 22 FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-8881
SELECT DISTINCT + + ( - col2 ) DIV + + col0 AS col0, col1 AS col1 FROM tab1 AS cor0
----
-1
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-8881
SELECT DISTINCT + + ( - col2 ) / + + col0 AS col0, col1 AS col1 FROM tab1 AS cor0
----
-1
14
0
47
0
5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND + col2 * + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT + COUNT( DISTINCT - 5 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8883
SELECT + COUNT ( DISTINCT - 5 ) AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8884
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - - 74 / + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8884
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - - 74 / + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-8885
SELECT DISTINCT col2 DIV + + col1 * col0, - col2 AS col1 FROM tab2
----
0
-23
0
-40
0
-58

skipif mysql # not compatible
query II rowsort label-8885
SELECT DISTINCT col2 / + + col1 * col0, - col2 AS col1 FROM tab2
----
0
-23
0
-40
0
-58

query I rowsort
SELECT ALL + ( - + col2 ) AS col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL + col0 * + col1 + - col2 FROM tab0
----
-2
1168
1817

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT DISTINCT COUNT( + 22 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT COUNT ( + 22 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT DISTINCT + COUNT( * ) + + ( - + 59 ) AS col0 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT + COUNT ( * ) + + ( - + 59 ) AS col0 FROM tab2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT SUM( DISTINCT - 33 ) AS col2 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-8890
SELECT SUM ( DISTINCT - 33 ) AS col2 FROM tab0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL + COUNT( * ) + 10 col1 FROM tab1
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8891
SELECT ALL + COUNT ( * ) + 10 col1 FROM tab1
----
13

query II rowsort
SELECT - 97, col2 + + col2 - col1 AS col0 FROM tab0
----
-97
-1
-97
13
-97
197

onlyif mysql # DIV for integer division: 
query II rowsort label-8893
SELECT col2, col2 DIV 19 AS col0 FROM tab1
----
59
3
68
3
96
5

skipif mysql # not compatible
query II rowsort label-8893
SELECT col2, col2 / 19 AS col0 FROM tab1
----
59
3
68
3
96
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT DISTINCT + 95 + - + ( MIN( DISTINCT + col1 ) ) + - MAX( - - col1 ) AS col0 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT + 95 + - + ( MIN ( DISTINCT + col1 ) ) + - MAX ( - - col1 ) AS col0 FROM tab0 AS cor0
----
13

query I rowsort
SELECT + 73 + + col2 AS col0 FROM tab2 AS cor0
----
113
131
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 54 + + - 70 AS col0, + 65 col1 FROM tab0
----
-16
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8897
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND - + 64 + col1
----

skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND - + 64 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 col2 FROM tab2 AS cor0
----
80
80
80

query II rowsort
SELECT + + col1 + - 54 AS col0, - col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 - - 36 * col1 FROM tab2 AS cor0
----
1790
2337
2708

query I rowsort
SELECT DISTINCT - ( + col0 ) - col0 AS col0 FROM tab1
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT DISTINCT + COUNT( * ) - + - COUNT( ( - 90 ) ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT + COUNT ( * ) - + - COUNT ( ( - 90 ) ) FROM tab0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 21 * + col0 * + + col2 - - col1 IS NOT NULL
----

query I rowsort
SELECT col0 * + ( + 64 ) FROM tab0
----
5568
6208
960

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT DISTINCT 74 * + + COUNT( * ) col1 FROM tab0
----
222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8905
SELECT DISTINCT 74 * + + COUNT ( * ) col1 FROM tab0
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT COUNT( + col0 ) * - ( + - 79 ) col0 FROM tab0
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8906
SELECT COUNT ( + col0 ) * - ( + - 79 ) col0 FROM tab0
----
237

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col2 AND + - 82
----

query II rowsort
SELECT 2, ( + + col1 ) FROM tab1
----
2
14
2
47
2
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND + - col1 * - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT DISTINCT - - COUNT( * ) * - - 36 AS col2 FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT - - COUNT ( * ) * - - 36 AS col2 FROM tab1 AS cor0
----
108

query II rowsort
SELECT ALL + 42 + + - col2, + col1 FROM tab0 AS cor0
----
-5
81
-57
1
32
21

query II rowsort
SELECT ALL - - 25 AS col2, col2 FROM tab2 AS cor0
----
25
23
25
40
25
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8913
SELECT DISTINCT ( + + 91 ) / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT ( + + 91 ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 67 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - ( + ( - - col2 ) ) )
----

query II rowsort
SELECT 60 AS col1, 12 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
60
12
60
12
60
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 72 * col0 col0 FROM tab1 AS cor0
----
187272
520200
596232

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT col2 + + - col2 + + col0 DIV + col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8917
SELECT col2 + + - col2 + + col0 / + col2 FROM tab2
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * 77 col1, + col1 AS col0 FROM tab2
----
3542
51
4928
77
5775
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT ( + SUM( 50 ) ) FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-8919
SELECT ( + SUM ( 50 ) ) FROM tab2
----
150

query II rowsort
SELECT DISTINCT col2 * + 93 AS col2, col0 * + 90 FROM tab0
----
4371
1350
9207
8730
930
7830

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - + col1 AND + col2 / + + 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 75 * - col1 AS col1 FROM tab2 AS cor0
----
3825
5025
5775

onlyif mysql # aggregate syntax: 
query II rowsort label-8923
SELECT DISTINCT - MIN( ALL - 6 ) AS col0, - COUNT( * ) FROM tab2 AS cor0
----
6
-3

skipif mysql # not compatible
query II rowsort label-8923
SELECT DISTINCT - MIN ( ALL - 6 ) AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
6
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8924
SELECT - col2 - col0 DIV - - col0 FROM tab1 AS cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-8924
SELECT - col2 - col0 / - - col0 FROM tab1 AS cor0
----
-60
-69
-97

query I rowsort
SELECT DISTINCT ( + + col0 ) + col0 FROM tab0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8926
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 99 + - + col0 * - CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8926
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 99 + - + col0 * - CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 54 + col1 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
105
121
131

onlyif mysql # DIV for integer division: 
query II rowsort label-8928
SELECT ALL + col2 + + 27 + + + col1, + 41 DIV - 85 * + + col2 AS col1 FROM tab2 AS cor0
----
101
0
144
0
152
0

skipif mysql # not compatible
query II rowsort label-8928
SELECT ALL + col2 + + 27 + + + col1, + 41 / - 85 * + + col2 AS col1 FROM tab2 AS cor0
----
101
0
144
0
152
0

query II rowsort
SELECT + 89 + + + 43 - + - col1 AS col2, + 40 * - 96 AS col2 FROM tab0 AS cor0 WHERE + col0 * - col2 + + col2 * - col1 IS NULL
----

query I rowsort
SELECT + col1 + - col0 + col2 AS col0 FROM tab1 cor0
----
-21
24
59

query I rowsort
SELECT DISTINCT - 24 - - 13 + + 20 AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8932
SELECT - + CAST( NULL AS SIGNED ) AS col1, + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8932
SELECT - + CAST ( NULL AS INTEGER ) AS col1, + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8933
SELECT DISTINCT - 35 AS col2, + 37 + - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
-35
37

skipif mysql # not compatible
query II rowsort label-8933
SELECT DISTINCT - 35 AS col2, + 37 + - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
-35
37

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < col1 + + 37 + - - ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT ALL + COUNT( - 75 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL + COUNT ( - 75 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IS NULL OR NOT NULL NOT BETWEEN NULL AND - col2 * col2 - + 62 + 99 * + 75 + - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * + 92 FROM tab1
----
5428
6256
8832

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT MIN( + ( + 51 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8938
SELECT MIN ( + ( + 51 ) ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT DISTINCT + SUM( ALL col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT + SUM ( ALL col2 ) AS col2 FROM tab1
----
223

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( 44 ) * 45 AS col1 FROM tab0 AS cor0
----
1980
1980
1980

query I rowsort
SELECT - 84 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT col2 NOT BETWEEN col1 * - - ( - - col1 ) - + + col0 / - col1 + - col0 * col1 AND + - col0 )
----

query I rowsort
SELECT ALL - ( + + 71 ) * + 57 + - 31 FROM tab1
----
-4078
-4078
-4078

query II rowsort
SELECT col0 + - col1 + - + 43, - col2 AS col0 FROM tab1
----
-6
-96
1
-68
37
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT DISTINCT - COUNT( DISTINCT - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col1 * + - ( + ( col2 ) ) * - + col2 + - - col1 * col1 + + col0 FROM tab1 AS cor0
----
-128777
-17295
-215028

query I rowsort
SELECT + + col2 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + - - 2 AS col2 FROM tab1 AS cor0
----
-57
-66
-94

query I rowsort
SELECT DISTINCT + 82 * col1 AS col2 FROM tab1 AS cor0
----
1148
3854
410

onlyif mysql # aggregate syntax: 
query II rowsort label-8952
SELECT + 84 AS col0, + COUNT( * ) FROM tab0
----
84
3

skipif mysql # not compatible
query II rowsort label-8952
SELECT + 84 AS col0, + COUNT ( * ) FROM tab0
----
84
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE NOT + 92 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT + 92 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col2 * - 20 FROM tab0
----
1980
200
940

query II rowsort
SELECT DISTINCT + col2 + + col2 AS col1, ( + col1 ) + - ( - col2 ) * + - col1 * + - col2 + col1 FROM tab2
----
116
225522
46
27081
80
123354

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8956
SELECT - COUNT( * ) / - + CAST( NULL AS DECIMAL ) * + 79 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8956
SELECT - COUNT ( * ) / - + CAST ( NULL AS REAL ) * + 79 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col1 + - - col2 * - col1 FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT + col0 + + ( - col0 ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + + col0 + - 18 - - col1 * + col1 FROM tab0 AS cor0
----
510
6558
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT DISTINCT MIN( ALL - + col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT MIN ( ALL - + col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-91

query I rowsort
SELECT + 96 AS col0 FROM tab0 AS cor0 WHERE NULL = + col0
----

query I rowsort
SELECT ALL 38 * - 16 FROM tab1 cor0
----
-608
-608
-608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8963
SELECT - + 46 * + col1 col0 FROM tab0 AS cor0 WHERE + 0 + - col0 / col2 * + CAST( 62 AS SIGNED ) BETWEEN NULL AND + col2 + - - col2 + + ( 96 ) * - col0 * + + col2 * col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8963
SELECT - + 46 * + col1 col0 FROM tab0 AS cor0 WHERE + 0 + - col0 / col2 * + CAST ( 62 AS INTEGER ) BETWEEN NULL AND + col2 + - - col2 + + ( 96 ) * - col0 * + + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT MIN( ALL + col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8964
SELECT MIN ( ALL + col2 ) AS col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT ALL - COUNT( + + col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL - COUNT ( + + col1 ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 8 + + col2 AND NULL
----

query I rowsort
SELECT - col1 * - - 42 FROM tab2
----
-2142
-2814
-3234

query II rowsort
SELECT DISTINCT col0 AS col1, col0 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT - AVG ( DISTINCT + + col1 ) AS col2 FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND + - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT - COUNT( * ) * + - 35 AS col0 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-8970
SELECT - COUNT ( * ) * + - 35 AS col0 FROM tab1
----
105

query II rowsort
SELECT ALL col1 AS col0, 17 + + col1 AS col2 FROM tab1
----
14
31
47
64
5
22

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 55 >= - col2 * col1 + col2 + - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 66 / - 71 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 + col1 = 82 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL - ( 31 ) * - COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL - ( 31 ) * - COUNT ( * ) FROM tab2
----
93

query I rowsort
SELECT ALL + 28 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT 32 < NULL
----

query I rowsort
SELECT 78 + + col0 AS col0 FROM tab2 WHERE NOT ( NULL ) <> + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * 15 + 44 * col1 col0 FROM tab0
----
-66
-946
2574

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8980
SELECT ALL * FROM tab2 WHERE ( + col1 / - col1 ) NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8980
SELECT ALL * FROM tab2 WHERE ( + col1 / - col1 ) NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + col2 * - ( + col0 ) AS col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT DISTINCT + COUNT( * ) - + 33 AS col0 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT + COUNT ( * ) - + 33 AS col0 FROM tab2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT - SUM( ALL - col0 ) * - COUNT( * ) AS col2 FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-8983
SELECT - SUM ( ALL - col0 ) * - COUNT ( * ) AS col2 FROM tab2
----
-555

onlyif mysql # DIV for integer division: 
query I rowsort label-8984
SELECT ALL col0 DIV - 71 + 54 AS col1 FROM tab0
----
53
53
54

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL col0 / - 71 + 54 AS col1 FROM tab0
----
53
53
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT + MAX( col0 ) * 67 FROM tab1
----
6097

skipif mysql # not compatible
query I rowsort label-8985
SELECT + MAX ( col0 ) * 67 FROM tab1
----
6097

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8986
SELECT * FROM tab2 WHERE ( col1 + - col0 ) NOT IN ( CAST( NULL AS SIGNED ) + - col0 )
----

skipif mysql # not compatible
query III rowsort label-8986
SELECT * FROM tab2 WHERE ( col1 + - col0 ) NOT IN ( CAST ( NULL AS INTEGER ) + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT - 68 * + COUNT( * ) + 26 AS col2 FROM tab1 WHERE NOT ( - ( col1 ) ) NOT IN ( - col0 )
----
26

skipif mysql # not compatible
query I rowsort label-8987
SELECT - 68 * + COUNT ( * ) + 26 AS col2 FROM tab1 WHERE NOT ( - ( col1 ) ) NOT IN ( - col0 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT col1 * + col0 FROM tab1 WHERE CAST( NULL AS SIGNED ) + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8988
SELECT col1 * + col0 FROM tab1 WHERE CAST ( NULL AS INTEGER ) + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 * col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) + + 61 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( ( + col0 ) ) * + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8992
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT CAST( - col2 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8992
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT CAST ( - col2 AS INTEGER ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT COUNT( * ) * - 49 + 83 * + COUNT( * ) AS col1 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-8993
SELECT COUNT ( * ) * - 49 + 83 * + COUNT ( * ) AS col1 FROM tab0
----
102

query I rowsort
SELECT DISTINCT - 25 + + col1 FROM tab2
----
26
42
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8995
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8995
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + CAST ( - col0 AS INTEGER )
----

query I rowsort
SELECT 19 * 65 FROM tab2
----
1235
1235
1235

onlyif mysql # DIV for integer division: 
query I rowsort label-8997
SELECT ALL 99 DIV - 72 + - col2 AS col2 FROM tab1
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL 99 / - 72 + - col2 AS col2 FROM tab1
----
-60
-69
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT - COUNT( * ) + + COUNT( * ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8998
SELECT - COUNT ( * ) + + COUNT ( * ) col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT DISTINCT 38 * - SUM( ALL col1 ) AS col2 FROM tab0
----
-3914

skipif mysql # not compatible
query I rowsort label-8999
SELECT DISTINCT 38 * - SUM ( ALL col1 ) AS col2 FROM tab0
----
-3914

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * + 17 col1 FROM tab1
----
238
799
85

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 17 >= ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT ALL + MAX( ALL col0 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL + MAX ( ALL col0 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 66 * col1 AS col2 FROM tab2
----
-3366
-4422
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT + COUNT( * ) + 28 * - 78 FROM tab2
----
-2181

skipif mysql # not compatible
query I rowsort label-9004
SELECT + COUNT ( * ) + 28 * - 78 FROM tab2
----
-2181

query I rowsort
SELECT DISTINCT 46 * 93 AS col2 FROM tab1
----
4278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 + 55 col2 FROM tab0 AS cor0
----
44

query I rowsort
SELECT 32 - - col1 AS col2 FROM tab2 AS cor0
----
109
83
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9008
SELECT + col2 DIV 80 - + 79 FROM tab1 AS cor0
----
-78
-79
-79

skipif mysql # not compatible
query I rowsort label-9008
SELECT + col2 / 80 - + 79 FROM tab1 AS cor0
----
-78
-79
-79

query I rowsort
SELECT col0 - - 65 AS col2 FROM tab0 AS cor0
----
152
162
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9010
SELECT ALL col0 + 51 DIV ( - CAST( - 79 AS SIGNED ) ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL col0 + 51 / ( - CAST ( - 79 AS INTEGER ) ) FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 * - col0 ) <> ( + col1 * col1 )
----

query I rowsort
SELECT col0 * + col2 AS col2 FROM tab2 WHERE NOT col2 + + 58 * col0 < ( - col2 / 99 )
----
1058
2560
4350

query I rowsort
SELECT ALL + col1 * 79 AS col2 FROM tab1 AS cor0
----
1106
3713
395

query I rowsort
SELECT DISTINCT - + 58 AS col1 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 AND + 93 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9017
SELECT DISTINCT + - COUNT( * ) * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT + - COUNT ( * ) * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9018
SELECT + - col2 DIV col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9018
SELECT + - col2 / col0 FROM tab1 cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN col1 * - ( 67 * - 46 ) + - 32 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 79 )
----

query I rowsort
SELECT + + 55 * + col1 FROM tab2 AS cor0
----
2805
3685
4235

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT + MAX( ALL col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9022
SELECT + MAX ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL 59 * + - col0 FROM tab1
----
-3009
-5015
-5369

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9024
SELECT DISTINCT - 51 AS col1 FROM tab0 WHERE CAST( col0 AS DECIMAL ) NOT IN ( + ( col1 ) * + col2 )
----
-51

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT - 51 AS col1 FROM tab0 WHERE CAST ( col0 AS REAL ) NOT IN ( + ( col1 ) * + col2 )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9025
SELECT ALL 31 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL 31 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 NOT IN ( 98 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * 86 AS col0 FROM tab0
----
1806
6966
86

query I rowsort
SELECT - col0 * col0 FROM tab1 WHERE NOT ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 col0 FROM tab0 cor0
----
95

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 43 + col1 AND col2
----

query I rowsort
SELECT DISTINCT - col0 * + col2 FROM tab0 AS cor0 WHERE NOT ( 19 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab1 WHERE col0 IN ( 12 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 70 = + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9034
SELECT + COUNT( * ) col2, + 49 DIV 54 AS col1 FROM tab1 AS cor0
----
3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9034
SELECT + COUNT ( * ) col2, + 49 / 54 AS col1 FROM tab1 AS cor0
----
3
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9035
SELECT + - COUNT( * ) AS col0, - 36 * - - COUNT( * ) FROM tab2 AS cor0
----
-3
-108

skipif mysql # not compatible
query II rowsort label-9035
SELECT + - COUNT ( * ) AS col0, - 36 * - - COUNT ( * ) FROM tab2 AS cor0
----
-3
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9036
SELECT ALL MAX( col2 ) FROM tab2 AS cor0 WHERE NOT ( - col0 + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
58

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL MAX ( col2 ) FROM tab2 AS cor0 WHERE NOT ( - col0 + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9037
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * + + col2 = - col2 * col0
----

skipif mysql # not compatible
query I rowsort label-9037
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + + col2 = - col2 * col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9038
SELECT DISTINCT MAX( col0 ) DIV - 40 + 54 * SUM( - 21 * - col2 + col0 ) FROM tab2 AS cor0
----
147203

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT MAX ( col0 ) / - 40 + 54 * SUM ( - 21 * - col2 + col0 ) FROM tab2 AS cor0
----
147203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9039
SELECT DISTINCT 38 * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT 38 * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT 72 AS col2, + col1 FROM tab0 AS cor0
----
72
1
72
21
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL + COUNT( * ) + MIN( + 80 ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL + COUNT ( * ) + MIN ( + 80 ) FROM tab2 AS cor0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9042
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 * + 50 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 - col0 + - 62 * col1 + + 75 FROM tab2
----
-3184
-4221
-4840

query I rowsort
SELECT 58 * col1 + - col1 FROM tab0
----
1197
4617
57

query I rowsort
SELECT col1 + + + 38 FROM tab2
----
105
115
89

query I rowsort
SELECT col1 * + col2 * + col0 + + 47 * - col0 AS col2 FROM tab0
----
14181
5044
56400

query I rowsort
SELECT col2 + + 33 AS col0 FROM tab1
----
101
129
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT ALL COUNT( * ) * + COUNT( * ) + - SUM( ALL + col1 ) AS col0 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL COUNT ( * ) * + COUNT ( * ) + - SUM ( ALL + col1 ) AS col0 FROM tab2
----
-186

query I rowsort
SELECT col0 + + 59 FROM tab0 AS cor0
----
146
156
74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE + 60 IN ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9052
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE + 60 IN ( + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT DISTINCT COUNT( col2 ) - + 30 col0 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9053
SELECT DISTINCT COUNT ( col2 ) - + 30 col0 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE ( col1 + col2 ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT ( - + SUM( ALL - - col2 ) ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9055
SELECT ( - + SUM ( ALL - - col2 ) ) AS col2 FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 22 col1 FROM tab1
----
1034
110
308

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT ALL MAX( + col2 ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9057
SELECT ALL MAX ( + col2 ) col2 FROM tab0
----
99

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NOT + 50 * + 93 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 + col1 * + col1 + - 48 >= 39 * + col0
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 BETWEEN NULL AND - col0 + col1
----

query I rowsort
SELECT ALL + - col1 * col2 + col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

query I rowsort
SELECT - + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 49 IS NOT NULL
----

query I rowsort
SELECT + col0 * - 73 AS col2 FROM tab2 AS cor0
----
-3358
-4672
-5475

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE col1 / col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE col1 / col2 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * - + 81 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT - 25, col1 * - col0 * + col1 AS col1, + - col2 + 89 AS col2 FROM tab1
----
9 values hashing to 716a7d43c794841760193c6461979da8

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 * - col0 + + col0 IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT ( - col1 ) < - col1
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9069
SELECT ALL + 95 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL + 95 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1 + - col2 AS col2, - 9 AS col0 FROM tab2
----
28
-9
37
-9
9
-9

query II rowsort
SELECT 55 AS col1, 20 AS col0 FROM tab1
----
55
20
55
20
55
20

query I rowsort
SELECT - 68 - + col2 + - col2 AS col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9074
SELECT + + 38 DIV MAX( + 4 ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9074
SELECT + + 38 / MAX ( + 4 ) AS col0 FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9075
SELECT ALL - col2 DIV + col0 * - 76 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL - col2 / + col0 * - 76 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9076
SELECT ALL - + 61 AS col0, COUNT( * ) FROM tab2 AS cor0
----
-61
3

skipif mysql # not compatible
query II rowsort label-9076
SELECT ALL - + 61 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-61
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 * - col2 col2 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT col0 * - 70 + - col2 FROM tab1 cor0
----
-3666
-6009
-6438

query I rowsort
SELECT - + col0 * + + 92 * 20 AS col0 FROM tab2 AS cor0
----
-117760
-138000
-84640

query I rowsort
SELECT ALL - 88 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL MAX( DISTINCT - - ( - col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL MAX ( DISTINCT - - ( - col2 ) ) FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-9082
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col1, - 41 FROM tab0
----
6
-41

skipif mysql # not compatible
query II rowsort label-9082
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col1, - 41 FROM tab0
----
6
-41

query I rowsort
SELECT DISTINCT - 78 + + + col0 AS col0 FROM tab1 AS cor0
----
-27
13
7

query I rowsort
SELECT - + col0 + + + 63 AS col2 FROM tab1 AS cor0
----
-22
-28
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, + col1 - - + col2 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
110
85
64
91
115

onlyif mysql # DIV for integer division: 
query I rowsort label-9086
SELECT ALL + + col2 DIV + col1 + col0 AS col0 FROM tab1 AS cor0
----
57
92
96

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL + + col2 / + col1 + col0 AS col0 FROM tab1 AS cor0
----
57
92
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9087
SELECT CAST( NULL AS SIGNED ) + - col1 - - col2 * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9087
SELECT CAST ( NULL AS INTEGER ) + - col1 - - col2 * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 75 + col2 + - + col0 FROM tab0 AS cor0
----
-152
-43
-73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + - - 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT + + MAX( ALL + + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9090
SELECT + + MAX ( ALL + + col2 ) FROM tab1 AS cor0
----
96

query II rowsort
SELECT + col0, + ( col2 ) FROM tab2
----
46
23
64
40
75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 col0 FROM tab2
----
71
71
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9093
SELECT ( - - col1 ) DIV - 33 AS col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9093
SELECT ( - - col1 ) / - 33 AS col0 FROM tab0
----
-2
0
0

query I rowsort
SELECT col0 - + 78 AS col2 FROM tab0
----
-63
19
9

query I rowsort
SELECT - + col1 - - 57 FROM tab1 AS cor0
----
10
43
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT + COUNT( * ) - - 84 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9096
SELECT + COUNT ( * ) - - 84 FROM tab0 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9097
SELECT DISTINCT - 45 * + + CAST( + col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
-2295
-3825
-4095

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9097
SELECT DISTINCT - 45 * + + CAST ( + col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
-2295
-3825
-4095

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9098
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( + + col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9098
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( + + col2 AS REAL ) IS NULL
----

query I rowsort
SELECT ALL - 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT + + ( COUNT( * ) ) + - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9100
SELECT + + ( COUNT ( * ) ) + - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9101
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2 / + col2 / CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9101
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2 / + col2 / CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - 35 * - - 17 AS col0 FROM tab1 AS cor0
----
-595
-595
-595

query I rowsort
SELECT col2 * - 77 + + 44 FROM tab1 AS cor0
----
-4499
-5192
-7348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT ALL + CAST( col2 AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL + CAST ( col2 AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-9105
SELECT ALL - 65 DIV + + col1 + + 95 - - - col2 * - + col2 + + + col2 AS col1 FROM tab0 AS cor0
----
202
2351
9930

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL - 65 / + + col1 + + 95 - - - col2 * - + col2 + + + col2 AS col1 FROM tab0 AS cor0
----
202
2351
9930

query I rowsort
SELECT DISTINCT + - col0 * - + col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 80 * col1 - - - col0 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT ALL MIN( - 86 ) FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL MIN ( - 86 ) FROM tab2 AS cor0
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9109
SELECT + MIN( DISTINCT col0 ) DIV - - 4 + + 60 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9109
SELECT + MIN ( DISTINCT col0 ) / - - 4 + + 60 FROM tab0 AS cor0
----
63

query I rowsort
SELECT ( col1 ) * + + col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT + col0 * 67 AS col1 FROM tab2
----
3082
4288
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 / 4 col2 FROM tab0 WHERE + ( - col2 ) < NULL
----

query I rowsort
SELECT DISTINCT - col2 * - col1 * col2 FROM tab2
----
123200
225388
26979

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 <> - + 53 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9115
SELECT 45 AS col1, COUNT( * ) FROM tab2
----
45
3

skipif mysql # not compatible
query II rowsort label-9115
SELECT 45 AS col1, COUNT ( * ) FROM tab2
----
45
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9116
SELECT COUNT( * ), - 90 DIV COUNT( + + col2 ) AS col0 FROM tab0
----
3
-30

skipif mysql # not compatible
query II rowsort label-9116
SELECT COUNT ( * ), - 90 / COUNT ( + + col2 ) AS col0 FROM tab0
----
3
-30

query I rowsort
SELECT - + col2 + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9118
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( col1, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9118
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( col1, CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 <= NULL
----

query II rowsort
SELECT ALL col1 AS col2, - 84 FROM tab2 AS cor0
----
51
-84
67
-84
77
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9121
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * + 46 NOT BETWEEN NULL AND col2 * - col0 * + 5 + 67 / - + col2 + - col0 - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * + 46 NOT BETWEEN NULL AND col2 * - col0 * + 5 + 67 / - + col2 + - col0 - CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT ALL - - 25 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT ALL ( - - col0 ) + - 7 AS col0 FROM tab1 AS cor0
----
44
78
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9125
SELECT ALL CAST( NULL AS DECIMAL ) - - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL CAST ( NULL AS REAL ) - - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 - + 30 FROM tab0 AS cor0
----
-129
-40
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9127
SELECT 4 + CAST( + + MAX( DISTINCT - col2 ) AS SIGNED ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9127
SELECT 4 + CAST ( + + MAX ( DISTINCT - col2 ) AS INTEGER ) FROM tab0
----
-6

query II rowsort
SELECT - col2 + + + 74 AS col1, - col1 + - - 90 FROM tab1
----
-22
76
15
85
6
43

query I rowsort
SELECT + 24 + + col1 + - col0 * col0 AS col1 FROM tab2
----
-2041
-3995
-5534

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT COUNT( DISTINCT col1 ) + - MIN( ALL col2 ) AS col2 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-9130
SELECT COUNT ( DISTINCT col1 ) + - MIN ( ALL col2 ) AS col2 FROM tab1
----
-56

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9131
SELECT ALL + col2 DIV + col1 AS col2, - ( - col0 ) DIV - col1 + CAST( NULL AS DECIMAL ) * - + col2 DIV + + 78 * - 73 - - col0 * - 69 AS col1 FROM tab0
----
0
NULL
0
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-9131
SELECT ALL + col2 / + col1 AS col2, - ( - col0 ) / - col1 + CAST ( NULL AS REAL ) * - + col2 / + + 78 * - 73 - - col0 * - 69 AS col1 FROM tab0
----
0
NULL
0
NULL
99
NULL

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL IN ( 50, col2, col1, 58 * - col1 + - col1 )
----

query I rowsort
SELECT DISTINCT - 51 * + col2 * - col1 FROM tab1 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT DISTINCT MIN( - ( - + col0 ) ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT MIN ( - ( - + col0 ) ) FROM tab1 cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9135
SELECT ALL * FROM tab0 AS cor0 WHERE 43 NOT IN ( + CAST( + 54 AS SIGNED ), + ( - - 75 ) + 35, ( + CAST( NULL AS SIGNED ) ) * + - col2 )
----

skipif mysql # not compatible
query III rowsort label-9135
SELECT ALL * FROM tab0 AS cor0 WHERE 43 NOT IN ( + CAST ( + 54 AS INTEGER ), + ( - - 75 ) + 35, ( + CAST ( NULL AS INTEGER ) ) * + - col2 )
----

query II rowsort
SELECT - 33 AS col1, + col2 AS col0 FROM tab1
----
-33
59
-33
68
-33
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 34 / 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9138
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - - CAST( + ( + + col2 ) AS SIGNED ) NOT BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9138
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - - CAST ( + ( + + col2 ) AS INTEGER ) NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9139
SELECT ALL + COUNT( * ) AS col0, COUNT( * ) DIV + 75 AS col2 FROM tab1 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-9139
SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) / + 75 AS col2 FROM tab1 AS cor0
----
3
0

query I rowsort
SELECT 67 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT + col1 < 56 )
----
67

query II rowsort
SELECT DISTINCT col0 AS col1, 9 FROM tab2 AS cor0
----
46
9
64
9
75
9

query II rowsort
SELECT + - 86 AS col2, col2 AS col2 FROM tab1 AS cor0
----
-86
59
-86
68
-86
96

query I rowsort
SELECT - col0 + 19 + - + 13 AS col1 FROM tab1 cor0
----
-45
-79
-85

query I rowsort
SELECT col1 + + ( + col1 ) AS col0 FROM tab2
----
102
134
154

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9146
SELECT ALL CAST( - col1 AS SIGNED ) AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 >= + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 WHERE + col0 - - 79 * 72 * - 60 IS NULL
----

query II rowsort
SELECT DISTINCT + col0 * col0 AS col0, - col2 + col0 + + col1 FROM tab1 AS cor0
----
2601
-31
7225
31
8281
70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9150
SELECT DISTINCT + CAST( col2 AS SIGNED ) DIV - - col0 + - + col1 + col0 * - - 79 col1 FROM tab2
----
3583
4979
5858

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9150
SELECT DISTINCT + CAST ( col2 AS INTEGER ) / - - col0 + - + col1 + col0 * - - 79 col1 FROM tab2
----
3583
4979
5858

query I rowsort
SELECT 24 * - 94 + + 46 * + + 43 * + col2 * 24 AS col0 FROM tab1
----
2798592
3225840
4555056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9152
SELECT DISTINCT - - col0 - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9152
SELECT DISTINCT - - col0 - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - col2 + + + 43 FROM tab1 AS cor0
----
-16
-25
-53

query I rowsort
SELECT - 77 * - col0 AS col2 FROM tab1 AS cor0
----
3927
6545
7007

query II rowsort
SELECT DISTINCT - 47, - 6 * 87 AS col1 FROM tab2 WHERE NOT + 45 + - - col0 > + 18
----

query I rowsort
SELECT DISTINCT + col0 * + - col2 FROM tab2
----
-1058
-2560
-4350

query II rowsort
SELECT DISTINCT col2, + col1 AS col0 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT - ( - col0 ) DIV - col1 col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9158
SELECT - ( - col0 ) / - col1 col0 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9159
SELECT DISTINCT + CAST( + col2 AS SIGNED ), col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif mysql # not compatible
query II rowsort label-9159
SELECT DISTINCT + CAST ( + col2 AS INTEGER ), col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT + - 75 * - 35 FROM tab1 AS cor0
----
2625
2625
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT SUM( - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9161
SELECT SUM ( - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT - - 66 * + - col0 AS col1 FROM tab0 AS cor0
----
-5742
-6402
-990

onlyif mysql # aggregate syntax: 
query II rowsort label-9163
SELECT - COUNT( * ) AS col2, 57 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= 34 * + col0
----
0
57

skipif mysql # not compatible
query II rowsort label-9163
SELECT - COUNT ( * ) AS col2, 57 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= 34 * + col0
----
0
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9164
SELECT - COUNT( * ) + 7 * + - 89 AS col2, + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-632
9

skipif mysql # not compatible
query II rowsort label-9164
SELECT - COUNT ( * ) + 7 * + - 89 AS col2, + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-632
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT - 72 DIV 33 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9165
SELECT - 72 / 33 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2
-2
-2

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 cor0 WHERE NOT col2 + + col2 IS NULL
----
10
47
99

query I rowsort
SELECT - col0 * - - 90 AS col2 FROM tab0 AS cor0
----
-1350
-7830
-8730

onlyif mysql # aggregate syntax: 
query II rowsort label-9168
SELECT DISTINCT + COUNT( * ) AS col1, + 48 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 AND + col1
----
0
48

skipif mysql # not compatible
query II rowsort label-9168
SELECT DISTINCT + COUNT ( * ) AS col1, + 48 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 AND + col1
----
0
48

query I rowsort
SELECT ALL 52 * + col0 FROM tab0 AS cor0
----
4524
5044
780

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT MIN( DISTINCT 95 ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-9170
SELECT MIN ( DISTINCT 95 ) FROM tab2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT + COUNT( - 34 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9171
SELECT + COUNT ( - 34 ) col0 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9172
SELECT MIN( ALL - 15 ) + + CAST( NULL AS SIGNED ) + + 45 * - 16 AS col1 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT MIN ( ALL - 15 ) + + CAST ( NULL AS INTEGER ) + + 45 * - 16 AS col1 FROM tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 28 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT ALL COUNT( * ) + 45 AS col2 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL COUNT ( * ) + 45 AS col2 FROM tab1
----
48

query I rowsort
SELECT 18 * + 61 + + - col1 FROM tab2
----
1021
1031
1047

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT ALL + 93 - + COUNT( * ) col2 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9176
SELECT ALL + 93 - + COUNT ( * ) col2 FROM tab2 AS cor0
----
90

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL < ( NULL )
----

query II rowsort
SELECT ALL col1 + + + col1, + col2 FROM tab2
----
102
23
134
58
154
40

query I rowsort
SELECT ALL - + col0 * - - col1 + col0 AS col2 FROM tab2 AS cor0
----
-2300
-4864
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-9180
SELECT 87 DIV - + col2 - ( - col1 ) + + 51 * col0 FROM tab0 AS cor0
----
4450
4948
845

skipif mysql # not compatible
query I rowsort label-9180
SELECT 87 / - + col2 - ( - col1 ) + + 51 * col0 FROM tab0 AS cor0
----
4450
4948
845

query I rowsort
SELECT DISTINCT 90 * ( + - col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2070
-3600
-5220

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - col0 * - col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * + + col0 * - + 62 + 91 * + 30 FROM tab0 AS cor0
----
-110544
-3284
-72600

onlyif mysql # aggregate syntax: 
query II rowsort label-9184
SELECT DISTINCT + 79 * - 32, COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-2528
6

skipif mysql # not compatible
query II rowsort label-9184
SELECT DISTINCT + 79 * - 32, COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-2528
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT DISTINCT 49 * - COUNT( * ) FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT 49 * - COUNT ( * ) FROM tab1
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT - MAX( + 94 ) AS col0 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-9186
SELECT - MAX ( + 94 ) AS col0 FROM tab2
----
-94

query I rowsort
SELECT - - 39 FROM tab0 WHERE NOT - col2 IN ( + + ( - col1 ) / col2, + col1 * + col1 )
----
39
39
39

query II rowsort
SELECT + col2 AS col1, - col2 - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
-64
68
-115
96
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-9189
SELECT DISTINCT col1 DIV + ( + col0 ) FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-9189
SELECT DISTINCT col1 / + ( + col0 ) FROM tab0
----
0
5

query I rowsort
SELECT ALL - ( + + 70 ) * - col0 FROM tab2 AS cor0
----
3220
4480
5250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9191
SELECT + 16 DIV SUM( - + col1 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9191
SELECT + 16 / SUM ( - + col1 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT - MIN( - - col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9193
SELECT - MIN ( - - col2 ) AS col2 FROM tab0
----
-10

query I rowsort
SELECT col2 * + col0 + + + col2 FROM tab0
----
752
880
9702

query I rowsort
SELECT - col0 + + 31 FROM tab0
----
-56
-66
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT DISTINCT - SUM( col2 ) + COUNT( * ) AS col2 FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT - SUM ( col2 ) + COUNT ( * ) AS col2 FROM tab1
----
-220

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + ( col0 )
----

query I rowsort
SELECT DISTINCT col1 + col1 * col2 * - col2 AS col0 FROM tab0
----
-178848
-2079
-9800

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT + COUNT( * ) * - - 24 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9199
SELECT + COUNT ( * ) * - - 24 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
0

query I rowsort
SELECT ALL - 10 + + + col2 FROM tab1 AS cor0 WHERE - 70 / - + col1 >= col1
----
49

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT JOIN tab1 AS cor1 ON NULL <= + 86
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - - 83 = + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 6
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + 37 NOT IN ( + col0 * col1 / + + col0, 49 * + + 69, - col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9205
SELECT - - col1 AS col0, + 4 DIV + col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-9205
SELECT - - col1 AS col0, + 4 / + col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 97 IS NULL
----

query I rowsort
SELECT DISTINCT + ( - ( 62 ) ) FROM tab0
----
-62

query I rowsort
SELECT ( 13 ) + 70 AS col1 FROM tab1 WHERE NOT - 76 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 33 * - col1 AS col1 FROM tab1
----
-1551
-165
-462

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9210
SELECT DISTINCT * FROM tab0 WHERE NOT + 96 * - col2 + - CAST( 14 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9210
SELECT DISTINCT * FROM tab0 WHERE NOT + 96 * - col2 + - CAST ( 14 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 49 NOT BETWEEN - col0 AND + 37 * - col2 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 52 + 48 FROM tab2
----
100
100
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9213
SELECT + 47 DIV + ( + COUNT( + ( + col0 ) ) ) + 97 AS col2 FROM tab0
----
112

skipif mysql # not compatible
query I rowsort label-9213
SELECT + 47 / + ( + COUNT ( + ( + col0 ) ) ) + 97 AS col2 FROM tab0
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT ALL + CAST( - 32 AS SIGNED ) + + 25 FROM tab2 AS cor0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL + CAST ( - 32 AS INTEGER ) + + 25 FROM tab2 AS cor0
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT ALL - COUNT( ALL + 13 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL - COUNT ( ALL + 13 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT ALL + COUNT( 10 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL + COUNT ( 10 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT + + COUNT( * ) * + + 77 AS col2 FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-9217
SELECT + + COUNT ( * ) * + + 77 AS col2 FROM tab0 AS cor0
----
231

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT DISTINCT - MIN( + + 19 ) AS col2 FROM tab0 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT - MIN ( + + 19 ) AS col2 FROM tab0 cor0
----
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-9220
SELECT ALL + - col1 col2, col2 DIV 52 + + ( + 7 ) AS col2 FROM tab1 AS cor0
----
-14
8
-47
8
-5
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9220
SELECT ALL + - col1 col2, col2 / 52 + + ( + 7 ) AS col2 FROM tab1 AS cor0
----
-14
8
-47
8
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL - SUM( - + 81 ) FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL - SUM ( - + 81 ) FROM tab2
----
243

query I rowsort
SELECT DISTINCT - 21 AS col2 FROM tab1
----
-21

query I rowsort
SELECT 39 - + + col1 AS col2 FROM tab1
----
-8
25
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9224
SELECT col0 DIV + col1 + + 35 AS col2 FROM tab2
----
35
35
36

skipif mysql # not compatible
query I rowsort label-9224
SELECT col0 / + col1 + + 35 AS col2 FROM tab2
----
35
35
36

query I rowsort
SELECT DISTINCT - col0 + + 11 FROM tab2
----
-35
-53
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT - COUNT( col0 ) + - COUNT( * ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-9226
SELECT - COUNT ( col0 ) + - COUNT ( * ) AS col1 FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT 87 + + COUNT( * ) + + COUNT( * ) * ( COUNT( * ) ) col0 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9227
SELECT 87 + + COUNT ( * ) + + COUNT ( * ) * ( COUNT ( * ) ) col0 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT COUNT( * ) + + COUNT( * ) * + - COUNT( ALL - col0 ) * + COUNT( - 95 ) * + SUM( 17 ) + - - 50 AS col0 FROM tab2
----
-1324

skipif mysql # not compatible
query I rowsort label-9228
SELECT COUNT ( * ) + + COUNT ( * ) * + - COUNT ( ALL - col0 ) * + COUNT ( - 95 ) * + SUM ( 17 ) + - - 50 AS col0 FROM tab2
----
-1324

query I rowsort
SELECT + ( 92 ) FROM tab2 WHERE col1 NOT BETWEEN + col2 AND ( - col2 )
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9230
SELECT col0 + - col0 * + col0 + - + col2 - - 53 * col1 * + CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9230
SELECT col0 + - col0 * + col0 + - + col2 - - 53 * col1 * + CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( col0 ) - + 65 FROM tab2 AS cor0
----
-111
-129
-140

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + - 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * + 51 FROM tab1
----
2601
4335
4641

query I rowsort
SELECT ALL + 39 - - col0 AS col2 FROM tab2
----
103
114
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT - COUNT( * ) + - 86 * + + ( + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-783

skipif mysql # not compatible
query I rowsort label-9235
SELECT - COUNT ( * ) + - 86 * + + ( + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-783

query I rowsort
SELECT - 37 * + 55 AS col2 FROM tab2
----
-2035
-2035
-2035

onlyif mysql # DIV for integer division: 
query I rowsort label-9237
SELECT + 90 DIV col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9237
SELECT + 90 / col2 AS col1 FROM tab1
----
0
1
1

query II rowsort
SELECT + 3 * + - 97, col2 AS col1 FROM tab2
----
-291
23
-291
40
-291
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9239
SELECT ALL - CAST( + 77 AS SIGNED ) * - - col0 AS col0 FROM tab1 AS cor0
----
-3927
-6545
-7007

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - CAST ( + 77 AS INTEGER ) * - - col0 AS col0 FROM tab1 AS cor0
----
-3927
-6545
-7007

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT DISTINCT + + COUNT( * ) * + 34 * COUNT( + col2 ) AS col2 FROM tab0 cor0
----
306

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT + + COUNT ( * ) * + 34 * COUNT ( + col2 ) AS col2 FROM tab0 cor0
----
306

query II rowsort
SELECT - col2, col1 AS col2 FROM tab2
----
-23
51
-40
77
-58
67

query II rowsort
SELECT col2, - 9 * - - col2 FROM tab1
----
59
-531
68
-612
96
-864

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT DISTINCT - 28 * - + COUNT( * ) AS col1 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT - 28 * - + COUNT ( * ) AS col1 FROM tab0
----
84

query I rowsort
SELECT DISTINCT col1 * + - col2 + - - col1 AS col2 FROM tab1 WHERE NULL NOT BETWEEN col0 - - col1 AND ( NULL )
----

query II rowsort
SELECT 82 AS col1, col2 * + 18 + + 11 FROM tab1
----
82
1073
82
1235
82
1739

query I rowsort
SELECT DISTINCT - 84 * - col0 * ( - col1 ) AS col1 FROM tab0
----
-102060
-153468
-8148

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL - - COUNT( * ) * + COUNT( * ) * SUM( - + 40 ) FROM tab2 AS cor0
----
-1080

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL - - COUNT ( * ) * + COUNT ( * ) * SUM ( - + 40 ) FROM tab2 AS cor0
----
-1080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col2 ) col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9250
SELECT CAST( NULL AS DECIMAL ) col0, SUM( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
NULL
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9250
SELECT CAST ( NULL AS REAL ) col0, SUM ( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
NULL
227

onlyif mysql # aggregate syntax: 
query II rowsort label-9251
SELECT ALL + COUNT( * ), + 95 AS col0 FROM tab2 AS cor0
----
3
95

skipif mysql # not compatible
query II rowsort label-9251
SELECT ALL + COUNT ( * ), + 95 AS col0 FROM tab2 AS cor0
----
3
95

query I rowsort
SELECT - - col0 * - + 40 FROM tab2 AS cor0
----
-1840
-2560
-3000

query I rowsort
SELECT ALL + col0 + - + col0 + + col1 * - col0 * 69 AS col0 FROM tab0
----
-126063
-6693
-83835

onlyif mysql # DIV for integer division: 
query I rowsort label-9254
SELECT ALL 62 * 9 DIV - col2 AS col1 FROM tab0
----
-11
-5
-55

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL 62 * 9 / - col2 AS col1 FROM tab0
----
-11
-5
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-9255
SELECT DISTINCT col1 * + col0 * 51 * col0, 60 * + col0 + + col2 DIV col1 * - col2 AS col1 FROM tab2
----
16084992
3840
19220625
4500
5503716
2760

skipif mysql # not compatible
query II rowsort label-9255
SELECT DISTINCT col1 * + col0 * 51 * col0, 60 * + col0 + + col2 / col1 * - col2 AS col1 FROM tab2
----
16084992
3840
19220625
4500
5503716
2760

query I rowsort
SELECT DISTINCT + ( - 80 ) + - col1 AS col1 FROM tab2
----
-131
-147
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT DISTINCT - SUM( DISTINCT + ( + + 97 ) ) AS col2 FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT - SUM ( DISTINCT + ( + + 97 ) ) AS col2 FROM tab1 AS cor0
----
-97

query I rowsort
SELECT + col1 + col2 + - 20 AS col2 FROM tab2 AS cor0
----
105
54
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9259
SELECT CAST( NULL AS SIGNED ) + - col2 + - 83 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9259
SELECT CAST ( NULL AS INTEGER ) + - col2 + - 83 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9260
SELECT ALL col0 * - + CAST( NULL AS SIGNED ) AS col0, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-9260
SELECT ALL col0 * - + CAST ( NULL AS INTEGER ) AS col0, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT DISTINCT + 52 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9262
SELECT ALL + col2 * col0 - + 40 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL + col2 * col0 - + 40 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 8 * + col2 AS col2 FROM tab0
----
376
792
80

query I rowsort
SELECT col2 * - + 83 AS col2 FROM tab2
----
-1909
-3320
-4814

query III rowsort
SELECT * FROM tab0 WHERE - + col2 + - 83 NOT BETWEEN NULL AND + 7
----

query I rowsort
SELECT DISTINCT + col1 * - col0 * - - col1 + - 14 FROM tab1
----
-10010
-201033
-2139

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 98 * + col2 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + - + col0 * + col1 FROM tab2 AS cor0
----
-2323
-4888
-4967

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT ALL - COUNT( * ) + - + 31 + + + 59 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
143

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL - COUNT ( * ) + - + 31 + + + 59 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT - + col2 DIV - - 79 + 70 FROM tab1 AS cor0
----
69
70
70

skipif mysql # not compatible
query I rowsort label-9270
SELECT - + col2 / - - 79 + 70 FROM tab1 AS cor0
----
69
70
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9271
SELECT ALL - COUNT( * ), 50 - COUNT( col2 ) + + + 40 AS col0 FROM tab0
----
-3
87

skipif mysql # not compatible
query II rowsort label-9271
SELECT ALL - COUNT ( * ), 50 - COUNT ( col2 ) + + + 40 AS col0 FROM tab0
----
-3
87

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + - col1 IS NOT NULL
----

query I rowsort
SELECT 35 * + col2 AS col0 FROM tab2
----
1400
2030
805

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT 25 * - SUM( ALL + + col0 ) * - COUNT( * ) col0 FROM tab0
----
14925

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9274
SELECT 25 * - SUM ( ALL + + col0 ) * - COUNT ( * ) col0 FROM tab0
----
14925

query II rowsort
SELECT ALL col2, + 34 * - col0 AS col2 FROM tab0
----
10
-2958
47
-510
99
-3298

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 27 IS NOT NULL
----

query I rowsort
SELECT + 88 * - col1 AS col0 FROM tab0 AS cor0
----
-1848
-7128
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL - MIN( + - col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL - MIN ( + - col0 ) AS col2 FROM tab2 AS cor0
----
75

query II rowsort
SELECT DISTINCT + col2 AS col0, 75 AS col2 FROM tab2 AS cor0
----
23
75
40
75
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9280
SELECT - + CAST( NULL AS SIGNED ) AS col1, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-9280
SELECT - + CAST ( NULL AS INTEGER ) AS col1, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query II rowsort
SELECT DISTINCT + col2 AS col1, - col0 * col1 * - 4 FROM tab1 AS cor0
----
59
1700
68
17108
96
2856

query II rowsort
SELECT + + col0, 38 AS col1 FROM tab1 AS cor0
----
51
38
85
38
91
38

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL = 87 - - + col2 / - col1 )
----

query II rowsort
SELECT + 3, col2 FROM tab0 AS cor0
----
3
10
3
47
3
99

query I rowsort
SELECT ALL ( 15 ) AS col0 FROM tab2
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9286
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab0 WHERE col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9287
SELECT ALL - col0 * CAST( + - col1 AS SIGNED ) FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL - col0 * CAST ( + - col1 AS INTEGER ) FROM tab2
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 73 ) col1 FROM tab1
----
73
73
73

query I rowsort
SELECT DISTINCT - col1 - + ( col2 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-110
-115
-64

query I rowsort
SELECT ALL - col0 * + - col0 + col1 AS col0 FROM tab1 AS cor0
----
2615
7230
8328

query I rowsort
SELECT ALL + 64 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT DISTINCT 26 + - COUNT( 13 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT 26 + - COUNT ( 13 ) FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT + + MIN( ALL + - 21 ) AS col0 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9293
SELECT + + MIN ( ALL + - 21 ) AS col0 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT ALL + 52 + + 17 FROM tab0 AS cor0
----
69
69
69

query II rowsort
SELECT + - col1, - col2 AS col0 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT - - 50 + ( + col1 ) - - + 31 / + col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - ( col2 ) * + + col2 - col1 FROM tab2 AS cor0
----
-1677
-3431
-580

query I rowsort
SELECT - 11 + - + col1 AS col1 FROM tab1
----
-16
-25
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT ALL + 0 FROM tab0 WHERE + col1 IS NOT NULL AND 87 NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL + 0 FROM tab0 WHERE + col1 IS NOT NULL AND 87 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - ( - 57 ) + 28 AS col0 FROM tab1
----
85
85
85

query I rowsort
SELECT - col1 * - col1 + - col0 FROM tab0
----
-96
354
6546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9302
SELECT - ( - SUM( DISTINCT CAST( + 36 AS SIGNED ) ) ) AS col1, 97 FROM tab0 cor0
----
36
97

skipif mysql # not compatible
query II rowsort label-9302
SELECT - ( - SUM ( DISTINCT CAST ( + 36 AS INTEGER ) ) ) AS col1, 97 FROM tab0 cor0
----
36
97

query I rowsort
SELECT - ( + - col0 ) * 28 FROM tab2 AS cor0 WHERE NOT 90 + + col2 <= NULL
----

query I rowsort
SELECT DISTINCT 63 * + + col0 AS col1 FROM tab0
----
5481
6111
945

query I rowsort
SELECT + - 27 + - 57 AS col2 FROM tab0 WHERE NOT + + col0 + col0 IS NULL
----
-84
-84
-84

query II rowsort
SELECT ALL + col0, - 97 AS col1 FROM tab1 AS cor0
----
51
-97
85
-97
91
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9307
SELECT ALL - col0 / col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL - col0 / col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 56 AS col2 FROM tab0 AS cor0 WHERE NOT + 23 * col1 NOT BETWEEN col0 AND - - ( col1 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN ( col1 * 2 ) AND 1
----

query I rowsort
SELECT 2 * - ( - + col0 ) AS col2 FROM tab2
----
128
150
92

query I rowsort
SELECT - ( - col1 ) + - col1 AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * + col0 + - col0 - - 47 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 68 * - ( - ( 99 ) ) AS col0 FROM tab0, tab0 cor0
----
6732

onlyif mysql # DIV for integer division: 
query I rowsort label-9314
SELECT ALL + col0 + col0 DIV - 58 FROM tab0
----
15
86
96

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL + col0 + col0 / - 58 FROM tab0
----
15
86
96

query I rowsort
SELECT + ( - 69 ) FROM tab0 AS cor0
----
-69
-69
-69

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 >= + 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + 47 + + - 84 AS col1 FROM tab1 AS cor0
----
151
2125
574

onlyif mysql # DIV for integer division: 
query II rowsort label-9318
SELECT + col0, 6 DIV + + col0 * - ( + - 4 ) FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-9318
SELECT + col0, 6 / + + col0 * - ( + - 4 ) FROM tab2 AS cor0
----
46
0
64
0
75
0

query II rowsort
SELECT DISTINCT - 28, + col0 AS col2 FROM tab2 AS cor0
----
-28
46
-28
64
-28
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT + COUNT( * ) * SUM( - 31 ) col0 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9320
SELECT + COUNT ( * ) * SUM ( - 31 ) col0 FROM tab2 AS cor0
----
-279

onlyif mysql # DIV for integer division: 
query II rowsort label-9321
SELECT + col0 * - 29 AS col1, + 21 DIV + col1 AS col0 FROM tab2 AS cor0
----
-1334
0
-1856
0
-2175
0

skipif mysql # not compatible
query II rowsort label-9321
SELECT + col0 * - 29 AS col1, + 21 / + col1 AS col0 FROM tab2 AS cor0
----
-1334
0
-1856
0
-2175
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9322
SELECT + col0 DIV col0 + + 15 * col0 AS col0 FROM tab2 AS cor0
----
1126
691
961

skipif mysql # not compatible
query I rowsort label-9322
SELECT + col0 / col0 + + 15 * col0 AS col0 FROM tab2 AS cor0
----
1126
691
961

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * 58 <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT + 26 * + 24 FROM tab2 AS cor0
----
624
624
624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9326
SELECT DISTINCT + col1 - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT + col1 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT col1 * + + 99 * - + 78 - + CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
-393868
-517449
-594658

skipif mysql # not compatible
query I rowsort label-9327
SELECT col1 * + + 99 * - + 78 - + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
-393868
-517449
-594658

query II rowsort
SELECT ALL + col0 AS col2, - col0 + + 59 FROM tab2
----
46
13
64
-5
75
-16

query I rowsort
SELECT ALL - ( + 4 ) * col2 FROM tab2 AS cor0
----
-160
-232
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-9330
SELECT DISTINCT - ( - - col1 ) DIV - - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT - ( - - col1 ) / - - col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9331
SELECT + 86 * + - CAST( + ( - + MIN( DISTINCT - 26 ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 * - CAST( NULL AS SIGNED ) * - ( + - CAST( NULL AS SIGNED ) ) BETWEEN + + col0 + - - col2 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT + 86 * + - CAST ( + ( - + MIN ( DISTINCT - 26 ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 * - CAST ( NULL AS INTEGER ) * - ( + - CAST ( NULL AS INTEGER ) ) BETWEEN + + col0 + - - col2 AND col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT DISTINCT + COUNT( * ) * + 41 AS col1 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT + COUNT ( * ) * + 41 AS col1 FROM tab1 AS cor0
----
123

query I rowsort
SELECT col0 * - - 47 FROM tab2 cor0
----
2162
3008
3525

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT SUM( DISTINCT + + 45 ) col1 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9334
SELECT SUM ( DISTINCT + + 45 ) col1 FROM tab2 AS cor0
----
45

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col1 / + + 44 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT + ( - + COUNT( * ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9336
SELECT + ( - + COUNT ( * ) ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE - col1 + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE - col1 + col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT ALL COUNT( * ) + + MIN( + col1 ) AS col2 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL COUNT ( * ) + + MIN ( + col1 ) AS col2 FROM tab1
----
8

query I rowsort
SELECT ALL + col2 + 15 FROM tab1
----
111
74
83

query I rowsort
SELECT ALL 46 + - 42 FROM tab1
----
4
4
4

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9341
SELECT * FROM tab1 AS cor0 WHERE col1 * - CAST( NULL AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-9341
SELECT * FROM tab1 AS cor0 WHERE col1 * - CAST ( NULL AS REAL ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 + - + col1 * + col2 col2 FROM tab0 AS cor0
----
-153
-264
-3861

query I rowsort
SELECT DISTINCT - col2 + + 62 FROM tab1 AS cor0 WHERE NOT ( ( NOT NULL IS NULL ) )
----
-34
-6
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL - - 67 + + ( 44 ) + COUNT( * ) AS col2 FROM tab1 cor0
----
114

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL - - 67 + + ( 44 ) + COUNT ( * ) AS col2 FROM tab1 cor0
----
114

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL < NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9346
SELECT + 12 col0, CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
12
NULL
12
NULL
12
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9346
SELECT + 12 col0, CAST ( NULL AS REAL ) AS col1 FROM tab1
----
12
NULL
12
NULL
12
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9347
SELECT DISTINCT CAST( - + 74 AS SIGNED ) col2 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9347
SELECT DISTINCT CAST ( - + 74 AS INTEGER ) col2 FROM tab2 AS cor0
----
-74

query I rowsort
SELECT DISTINCT - 28 + + col0 FROM tab0 AS cor0
----
-13
59
69

query I rowsort
SELECT ALL col1 + col1 * + 35 * 68 AS col2 FROM tab1 AS cor0
----
111907
11905
33334

query I rowsort
SELECT ALL col1 * + col0 - - + 14 * col0 FROM tab0 AS cor0
----
1425
1455
3045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT - CAST( 43 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL AND ( - col2 ) IS NOT NULL
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-9351
SELECT - CAST ( 43 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL AND ( - col2 ) IS NOT NULL
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT + 85 * COUNT( * ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9352
SELECT + 85 * COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
255

query I rowsort
SELECT DISTINCT + 4 - col0 AS col0 FROM tab1 AS cor0
----
-47
-81
-87

query I rowsort
SELECT ALL - col1 + - col2 + 52 FROM tab2 AS cor0
----
-22
-65
-73

query I rowsort
SELECT DISTINCT col0 - - 27 FROM tab1 cor0
----
112
118
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT COUNT( * ) * COUNT( col1 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9356
SELECT COUNT ( * ) * COUNT ( col1 ) FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT - MIN( ALL + col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9357
SELECT - MIN ( ALL + col2 ) AS col1 FROM tab0
----
-10

query I rowsort
SELECT DISTINCT ( + 76 ) AS col2 FROM tab1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9359
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) col0 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT ALL + + COUNT( * ) * - 17 AS col2 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL + + COUNT ( * ) * - 17 AS col2 FROM tab0 AS cor0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9361
SELECT DISTINCT - 25 DIV MAX( + - col1 ) FROM tab0 cor0
----
25

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT - 25 / MAX ( + - col1 ) FROM tab0 cor0
----
25

query I rowsort
SELECT - col1 * 80 AS col1 FROM tab0
----
-1680
-6480
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9363
SELECT ALL + col1 DIV 34 AS col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL + col1 / 34 AS col0 FROM tab0 AS cor0
----
0
0
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 46 + - 14 + - - col0 * - col1 + - - ( - - col0 ) + - + col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9365
SELECT ALL + col1 + + CAST( - - 75 AS SIGNED ) * col0 AS col0 FROM tab2 cor0
----
3501
4877
5692

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL + col1 + + CAST ( - - 75 AS INTEGER ) * col0 AS col0 FROM tab2 cor0
----
3501
4877
5692

onlyif mysql # aggregate syntax: 
query II rowsort label-9366
SELECT DISTINCT - + 79 * MAX( ALL - col1 ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
4029
3

skipif mysql # not compatible
query II rowsort label-9366
SELECT DISTINCT - + 79 * MAX ( ALL - col1 ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
4029
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9367
SELECT ALL - ( col1 ) DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL - ( col1 ) / col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 36 col0, - ( - AVG ( + col1 ) ) FROM tab0 AS cor0 WHERE NOT + 42 IS NOT NULL
----
-36
NULL

query I rowsort
SELECT - col0 + + 61 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-24
-30
10

query I rowsort
SELECT 83 + - 67 AS col0 FROM tab2
----
16
16
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9371
SELECT ALL - COUNT( * ) * + CAST( NULL AS SIGNED ) * + 54 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 54 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 12 + + + ( + - col0 ) AS col2 FROM tab2
----
-58
-76
-87

query I rowsort
SELECT ALL - + col2 + col0 AS col1 FROM tab1 cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT ALL 45 + MAX( + col1 ) FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL 45 + MAX ( + col1 ) FROM tab1 AS cor0
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + col0 col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT ALL + MIN( - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL + MIN ( - col2 ) FROM tab0
----
-99

query I rowsort
SELECT ALL + 20 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT + MAX( + - col1 ) + 15 AS col1 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-9378
SELECT + MAX ( + - col1 ) + 15 AS col1 FROM tab1
----
10

query I rowsort
SELECT - - 6 + col0 FROM tab1 AS cor0
----
57
91
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9380
SELECT DISTINCT col1 DIV 80 + - col0 + col0 + - 53 + - + 85 FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT col1 / 80 + - col0 + col0 + - 53 + - + 85 FROM tab1 AS cor0
----
-138

query I rowsort
SELECT DISTINCT + - col2 * 8 - + - 36 * + - col2 AS col0 FROM tab0 AS cor0
----
-2068
-4356
-440

query I rowsort
SELECT + + col0 * + - col0 + + col0 AS col2 FROM tab0 AS cor0
----
-210
-7482
-9312

query I rowsort
SELECT 26 * + col0 AS col2 FROM tab2 AS cor0
----
1196
1664
1950

onlyif mysql # aggregate syntax: 
query II rowsort label-9384
SELECT DISTINCT COUNT( * ) AS col0, 73 FROM tab1
----
3
73

skipif mysql # not compatible
query II rowsort label-9384
SELECT DISTINCT COUNT ( * ) AS col0, 73 FROM tab1
----
3
73

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND col1 AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ( + col0 ) * col0 + 63 FROM tab0 AS cor0
----
288
7632
9472

query II rowsort
SELECT - col2, 91 AS col1 FROM tab0 AS cor0
----
-10
91
-47
91
-99
91

query II rowsort
SELECT ALL col0, + 64 + - col2 FROM tab0 AS cor0
----
15
17
87
54
97
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9389
SELECT + 41 DIV + - 11 + col0 * col1 AS col2 FROM tab0 cor0
----
1212
1824
94

skipif mysql # not compatible
query I rowsort label-9389
SELECT + 41 / + - 11 + col0 * col1 AS col2 FROM tab0 cor0
----
1212
1824
94

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9391
SELECT DISTINCT col2 * + + col1 + CAST( NULL AS SIGNED ) * ( - - col1 ) + - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT col2 * + + col1 + CAST ( NULL AS INTEGER ) * ( - - col1 ) + - col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT ALL + - CAST( col2 AS SIGNED ) + - col1 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL + - CAST ( col2 AS INTEGER ) + - col1 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + col2 ) col0, + col1 + + col1 FROM tab2 AS cor0
----
-23
102
-40
154
-58
134

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 - + 59 * - + ( + + 2 ) * - - col1 * - col2 + + + 7 < - col1
----

query III rowsort
SELECT * FROM tab0 WHERE + 99 <= + - col0
----

query III rowsort
SELECT * FROM tab2 WHERE ( 45 <> - + ( + - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + col0 + - ( - col2 ) * + 12 FROM tab1
----
1254
878
998

query I rowsort
SELECT DISTINCT 67 + - col1 AS col0 FROM tab1
----
20
53
62

query I rowsort
SELECT ALL col0 * - - 35 FROM tab1
----
1785
2975
3185

query I rowsort
SELECT DISTINCT col1 + + + col1 + + col0 FROM tab0
----
129
177
99

query I rowsort
SELECT DISTINCT + col2 + - 71 FROM tab2
----
-13
-31
-48

query I rowsort
SELECT - + col2 * - col1 + - col2 AS col1 FROM tab0 AS cor0
----
0
200
3760

query I rowsort
SELECT DISTINCT col1 * + - col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 60 + col2 ) NOT IN ( + 35 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9405
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9405
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NOT ( + col0 ) IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + 96 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9408
SELECT ALL + 83 + col2 DIV - 60 FROM tab0
----
82
83
83

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL + 83 + col2 / - 60 FROM tab0
----
82
83
83

query I rowsort
SELECT ALL col2 + - col2 FROM tab2 WHERE ( col1 * - col0 ) NOT BETWEEN col1 AND col0 * + col2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9410
SELECT ( 73 ) DIV + col0 AS col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-9410
SELECT ( 73 ) / + col0 AS col0 FROM tab0
----
0
0
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9411
SELECT col1 DIV 78 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9411
SELECT col1 / 78 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9412
SELECT MAX( ALL + col1 ) DIV - COUNT( * ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-9412
SELECT MAX ( ALL + col1 ) / - COUNT ( * ) FROM tab2
----
-25

query I rowsort
SELECT DISTINCT 12 * - col1 - - 19 / col0 FROM tab1 WHERE ( col1 ) IN ( + ( col1 ) + + 69 )
----

query I rowsort
SELECT DISTINCT + 98 + + col1 * 46 FROM tab0
----
1064
144
3824

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT - 32 + COUNT( * ) AS col1 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-9415
SELECT - 32 + COUNT ( * ) AS col1 FROM tab1
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 col0 FROM tab2
----
-38

query I rowsort
SELECT DISTINCT - col0 + 68 AS col1 FROM tab1
----
-17
-23
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL 67 + COUNT( * ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL 67 + COUNT ( * ) FROM tab2
----
70

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 NOT BETWEEN NULL AND ( + ( - 63 ) * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 74 ) col2 FROM tab0
----
74
74
74

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( 77 ) AND 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9422
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - col0 * + 28 AND + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9422
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - col0 * + 28 AND + CAST ( col1 AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 * 44 ) > - col1 / - col0 + 63 * - 15
----

query I rowsort
SELECT col2 + 60 FROM tab0
----
107
159
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT col2 FROM tab2 WHERE ( col2 * + col1 ) > - CAST( NULL AS SIGNED ) / 16
----

skipif mysql # not compatible
query I rowsort label-9425
SELECT col2 FROM tab2 WHERE ( col2 * + col1 ) > - CAST ( NULL AS INTEGER ) / 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT DISTINCT SUM( + 44 ) col1 FROM tab1
----
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9426
SELECT DISTINCT SUM ( + 44 ) col1 FROM tab1
----
132

query I rowsort
SELECT 31 + col1 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT - col1 - col1 / col2 FROM tab2 WHERE NULL IN ( 46 )
----

query I rowsort
SELECT ( col0 ) - col0 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT + ( + ( SUM( col2 ) ) ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9430
SELECT + ( + ( SUM ( col2 ) ) ) AS col0 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT - SUM( DISTINCT 57 ) AS col1 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-9431
SELECT - SUM ( DISTINCT 57 ) AS col1 FROM tab0
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 col1 FROM tab2 cor0
----
1600
3364
529

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 8 * col0 > + 26
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT DISTINCT MIN( DISTINCT 36 ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT MIN ( DISTINCT 36 ) FROM tab1 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT 35 + + SUM( 6 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT 35 + + SUM ( 6 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9436
SELECT + COUNT( ALL - 35 ) DIV 25 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9436
SELECT + COUNT ( ALL - 35 ) / 25 AS col2 FROM tab1
----
0

query I rowsort
SELECT - 76 * col2 FROM tab2
----
-1748
-3040
-4408

query I rowsort
SELECT ALL 11 * + col1 + 68 FROM tab1
----
123
222
585

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9439
SELECT ALL - CAST( NULL AS DECIMAL ) * ( CAST( col0 AS SIGNED ) * 5 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL - CAST ( NULL AS REAL ) * ( CAST ( col0 AS INTEGER ) * 5 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 32 + - col0 AS col0 FROM tab0
----
-55
-65
17

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE + 3 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9442
SELECT + 86 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9442
SELECT + 86 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = ( col1 )
----

query I rowsort
SELECT + col2 * 7 + ( - col0 + col1 ) AS col1 FROM tab1 AS cor0
----
333
432
635

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE - 23 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT COUNT( ALL + 30 ) AS col1 FROM tab0 cor0 WHERE ( + col1 * col2 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9446
SELECT COUNT ( ALL + 30 ) AS col1 FROM tab0 cor0 WHERE ( + col1 * col2 ) < NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 75 * col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT + COUNT( * ) + + ( - 40 ) FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-9448
SELECT + COUNT ( * ) + + ( - 40 ) FROM tab0 AS cor0
----
-37

query I rowsort
SELECT ALL - col0 + + 22 AS col1 FROM tab0 AS cor0
----
-65
-75
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL - 37 * COUNT( 1 + 35 ) AS col1 FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL - 37 * COUNT ( 1 + 35 ) AS col1 FROM tab2 AS cor0
----
-111

query I rowsort
SELECT + col1 + 10 AS col2 FROM tab1 AS cor0
----
15
24
57

query I rowsort
SELECT col1 + - col1 FROM tab2 AS cor0 WHERE ( + 95 ) >= ( col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT + 56 + - ( + ( COUNT( * ) ) ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9453
SELECT + 56 + - ( + ( COUNT ( * ) ) ) FROM tab2 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT + COUNT( * ) FROM tab1 WHERE 69 * - col1 NOT IN ( - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-9454
SELECT + COUNT ( * ) FROM tab1 WHERE 69 * - col1 NOT IN ( - col0 )
----
3

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE + col0 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9456
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 90 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 90 FROM tab2
----
NULL

query I rowsort
SELECT - col1 + col1 AS col0 FROM tab0 WHERE - col0 IS NULL
----

query I rowsort
SELECT + col0 FROM tab1 WHERE col0 * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9459
SELECT DISTINCT - col2 / - + col0 * + col1 + - CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT - col2 / - + col0 * + col1 + - CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9460
SELECT col2 DIV col0 + 12 * + 12 - + 84 FROM tab1 AS cor0
----
60
60
61

skipif mysql # not compatible
query I rowsort label-9460
SELECT col2 / col0 + 12 * + 12 - + 84 FROM tab1 AS cor0
----
60
60
61

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 96 / - col0 + col2 < - col2 + - 97 AND NULL >= ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT ALL + 72 - - - COUNT( * ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL + 72 - - - COUNT ( * ) FROM tab1 AS cor0
----
69

query I rowsort
SELECT - - col2 + - 26 FROM tab1 AS cor0
----
33
42
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9464
SELECT - 72 + - col2 DIV - 1 FROM tab2 AS cor0
----
-14
-32
-49

skipif mysql # not compatible
query I rowsort label-9464
SELECT - 72 + - col2 / - 1 FROM tab2 AS cor0
----
-14
-32
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-9465
SELECT ALL + col2 DIV ( 70 ) col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9465
SELECT ALL + col2 / ( 70 ) col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9467
SELECT + 53 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-9467
SELECT + 53 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
17

query I rowsort
SELECT ALL - 72 * + - col1 AS col1 FROM tab1 AS cor0
----
1008
3384
360

onlyif mysql # DIV for integer division: 
query I rowsort label-9469
SELECT - ( + 13 ) DIV col1 DIV col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9469
SELECT - ( + 13 ) / col1 / col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT DISTINCT COUNT( * ) + + 30 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
30

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT COUNT ( * ) + + 30 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT DISTINCT - COUNT( * ) + 74 * + COUNT( * ) FROM tab0 cor0 WHERE ( NULL ) < col1
----
0

skipif mysql # not compatible
query I rowsort label-9471
SELECT DISTINCT - COUNT ( * ) + 74 * + COUNT ( * ) FROM tab0 cor0 WHERE ( NULL ) < col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT + MIN( - 84 ) FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9472
SELECT + MIN ( - 84 ) FROM tab1 AS cor0
----
-84

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( + col2 * + 64 ) AND NULL
----

query II rowsort
SELECT DISTINCT - 37, col1 FROM tab1 AS cor0
----
-37
14
-37
47
-37
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT ALL - COUNT( * ) * COUNT( * ) + MAX( col1 ) + - MAX( - ( - 38 ) ) AS col0 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL - COUNT ( * ) * COUNT ( * ) + MAX ( col1 ) + - MAX ( - ( - 38 ) ) AS col0 FROM tab2 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9476
SELECT DISTINCT - CAST( - 87 AS SIGNED ) DIV - - 41 + col1 + ( col0 + 51 ) FROM tab0
----
149
151
161

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT - CAST ( - 87 AS INTEGER ) / - - 41 + col1 + ( col0 + 51 ) FROM tab0
----
149
151
161

query III rowsort
SELECT ALL * FROM tab0 WHERE - 27 / - col1 * col0 + col1 IN ( 74 )
----

query I rowsort
SELECT DISTINCT - ( col2 ) * col0 FROM tab2 WHERE NULL NOT IN ( 12 * - col2 )
----

query I rowsort
SELECT - col0 * + col1 * + - 48 FROM tab1
----
20400
205296
34272

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT - ( + + ( ( - COUNT( * ) ) ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9480
SELECT - ( + + ( ( - COUNT ( * ) ) ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT - ( ( + 54 ) ) AS col1 FROM tab1
----
-54
-54
-54

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 = - col1
----

query I rowsort
SELECT ALL + col1 * + col2 AS col2 FROM tab2 WHERE NOT - col1 < - col0 * - 3
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 10 col2 FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT + col1 * + 33 * + + col1 + - 64 AS col2 FROM tab2 AS cor0
----
148073
195593
85769

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 59 + col2 + + + 69 ) <> NULL
----

query I rowsort
SELECT - 69 * - - ( ( - - 39 ) ) + - col2 + + col2 * + 85 * - col0 AS col0 FROM tab2
----
-220331
-372499
-92644

query I rowsort
SELECT DISTINCT - 58 + - 70 AS col1 FROM tab0 AS cor0
----
-128

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 ) > ( 71 )
----
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ( - COUNT( - + col2 ) ) * + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9490
SELECT ( - COUNT ( - + col2 ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT DISTINCT + 19 - + COUNT( * ) AS col2 FROM tab2 cor0
----
16

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT + 19 - + COUNT ( * ) AS col2 FROM tab2 cor0
----
16

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * - 75 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + col0 * - + col2 * + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT + col2 - - ( + col2 ) DIV + col1 FROM tab1
----
102
69
70

skipif mysql # not compatible
query I rowsort label-9494
SELECT + col2 - - ( + col2 ) / + col1 FROM tab1
----
102
69
70

query I rowsort
SELECT - 27 + - + col0 + - col0 FROM tab2
----
-119
-155
-177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9496
SELECT col1 * + col0 + + ( CAST( + 12 AS SIGNED ) ) + - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
352
4198
675

skipif mysql # not compatible
query I rowsort label-9496
SELECT col1 * + col0 + + ( CAST ( + 12 AS INTEGER ) ) + - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
352
4198
675

query I rowsort
SELECT DISTINCT + col2 + - col0 * col1 * - 32 + col0 * + col1 AS col0 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT - - col0 AS col0 FROM tab2 WHERE ( ( NULL ) IS NULL )
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9499
SELECT - col0 + + col1 DIV + ( + + col1 ) + 4 FROM tab2
----
-41
-59
-70

skipif mysql # not compatible
query I rowsort label-9499
SELECT - col0 + + col1 / + ( + + col1 ) + 4 FROM tab2
----
-41
-59
-70

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * - col1 NOT BETWEEN col2 AND ( - ( + ( col1 ) ) )
----

query I rowsort
SELECT DISTINCT + 9 + col1 FROM tab0
----
10
30
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9502
SELECT CAST( - - col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-9502
SELECT CAST ( - - col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL + col0 - + - 88 AS col2 FROM tab0 AS cor0 WHERE + col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 = col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 < + 33
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + - col0 * - 43 - + col1 + - - col0 FROM tab2 AS cor0
----
1973
2739
3233

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT ALL + MAX( + + 92 ) col0 FROM tab1 cor0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9507
SELECT ALL + MAX ( + + 92 ) col0 FROM tab1 cor0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9508
SELECT ALL col1 DIV - col2 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL col1 / - col2 FROM tab2 cor0
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9509
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col2 * - - col0 * CAST( - col0 AS SIGNED ) + col0 * col2 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-9509
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col2 * - - col0 * CAST ( - col0 AS INTEGER ) + col0 * col2 IS NULL )
----

query I rowsort
SELECT DISTINCT + 91 * + - col2 FROM tab0 cor0
----
-4277
-9009
-910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9511
SELECT - - col0 * + 59 + - - CAST( NULL AS SIGNED ) * + + ( - col0 ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9511
SELECT - - col0 * + 59 + - - CAST ( NULL AS INTEGER ) * + + ( - col0 ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9512
SELECT - col0 DIV ( 21 ) FROM tab0 AS cor0
----
-4
-4
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT - col0 / ( 21 ) FROM tab0 AS cor0
----
-4
-4
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9513
SELECT - CAST( 93 AS SIGNED ), - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-93
-3

skipif mysql # not compatible
query II rowsort label-9513
SELECT - CAST ( 93 AS INTEGER ), - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-93
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 IN ( + - col1 )
----

query II rowsort
SELECT + col1 AS col0, col2 * col1 + - ( + col2 ) AS col2 FROM tab2
----
51
1150
67
3828
77
3040

query II rowsort
SELECT DISTINCT - 33, + col2 FROM tab0
----
-33
10
-33
47
-33
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL 61 * - COUNT( * ) + 44 FROM tab2
----
-139

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL 61 * - COUNT ( * ) + 44 FROM tab2
----
-139

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 > - col1 - - 83 * col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 = - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 / col1 )
----

query II rowsort
SELECT + 36 AS col2, col1 AS col0 FROM tab2 cor0
----
36
51
36
67
36
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 86 / + 65 * + - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9523
SELECT - col0 * - + 93 * - - col1 * + + col2 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9523
SELECT - col0 * - + 93 * - - col1 * + + col2 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 78 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT ALL + 57 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9526
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT 98 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT ALL - - 36 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT + 37 FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT 32 * + 56 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > + 70 * col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 17 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT ALL + ( + col1 ) + + + col0 / - CAST( NULL AS SIGNED ) * + ( - col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL + ( + col1 ) + + + col0 / - CAST ( NULL AS INTEGER ) * + ( - col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT - 32 + MIN( DISTINCT - - 28 ) FROM tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9533
SELECT - 32 + MIN ( DISTINCT - - 28 ) FROM tab0 cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9534
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT - - 40 * + col2 + + - 60 * - 14 AS col2 FROM tab1 AS cor0
----
3200
3560
4680

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE ( 80 + - - col1 ) IS NOT NULL
----
23
40
58

query II rowsort
SELECT - 59 AS col2, ( col0 ) FROM tab0
----
-59
15
-59
87
-59
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 42 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT DISTINCT + MAX( DISTINCT - col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT + MAX ( DISTINCT - col1 ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT ALL + col0 * - 0 * - - col0 / + col2 AS col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT ALL - col2 * + 50 + - + ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT ALL - col2 * + 50 + - + ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 43 * + col2 AS col0 FROM tab1 AS cor0
----
2537
2924
4128

query II rowsort
SELECT + - col1 AS col2, + col1 * + col2 FROM tab2 AS cor0
----
-51
1173
-67
3886
-77
3080

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 34 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 29 * col2 FROM tab1
----
1711
1972
2784

query I rowsort
SELECT DISTINCT - 96 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-96

query II rowsort
SELECT ALL - col0 * + + 71 AS col2, col2 FROM tab0 AS cor0
----
-1065
47
-6177
10
-6887
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9548
SELECT - CAST( - SUM( DISTINCT col1 ) AS SIGNED ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9548
SELECT - CAST ( - SUM ( DISTINCT col1 ) AS INTEGER ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query II rowsort label-9549
SELECT DISTINCT + + SUM( - ( - - col2 ) ) * 44, 63 AS col2 FROM tab0 AS cor0
----
-6864
63

skipif mysql # not compatible
query II rowsort label-9549
SELECT DISTINCT + + SUM ( - ( - - col2 ) ) * 44, 63 AS col2 FROM tab0 AS cor0
----
-6864
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT - 97 * 99 + - COUNT( ALL - + ( - + 51 ) ) FROM tab0 AS cor0
----
-9606

skipif mysql # not compatible
query I rowsort label-9550
SELECT - 97 * 99 + - COUNT ( ALL - + ( - + 51 ) ) FROM tab0 AS cor0
----
-9606

query II rowsort
SELECT ALL col1 * + col1, col0 FROM tab0 AS cor0
----
1
97
441
87
6561
15

query II rowsort
SELECT DISTINCT col2 AS col2, + 6 FROM tab2 AS cor0
----
23
6
40
6
58
6

query I rowsort
SELECT ALL - + col2 * 49 FROM tab2 AS cor0
----
-1127
-1960
-2842

query I rowsort
SELECT - - 24 * - col0 FROM tab0 AS cor0
----
-2088
-2328
-360

query I rowsort
SELECT DISTINCT - col1 * + + 9 AS col2 FROM tab2 cor0
----
-459
-603
-693

query I rowsort
SELECT + + 54 * - col1 FROM tab0 AS cor0
----
-1134
-4374
-54

query I rowsort
SELECT - - col1 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= col2 + + col2
----

query I rowsort
SELECT ALL col0 + + ( - col1 ) AS col1 FROM tab1
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9560
SELECT ALL - CAST( NULL AS SIGNED ) * + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL - CAST ( NULL AS INTEGER ) * + - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9561
SELECT ALL col1 DIV 35 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL col1 / 35 FROM tab1
----
0
0
1

query I rowsort
SELECT 79 * - 2 * - 61 + + 11 FROM tab2 AS cor0
----
9649
9649
9649

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * - - col1 <> + 23 + - 54
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT ALL ( + 41 ) col1 FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) / col1 >= - 49 * + col1 + - - col2 + - col0 / - ( + ( + col1 ) ) + 88 + + col1 * 18 * 77
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9564
SELECT ALL ( + 41 ) col1 FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) / col1 >= - 49 * + col1 + - - col2 + - col0 / - ( + ( + col1 ) ) + 88 + + col1 * 18 * 77
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9565
SELECT ALL + CAST( NULL AS DECIMAL ) + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL + CAST ( NULL AS REAL ) + + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 cor0 WHERE NULL = 41
----

query I rowsort
SELECT col0 * col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT ALL + COUNT( * ) + - 46 col1 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9568
SELECT ALL + COUNT ( * ) + - 46 col1 FROM tab1 AS cor0
----
-43

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 NOT IN ( + col1, ( - + col1 ), - 43 + 80 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col2 - + col0 * - col1, 33 AS col2 FROM tab0 AS cor0
----
1262
33
1837
33
196
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 <= + + ( - - 88 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 8 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9573
SELECT col1 + - CAST( NULL AS SIGNED ) * - col2 + + 85 + + col2 + - col1 * - 71 * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9573
SELECT col1 + - CAST ( NULL AS INTEGER ) * - col2 + + 85 + + col2 + - col1 * - 71 * col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9574
SELECT + col0 + - col2 - col1 + - col2 * col2 DIV - col1 FROM tab1
----
599
717
74

skipif mysql # not compatible
query I rowsort label-9574
SELECT + col0 + - col2 - col1 + - col2 * col2 / - col1 FROM tab1
----
599
717
74

query III rowsort
SELECT * FROM tab1 WHERE - + col2 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + - 86 * col2 FROM tab2
----
-1955
-3400
-4930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 1 * + col2, - col2 col0 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT + ( 6 ) * - COUNT( * ) FROM tab0 WHERE NOT - - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9578
SELECT + ( 6 ) * - COUNT ( * ) FROM tab0 WHERE NOT - - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT DISTINCT - 20 * - COUNT( * ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT - 20 * - COUNT ( * ) FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT COUNT( * ) * + + ( - COUNT( * ) ) * + + 57 AS col2 FROM tab2
----
-513

skipif mysql # not compatible
query I rowsort label-9580
SELECT COUNT ( * ) * + + ( - COUNT ( * ) ) * + + 57 AS col2 FROM tab2
----
-513

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 60 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT DISTINCT COUNT( * ) * SUM( 75 ) AS col0 FROM tab2 cor0
----
675

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT COUNT ( * ) * SUM ( 75 ) AS col0 FROM tab2 cor0
----
675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9584
SELECT + 63 DIV + COUNT( * ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9584
SELECT + 63 / + COUNT ( * ) FROM tab2 AS cor0
----
21

query I rowsort
SELECT DISTINCT + + 41 AS col0 FROM tab0 cor0
----
41

query I rowsort
SELECT 33 + col2 FROM tab0
----
132
43
80

query I rowsort
SELECT col2 + - 70 * + col2 FROM tab0
----
-3243
-6831
-690

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9588
SELECT ALL * FROM tab2 WHERE - - col0 * col1 + + CAST( ( + col0 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9588
SELECT ALL * FROM tab2 WHERE - - col0 * col1 + + CAST ( ( + col0 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 74 + - - col0 AS col1 FROM tab0
----
161
171
89

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 64 / ( - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2 AS col1, 24 FROM tab1
----
59
24
68
24
96
24

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE + - ( - col1 ) IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 90 * - 79 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * - col2 + col2 FROM tab0
----
198
220
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT ALL + SUM( - 36 ) + ( 36 ) FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL + SUM ( - 36 ) + ( 36 ) FROM tab1 AS cor0
----
-72

query II rowsort
SELECT DISTINCT - col2 AS col0, ( + + 38 ) + - - col1 AS col0 FROM tab0 AS cor0
----
-10
59
-47
119
-99
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9597
SELECT - col2 / 33 * - col0 - - col1 - - ( col0 ) + + - col0 * - - ( - 36 ) / ( - 43 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9597
SELECT - col2 / 33 * - col0 - - col1 - - ( col0 ) + + - col0 * - - ( - 36 ) / ( - 43 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9598
SELECT - col2 + + + 87 - + CAST( col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9598
SELECT - col2 + + + 87 - + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 - + - col0 - + col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9600
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = 83 * - + CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9600
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = 83 * - + CAST ( + - col2 AS INTEGER )
----

query I rowsort
SELECT ALL 42 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1131
-3038
-3844

query I rowsort
SELECT ALL + + col2 - + ( 49 ) FROM tab1 AS cor0
----
10
19
47

query I rowsort
SELECT DISTINCT + col1 - - col2 * - 71 - col0 * + ( + - col2 ) AS col0 FROM tab1 AS cor0
----
-1906
1407
831

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT - ( - SUM( - + col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9604
SELECT - ( - SUM ( - + col0 ) ) FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL 56 - 14 + - - 29 * + COUNT( * ) FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL 56 - 14 + - - 29 * + COUNT ( * ) FROM tab0 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT ( + MAX( DISTINCT + + 9 ) ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9606
SELECT ( + MAX ( DISTINCT + + 9 ) ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL < + 22 / + 68 + + 17 * + + col1
----
0

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL < + 22 / + 68 + + 17 * + + col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9608
SELECT ALL - 30 DIV - 26 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL - 30 / - 26 AS col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT DISTINCT SUM( DISTINCT + 18 ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-9609
SELECT DISTINCT SUM ( DISTINCT + 18 ) FROM tab2
----
18

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + col1 AND ( - 13 * + + col2 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT + 98 * + COUNT( * ) * - COUNT( * ) * - - 1 + + 26 FROM tab0 AS cor0
----
-856

skipif mysql # not compatible
query I rowsort label-9611
SELECT + 98 * + COUNT ( * ) * - COUNT ( * ) * - - 1 + + 26 FROM tab0 AS cor0
----
-856

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT - SUM( + 13 ) AS col1 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9612
SELECT - SUM ( + 13 ) AS col1 FROM tab0 AS cor0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col2 ) + + + col2 col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9614
SELECT + COUNT( ALL + - col1 ) AS col0, COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9614
SELECT + COUNT ( ALL + - col1 ) AS col0, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9615
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IN ( - - col2 + - - col0 + + - col1 / - col1 * - 88 )
----

skipif mysql # not compatible
query III rowsort label-9615
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( - - col2 + - - col0 + + - col1 / - col1 * - 88 )
----

query II rowsort
SELECT ALL + col2 AS col2, + col0 FROM tab1
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT DISTINCT - 97 * - ( - - COUNT( * ) ) FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-9618
SELECT DISTINCT - 97 * - ( - - COUNT ( * ) ) FROM tab1
----
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT col1 * - 98 AS col2 FROM tab1
----
-1372
-4606
-490

query I rowsort
SELECT col1 + + 57 + 61 AS col1 FROM tab1
----
123
132
165

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT DISTINCT + MIN( + 92 ) + 56 FROM tab2
----
148

skipif mysql # not compatible
query I rowsort label-9622
SELECT DISTINCT + MIN ( + 92 ) + 56 FROM tab2
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9623
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> CAST( NULL AS SIGNED ) / + 95 - - + 4
----

skipif mysql # not compatible
query III rowsort label-9623
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> CAST ( NULL AS INTEGER ) / + 95 - - + 4
----

query III rowsort
SELECT * FROM tab0 WHERE - 60 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9625
SELECT + col2 * 51 DIV - + ( 58 ) AS col1, 96 FROM tab1
----
-51
96
-59
96
-84
96

skipif mysql # not compatible
query II rowsort label-9625
SELECT + col2 * 51 / - + ( 58 ) AS col1, 96 FROM tab1
----
-51
96
-59
96
-84
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT + + COUNT( * ) * 70 + COUNT( * ) + COUNT( * ) - + 40 col1 FROM tab1 AS cor0
----
176

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9626
SELECT + + COUNT ( * ) * 70 + COUNT ( * ) + COUNT ( * ) - + 40 col1 FROM tab1 AS cor0
----
176

query II rowsort
SELECT DISTINCT - 15 + - + col1 + 97 * + - 44 + 22 * - + 63, 3 AS col2 FROM tab2 AS cor0
----
-5720
3
-5736
3
-5746
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9628
SELECT DISTINCT col2 + - - col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
12
48
99

skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT col2 + - - col1 / + col2 AS col2 FROM tab0 AS cor0
----
12
48
99

query I rowsort
SELECT ALL - - 60 * + col0 FROM tab2 AS cor0
----
2760
3840
4500

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - col1 ) = NULL
----

query I rowsort
SELECT DISTINCT - 52 * + + col1 * + 3 AS col0 FROM tab1 cor0
----
-2184
-7332
-780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9632
SELECT DISTINCT - col2 * - + col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9632
SELECT DISTINCT - col2 * - + col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT + MIN( DISTINCT + + 53 ) col2 FROM tab2
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9633
SELECT + MIN ( DISTINCT + + 53 ) col2 FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT + COUNT( * ) * - 71 AS col2 FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-9634
SELECT + COUNT ( * ) * - 71 AS col2 FROM tab1
----
-213

onlyif mysql # aggregate syntax: 
query II rowsort label-9635
SELECT DISTINCT ( + 46 ) AS col1, COUNT( * ) FROM tab1
----
46
3

skipif mysql # not compatible
query II rowsort label-9635
SELECT DISTINCT ( + 46 ) AS col1, COUNT ( * ) FROM tab1
----
46
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT + COUNT( DISTINCT - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9636
SELECT + COUNT ( DISTINCT - col1 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9637
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) NOT IN ( + + col1 * + - col2 )
----

skipif mysql # not compatible
query III rowsort label-9637
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT IN ( + + col1 * + - col2 )
----

query I rowsort
SELECT - 5 FROM tab2 AS cor0 WHERE NOT + col2 / 32 IS NOT NULL
----

query I rowsort
SELECT 31 AS col1 FROM tab0 WHERE NOT col0 * + + col0 + + 38 - + 11 NOT IN ( - 93, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT ALL COUNT( * ) * - 52 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-468

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL COUNT ( * ) * - 52 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-468

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 71 <> col0
----

query I rowsort
SELECT DISTINCT - + 52 + - - col0 FROM tab1 AS cor0
----
-1
33
39

query II rowsort
SELECT ALL - - 32, col0 AS col2 FROM tab2 AS cor0
----
32
46
32
64
32
75

query I rowsort
SELECT DISTINCT - 87 + - + col1 FROM tab0 AS cor0
----
-108
-168
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 9 AS col0, col1 col2 FROM tab2 AS cor0
----
9
51
9
67
9
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9646
SELECT - + 78 + - 8 + + COUNT( - + col0 ) DIV - 24 * - 5, - 19 AS col1 FROM tab2 cor0
----
-86
-19

skipif mysql # not compatible
query II rowsort label-9646
SELECT - + 78 + - 8 + + COUNT ( - + col0 ) / - 24 * - 5, - 19 AS col1 FROM tab2 cor0
----
-86
-19

query I rowsort
SELECT ALL ( 63 ) FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT + col1 + + - col0 AS col2 FROM tab0 cor0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9649
SELECT ALL + 55 / + CAST( NULL AS SIGNED ) + AVG ( CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL + 55 / + CAST ( NULL AS INTEGER ) + AVG ( CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT - 46 + MAX( - - col2 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-9650
SELECT - 46 + MAX ( - - col2 ) FROM tab2
----
12

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 + - 30 - - 90 NOT IN ( + col0, + 48 * ( col1 ) + - 48 * - col1 - + 25 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 88 * + col1 AS col0 FROM tab0 cor0
----
1848
7128
88

query I rowsort
SELECT DISTINCT 56 + - - col2 + + col1 AS col2 FROM tab0 cor0
----
156
184
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL - - ( COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL - - ( COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT + 34 - + - ( - 67 ) FROM tab1 AS cor0
----
-33
-33
-33

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0 / + 91 + + 84 - col2
----

query II rowsort
SELECT ALL - col1 - + - 58, + col2 AS col1 FROM tab2 AS cor0
----
-19
40
-9
58
7
23

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL NOT BETWEEN NULL AND 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT 63 + COUNT( * ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9659
SELECT 63 + COUNT ( * ) AS col0 FROM tab1
----
66

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 94 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT + SUM( ALL - 96 ) AS col1 FROM tab2 cor0
----
-288

skipif mysql # not compatible
query I rowsort label-9662
SELECT + SUM ( ALL - 96 ) AS col1 FROM tab2 cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT + ( + + COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT 66 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9663
SELECT + ( + + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT 66 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT - MAX( DISTINCT - ( col1 ) ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9664
SELECT - MAX ( DISTINCT - ( col1 ) ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT SUM( - col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9665
SELECT SUM ( - col1 ) FROM tab1 cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL COUNT( DISTINCT + - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL COUNT ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - col2 * 91 AS col2 FROM tab0 AS cor0
----
4277
9009
910

query II rowsort
SELECT col2, + col1 AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT DISTINCT + MAX( - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9669
SELECT DISTINCT + MAX ( - col1 ) FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT DISTINCT + ( - + COUNT( * ) ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9670
SELECT DISTINCT + ( - + COUNT ( * ) ) col2 FROM tab1
----
-3

query I rowsort
SELECT ALL 52 * - col1 FROM tab0
----
-1092
-4212
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT SUM( - - 27 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9672
SELECT SUM ( - - 27 ) AS col2 FROM tab0
----
81

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT ( - col0 ) NOT BETWEEN + 60 * - col1 AND col0
----
23
40
58

query I rowsort
SELECT + 89 * 38 * - 46 AS col1 FROM tab1
----
-155572
-155572
-155572

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9675
SELECT * FROM tab1 WHERE NOT - CAST( - + 63 AS SIGNED ) >= + col2
----
51
14
96
91
47
68

skipif mysql # not compatible
query III rowsort label-9675
SELECT * FROM tab1 WHERE NOT - CAST ( - + 63 AS INTEGER ) >= + col2
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT 37 * - MAX( ALL - col2 ) * - + 35 + + + 39 AS col2 FROM tab2
----
-29746

skipif mysql # not compatible
query I rowsort label-9676
SELECT 37 * - MAX ( ALL - col2 ) * - + 35 + + + 39 AS col2 FROM tab2
----
-29746

onlyif mysql # DIV for integer division: 
query I rowsort label-9677
SELECT DISTINCT - - ( - col2 ) DIV + + 81 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT - - ( - col2 ) / + + 81 AS col1 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL + + col2 * col1 + + + col1 * col1 FROM tab1 AS cor0
----
1540
320
5405

query I rowsort
SELECT - col2 * - 81 * col0 AS col0 FROM tab0 AS cor0
----
57105
70470
777843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9680
SELECT ALL - + col1 * + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL - + col1 * + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT DISTINCT + SUM( + 11 ) col1 FROM tab1
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9681
SELECT DISTINCT + SUM ( + 11 ) col1 FROM tab1
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 64 ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9683
SELECT ALL - COUNT( * ) + + + 86 + - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - COUNT ( * ) + + + 86 + - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT DISTINCT - MAX( DISTINCT - + 87 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
87

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT - MAX ( DISTINCT - + 87 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
87

query I rowsort
SELECT ALL - ( - col1 ) + - col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT + col0 * + 56 AS col2 FROM tab1 AS cor0
----
2856
4760
5096

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 36 / - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 96, col0 - col0 / - + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT - COUNT( * ) FROM tab1 WHERE NULL < - 87
----
0

skipif mysql # not compatible
query I rowsort label-9689
SELECT - COUNT ( * ) FROM tab1 WHERE NULL < - 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT ALL COUNT( * ) + + ( - MAX( - col0 ) ) AS col2 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL COUNT ( * ) + + ( - MAX ( - col0 ) ) AS col2 FROM tab2
----
49

query I rowsort
SELECT ALL - 19 + - 67 AS col0 FROM tab1
----
-86
-86
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + + col1 ) col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT - 29 + + col0 - + 45 FROM tab1
----
-23
11
17

query I rowsort
SELECT DISTINCT + col0 + + + 34 AS col2 FROM tab0
----
121
131
49

query I rowsort
SELECT + col2 + - ( - col1 ) FROM tab2
----
117
125
74

query III rowsort
SELECT * FROM tab0 WHERE col1 IN ( + + 52 * - + col0 - + col0 * + - 65 * 75, + col1, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + ( + - col2 ) + + 21 FROM tab0 AS cor0
----
-26
-78
11

query I rowsort
SELECT ALL + col1 * - + col0 * 54 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT col1 * + col1 + - col1 * + + col2 + 31 AS col1 FROM tab2 AS cor0
----
1459
2880
634

query I rowsort
SELECT ALL + + 43 - - 5 AS col2 FROM tab1 AS cor0
----
48
48
48

query II rowsort
SELECT + + 51 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
51
59
51
68
51
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 col1 FROM tab0 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT DISTINCT - + MAX( col2 ) col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9704
SELECT DISTINCT - + MAX ( col2 ) col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9705
SELECT 32 DIV ( - - col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9705
SELECT 32 / ( - - col2 ) FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - col0 ) < 57 / ( - ( + col2 ) ) * + + ( - col0 ) + + - col1 + + - col0 * + col0 * + - col2 + + col1 * + - col2 + - + 33
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - - 60 ) col2 FROM tab2 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9708
SELECT ALL CAST( NULL AS SIGNED ) * - + col0 * 17 + - - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL CAST ( NULL AS INTEGER ) * - + col0 * 17 + - - col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 58 AS col0 FROM tab0 cor0
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9710
SELECT DISTINCT + col2 * CAST( - - 27 AS SIGNED ) FROM tab0 AS cor0
----
1269
2673
270

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT + col2 * CAST ( - - 27 AS INTEGER ) FROM tab0 AS cor0
----
1269
2673
270

onlyif mysql # aggregate syntax: 
query II rowsort label-9711
SELECT - COUNT( * ) col0, + COUNT( * ) FROM tab2
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9711
SELECT - COUNT ( * ) col0, + COUNT ( * ) FROM tab2
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT DISTINCT 81 * + ( COUNT( * ) ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT 81 * + ( COUNT ( * ) ) FROM tab0
----
243

query I rowsort
SELECT ALL col0 * + + 51 * col0 AS col1 FROM tab0 AS cor0
----
11475
386019
479859

query I rowsort
SELECT ALL + col1 * + col0 * + 43 + col0 * col0 FROM tab1 AS cor0
----
192192
25500
33303

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, 95 + + col1 + + col0 AS col0 FROM tab0
----
10
203
47
191
99
193

query II rowsort
SELECT - col1 + - ( + col1 ) - + - col0 AS col0, - col2 * + 89 FROM tab2
----
-56
-2047
-59
-5162
-90
-3560

query I rowsort
SELECT ALL col1 * - col2 * + 82 FROM tab1
----
-110208
-24190
-262072

query I rowsort
SELECT DISTINCT + 12 + - col2 AS col0 FROM tab0 AS cor0
----
-35
-87
2

query I rowsort
SELECT + ( - 58 ) + + col1 FROM tab1 AS cor0 WHERE + 61 IS NOT NULL
----
-11
-44
-53

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN - 1 * + col0 AND NULL
----

query I rowsort
SELECT - - col2 * + 3 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT col2 * + + col2 + + 74 FROM tab2 cor0
----
1674
3438
603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9723
SELECT + - col0 + col1 + - CAST( NULL AS SIGNED ) + - col1 * col0 + col2 AS col1, 61 AS col0 FROM tab0 AS cor0
----
NULL
61
NULL
61
NULL
61

skipif mysql # not compatible
query II rowsort label-9723
SELECT + - col0 + col1 + - CAST ( NULL AS INTEGER ) + - col1 * col0 + col2 AS col1, 61 AS col0 FROM tab0 AS cor0
----
NULL
61
NULL
61
NULL
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL 51 * - COUNT( * ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL 51 * - COUNT ( * ) FROM tab2
----
-153

query I rowsort
SELECT DISTINCT + 58 * + col0 AS col1 FROM tab1
----
2958
4930
5278

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT - - COUNT( * ) AS col2 FROM tab2 WHERE - col0 > col2
----
0

skipif mysql # not compatible
query I rowsort label-9726
SELECT - - COUNT ( * ) AS col2 FROM tab2 WHERE - col0 > col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9727
SELECT CAST( + + ( - - COUNT( * ) ) AS SIGNED ) - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9727
SELECT CAST ( + + ( - - COUNT ( * ) ) AS INTEGER ) - + COUNT ( * ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 + - - 72 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9729
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 8 AS col0 FROM tab0 AS cor0
----
8

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= 84 / + 93 + + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) + + ( - + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT + - MIN( ALL - 8 ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-9733
SELECT + - MIN ( ALL - 8 ) FROM tab2 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9734
SELECT ALL + CAST( NULL AS SIGNED ) + + 89, + col0 * + col0 / + 22 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-9734
SELECT ALL + CAST ( NULL AS INTEGER ) + + 89, + col0 * + col0 / + 22 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + ( + 76 ) AS col2 FROM tab1 AS cor0
----
76
76
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9736
SELECT DISTINCT + 49 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT + 49 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + ( + col1 ) * + col0 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT + MAX( + 40 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
40

skipif mysql # not compatible
query I rowsort label-9738
SELECT + MAX ( + 40 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9739
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - 66 + - ( - col1 ) * + col0 + + CAST( - 3 AS SIGNED ), + col0 )
----

skipif mysql # not compatible
query III rowsort label-9739
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - 66 + - ( - col1 ) * + col0 + + CAST ( - 3 AS INTEGER ), + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - col2 + + col0 * - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT DISTINCT 45 * - COUNT( * ) col0 FROM tab2
----
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9741
SELECT DISTINCT 45 * - COUNT ( * ) col0 FROM tab2
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT ( + - COUNT( DISTINCT - - col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9742
SELECT ( + - COUNT ( DISTINCT - - col2 ) ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT MIN( + - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9744
SELECT MIN ( + - col2 ) AS col2 FROM tab2
----
-58

query III rowsort
SELECT * FROM tab1 WHERE NOT - 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - + ( + ( + 91 ) ) ) AS col1 FROM tab2
----
91
91
91

query I rowsort
SELECT DISTINCT + - col0 * - col2 FROM tab0 AS cor0 WHERE NOT ( - - col1 ) IS NULL
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * - ( 85 ) col0 FROM tab2 cor0
----
-5865
-5865
-5865

query I rowsort
SELECT ALL - ( + + col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT 20 + + + col0 FROM tab0 cor0
----
107
117
35

query I rowsort
SELECT ALL + 26 * - - 75 + - + 72 AS col0 FROM tab0 AS cor0
----
1878
1878
1878

query I rowsort
SELECT ALL - col0 * - col0 * col2 FROM tab2 AS cor0
----
163840
326250
48668

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9753
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND + - 36 / + - 13
----

skipif mysql # not compatible
query III rowsort label-9753
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND + - 36 / + - 13
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9754
SELECT MAX( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 89 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT MAX ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 89 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col1 / + 56
----

query I rowsort
SELECT + 97 * col0 AS col1 FROM tab0
----
1455
8439
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT - ( - ( ( + MIN( ALL + col0 ) ) ) ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9757
SELECT - ( - ( ( + MIN ( ALL + col0 ) ) ) ) AS col1 FROM tab2
----
46

query I rowsort
SELECT ALL 36 + col0 FROM tab2
----
100
111
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT + MAX( ( + - 50 ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-50

skipif mysql # not compatible
query I rowsort label-9759
SELECT + MAX ( ( + - 50 ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-50

query II rowsort
SELECT + col0, ( + - col0 ) FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT - 39 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT + MAX( DISTINCT - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9762
SELECT + MAX ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL col0 + - + col1 AS col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9764
SELECT - col0 AS col2 FROM tab0 cor0 WHERE + ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9764
SELECT - col0 AS col2 FROM tab0 cor0 WHERE + ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE col1 + + + col1 * col1 BETWEEN + col0 + - col2 * - 93 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9766
SELECT - col1 * - col2 + col1 - - + CAST( + 81 AS SIGNED ) FROM tab1 AS cor0
----
1439
3324
381

skipif mysql # not compatible
query I rowsort label-9766
SELECT - col1 * - col2 + col1 - - + CAST ( + 81 AS INTEGER ) FROM tab1 AS cor0
----
1439
3324
381

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 38 = NULL
----

query I rowsort
SELECT - 26 + - col0 FROM tab2 cor0
----
-101
-72
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT - COUNT( * ) + - 29 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-9769
SELECT - COUNT ( * ) + - 29 FROM tab1
----
-32

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - col2 * - ( col2 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT 79 + 55 + COUNT( * ) FROM tab2
----
137

skipif mysql # not compatible
query I rowsort label-9771
SELECT 79 + 55 + COUNT ( * ) FROM tab2
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9772
SELECT ALL - CAST( 74 AS SIGNED ) * 3 + - + 61 - - 43 AS col0 FROM tab0
----
-240
-240
-240

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL - CAST ( 74 AS INTEGER ) * 3 + - + 61 - - 43 AS col0 FROM tab0
----
-240
-240
-240

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9773
SELECT ALL CAST( NULL AS DECIMAL ) / 94 * - MAX( ALL + col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL CAST ( NULL AS REAL ) / 94 * - MAX ( ALL + col2 ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 36 + - - col1 AS col1 FROM tab1
----
41
50
83

query I rowsort
SELECT + ( + col2 ) + + + 20 FROM tab1
----
116
79
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT - col2 + 90 DIV + 85 FROM tab0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-9776
SELECT - col2 + 90 / + 85 FROM tab0
----
-46
-9
-98

query I rowsort
SELECT DISTINCT col1 + 52 + + - col2 + - col0 FROM tab2
----
-14
25
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT - - COUNT( * ) * - MAX( DISTINCT - + col1 ) FROM tab2 WHERE ( - col2 IS NOT NULL )
----
153

skipif mysql # not compatible
query I rowsort label-9778
SELECT - - COUNT ( * ) * - MAX ( DISTINCT - + col1 ) FROM tab2 WHERE ( - col2 IS NOT NULL )
----
153

query II rowsort
SELECT ALL + col1 AS col2, 75 * + col2 FROM tab0 AS cor0
----
1
7425
21
750
81
3525

onlyif mysql # aggregate syntax: 
query II rowsort label-9780
SELECT DISTINCT + 22, COUNT( - 97 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
22
9

skipif mysql # not compatible
query II rowsort label-9780
SELECT DISTINCT + 22, COUNT ( - 97 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
22
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9781
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN col2 AND NULL
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9783
SELECT ALL CAST( col1 AS SIGNED ), + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

skipif mysql # not compatible
query II rowsort label-9783
SELECT ALL CAST ( col1 AS INTEGER ), + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT + SUM( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9784
SELECT + SUM ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
227

query I rowsort
SELECT 78 + - + col1 FROM tab0
----
-3
57
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT ALL col2 DIV + 88 + - - col2 AS col1 FROM tab1
----
59
68
97

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL col2 / + 88 + - - col2 AS col1 FROM tab1
----
59
68
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT col2 + + 68 - - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT col2 + + 68 - - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 73 + - col1 FROM tab2
----
-4
22
6

query I rowsort
SELECT - 69 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-69
-69
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9790
SELECT DISTINCT + col1 * col0 + - - col0 DIV + - col0 AS col1 FROM tab1 AS cor0
----
424
4276
713

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT + col1 * col0 + - - col0 / + - col0 AS col1 FROM tab1 AS cor0
----
424
4276
713

onlyif mysql # aggregate syntax: 
query II rowsort label-9791
SELECT - + COUNT( * ) AS col0, + 8 AS col2 FROM tab0 AS cor0
----
-3
8

skipif mysql # not compatible
query II rowsort label-9791
SELECT - + COUNT ( * ) AS col0, + 8 AS col2 FROM tab0 AS cor0
----
-3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT + 68 * - - 8 * + MIN( ALL + - 31 ) + - - COUNT( * ) * - 48 + + COUNT( * ) FROM tab0 cor0
----
-17005

skipif mysql # not compatible
query I rowsort label-9792
SELECT + 68 * - - 8 * + MIN ( ALL + - 31 ) + - - COUNT ( * ) * - 48 + + COUNT ( * ) FROM tab0 cor0
----
-17005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT + 72 * + - 50 / - 27 + - 64 FROM tab0 AS cor0 WHERE col0 * + CAST( - col0 AS SIGNED ) = col1
----

skipif mysql # not compatible
query I rowsort label-9793
SELECT + 72 * + - 50 / - 27 + - 64 FROM tab0 AS cor0 WHERE col0 * + CAST ( - col0 AS INTEGER ) = col1
----

query I rowsort
SELECT - + 24 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT DISTINCT 28 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-9796
SELECT DISTINCT + COUNT( * ) AS col0, + 52 AS col2 FROM tab0, tab2 AS cor0
----
9
52

skipif mysql # not compatible
query II rowsort label-9796
SELECT DISTINCT + COUNT ( * ) AS col0, + 52 AS col2 FROM tab0, tab2 AS cor0
----
9
52

query I rowsort
SELECT DISTINCT + 8 + ( 36 ) + - col0 FROM tab2 cor0
----
-2
-20
-31

query I rowsort
SELECT + + col1 + + 20 AS col1 FROM tab0 AS cor0
----
101
21
41

query I rowsort
SELECT DISTINCT - 38 + - ( + + col0 ) FROM tab2 AS cor0
----
-102
-113
-84

query I rowsort
SELECT ALL + 61 * + - 66 + + + 4 * + - ( + + col0 ) AS col2 FROM tab1 AS cor0
----
-4230
-4366
-4390

query I rowsort
SELECT ( + col0 ) * 74 FROM tab0 cor0
----
1110
6438
7178

query I rowsort
SELECT DISTINCT - col2 - + 32 * + - 46 AS col2 FROM tab0 AS cor0
----
1373
1425
1462

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT MIN( DISTINCT - + 95 ) col0 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9803
SELECT MIN ( DISTINCT - + 95 ) col0 FROM tab1 AS cor0
----
-95

query II rowsort
SELECT - col0 * col0 AS col0, + ( + ( + - 64 ) ) FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT - + col2 - + - 74 + - col2 AS col2 FROM tab0 AS cor0
----
-124
-20
54

query I rowsort
SELECT ALL + col1 + + col0 FROM tab1 WHERE NOT - col1 IS NULL
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9807
SELECT col1 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9807
SELECT col1 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT COUNT( ALL + + ( + col0 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9808
SELECT COUNT ( ALL + + ( + col0 ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT COUNT( * ) - - SUM( ALL - ( 2 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9809
SELECT COUNT ( * ) - - SUM ( ALL - ( 2 ) ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9810
SELECT DISTINCT - CAST( - 37 AS SIGNED ) FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT - CAST ( - 37 AS INTEGER ) FROM tab2
----
37

query II rowsort
SELECT DISTINCT col0 AS col0, col1 * + col0 - + + 39 * 87 FROM tab0
----
15
-2178
87
-1566
97
-3296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9812
SELECT DISTINCT + CAST( ( + 62 ) AS SIGNED ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT + CAST ( ( + 62 ) AS INTEGER ) FROM tab1
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT - MIN( DISTINCT + - 86 ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-9814
SELECT - MIN ( DISTINCT + - 86 ) FROM tab0 AS cor0
----
86

query I rowsort
SELECT DISTINCT + 81 * + col2 FROM tab0 AS cor0
----
3807
8019
810

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT + + COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9816
SELECT + + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9817
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN CAST( NULL AS SIGNED ) + + - 11 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9817
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN CAST ( NULL AS INTEGER ) + + - 11 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT - MIN( col0 ) FROM tab2 cor0 WHERE NOT ( - col1 ) <> 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT - MIN ( col0 ) FROM tab2 cor0 WHERE NOT ( - col1 ) <> 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT MAX( + col1 ) * + + 89 FROM tab2 AS cor0
----
6853

skipif mysql # not compatible
query I rowsort label-9819
SELECT MAX ( + col1 ) * + + 89 FROM tab2 AS cor0
----
6853

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT DISTINCT + 80 * COUNT( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT + 80 * COUNT ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9821
SELECT + 3 DIV + MIN( DISTINCT - - col1 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9821
SELECT + 3 / + MIN ( DISTINCT - - col1 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9822
SELECT DISTINCT - col1 DIV col2 * + - col1 * - col2 AS col0, + col0 * - 20 * - col0 FROM tab2 AS cor0
----
-2346
42320
-3080
81920
-3886
112500

skipif mysql # not compatible
query II rowsort label-9822
SELECT DISTINCT - col1 / col2 * + - col1 * - col2 AS col0, + col0 * - 20 * - col0 FROM tab2 AS cor0
----
-2346
42320
-3080
81920
-3886
112500

query I rowsort
SELECT ALL - + 13 AS col0 FROM tab2 AS cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT ALL + - MAX( col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL + - MAX ( col0 ) AS col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT ( + 45 ) IS NULL
----
59
68
96

query I rowsort
SELECT ALL col2 + + 52 + - col1 AS col0 FROM tab2
----
15
24
43

query III rowsort
SELECT * FROM tab1 WHERE ( + - col2 ) * + + col1 + - col2 + + - col2 * + - col2 IS NULL
----

query I rowsort
SELECT + col2 + - ( 98 ) * + 2 FROM tab0
----
-149
-186
-97

query I rowsort
SELECT - col1 FROM tab2 WHERE 70 + + + col2 >= + col2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT DISTINCT MAX( 95 ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT MAX ( 95 ) FROM tab1
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9831
SELECT 9 DIV + CAST( col1 AS SIGNED ) + 30 AS col1 FROM tab1
----
30
30
31

skipif mysql # not compatible
query I rowsort label-9831
SELECT 9 / + CAST ( col1 AS INTEGER ) + 30 AS col1 FROM tab1
----
30
30
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT ALL COUNT( * ) + - 3 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL COUNT ( * ) + - 3 AS col2 FROM tab0
----
0

query I rowsort
SELECT + col0 + - col0 + + 3 FROM tab1 cor0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9834
SELECT CAST( NULL AS SIGNED ) + - - 79 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT CAST ( NULL AS INTEGER ) + - - 79 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, + col0 col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9836
SELECT DISTINCT - 82, COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-82
9

skipif mysql # not compatible
query II rowsort label-9836
SELECT DISTINCT - 82, COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-82
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + - col2 col1 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT col1 - - + 20 AS col0 FROM tab1 AS cor0
----
25
34
67

query I rowsort
SELECT DISTINCT + - col2 - - col0 AS col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9840
SELECT ALL ( + - COUNT( * ) ) * - + CAST( NULL AS SIGNED ) + 82 * COUNT( * ) + + 51 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL ( + - COUNT ( * ) ) * - + CAST ( NULL AS INTEGER ) + 82 * COUNT ( * ) + + 51 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT DISTINCT MIN( ALL + - 55 ) FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT MIN ( ALL + - 55 ) FROM tab2
----
-55

query I rowsort
SELECT - ( - col1 ) * 74 FROM tab0
----
1554
5994
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT + ( - - COUNT( * ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9843
SELECT + ( - - COUNT ( * ) ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT 63 * COUNT( * ) FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-9844
SELECT 63 * COUNT ( * ) FROM tab0
----
189

query I rowsort
SELECT DISTINCT + ( + 40 ) FROM tab1
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 * - col2 + + + col1 col1 FROM tab0 AS cor0
----
-2504
-529
-5444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT ALL - ( col1 ) / CAST( NULL AS SIGNED ) - - 22 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL - ( col1 ) / CAST ( NULL AS INTEGER ) - - 22 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + - 72 * - + 44 * - 45 * + 92 + - - col0 FROM tab2 AS cor0
----
-13115520
-13115520
-13115520

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT + 27 + 1 AS col2 FROM tab1
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9851
SELECT + 80 / 40 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9851
SELECT + 80 / 40 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - col1 col0 FROM tab0 cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT + ( + SUM( + + col0 ) ) col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9853
SELECT + ( + SUM ( + + col0 ) ) col2 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT DISTINCT - + SUM( - col0 ) col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9854
SELECT DISTINCT - + SUM ( - col0 ) col1 FROM tab0 AS cor0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * + 39 + + 53 col1 FROM tab1
----
1028
7697
86204

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT COUNT( * ) + - COUNT( + col2 ) + + 99 AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT COUNT ( * ) + - COUNT ( + col2 ) + + 99 AS col2 FROM tab1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9857
SELECT ALL - CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL - CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - 94 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9859
SELECT - - MAX( 64 ), 68 AS col0 FROM tab1 AS cor0
----
64
68

skipif mysql # not compatible
query II rowsort label-9859
SELECT - - MAX ( 64 ), 68 AS col0 FROM tab1 AS cor0
----
64
68

query I rowsort
SELECT ALL - 57 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + + 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9861
SELECT + - col0 * - CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-9861
SELECT + - col0 * - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 BETWEEN - ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9863
SELECT ALL - COUNT( * ), + CAST( NULL AS SIGNED ) - + 0 + - 28 + - 72 AS col2 FROM tab1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9863
SELECT ALL - COUNT ( * ), + CAST ( NULL AS INTEGER ) - + 0 + - 28 + - 72 AS col2 FROM tab1
----
-3
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9864
SELECT ALL COUNT( * ) AS col2, - MAX( DISTINCT 53 ) AS col2 FROM tab2
----
3
-53

skipif mysql # not compatible
query II rowsort label-9864
SELECT ALL COUNT ( * ) AS col2, - MAX ( DISTINCT 53 ) AS col2 FROM tab2
----
3
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, 80 col1 FROM tab2
----
46
80
64
80
75
80

query III rowsort
SELECT ALL * FROM tab2 WHERE + 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) * - 1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) * - 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT + MIN( + col2 ) * - - SUM( + col0 ) FROM tab1
----
13393

skipif mysql # not compatible
query I rowsort label-9868
SELECT + MIN ( + col2 ) * - - SUM ( + col0 ) FROM tab1
----
13393

onlyif mysql # DIV for integer division: 
query I rowsort label-9869
SELECT col2 DIV + + 99 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9869
SELECT col2 / + + 99 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 col2, col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT - col0 * 78 FROM tab2
----
-3588
-4992
-5850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9872
SELECT - CAST( NULL AS SIGNED ) * + 15 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9872
SELECT - CAST ( NULL AS INTEGER ) * + 15 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - ( + col1 ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 AND 59
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 + + col1 * + col1 <= ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9876
SELECT - MIN( DISTINCT - 1 ) AS col2 FROM tab1 WHERE NULL BETWEEN + col2 AND + CAST( NULL AS SIGNED ) * col2 + + col2 / - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT - MIN ( DISTINCT - 1 ) AS col2 FROM tab1 WHERE NULL BETWEEN + col2 AND + CAST ( NULL AS INTEGER ) * col2 + + col2 / - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL COUNT( * ) * COUNT( * ) + + 3 AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL COUNT ( * ) * COUNT ( * ) + + 3 AS col1 FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL - SUM( - col0 ) * - 65 FROM tab2
----
-12025

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL - SUM ( - col0 ) * - 65 FROM tab2
----
-12025

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + 61 AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT COUNT( * ) + - 47 col1 FROM tab1
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9880
SELECT COUNT ( * ) + - 47 col1 FROM tab1
----
-44

query I rowsort
SELECT ALL col1 * ( col2 * - col0 ) AS col2 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ALL MAX( col1 ) FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND + col1 * - col2 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL MAX ( col1 ) FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND + col1 * - col2 + col2
----
NULL

query I rowsort
SELECT ALL + ( col1 ) AS col1 FROM tab1 WHERE NOT - col0 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT + ( MAX( ALL col1 ) ) + 50 FROM tab2
----
127

skipif mysql # not compatible
query I rowsort label-9884
SELECT + ( MAX ( ALL col1 ) ) + 50 FROM tab2
----
127

query I rowsort
SELECT 97 * - 21 AS col2 FROM tab2
----
-2037
-2037
-2037

query III rowsort
SELECT ALL * FROM tab2 WHERE + 6 IN ( col2 * - 51 )
----

query I rowsort
SELECT - ( 20 ) * col0 FROM tab0
----
-1740
-1940
-300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * + col1 col2 FROM tab2 AS cor0
----
1224
3157
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT - 74 * 76 + COUNT( * ) AS col1 FROM tab1 cor0
----
-5621

skipif mysql # not compatible
query I rowsort label-9889
SELECT - 74 * 76 + COUNT ( * ) AS col1 FROM tab1 cor0
----
-5621

query I rowsort
SELECT ALL ( col2 ) * col0 + col0 AS col1 FROM tab2 cor0
----
1104
2624
4425

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 * col2 ) NOT IN ( 1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 23 - - col2 AS col0 FROM tab0
----
122
33
70

query I rowsort
SELECT 42 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 )
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT DISTINCT 83 + col1 AS col1 FROM tab0 WHERE NOT + col1 NOT BETWEEN ( NULL ) AND 45 - col0 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9895
SELECT - COUNT( ALL CAST( + col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9895
SELECT - COUNT ( ALL CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT DISTINCT - COUNT( ALL + col1 ) * + MIN( DISTINCT 34 * 37 ) AS col2 FROM tab1 AS cor0 WHERE - 41 <= ( col0 / 10 + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT - COUNT ( ALL + col1 ) * + MIN ( DISTINCT 34 * 37 ) AS col2 FROM tab1 AS cor0 WHERE - 41 <= ( col0 / 10 + - col2 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> ( + col2 + 73 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - 0 ) * + col2 IN ( col1 )
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND col0 - + 68
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) < - 47 + + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) BETWEEN + ( col2 ) AND ( col0 * - 93 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT - col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9903
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT - col0 < NULL
----
0

query I rowsort
SELECT + col0 * + col2 * + col2 FROM tab2
----
102400
24334
252300

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + 36 IS NOT NULL
----

query I rowsort
SELECT 74 * 86 AS col1 FROM tab1 WHERE NOT ( col2 ) * col1 IS NULL
----
6364
6364
6364

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 - col2 < 71
----

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT ( 53 IS NOT NULL )
----

query I rowsort
SELECT col0 + - col0 AS col0 FROM tab1 WHERE NOT + 51 - - col0 BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT DISTINCT - COUNT( - 64 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT - COUNT ( - 64 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + - 95 - + 94 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-189

query I rowsort
SELECT ALL + 20 + 55 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT ALL COUNT( * ) + - 13 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL COUNT ( * ) + - 13 FROM tab2 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT COUNT( * ) + + + MIN( ALL col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9914
SELECT COUNT ( * ) + + + MIN ( ALL col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col1 + col2 FROM tab2 AS cor0 WHERE ( + col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 73 + + 88 + + ( ( - col0 ) + - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 93 * - ( - col0 ) FROM tab0 cor0
----
-1395
-8091
-9021

onlyif mysql # DIV for integer division: 
query I rowsort label-9918
SELECT - col2 DIV 4 + + col0 + col2 DIV - 5 FROM tab2 AS cor0
----
37
46
50

skipif mysql # not compatible
query I rowsort label-9918
SELECT - col2 / 4 + + col0 + col2 / - 5 FROM tab2 AS cor0
----
37
46
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT ALL + COUNT( * ) * - 67 FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL + COUNT ( * ) * - 67 FROM tab0 AS cor0
----
-201

onlyif mysql # DIV for integer division: 
query I rowsort label-9920
SELECT 9 DIV - col2 + + col2 + 63 col0 FROM tab2 AS cor0
----
103
121
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9920
SELECT 9 / - col2 + + col2 + 63 col0 FROM tab2 AS cor0
----
103
121
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9921
SELECT - + col0 + + col2 + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9921
SELECT - + col0 + + col2 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + - 11 FROM tab1 AS cor0
----
154
517
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT - + MIN( + 71 ) + - 45 FROM tab0 AS cor0
----
-116

skipif mysql # not compatible
query I rowsort label-9923
SELECT - + MIN ( + 71 ) + - 45 FROM tab0 AS cor0
----
-116

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> col0 / + - 1
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT - col2 * - col1 = + col2
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT + COUNT( DISTINCT + 2 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9926
SELECT + COUNT ( DISTINCT + 2 ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + - 55 * + + 96 FROM tab0 AS cor0
----
-5280
-5280
-5280

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT - - col2 NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT 58 * - 76 + ( 90 ) FROM tab0
----
-4318

query I rowsort
SELECT ALL col2 * - + 1 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9931
SELECT MAX( - + col1 ) DIV + - 34 * + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9931
SELECT MAX ( - + col1 ) / + - 34 * + COUNT ( * ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE - - col0 * + col2 IS NULL
----

query I rowsort
SELECT - 25 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT ALL col1 + col2 AS col2, + 96 * - col1 + col1 AS col0 FROM tab0
----
100
-95
128
-7695
31
-1995

query I rowsort
SELECT + col0 * - 56 FROM tab2 WHERE ( + + ( - ( + 3 ) ) * + col0 ) IS NOT NULL
----
-2576
-3584
-4200

query I rowsort
SELECT ALL 36 * - + ( - 83 ) + - col0 AS col2 FROM tab0
----
2891
2901
2973

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT MIN( - - col2 ) + + 87 AS col2 FROM tab2 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-9938
SELECT MIN ( - - col2 ) + + 87 AS col2 FROM tab2 AS cor0
----
110

query I rowsort
SELECT ALL - col2 - + 99 AS col2 FROM tab0 AS cor0
----
-109
-146
-198

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9940
SELECT - + 31 + + CAST( NULL AS DECIMAL ) + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT - + 31 + + CAST ( NULL AS REAL ) + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT - + COUNT( * ) + + 57 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
48

skipif mysql # not compatible
query I rowsort label-9941
SELECT - + COUNT ( * ) + + 57 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + - col2 - - 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT - MAX( DISTINCT 34 ) AS col2 FROM tab2 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9943
SELECT - MAX ( DISTINCT 34 ) AS col2 FROM tab2 cor0
----
-34

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NULL AND NOT 66 <= NULL
----

query I rowsort
SELECT + col0 * - 92 AS col1 FROM tab1 AS cor0
----
-4692
-7820
-8372

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT DISTINCT - 40 * MIN( - col2 ) FROM tab2 AS cor0
----
2320

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT - 40 * MIN ( - col2 ) FROM tab2 AS cor0
----
2320

onlyif mysql # DIV for integer division: 
query I rowsort label-9947
SELECT - + col2 DIV 44 AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9947
SELECT - + col2 / 44 AS col1 FROM tab0 AS cor0
----
-1
-2
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - + col0 IS NOT NULL AND NOT + col2 < col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9949
SELECT ALL - CAST( - col0 AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL - CAST ( - col0 AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9950
SELECT ALL CAST( NULL AS SIGNED ) / - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL CAST ( NULL AS INTEGER ) / - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9952
SELECT DISTINCT - col0 / + col0 + + col2 * - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9952
SELECT DISTINCT - col0 / + col0 + + col2 * - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 70 * col1 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT + COUNT( * ) FROM tab0 WHERE NOT + + col0 - + col0 + + 19 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9955
SELECT + COUNT ( * ) FROM tab0 WHERE NOT + + col0 - + col0 + + 19 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE ( - 44 + col0 / + 62 IS NOT NULL )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9957
SELECT DISTINCT - ( - CAST( col0 AS SIGNED ) ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT - ( - CAST ( col0 AS INTEGER ) ) FROM tab1
----
51
85
91

query II rowsort
SELECT ALL + col2 AS col1, 95 AS col0 FROM tab0
----
10
95
47
95
99
95

query I rowsort
SELECT 30 * - 32 FROM tab1
----
-960
-960
-960

onlyif mysql # aggregate syntax: 
query II rowsort label-9960
SELECT - - COUNT( * ) col2, ( 96 ) FROM tab2 AS cor0
----
3
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9960
SELECT - - COUNT ( * ) col2, ( 96 ) FROM tab2 AS cor0
----
3
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( col1 ) + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 26 AND ( - - col2 )
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT - col0 * - 32 <= + col0 * + col2 / + + col0 * - 80 - - col0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9964
SELECT + CAST( 2 AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0
----
-49
-65
-75

skipif mysql # not compatible
query I rowsort label-9964
SELECT + CAST ( 2 AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
-49
-65
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 + + + 0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 * 12 - - - col2 + - col1 col1 FROM tab1 AS cor0
----
-928
-974
-979

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT - COUNT( + - 75 ) + + 90 + MIN( + 9 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT - COUNT ( + - 75 ) + + 90 + MIN ( + 9 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < + 64
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - - col0 + - - col2 * - col0 IS NULL
----

query I rowsort
SELECT ALL - 19 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT DISTINCT + col2 * + - col0 + + - 69 AS col1 FROM tab0 AS cor0
----
-774
-939
-9672

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT - - SUM( ALL - + 46 ) FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-9971
SELECT - - SUM ( ALL - + 46 ) FROM tab2 AS cor0
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT - - 81 * 33 * - - col2 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT - - 81 * 33 * - - col2 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 26 * - col1 * col0 NOT IN ( + 65 ) )
----

query II rowsort
SELECT - 9, - col0 FROM tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE + col0 BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9976
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 92 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9976
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 92 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT + COUNT( ALL + 99 ) - - + 50 col1 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9977
SELECT + COUNT ( ALL + 99 ) - - + 50 col1 FROM tab0 AS cor0
----
53

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 + - + 37 + - col2 >= + col2
----
87
21
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( col1 ) NOT IN ( - col0 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= ( + 18 / - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT ALL + COUNT( * ) * - SUM( ALL 58 ) - - + 92 AS col2 FROM tab0 AS cor0
----
-430

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL + COUNT ( * ) * - SUM ( ALL 58 ) - - + 92 AS col2 FROM tab0 AS cor0
----
-430

query I rowsort
SELECT - - col2 * + - col2 + - col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab2 WHERE - ( + col2 ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT + col2 * + + col0 * + 31 + + + col2 FROM tab1
----
151872
155524
191896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9985
SELECT + + SUM( ALL + col0 ) - + - ( 47 ) - + ( + SUM( col0 ) ) + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT + + SUM ( ALL + col0 ) - + - ( 47 ) - + ( + SUM ( col0 ) ) + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9986
SELECT + col1 DIV - col2 + - col0 FROM tab2
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-9986
SELECT + col1 / - col2 + - col0 FROM tab2
----
-48
-65
-76

query I rowsort
SELECT DISTINCT - col2 + - 75 AS col1 FROM tab2
----
-115
-133
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT - COUNT( * ) + ( + 96 ) + COUNT( * ) + 33 AS col2 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-9988
SELECT - COUNT ( * ) + ( + 96 ) + COUNT ( * ) + 33 AS col2 FROM tab0
----
129

query I rowsort
SELECT + 71 + - 98 + + 56 - 7 - 10 AS col2 FROM tab0
----
12
12
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9990
SELECT - col0 DIV 13 + + - 88 col0 FROM tab2
----
-91
-92
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9990
SELECT - col0 / 13 + + - 88 col0 FROM tab2
----
-91
-92
-93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9991
SELECT ALL + col2 DIV col2 * - col2 * - col1 + + CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
1219
3144
3961

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL + col2 / col2 * - col2 * - col1 + + CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
1219
3144
3961

query I rowsort
SELECT ALL + - col1 + - - col1 FROM tab1 WHERE NOT ( + col2 - - - col0 ) < + col0
----

query I rowsort
SELECT ALL - + col1 + 2 * - col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-111
-195
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9994
SELECT DISTINCT - COUNT( * ) DIV 83 + + - SUM( ALL - - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT - COUNT ( * ) / 83 + + - SUM ( ALL - - col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9995
SELECT DISTINCT - + CAST( 76 AS SIGNED ) - - - 91 AS col0 FROM tab2 AS cor0
----
-167

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT - + CAST ( 76 AS INTEGER ) - - - 91 AS col0 FROM tab2 AS cor0
----
-167

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE - 13 * + - col0 IS NULL
----

query I rowsort
SELECT - - 53 * + col1 AS col0 FROM tab1 AS cor0
----
2491
265
742

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 74 - - - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9999
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

