sqllogictest
Artifact Content
Not logged in

Artifact 40d0bdf6383bee38f40343036ed8146c62afddc7:


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