sqllogictest
Artifact Content
Not logged in

Artifact 33d6e5922d056af706a8b511129d2f961c1b9357:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 36 * - + col2 AS col2 FROM tab0 WHERE NOT + + col2 IN ( - - 41, - col0 )
----
-1692
-3564
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT + + col1 <= - col2 - col1
----
-3

skipif mysql # not compatible
query I rowsort label-1
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT + + col1 <= - col2 - col1
----
-3

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

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

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

query I rowsort
SELECT DISTINCT + + ( + - 86 ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5
SELECT ( - 34 ) + + 16 + + ( col2 ) DIV col0 DIV + 49 FROM tab0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-5
SELECT ( - 34 ) + + 16 + + ( col2 ) / col0 / + 49 FROM tab0
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6
SELECT ALL - + CAST( - AVG ( col1 ) AS SIGNED ) * - 2 col0 FROM tab2 AS cor0
----
-130

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6
SELECT ALL - + CAST ( - AVG ( col1 ) AS INTEGER ) * - 2 col0 FROM tab2 AS cor0
----
-130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT DISTINCT 26 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT 26 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-78

query I rowsort
SELECT + col1 + - 15 AS col0 FROM tab0 AS cor0
----
-14
6
66

query I rowsort
SELECT - + col0 + - col0 + + col0 * - 59 AS col0 FROM tab1 cor0
----
-3111
-5185
-5551

onlyif mysql # DIV for integer division: 
query I rowsort label-11
SELECT DISTINCT - 65 DIV - 78 + - col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-11
SELECT DISTINCT - 65 / - 78 + - col2 FROM tab0 AS cor0
----
-10
-47
-99

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

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL + COUNT ( * ) + ( + SUM ( col0 ) ) AS col1 FROM tab2 cor0
----
188

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

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT ALL - 6 + COUNT( * ) FROM tab1 WHERE - col0 * - col1 * + 82 + - 39 IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL - 6 + COUNT ( * ) FROM tab1 WHERE - col0 * - col1 * + 82 + - 39 IS NULL
----
-6

query I rowsort
SELECT ALL - 45 AS col1 FROM tab1 WHERE NULL NOT IN ( + + 42 + 95 + + col1 * - + 71, + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 <= 71
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + - 87 FROM tab0
----
-40
-77
12

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

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

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

query I rowsort
SELECT col1 - + col0 AS col0 FROM tab2 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT + + 60 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-21
SELECT + + 60 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
63

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

query III rowsort
SELECT * FROM tab2 WHERE - - 14 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-24
SELECT DISTINCT 75 + - MAX( + col2 ) - - 11 / - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT 75 + - MAX ( + col2 ) - - 11 / - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-25
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 41 >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-25
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 41 >= - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + + 21 > NULL
----

query II rowsort
SELECT - 48, - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-48
-1
-48
-21
-48
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 6 * col1 + + col2 col2 FROM tab2 AS cor0
----
329
460
502

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT 39 * - col0 IS NULL
----
46
64
75

query I rowsort
SELECT ALL col1 * + + ( - - col1 ) AS col0 FROM tab2 AS cor0
----
2601
4489
5929

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * + col1 + + + col0 col1 FROM tab1
----
-340
-4186
-663

query II rowsort
SELECT col0, col2 * + col1 AS col0 FROM tab2
----
46
1173
64
3080
75
3886

query II rowsort
SELECT ALL col2, col0 + + col1 * + 50 FROM tab0
----
10
1137
47
4065
99
147

query II rowsort
SELECT DISTINCT col2 AS col0, + col0 * - 97 FROM tab2
----
23
-4462
40
-6208
58
-7275

query I rowsort
SELECT DISTINCT ( - 20 ) FROM tab0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-37
SELECT ALL - COUNT( * ) AS col2, + 18 AS col0 FROM tab1
----
-3
18

skipif mysql # not compatible
query II rowsort label-37
SELECT ALL - COUNT ( * ) AS col2, + 18 AS col0 FROM tab1
----
-3
18

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

skipif mysql # not compatible
query I rowsort label-38
SELECT ( - ( COUNT ( * ) ) ) / + + 65 AS col1 FROM tab2
----
0

query II rowsort
SELECT DISTINCT - 59 AS col1, 3 FROM tab2 AS cor0
----
-59
3

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

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

query II rowsort
SELECT col0 * + + col1 AS col0, - col0 AS col1 FROM tab1
----
425
-85
4277
-91
714
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-42
SELECT DISTINCT + CAST( + CAST( + 99 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-42
SELECT DISTINCT + CAST ( + CAST ( + 99 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT - MAX( + - 93 ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-43
SELECT - MAX ( + - 93 ) FROM tab2 AS cor0
----
93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-45
SELECT DISTINCT col2 + + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + 66 AND + col0 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT col2 + + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + 66 AND + col0 + - CAST ( NULL AS INTEGER )
----

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

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

query I rowsort
SELECT ALL - + col2 FROM tab1 AS cor0 WHERE col0 * + 55 * + + col0 IS NULL
----

query I rowsort
SELECT - 79 + col2 FROM tab0 AS cor0
----
-32
-69
20

query I rowsort
SELECT DISTINCT 40 * + col0 + + 21 FROM tab2
----
1861
2581
3021

onlyif mysql # DIV for integer division: 
query I rowsort label-50
SELECT DISTINCT - - 80 * - + col1 + + 86 DIV - - 96 + + - col1 AS col0 FROM tab1 WHERE col2 * + col2 IS NOT NULL
----
-1134
-3807
-405

skipif mysql # not compatible
query I rowsort label-50
SELECT DISTINCT - - 80 * - + col1 + + 86 / - - 96 + + - col1 AS col0 FROM tab1 WHERE col2 * + col2 IS NOT NULL
----
-1134
-3807
-405

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 76 <> 41 / - ( 49 ) + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 2 - col2 * + 37 FROM tab0
----
-1741
-3665
-372

query I rowsort
SELECT DISTINCT - 91 + - ( + col2 ) FROM tab1
----
-150
-159
-187

query I rowsort
SELECT + col0 FROM tab1 WHERE NULL BETWEEN col2 AND - 15
----

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT DISTINCT col2 DIV col1 + - 71 FROM tab0
----
-71
28

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT col2 / col1 + - 71 FROM tab0
----
-71
28

query I rowsort
SELECT DISTINCT 38 - 19 AS col1 FROM tab2
----
19

query I rowsort
SELECT col1 * + - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

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

skipif mysql # not compatible
query I rowsort label-58
SELECT - - col1 / + + col0 FROM tab2 AS cor0
----
0
1
1

query II rowsort
SELECT + col2, col0 * + col2 FROM tab2 WHERE NULL > + - 47 + col1 * - col0
----

query I rowsort
SELECT + 88 + 55 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 750c11171f0669c2fa0d412d84db5fa1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-62
SELECT + CAST( + - AVG ( - + 76 ) AS SIGNED ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-62
SELECT + CAST ( + - AVG ( - + 76 ) AS INTEGER ) FROM tab2 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-63
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / + CAST( + - 99 AS SIGNED ) * - col1 + + ( + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-63
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / + CAST ( + - 99 AS INTEGER ) * - col1 + + ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT + 95 * - + col1 FROM tab2 AS cor0
----
-4845
-6365
-7315

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

onlyif mysql # DIV for integer division: 
query I rowsort label-66
SELECT - 0 * ( - 83 ) DIV - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-66
SELECT - 0 * ( - 83 ) / - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 80 * col0 + - col2 FROM tab1 AS cor0
----
3984
6741
7212

query I rowsort
SELECT ALL - col2 * - - 37 AS col0 FROM tab2 cor0
----
-1480
-2146
-851

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

skipif mysql # not compatible
query I rowsort label-69
SELECT 1 / col0 * + + col2 FROM tab2
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-71
SELECT ALL 77 DIV - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL 77 / - col1 FROM tab2
----
-1
-1
-1

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

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

query I rowsort
SELECT DISTINCT 61 + + col1 FROM tab0
----
142
62
82

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT ALL - - MAX( - col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL - - MAX ( - col0 ) AS col0 FROM tab1 AS cor0
----
-51

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

onlyif mysql # aggregate syntax: 
query II rowsort label-77
SELECT DISTINCT - COUNT( * ), 98 col1 FROM tab1 AS cor0
----
-3
98

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT ALL + SUM( ALL - col1 ) col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-80
SELECT ALL + SUM ( ALL - col1 ) col1 FROM tab0 AS cor0
----
-103

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-83
SELECT ALL col2 + - - col1 + - col0 - + 90 DIV - 42, - col0 AS col2 FROM tab1
----
-19
-85
26
-91
61
-51

skipif mysql # not compatible
query II rowsort label-83
SELECT ALL col2 + - - col1 + - col0 - + 90 / - 42, - col0 AS col2 FROM tab1
----
-19
-85
26
-91
61
-51

query II rowsort
SELECT 15 - - col0 AS col1, + col2 AS col0 FROM tab0
----
102
10
112
99
30
47

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

query I rowsort
SELECT col2 * - + 15 - 89 + - - col1 FROM tab0
----
-1573
-218
-713

query I rowsort
SELECT ALL col1 - + - 24 FROM tab2 AS cor0
----
101
75
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 cor0 WHERE NULL > - 35
----

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT - col1 DIV 52 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-89
SELECT - col1 / 52 / + col2 FROM tab1
----
0
0
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT ALL + MAX( DISTINCT - col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL + MAX ( DISTINCT - col2 ) FROM tab0 cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-93
SELECT DISTINCT - 70 + col1 * - col2 AS col2 FROM tab2 AS cor0 WHERE + 64 * + - CAST( NULL AS SIGNED ) IS NULL
----
-1243
-3150
-3956

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT - 70 + col1 * - col2 AS col2 FROM tab2 AS cor0 WHERE + 64 * + - CAST ( NULL AS INTEGER ) IS NULL
----
-1243
-3150
-3956

query I rowsort
SELECT DISTINCT + col0 * + + 52 FROM tab2 AS cor0
----
2392
3328
3900

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

skipif mysql # not compatible
query I rowsort label-95
SELECT SUM ( DISTINCT - - col1 ) AS col1 FROM tab1
----
66

query I rowsort
SELECT col1 * + - 84 FROM tab1
----
-1176
-3948
-420

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-98
SELECT DISTINCT col1, + CAST( - 49 AS SIGNED ) + + + ( col2 ) * - 45 FROM tab2
----
51
-1084
67
-2659
77
-1849

skipif mysql # not compatible
query II rowsort label-98
SELECT DISTINCT col1, + CAST ( - 49 AS INTEGER ) + + + ( col2 ) * - 45 FROM tab2
----
51
-1084
67
-2659
77
-1849

onlyif mysql # aggregate syntax: 
query II rowsort label-99
SELECT ALL - 38 col0, + MIN( ALL + + col1 ) * MAX( DISTINCT - col0 ) * 13 AS col2 FROM tab2 AS cor0
----
-38
-30498

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-99
SELECT ALL - 38 col0, + MIN ( ALL + + col1 ) * MAX ( DISTINCT - col0 ) * 13 AS col2 FROM tab2 AS cor0
----
-38
-30498

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-103
SELECT - col0 * col1 + + - col0 * + + col1 * - col1 * - CAST( ( 85 ) AS SIGNED ) FROM tab0 AS cor0
----
-3263022
-8342
-8366490

skipif mysql # not compatible
query I rowsort label-103
SELECT - col0 * col1 + + - col0 * + + col1 * - col1 * - CAST ( ( 85 ) AS INTEGER ) FROM tab0 AS cor0
----
-3263022
-8342
-8366490

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT - MAX( - + col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-104
SELECT - MAX ( - + col1 ) FROM tab1 cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 51 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-106
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-106
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col1 * - col2 AND - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + + col1, + 15 col1 FROM tab1
----
138
15
65
15
90
15

query I rowsort
SELECT ALL + 47 - + col2 + ( + 96 ) + col0 + - - col2 AS col2 FROM tab0 AS cor0
----
158
230
240

query I rowsort
SELECT 25 + col1 + - - col1 * - + 91 AS col1 FROM tab0 cor0
----
-1865
-65
-7265

query II rowsort
SELECT col1 + col2 * col1 AS col1, col2 FROM tab1 AS cor0
----
1358
96
300
59
3243
68

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

query III rowsort
SELECT * FROM tab2 WHERE ( - + 92 ) BETWEEN col2 * - + col0 / + col1 * 15 + 96 * + - 67 AND NULL
----

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

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

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

query I rowsort
SELECT - - 79 * col0 FROM tab2 AS cor0
----
3634
5056
5925

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-118
SELECT CAST( 44 AS SIGNED ) col1 FROM tab2 WHERE NOT col0 * col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-118
SELECT CAST ( 44 AS INTEGER ) col1 FROM tab2 WHERE NOT col0 * col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * - col0 + col0 = ( + ( + col0 ) )
----

query I rowsort
SELECT DISTINCT + 85 + 16 AS col0 FROM tab1 WHERE col2 + + 51 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ALL 43 + + COUNT( * ) AS col2 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL 43 + + COUNT ( * ) AS col2 FROM tab1
----
46

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

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

query III rowsort
SELECT * FROM tab0 WHERE + ( 52 ) * ( col0 ) - ( col0 ) = + col2 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab0 WHERE NOT - col2 NOT IN ( col2 )
----

query I rowsort
SELECT col0 + col2 * - 67 AS col2 FROM tab0
----
-3134
-583
-6536

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT DISTINCT col2 DIV - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT col2 / - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0

query I rowsort
SELECT 47 AS col0 FROM tab2 WHERE NOT NULL <= col0
----

query I rowsort
SELECT 79 FROM tab1 WHERE NOT - 33 * - 66 + + col1 / - 82 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL col2 - + ( - col1 ) AS col0 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT - col2 / col1 + - 61 FROM tab0 WHERE ( NULL ) NOT BETWEEN ( + 14 - + 91 ) AND ( NULL )
----

query I rowsort
SELECT col1 + - 40 * col2 FROM tab2
----
-1523
-2253
-869

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT MIN( ALL - 97 ) FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-132
SELECT MIN ( ALL - 97 ) FROM tab1
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - 84 col1 FROM tab1
----
-37
-70
-79

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

skipif mysql # not compatible
query III rowsort label-134
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( - CAST ( NULL AS INTEGER ) * col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 * col1 ) IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-136
SELECT DISTINCT CAST( + 79 AS SIGNED ) * 21 FROM tab0 WHERE col2 = ( - 71 + col1 )
----

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT CAST ( + 79 AS INTEGER ) * 21 FROM tab0 WHERE col2 = ( - 71 + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 + + col2 IN ( 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT + MAX( DISTINCT - col1 ) AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-138
SELECT + MAX ( DISTINCT - col1 ) AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT 57 FROM tab2 WHERE NOT 16 + 6 * + col1 NOT BETWEEN NULL AND + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT + SUM( - col2 ) + 38 AS col0 FROM tab0
----
-118

skipif mysql # not compatible
query I rowsort label-141
SELECT + SUM ( - col2 ) + 38 AS col0 FROM tab0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL - 5 - COUNT( * ) AS col1 FROM tab1 WHERE NOT 60 * col0 + + col2 * col2 NOT BETWEEN ( - col0 + col0 ) AND + col2 + - col2 * 83
----
-5

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL - 5 - COUNT ( * ) AS col1 FROM tab1 WHERE NOT 60 * col0 + + col2 * col2 NOT BETWEEN ( - col0 + col0 ) AND + col2 + - col2 * 83
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT - MAX( - col2 ) + - MIN( 11 ) AS col1 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-143
SELECT - MAX ( - col2 ) + - MIN ( 11 ) AS col1 FROM tab1
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT DISTINCT + MAX( DISTINCT 33 ) FROM tab0 AS cor0 WHERE NOT ( - col1 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT + MAX ( DISTINCT 33 ) FROM tab0 AS cor0 WHERE NOT ( - col1 ) <> NULL
----
NULL

query I rowsort
SELECT col0 * 73 AS col1 FROM tab1 AS cor0
----
3723
6205
6643

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-147
SELECT * FROM tab2 AS cor0 WHERE NULL < + CAST( - col1 AS SIGNED ) + ( 64 )
----

skipif mysql # not compatible
query III rowsort label-147
SELECT * FROM tab2 AS cor0 WHERE NULL < + CAST ( - col1 AS INTEGER ) + ( 64 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-149
SELECT col0 + 11 DIV + col2 AS col1 FROM tab0 AS cor0
----
15
88
97

skipif mysql # not compatible
query I rowsort label-149
SELECT col0 + 11 / + col2 AS col1 FROM tab0 AS cor0
----
15
88
97

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

query III rowsort
SELECT * FROM tab1 WHERE ( col2 + col2 / 53 ) IS NULL
----

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

query I rowsort
SELECT col2 * 21 AS col0 FROM tab0 AS cor0
----
2079
210
987

query I rowsort
SELECT ALL + col0 * - col1 + + 58 AS col1 FROM tab2 AS cor0
----
-2288
-4870
-4967

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-156
SELECT ALL + col2 - - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-156
SELECT ALL + col2 - - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
110
115
64

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

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE ( - ( - 54 ) - col0 ) IS NOT NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + col1 * + col2 col1 FROM tab2 AS cor0
----
-1150
-3040
-3828

onlyif mysql # DIV for integer division: 
query I rowsort label-160
SELECT DISTINCT - + col2 DIV col2 + 35 FROM tab0 cor0
----
34

skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT - + col2 / col2 + 35 FROM tab0 cor0
----
34

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

skipif mysql # not compatible
query I rowsort label-161
SELECT AVG ( - col2 ) * - 34 - - 22 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT ( 79 ) IS NULL
----
10
47
99

query I rowsort
SELECT ALL + col0 * - col2 FROM tab2 WHERE NOT - 49 + + col2 * + col1 <= 58 / - col1
----
-1058
-2560
-4350

query I rowsort
SELECT ALL 74 * col0 FROM tab2 WHERE NOT ( 20 ) IS NULL
----
3404
4736
5550

query I rowsort
SELECT 4 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + + 56 + 72 AS col1 FROM tab2
----
1360
2312
3320

onlyif mysql # DIV for integer division: 
query I rowsort label-167
SELECT - 55 DIV ( col0 ) AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-167
SELECT - 55 / ( col0 ) AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT - 69 * + col2 * - ( col2 ) FROM tab2
----
110400
232116
36501

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE + col0 < NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT ALL - COUNT( * ) * 33 * - 96 FROM tab2 cor0
----
9504

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL - COUNT ( * ) * 33 * - 96 FROM tab2 cor0
----
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE ( col0 - + col2 * + 34 IN ( col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE ( col0 - + col2 * + 34 IN ( col1 ) )
----
0

query I rowsort
SELECT - col1 * + col0 * + - col1 AS col2 FROM tab1
----
201019
2125
9996

query I rowsort
SELECT ALL + - 90 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT DISTINCT COUNT( ALL - 16 ) * 57 FROM tab2, tab0 AS cor0
----
513

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT COUNT ( ALL - 16 ) * 57 FROM tab2, tab0 AS cor0
----
513

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT DISTINCT - COUNT( - 66 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT - COUNT ( - 66 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2 )
----
0

query I rowsort
SELECT DISTINCT - 97 * col1 AS col0 FROM tab1 cor0
----
-1358
-4559
-485

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-182
SELECT DISTINCT + COUNT( * ) * + 40 + - + AVG ( ALL + CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-182
SELECT DISTINCT + COUNT ( * ) * + 40 + - + AVG ( ALL + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 + - 68 col0 FROM tab0 AS cor0
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT ALL - col0 DIV col2 * - col0 AS col0 FROM tab1 AS cor0
----
0
85
91

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL - col0 / col2 * - col0 AS col0 FROM tab1 AS cor0
----
0
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-186
SELECT ALL - 46 + - CAST( - - col0 AS SIGNED ) - col1 AS col2 FROM tab1
----
-111
-136
-184

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL - 46 + - CAST ( - - col0 AS INTEGER ) - col1 AS col2 FROM tab1
----
-111
-136
-184

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-189
SELECT ALL + 19 + + CAST( - 37 AS SIGNED ) + + 58 FROM tab0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL + 19 + + CAST ( - 37 AS INTEGER ) + + 58 FROM tab0
----
40
40
40

query I rowsort
SELECT - col2 * + 10 FROM tab0 WHERE 75 + - col1 BETWEEN col1 AND ( - col2 )
----

query I rowsort
SELECT - 98 * 93 + ( + 51 ) AS col2 FROM tab2 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 11
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-192
SELECT DISTINCT + CAST( NULL AS SIGNED ) / AVG ( 46 * col2 ) FROM tab0 AS cor0 WHERE NOT col0 / - + ( - - col1 ) < - 59 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / AVG ( 46 * col2 ) FROM tab0 AS cor0 WHERE NOT col0 / - + ( - - col1 ) < - 59 + + col2
----
NULL

query I rowsort
SELECT ALL - col1 + - col2 + - - col1 * + - col1 + col2 FROM tab2 cor0
----
-2652
-4556
-6006

query I rowsort
SELECT + 79 * + + col2 * - + col2 FROM tab1 AS cor0
----
-274999
-365296
-728064

query I rowsort
SELECT ALL + col0 * - + 89 FROM tab0 AS cor0
----
-1335
-7743
-8633

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

skipif mysql # not compatible
query I rowsort label-196
SELECT + CAST ( + + col0 AS INTEGER ) FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT DISTINCT - COUNT( + col1 ) + - 68 AS col1 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT - COUNT ( + col1 ) + - 68 AS col1 FROM tab1 AS cor0
----
-71

query I rowsort
SELECT ALL + col1 + + 11 FROM tab1
----
16
25
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-199
SELECT DISTINCT AVG ( ALL - col1 ) - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-199
SELECT DISTINCT AVG ( ALL - col1 ) - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

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

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

query I rowsort
SELECT 56 - - col1 AS col2 FROM tab1
----
103
61
70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-203
SELECT - - SUM( - CAST( NULL AS SIGNED ) ) + COUNT( CAST( + 28 AS SIGNED ) ) - 81 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-203
SELECT - - SUM ( - CAST ( NULL AS INTEGER ) ) + COUNT ( CAST ( + 28 AS INTEGER ) ) - 81 FROM tab1 cor0
----
NULL

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

query I rowsort
SELECT - col2 + + col1 - + 76 FROM tab2 AS cor0
----
-39
-48
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT ALL + SUM( 5 ) AS col2 FROM tab0 AS cor0 WHERE + ( + - 16 ) + + col0 IN ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL + SUM ( 5 ) AS col2 FROM tab0 AS cor0 WHERE + ( + - 16 ) + + col0 IN ( + col2 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT - col2 * col2 AS col2 FROM tab0 WHERE NOT CAST ( col2 AS INTEGER ) * 67 * + col0 IS NULL
----
-100
-2209
-9801

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 + 45 NOT IN ( 9 ) )
----

query II rowsort
SELECT ALL col0 AS col1, ( + 12 ) + col2 FROM tab1
----
51
108
85
71
91
80

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-212
SELECT - 22 FROM tab0, tab2 AS cor0 WHERE NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-212
SELECT - 22 FROM tab0, tab2 AS cor0 WHERE NULL > CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL + 79, col2 FROM tab0
----
79
10
79
47
79
99

query I rowsort
SELECT DISTINCT + - col1 * - col2 AS col1 FROM tab1 WHERE ( + 60 IS NULL )
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col0 > - - col0
----

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

query II rowsort
SELECT 22, + col2 + + col0 AS col2 FROM tab0 AS cor0
----
22
196
22
62
22
97

query II rowsort
SELECT + 54 AS col1, 85 AS col1 FROM tab1 AS cor0
----
54
85
54
85
54
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col2, col0 * 68 FROM tab2 cor0
----
-46
3128
-64
4352
-75
5100

query I rowsort
SELECT ALL 36 FROM tab2 WHERE col0 BETWEEN col1 AND ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 * col2 - + + ( + + col0 ) col1 FROM tab1 AS cor0
----
-4805
-5531
-7731

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

query I rowsort
SELECT - - 30 + - 47 * - + col1 * + - col2 AS col2 FROM tab2 AS cor0
----
-144730
-182612
-55101

query I rowsort
SELECT 7 AS col1 FROM tab1 AS cor0 WHERE NOT + 23 * col1 * + 2 * - + 45 IN ( - - col0 )
----
7
7
7

query I rowsort
SELECT ALL - 18 * + col0 * 34 AS col2 FROM tab2 AS cor0 WHERE 77 IN ( - - col0, 74 + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN - col1 * col1 AND + col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT DISTINCT + 20 * + 6 + SUM( DISTINCT + - col2 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT + 20 * + 6 + SUM ( DISTINCT + - col2 ) AS col2 FROM tab2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-230
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
3

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

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

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

query II rowsort
SELECT ALL - col2 + - 48 + - 11, + col1 AS col1 FROM tab0
----
-106
81
-158
1
-69
21

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

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

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

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 LEFT JOIN tab2 AS cor1 ON NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT DISTINCT - MIN( - - 38 ) AS col1 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT - MIN ( - - 38 ) AS col1 FROM tab2 AS cor0
----
-38

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - ( - col1 ) * + 47 >= col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 62 > - col1
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-242
SELECT ALL 9 DIV 73 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL 9 / 73 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT - col0 NOT BETWEEN 17 * col2 - 44 - + 31 + + col2 + - + col0 + + col2 * col1 AND + ( 96 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT MAX( DISTINCT + + 72 ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-245
SELECT MAX ( DISTINCT + + 72 ) FROM tab2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-246
SELECT CAST( - col1 AS SIGNED ) * - 41 * + col2 FROM tab1
----
12095
131036
55104

skipif mysql # not compatible
query I rowsort label-246
SELECT CAST ( - col1 AS INTEGER ) * - 41 * + col2 FROM tab1
----
12095
131036
55104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * + - col0 col2 FROM tab2
----
-1125
-690
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-248
SELECT ALL + 28 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL + 28 / + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - 95 * - col0 FROM tab0
----
1425
8265
9215

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT ALL ( ( - ( - - COUNT( * ) ) ) ) * + + 19 AS col2 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL ( ( - ( - - COUNT ( * ) ) ) ) * + + 19 AS col2 FROM tab0
----
-57

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-252
SELECT DISTINCT 94 col1, col0 DIV - CAST( + 42 AS SIGNED ) + - 72 * + - col2 + - + col2 AS col2 FROM tab2 AS cor0
----
94
1632
94
2839
94
4117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-252
SELECT DISTINCT 94 col1, col0 / - CAST ( + 42 AS INTEGER ) + - 72 * + - col2 + - + col2 AS col2 FROM tab2 AS cor0
----
94
1632
94
2839
94
4117

onlyif mysql # aggregate syntax: 
query II rowsort label-253
SELECT - 96 AS col0, SUM( ALL - 78 ) * 80 col0 FROM tab0
----
-96
-18720

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-253
SELECT - 96 AS col0, SUM ( ALL - 78 ) * 80 col0 FROM tab0
----
-96
-18720

query I rowsort
SELECT + 9 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-256
SELECT DISTINCT - COUNT( * ) AS col1, - MAX( col1 ) FROM tab2 cor0
----
-3
-77

skipif mysql # not compatible
query II rowsort label-256
SELECT DISTINCT - COUNT ( * ) AS col1, - MAX ( col1 ) FROM tab2 cor0
----
-3
-77

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-259
SELECT DISTINCT COUNT( * ) col0, CAST( + MAX( + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS SIGNED ) FROM tab1 AS cor0
----
3
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-260
SELECT - - ( + col1 ) + + col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-260
SELECT - - ( + col1 ) + + col2 / - col2 AS col0 FROM tab0 AS cor0
----
0
20
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-261
SELECT - col2 + - CAST( + col1 AS SIGNED ) * - - 73 FROM tab1
----
-1118
-3499
-424

skipif mysql # not compatible
query I rowsort label-261
SELECT - col2 + - CAST ( + col1 AS INTEGER ) * - - 73 FROM tab1
----
-1118
-3499
-424

query III rowsort
SELECT * FROM tab0 WHERE - 19 >= 74
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-264
SELECT 36 + - + CAST( NULL AS DECIMAL ) * - 42 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-264
SELECT 36 + - + CAST ( NULL AS REAL ) * - 42 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT + COUNT( + - 52 ) + AVG ( ALL 37 ) + - MIN( col0 ) col1 FROM tab2 WHERE - 57 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-265
SELECT + COUNT ( + - 52 ) + AVG ( ALL 37 ) + - MIN ( col0 ) col1 FROM tab2 WHERE - 57 IS NULL
----
NULL

query II rowsort
SELECT 69 AS col1, col2 * 9 * col1 AS col0 FROM tab2 WHERE + col1 - + - col0 IS NOT NULL
----
69
10557
69
27720
69
34974

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT + 19 * - - col2, + col1 FROM tab2 AS cor0
----
1102
67
437
51
760
77

query I rowsort
SELECT - 42 AS col2 FROM tab2 cor0
----
-42
-42
-42

query I rowsort
SELECT - col1 * - 45 + + col0 * - + col2 FROM tab2 cor0
----
-1335
1237
905

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT 90 DIV col1 FROM tab0 AS cor0
----
1
4
90

skipif mysql # not compatible
query I rowsort label-275
SELECT 90 / col1 FROM tab0 AS cor0
----
1
4
90

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

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

query II rowsort
SELECT + 22 AS col1, - 12 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
18 values hashing to 6a07c0a4ee1e45ad6bfcbdb4c7b077de

query I rowsort
SELECT + 91 * + - col1 * 85 AS col2 FROM tab2 WHERE ( + col1 * + ( col1 ) + - 1 ) IS NULL
----

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

query I rowsort
SELECT ALL - 88 AS col2 FROM tab2 WHERE 53 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 NOT IN ( + col2 / - + col2 * + col2 + + 68, 28, + col2 + + + 78 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 99 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 42 col2 FROM tab2 cor0
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col1 * - - 19 + + col2 * 63 + + + col2 col2 FROM tab1 AS cor0
----
-51
6410
-85
3871
-91
5245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, 29 + col0 AS col1 FROM tab2 AS cor0
----
46
75
64
93
75
104

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= col1 + + 29
----

query II rowsort
SELECT + + col1, - ( col0 ) * - + col1 - - + 82 FROM tab2 AS cor0
----
51
2428
67
5107
77
5010

query I rowsort
SELECT DISTINCT - - 90 * col2 + + + 31 AS col2 FROM tab1 AS cor0
----
5341
6151
8671

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT COUNT( * ) * ( - COUNT( * ) ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-293
SELECT COUNT ( * ) * ( - COUNT ( * ) ) FROM tab2
----
-9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-295
SELECT ALL - col2 DIV + + ( - 50 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-295
SELECT ALL - col2 / + + ( - 50 ) FROM tab1
----
1
1
1

query II rowsort
SELECT DISTINCT - col1 * + col2 AS col0, + 54 FROM tab2
----
-1173
54
-3080
54
-3886
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-297
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1, - ( + - COUNT( * ) ) * + 99 - + COUNT( * ) AS col1 FROM tab1 cor0
----
NULL
294

skipif mysql # not compatible
query II rowsort label-297
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, - ( + - COUNT ( * ) ) * + 99 - + COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL
294

query I rowsort
SELECT DISTINCT + 11 * - col2 + - col2 AS col2 FROM tab1
----
-1152
-708
-816

query I rowsort
SELECT col0 * - col1 * ( col1 ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT - - 89 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-301
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 * - col2 col2, - 9 FROM tab0 AS cor0
----
NULL
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-301
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 * - col2 col2, - 9 FROM tab0 AS cor0
----
NULL
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT ALL 85 * COUNT( * ) * + + COUNT( - col1 ) AS col2 FROM tab2 AS cor0
----
765

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL 85 * COUNT ( * ) * + + COUNT ( - col1 ) AS col2 FROM tab2 AS cor0
----
765

query I rowsort
SELECT - 53 + + col1 FROM tab2 AS cor0
----
-2
14
24

query I rowsort
SELECT 22 + + 27 + - - ( - col2 ) * col0 * - - col1 AS col0 FROM tab0 AS cor0
----
-18221
-57056
-9554

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> - col0 + + 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT DISTINCT COUNT( * ) + - 97 * - 10 FROM tab2
----
973

skipif mysql # not compatible
query I rowsort label-308
SELECT DISTINCT COUNT ( * ) + - 97 * - 10 FROM tab2
----
973

query I rowsort
SELECT DISTINCT col2 + + - col0 - - 53 + - col1 * col1 * + - 31 - - 24 AS col1 FROM tab2
----
139219
183852
80685

query III rowsort
SELECT * FROM tab0 WHERE + - 96 * + 69 + col1 - col1 IN ( - - col1 - 16, ( + col0 ) + - 0 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= 8
----

query III rowsort
SELECT * FROM tab0 WHERE 4 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-314
SELECT - CAST( - col1 AS DECIMAL ) AS col0 FROM tab2 WHERE + - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-314
SELECT - CAST ( - col1 AS REAL ) AS col0 FROM tab2 WHERE + - col1 IS NULL
----

query II rowsort
SELECT DISTINCT col1 - - col2 AS col1, - col2 + + col1 FROM tab0
----
100
-98
128
34
31
11

query I rowsort
SELECT ALL col2 * + 10 + - 48 AS col2 FROM tab0
----
422
52
942

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

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

query I rowsort
SELECT DISTINCT 94 + - - col0 FROM tab2 AS cor0
----
140
158
169

query I rowsort
SELECT ALL + + 3 - + col2 AS col2 FROM tab2 AS cor0
----
-20
-37
-55

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE NOT col2 + + 64 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + - 96 ) + + col0 col2 FROM tab2 AS cor0
----
142
160
171

query I rowsort
SELECT DISTINCT col2 * - 15 FROM tab2
----
-345
-600
-870

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, col1 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
5
-68
47
-96
14

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

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT - 74 / + - 9 - - col1 / - col1 + - col1 NOT IN ( col0 )
----

query I rowsort
SELECT 46 AS col0 FROM tab0 cor0
----
46
46
46

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-328
SELECT col0 col0, + col0 * CAST( NULL AS DECIMAL ) + - col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-328
SELECT col0 col0, + col0 * CAST ( NULL AS REAL ) + - col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-330
SELECT col0 * CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-330
SELECT col0 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
225
7569
9409

query II rowsort
SELECT DISTINCT - col0 AS col2, - col0 + + col1 FROM tab2
----
-46
5
-64
13
-75
-8

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

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

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

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

query I rowsort
SELECT ALL - col0 * - + 28 AS col0 FROM tab2 AS cor0
----
1288
1792
2100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT ALL ( + 48 ) * + + COUNT( * ) + + 48 AS col2 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL ( + 48 ) * + + COUNT ( * ) + + 48 AS col2 FROM tab2
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-338
SELECT DISTINCT - 54 DIV + col2 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT - 54 / + col2 FROM tab0 AS cor0
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT + 25 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-339
SELECT + 25 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * + 5 NOT IN ( 44, - 12 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 30 + + col1 AS col1 FROM tab1 AS cor0
----
-16
-25
17

query I rowsort
SELECT + 34 + - ( + + col1 ) FROM tab0 AS cor0
----
-47
13
33

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

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

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

query I rowsort
SELECT ALL 15 + col2 AS col2 FROM tab0 AS cor0
----
114
25
62

onlyif mysql # DIV for integer division: 
query I rowsort label-346
SELECT DISTINCT + col0 DIV + 29 AS col2 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT + col0 / + 29 AS col2 FROM tab1
----
1
2
3

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND + col1 * - 61 + + col1 + + 48
----

query I rowsort
SELECT ALL - col0 + + 19 FROM tab0 AS cor0
----
-68
-78
4

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query II rowsort
SELECT DISTINCT - col2, + col2 - - 75 + col0 FROM tab0 WHERE NOT - + 9 IS NOT NULL
----

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

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

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

query I rowsort
SELECT - col0 * - + col0 * - + col1 FROM tab2 AS cor0
----
-107916
-315392
-376875

query I rowsort
SELECT DISTINCT - 41 * 28 + + 42 AS col1 FROM tab2 AS cor0
----
-1106

onlyif mysql # DIV for integer division: 
query II rowsort label-359
SELECT + col1 col0, col0 DIV col0 * - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-359
SELECT + col1 col0, col0 / col0 * - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-361
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col2, + CAST( NULL AS SIGNED ) + + col2 )
----

skipif mysql # not compatible
query III rowsort label-361
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col2, + CAST ( NULL AS INTEGER ) + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT DISTINCT + MIN( DISTINCT - 0 ) AS col0 FROM tab1 AS cor0 WHERE + ( - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT + MIN ( DISTINCT - 0 ) AS col0 FROM tab1 AS cor0 WHERE + ( - col1 ) IS NOT NULL
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab0 WHERE NULL IS NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 col2 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-366
SELECT * FROM tab1 WHERE NOT col0 / - + col2 - col0 BETWEEN - col2 AND + CAST( + 55 AS SIGNED )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-366
SELECT * FROM tab1 WHERE NOT col0 / - + col2 - col0 BETWEEN - col2 AND + CAST ( + 55 AS INTEGER )
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-367
SELECT ( + 9 ) DIV + + 15 * + + col2 + - col2 * - + col2 col1 FROM tab2 cor0
----
1600
3364
529

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-367
SELECT ( + 9 ) / + + 15 * + + col2 + - col2 * - + col2 col1 FROM tab2 cor0
----
1600
3364
529

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + - 93 AND - - col0 / col1 - + col0 + + 60 * col1 * + col0 * - col1 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query I rowsort
SELECT DISTINCT - 37 + - 99 + 43 + - col2 * - - col0 * + 35 FROM tab2 AS cor0 WHERE NOT col2 = 65 * col2 * + col1
----
-152343
-37123
-89693

query I rowsort
SELECT - 73 + + 35 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-38
-38
-38

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

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

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

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

query I rowsort
SELECT DISTINCT 47 FROM tab2, tab2 cor0
----
47

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

query I rowsort
SELECT + col0 - 86 FROM tab2
----
-11
-22
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-379
SELECT - MIN( + col2 ) col0 FROM tab0 WHERE + - 40 * col2 / + - CAST( 27 AS SIGNED ) <> NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-379
SELECT - MIN ( + col2 ) col0 FROM tab0 WHERE + - 40 * col2 / + - CAST ( 27 AS INTEGER ) <> NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 - + col2 - - + col1 col0 FROM tab1
----
-25
3
36

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT DISTINCT 81 * COUNT( * ) - - + 62 FROM tab2
----
305

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT 81 * COUNT ( * ) - - + 62 FROM tab2
----
305

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

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

query I rowsort
SELECT ALL - 13 + col1 + - + col0 AS col0 FROM tab2
----
-21
-8
0

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

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

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

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT DISTINCT - ( + MAX( DISTINCT + - ( col0 ) ) ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-386
SELECT DISTINCT - ( + MAX ( DISTINCT + - ( col0 ) ) ) AS col0 FROM tab1
----
51

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-389
SELECT ALL - col2 AS col1, col2 * + - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-59
5015
-68
6188
-96
4896

skipif mysql # not compatible
query II rowsort label-389
SELECT ALL - col2 AS col1, col2 * + - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-59
5015
-68
6188
-96
4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-390
SELECT ALL + 8 DIV - 44 * + CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL + 8 / - 44 * + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT DISTINCT + MAX( + col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT + MAX ( + col1 ) AS col2 FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 <= + + col0
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-394
SELECT - + CAST( - 25 AS SIGNED ) FROM tab2 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-394
SELECT - + CAST ( - 25 AS INTEGER ) FROM tab2 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query II rowsort label-395
SELECT COUNT( * ) col2, MIN( ALL + - col0 ) FROM tab0
----
3
-97

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-396
SELECT ALL + 77 * ( ( + col0 ) ) * CAST( NULL AS DECIMAL ) + - col1 + - 15 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-396
SELECT ALL + 77 * ( ( + col0 ) ) * CAST ( NULL AS REAL ) + - col1 + - 15 AS col0 FROM tab2
----
NULL
NULL
NULL

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

query II rowsort
SELECT - - 46 AS col0, 52 - + + col2 AS col0 FROM tab1 cor0
----
46
-16
46
-44
46
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-399
SELECT DISTINCT - 82 AS col2, + ( + - SUM( ALL - col2 ) ) col1 FROM tab0 AS cor0
----
-82
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-399
SELECT DISTINCT - 82 AS col2, + ( + - SUM ( ALL - col2 ) ) col1 FROM tab0 AS cor0
----
-82
156

query III rowsort
SELECT * FROM tab1 WHERE col1 < - 13
----

onlyif mysql # DIV for integer division: 
query I rowsort label-401
SELECT 42 DIV col1 col0 FROM tab1
----
0
3
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-401
SELECT 42 / col1 col0 FROM tab1
----
0
3
8

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN - ( + 26 ) AND + ( + 79 )
----

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

query I rowsort
SELECT DISTINCT + 49 + - 72 AS col2 FROM tab1, tab2 AS cor0
----
-23

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

query I rowsort
SELECT - - col0 + - 50 FROM tab2 AS cor0
----
-4
14
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-407
SELECT - COUNT( 95 ) * - 18 + - - CAST( NULL AS DECIMAL ) * - - 81 + + 57 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-407
SELECT - COUNT ( 95 ) * - 18 + - - CAST ( NULL AS REAL ) * - - 81 + + 57 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-408
SELECT + 71 + + + CAST( - MIN( DISTINCT 99 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-408
SELECT + 71 + + + CAST ( - MIN ( DISTINCT 99 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-28

query I rowsort
SELECT - + col0 * + col1 * + 1 + - col0 * col0 * col0 AS col0 FROM tab1 cor0
----
-133365
-614550
-757848

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT - MIN( - - col0 ) + + 49 AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-410
SELECT - MIN ( - - col0 ) + + 49 AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE col0 <= ( + col1 - + col2 )
----

query I rowsort
SELECT ALL + col0 * + + col1 FROM tab2
----
2346
4928
5025

query II rowsort
SELECT 27, + col2 AS col1 FROM tab1
----
27
59
27
68
27
96

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

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

query I rowsort
SELECT ALL 11 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

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

query I rowsort
SELECT - col1 * - 96 AS col1 FROM tab2
----
4896
6432
7392

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 48 < + 37 * - 53 + - col2 + 57 * col0
----
15
81
47

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL = col0 / col2 )
----

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

query I rowsort
SELECT ALL 43 FROM tab1 WHERE ( 45 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 * - col2 + col0 FROM tab0
----
-123
-2
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT DISTINCT + COUNT( DISTINCT - 81 ) + + SUM( ALL - col2 ) FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT + COUNT ( DISTINCT - 81 ) + + SUM ( ALL - col2 ) FROM tab2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT COUNT( * ) * + 73 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-424
SELECT COUNT ( * ) * + 73 FROM tab1
----
219

query I rowsort
SELECT ALL 29 AS col0 FROM tab0 AS cor0
----
29
29
29

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

skipif mysql # not compatible
query I rowsort label-426
SELECT DISTINCT COUNT ( col0 ) AS col2 FROM tab2 AS cor0
----
3

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

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

query I rowsort
SELECT + col2 - + 65 * - col2 * + 98 + - + col1 FROM tab0 WHERE NULL NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 - + - col2 FROM tab2 AS cor0
----
0

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-432
SELECT + - col2 col1, - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ALL - SUM( + - 32 ) col2 FROM tab2
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-433
SELECT ALL - SUM ( + - 32 ) col2 FROM tab2
----
96

query I rowsort
SELECT + 97 * - - 32 AS col0 FROM tab0
----
3104
3104
3104

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT + - SUM( DISTINCT + - 19 ) col1 FROM tab0 AS cor0
----
19

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

query I rowsort
SELECT DISTINCT + 57 FROM tab0, tab1 cor0
----
57

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

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

query I rowsort
SELECT - + 2 + - 97 FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-439
SELECT + col2 DIV + - 99 DIV col0 * col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-439
SELECT + col2 / + - 99 / col0 * col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT ALL COUNT( DISTINCT + ( - 82 ) ) AS col2 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL COUNT ( DISTINCT + ( - 82 ) ) AS col2 FROM tab2 cor0
----
1

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

query I rowsort
SELECT + 49 + - 21 AS col0 FROM tab0 cor0
----
28
28
28

query II rowsort
SELECT + - col1 AS col2, + col0 FROM tab1 AS cor0 WHERE + 25 BETWEEN NULL AND + 13
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 < - ( + 76 ) AND NOT + 40 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 + 5 col1 FROM tab2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT DISTINCT + MIN( ALL - - 42 ) col0 FROM tab1
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-446
SELECT DISTINCT + MIN ( ALL - - 42 ) col0 FROM tab1
----
42

query I rowsort
SELECT 19 + - col0 AS col0 FROM tab2
----
-27
-45
-56

query I rowsort
SELECT - 57 * + + col2 + col2 * + col2 * + 88 * + col1 FROM tab2
----
10839320
19830838
2372841

query III rowsort
SELECT * FROM tab2 WHERE 91 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-450
SELECT * FROM tab1 WHERE NOT 63 < NULL AND NOT - col1 * - col2 * col1 * - ( + col2 ) * - col1 BETWEEN - 55 * ( col2 ) AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-450
SELECT * FROM tab1 WHERE NOT 63 < NULL AND NOT - col1 * - col2 * col1 * - ( + col2 ) * - col1 BETWEEN - 55 * ( col2 ) AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-451
SELECT ALL - col1 * + 18 + + + CAST( 84 AS SIGNED ) AS col0 FROM tab0
----
-1374
-294
66

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL - col1 * + 18 + + + CAST ( 84 AS INTEGER ) AS col0 FROM tab0
----
-1374
-294
66

query I rowsort
SELECT DISTINCT - col0 * + 70 AS col0 FROM tab1 AS cor0
----
-3570
-5950
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT - - MAX( + 74 ) FROM tab1 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-453
SELECT - - MAX ( + 74 ) FROM tab1 WHERE NULL < NULL
----
NULL

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

skipif mysql # not compatible
query II rowsort label-454
SELECT ALL - COUNT ( * ) - - 84 + - COUNT ( * ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
78
3

query I rowsort
SELECT DISTINCT col0 + + + 67 FROM tab0 AS cor0
----
154
164
82

query I rowsort
SELECT + col1 + - - col1 + col0 * - col0 FROM tab2 AS cor0
----
-2014
-3942
-5491

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

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN - - col0 AND - 8 * + col2 + 25
----
46
64
75

query I rowsort
SELECT ALL + - col0 * - 68 AS col0 FROM tab1 AS cor0
----
3468
5780
6188

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-460
SELECT - CAST( NULL AS DECIMAL ) AS col0, - col0 * - col0 FROM tab1 AS cor0
----
NULL
2601
NULL
7225
NULL
8281

skipif mysql # not compatible
query II rowsort label-460
SELECT - CAST ( NULL AS REAL ) AS col0, - col0 * - col0 FROM tab1 AS cor0
----
NULL
2601
NULL
7225
NULL
8281

query I rowsort
SELECT - col2 * - + 10 * - + col2 FROM tab1 cor0
----
-34810
-46240
-92160

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT - MAX( 57 ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-462
SELECT - MAX ( 57 ) FROM tab0 AS cor0
----
-57

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

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

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

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

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

query I rowsort
SELECT DISTINCT 63 FROM tab0, tab0 cor0
----
63

query II rowsort
SELECT + 88, col2 * 62 AS col0 FROM tab0
----
88
2914
88
6138
88
620

onlyif mysql # DIV for integer division: 
query II rowsort label-468
SELECT col0, col2 DIV + + 31 AS col1 FROM tab0
----
15
1
87
0
97
3

skipif mysql # not compatible
query II rowsort label-468
SELECT col0, col2 / + + 31 AS col1 FROM tab0
----
15
1
87
0
97
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT DISTINCT + COUNT( * ) * - - 4 FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT + COUNT ( * ) * - - 4 FROM tab2 cor0
----
12

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

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

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-474
SELECT DISTINCT + col0 * + 42 AS col2, - col0 * col0 DIV 19 AS col2, - 68 AS col1 FROM tab2
----
9 values hashing to a0c2db69b08967cb1a37bb58ab54fd4a

skipif mysql # not compatible
query III rowsort label-474
SELECT DISTINCT + col0 * + 42 AS col2, - col0 * col0 / 19 AS col2, - 68 AS col1 FROM tab2
----
9 values hashing to a0c2db69b08967cb1a37bb58ab54fd4a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-475
SELECT - 29 * SUM( + col1 ) + - CAST( - 53 AS SIGNED ) FROM tab2
----
-5602

skipif mysql # not compatible
query I rowsort label-475
SELECT - 29 * SUM ( + col1 ) + - CAST ( - 53 AS INTEGER ) FROM tab2
----
-5602

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-476
SELECT - 55 DIV COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-476
SELECT - 55 / COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-6

query II rowsort
SELECT - + col0 + + col2 * - + col0 AS col1, 62 FROM tab2 AS cor0
----
-1104
62
-2624
62
-4425
62

query II rowsort
SELECT DISTINCT col2 * - 89, - col2 + + ( + col2 ) AS col1 FROM tab2 AS cor0
----
-2047
0
-3560
0
-5162
0

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT ALL + COUNT( * ) * - SUM( + 91 ) FROM tab2 AS cor0
----
-819

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL + COUNT ( * ) * - SUM ( + 91 ) FROM tab2 AS cor0
----
-819

query I rowsort
SELECT + 25 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT - 13 * + col1 AS col0 FROM tab0 AS cor0
----
-1053
-13
-273

query I rowsort
SELECT ALL col1 * - - 95 + + 75 FROM tab0 AS cor0
----
170
2070
7770

query I rowsort
SELECT DISTINCT - col1 * col1 * - 21 + - 41 AS col1 FROM tab1 cor0
----
4075
46348
484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + col0 col0 FROM tab2 AS cor0 WHERE - col1 * - col0 IS NULL
----

query I rowsort
SELECT ALL + 40 * col0 * + - col0 + col0 FROM tab1
----
-103989
-288915
-331149

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

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

query I rowsort
SELECT DISTINCT - 3 + + col0 AS col2 FROM tab0
----
12
84
94

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT - 79 * COUNT( * ) AS col2 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-488
SELECT - 79 * COUNT ( * ) AS col2 FROM tab1
----
-237

query I rowsort
SELECT DISTINCT + ( + col1 ) * + col0 - - col1 FROM tab1
----
430
4324
728

query I rowsort
SELECT + col2 + + - 53 - - + col1 FROM tab2 AS cor0
----
21
64
72

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

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

query I rowsort
SELECT + + 22 + col0 FROM tab0 cor0
----
109
119
37

onlyif mysql # DIV for integer division: 
query I rowsort label-493
SELECT DISTINCT col2 DIV - col1 * + - col0 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-493
SELECT DISTINCT col2 / - col1 * + - col0 AS col0 FROM tab2 AS cor0
----
0

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

query II rowsort
SELECT + col1, col2 * col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
1
9603
21
870
81
705

query I rowsort
SELECT DISTINCT - col0 - col0 AS col2 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT - 59 + COUNT( * ) FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-497
SELECT - 59 + COUNT ( * ) FROM tab0 AS cor0
----
-56

query I rowsort
SELECT col1 * col1 + + col1 AS col0 FROM tab0
----
2
462
6642

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-499
SELECT DISTINCT + MIN( ALL - CAST( + - 48 AS SIGNED ) ) * + 29 FROM tab2, tab1 AS cor0
----
1392

skipif mysql # not compatible
query I rowsort label-499
SELECT DISTINCT + MIN ( ALL - CAST ( + - 48 AS INTEGER ) ) * + 29 FROM tab2, tab1 AS cor0
----
1392

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT col2 DIV - - 20 FROM tab0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-500
SELECT col2 / - - 20 FROM tab0
----
0
2
4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 58 BETWEEN - 14 AND - 97 + + - col0 * - - 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT COUNT( * ) * - 5 col0 FROM tab2
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-502
SELECT COUNT ( * ) * - 5 col0 FROM tab2
----
-15

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 19 BETWEEN NULL AND NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - 45
----

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

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

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

query II rowsort
SELECT - 85 + - - 79 * + 30 AS col1, 77 AS col1 FROM tab2 WHERE NOT col1 <> col0 + - col1
----

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

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

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

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

query I rowsort
SELECT 76 * + col2 FROM tab0
----
3572
7524
760

query I rowsort
SELECT 25 * + + 4 AS col1 FROM tab1
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT DISTINCT - - COUNT( * ) FROM tab2 WHERE NOT NULL <> - col0
----
0

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT - - COUNT ( * ) FROM tab2 WHERE NOT NULL <> - col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT DISTINCT col0 DIV col0 - col2 AS col0 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT col0 / col0 - col2 AS col0 FROM tab0 AS cor0
----
-46
-9
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-516
SELECT DISTINCT - 8 AS col0, SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - col0
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-516
SELECT DISTINCT - 8 AS col0, SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - col0
----
-8
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT ALL - col0 DIV + - 42 AS col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL - col0 / + - 42 AS col0 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 76 + - + col1 AS col2 FROM tab0 cor0
----
-5
55
75

query I rowsort
SELECT - col1 + - + 58 FROM tab1 AS cor0
----
-105
-63
-72

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

query II rowsort
SELECT ALL 4 + col1 AS col0, + 1 FROM tab2
----
55
1
71
1
81
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-522
SELECT + 24 + - + CAST( + + col0 AS SIGNED ) AS col0 FROM tab1
----
-27
-61
-67

skipif mysql # not compatible
query I rowsort label-522
SELECT + 24 + - + CAST ( + + col0 AS INTEGER ) AS col0 FROM tab1
----
-27
-61
-67

query III rowsort
SELECT * FROM tab2 WHERE NULL > - col2 / col0
----

query I rowsort
SELECT 21 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

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

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 = + - col0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-527
SELECT DISTINCT + col0 DIV col2 + col2 * - col2 + 90 FROM tab2 AS cor0
----
-1509
-3273
-437

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT + col0 / col2 + col2 * - col2 + 90 FROM tab2 AS cor0
----
-1509
-3273
-437

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-530
SELECT DISTINCT - col1 DIV ( - 27 ) AS col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT - col1 / ( - 27 ) AS col2 FROM tab2 AS cor0
----
1
2

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

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL - + 13 / - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * - - 63 FROM tab0 AS cor0
----
5481
6111
945

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT + 68 * + - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-534
SELECT + 68 * + - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - col1 * + col2 < ( + col0 + + - col1 )
----

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT - COUNT( DISTINCT - + col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-540
SELECT - COUNT ( DISTINCT - + col0 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT MAX( - 1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-541
SELECT MAX ( - 1 ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT COUNT( * ) * + MAX( + + 72 ) * + COUNT( ALL - - 88 ) FROM tab1
----
648

skipif mysql # not compatible
query I rowsort label-542
SELECT COUNT ( * ) * + MAX ( + + 72 ) * + COUNT ( ALL - - 88 ) FROM tab1
----
648

onlyif mysql # DIV for integer division: 
query I rowsort label-543
SELECT - ( + col0 ) DIV + col0 AS col0 FROM tab1 cor0
----
-1
-1
-1

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

query II rowsort
SELECT - ( 55 ) * - + ( col2 ), ( col1 ) AS col0 FROM tab0 AS cor0
----
2585
81
5445
1
550
21

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 76 <= 49 + - 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 85 <> 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 66 + - col0 / col2 * - col2 + + col1 / - ( - + 1 ) + col1 * col1 * - + col2 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < - 26
----

query I rowsort
SELECT ALL 87 + + col0 FROM tab1
----
138
172
178

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT DISTINCT MIN( ALL - col2 ) + 8 AS col0 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-550
SELECT DISTINCT MIN ( ALL - col2 ) + 8 AS col0 FROM tab0
----
-91

query I rowsort
SELECT + col0 + - - col0 AS col0 FROM tab0 AS cor0
----
174
194
30

query II rowsort
SELECT + + col0, 38 - 4 FROM tab1 AS cor0
----
51
34
85
34
91
34

query I rowsort
SELECT ALL + col0 + - - 93 AS col2 FROM tab1 AS cor0
----
144
178
184

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

skipif mysql # not compatible
query III rowsort label-554
SELECT * FROM tab0 AS cor0 WHERE + col0 IS NOT NULL OR NOT - + col2 NOT BETWEEN CAST ( NULL AS INTEGER ) / + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-555
SELECT - 67 DIV - 96 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-555
SELECT - 67 / - 96 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT ALL + + MIN( DISTINCT - - col1 ) FROM tab2 cor0 WHERE NOT + 3 * col1 = - 24
----
51

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL + + MIN ( DISTINCT - - col1 ) FROM tab2 cor0 WHERE NOT + 3 * col1 = - 24
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT + ( MAX( col1 ) ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-557
SELECT + ( MAX ( col1 ) ) AS col0 FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab0 WHERE NULL < + col1 * - - ( - col2 ) * 80
----

query III rowsort
SELECT * FROM tab2 WHERE - 67 BETWEEN col1 AND col0 + col0
----

query I rowsort
SELECT DISTINCT + 99 + + 24 FROM tab0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT + ( + - 57 ) DIV + + col0 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-561
SELECT + ( + - 57 ) / + + col0 AS col2 FROM tab2
----
-1
0
0

query I rowsort
SELECT + 6 - - + col1 FROM tab2
----
57
73
83

query I rowsort
SELECT ALL 84 * 69 + + + col2 AS col1 FROM tab2
----
5819
5836
5854

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT - MIN( - 55 ) - - 68 AS col2 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-564
SELECT - MIN ( - 55 ) - - 68 AS col2 FROM tab0
----
123

query I rowsort
SELECT ALL - 31 + - 99 FROM tab1
----
-130
-130
-130

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

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

query I rowsort
SELECT DISTINCT col1 * + - 46 * + ( - col2 ) - - col1 AS col2 FROM tab2
----
141757
178823
54009

query I rowsort
SELECT DISTINCT + col2 - - col0 + - - col1 * - + col2 FROM tab2 AS cor0
----
-1104
-2976
-3753

query I rowsort
SELECT 3 + + 47 + - col1 FROM tab2 AS cor0
----
-1
-17
-27

query I rowsort
SELECT ALL 5 - - + 40 + + ( + col1 ) * - col0 AS col0 FROM tab2 AS cor0
----
-2301
-4883
-4980

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT DISTINCT + 5 * - COUNT( * ) * 40 * + COUNT( * ) FROM tab2 cor0
----
-1800

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT + 5 * - COUNT ( * ) * 40 * + COUNT ( * ) FROM tab2 cor0
----
-1800

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT DISTINCT + + 45 * + - col2 + - col2 DIV 63 * + col2 FROM tab2 AS cor0
----
-1035
-1800
-2610

skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT + + 45 * + - col2 + - col2 / 63 * + col2 FROM tab2 AS cor0
----
-1035
-1800
-2610

query II rowsort
SELECT + + col2, + 68 - - - 19 FROM tab2 AS cor0
----
23
49
40
49
58
49

query I rowsort
SELECT ALL - 76 * - - col1 AS col2 FROM tab0
----
-1596
-6156
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT ALL MAX( DISTINCT + 61 ) AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL MAX ( DISTINCT + 61 ) AS col2 FROM tab2
----
61

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - 5 * - col0 NOT IN ( + - col0, - col1 / + + 30, - 82 / + col2 + + col0 / col1, - + 10, + 58, col2, col0, + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-580
SELECT ALL + 97 DIV col0 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL + 97 / col0 AS col0 FROM tab1
----
1
1
1

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

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

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

query I rowsort
SELECT ALL + + 5 + - - col2 FROM tab1 AS cor0
----
101
64
73

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN NULL AND + 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 * 27 col0 FROM tab0
----
1377

query I rowsort
SELECT ALL - col2 * 41 FROM tab1
----
-2419
-2788
-3936

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

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

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

query I rowsort
SELECT ALL col2 * - 67 - + 72 FROM tab0 WHERE NULL <> col0 + col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT + ( ( - MAX( ALL + col2 ) ) ) * - COUNT( * ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-592
SELECT + ( ( - MAX ( ALL + col2 ) ) ) * - COUNT ( * ) FROM tab1
----
288

query I rowsort
SELECT ALL - col1 + - 65 * 24 FROM tab2
----
-1611
-1627
-1637

query I rowsort
SELECT + col1 * 86 + col2 FROM tab1
----
1300
4110
489

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-595
SELECT - CAST( NULL AS SIGNED ) * MAX( 21 * 87 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT - CAST ( NULL AS INTEGER ) * MAX ( 21 * 87 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT - 89 * MAX( ALL - col1 ) col0 FROM tab2
----
4539

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-596
SELECT - 89 * MAX ( ALL - col1 ) col0 FROM tab2
----
4539

query I rowsort
SELECT ALL - col1 * 61 + + col0 FROM tab0
----
-1194
-4926
36

query I rowsort
SELECT 50 * + col2 FROM tab0
----
2350
4950
500

query I rowsort
SELECT 93 + 66 FROM tab0
----
159
159
159

query I rowsort
SELECT ALL - col2 * 9 FROM tab2
----
-207
-360
-522

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-601
SELECT COUNT ( * ) + - COUNT ( * ) col1 FROM tab2
----
0

query I rowsort
SELECT ALL + col1 * - 71 AS col2 FROM tab0 WHERE ( - 48 / + 17 + + col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT ALL COUNT( * ) * MAX( ALL col1 ) AS col0 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL COUNT ( * ) * MAX ( ALL col1 ) AS col0 FROM tab1
----
141

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

query I rowsort
SELECT DISTINCT col0 * - 30 FROM tab1
----
-1530
-2550
-2730

query I rowsort
SELECT ALL 58 * 49 FROM tab0
----
2842
2842
2842

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL 66 / - COUNT ( * ) AS col1 FROM tab1
----
-22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT - 10 + - MIN( - ( + col2 ) + ( 3 ) ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-611
SELECT - 10 + - MIN ( - ( + col2 ) + ( 3 ) ) FROM tab2
----
45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * col0 IN ( + 43 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 >= col0
----

query I rowsort
SELECT DISTINCT 15 * col2 AS col0 FROM tab0 AS cor0
----
1485
150
705

query I rowsort
SELECT DISTINCT col1 * ( + col0 ) FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-617
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT ALL 32 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL 88 * - col2 AS col1 FROM tab1
----
-5192
-5984
-8448

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 55 NOT BETWEEN + ( + col1 ) * 4 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT ALL - SUM( ALL + col0 ) * - 85 FROM tab0 AS cor0
----
16915

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL - SUM ( ALL + col0 ) * - 85 FROM tab0 AS cor0
----
16915

query I rowsort
SELECT DISTINCT ( + 67 ) * col2 FROM tab2 AS cor0
----
1541
2680
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT COUNT( * ) + + 51 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 <= col2
----
51

skipif mysql # not compatible
query I rowsort label-624
SELECT COUNT ( * ) + + 51 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 <= col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT - 78 * + MAX( DISTINCT col2 ) + - 52 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 + col2 NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-625
SELECT - 78 * + MAX ( DISTINCT col2 ) + - 52 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 + col2 NOT BETWEEN ( NULL ) AND NULL
----
NULL

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

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

query I rowsort
SELECT DISTINCT ( - 78 ) * col2 + 79 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * 93 AS col2 FROM tab1 cor0
----
1302
4371
465

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

query I rowsort
SELECT DISTINCT + 37 + - 34 + 38 FROM tab0
----
41

query I rowsort
SELECT DISTINCT col2 + col1 - - 80 AS col2 FROM tab2
----
154
197
205

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

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

query I rowsort
SELECT DISTINCT + 1 * - 74 FROM tab0 WHERE NOT NULL <> ( - ( - ( - ( + 86 ) ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT DISTINCT + + COUNT( * ) * + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-635
SELECT DISTINCT + + COUNT ( * ) * + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT ALL 6 + + COUNT( ALL col2 ) * 47 AS col0 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL 6 + + COUNT ( ALL col2 ) * 47 AS col0 FROM tab2
----
147

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

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

query I rowsort
SELECT DISTINCT - col2 - + 57 AS col1 FROM tab0 AS cor0
----
-104
-156
-67

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

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

query II rowsort
SELECT DISTINCT - col1 AS col0, col2 + - - 86 AS col0 FROM tab2 AS cor0
----
-51
109
-67
144
-77
126

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - + 80 ) * col2 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-644
SELECT col1 - + col0 - + - col2 DIV 19 FROM tab0
----
-66
-91
68

skipif mysql # not compatible
query I rowsort label-644
SELECT col1 - + col0 - + - col2 / 19 FROM tab0
----
-66
-91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 * - col0 col1 FROM tab0
----
-3393
-3783
-585

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

skipif mysql # not compatible
query I rowsort label-646
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT + MAX( ALL + 45 ) AS col1 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-647
SELECT + MAX ( ALL + 45 ) AS col1 FROM tab2
----
45

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE - 46 + - + col0 IS NULL
----

query I rowsort
SELECT ALL 89 * + 92 FROM tab0 AS cor0 WHERE NOT ( NOT ( col2 * + col2 + 70 ) IS NOT NULL )
----
8188
8188
8188

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 75
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-652
SELECT - CAST( 96 AS SIGNED ) FROM tab2 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-652
SELECT - CAST ( 96 AS INTEGER ) FROM tab2 AS cor0
----
-96
-96
-96

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

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

query I rowsort
SELECT ALL ( - 98 ) AS col0 FROM tab1
----
-98
-98
-98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * + + col2 < col2
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-657
SELECT ALL + 63, - ( COUNT( * ) ) * - - 45 * + COUNT( + 85 ) col0 FROM tab0 cor0
----
63
-405

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-657
SELECT ALL + 63, - ( COUNT ( * ) ) * - - 45 * + COUNT ( + 85 ) col0 FROM tab0 cor0
----
63
-405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-658
SELECT DISTINCT - CAST( MIN( - col0 ) AS SIGNED ) DIV 78 AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT - CAST ( MIN ( - col0 ) AS INTEGER ) / 78 AS col1 FROM tab1 cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + 60 / + col0 - 55 / col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT DISTINCT MAX( col2 ) * COUNT( * ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT MAX ( col2 ) * COUNT ( * ) FROM tab0 AS cor0
----
297

query I rowsort
SELECT ALL + 83 * col0 * 57 + col0 - col1 AS col0 FROM tab1 AS cor0
----
241318
402215
430565

query I rowsort
SELECT ALL 83 + col2 AS col1 FROM tab1 cor0 WHERE NULL <= ( 34 / + col1 )
----

query I rowsort
SELECT DISTINCT - 4 + - col0 - + col1 AS col2 FROM tab2
----
-101
-145
-146

query I rowsort
SELECT + ( - col0 ) - + col0 AS col0 FROM tab0 WHERE col2 + + col2 + - + col1 / - - col2 + + col1 IN ( + col1 + col2 * 61 )
----

query I rowsort
SELECT DISTINCT + 77 + - - col1 + + 91 AS col1 FROM tab0
----
169
189
249

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-666
SELECT - col1 DIV 97 + + 45 DIV CAST( + 25 AS SIGNED ) AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-666
SELECT - col1 / 97 + + 45 / CAST ( + 25 AS INTEGER ) AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT 61 + + ( + + col2 ) * + - 70 AS col2 FROM tab1
----
-4069
-4699
-6659

query I rowsort
SELECT DISTINCT 98 * + 81 FROM tab0
----
7938

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

skipif mysql # not compatible
query I rowsort label-669
SELECT + + 76 / - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-670
SELECT - 37 AS col1, col0 DIV + - col0 + + - col2 FROM tab1 AS cor0
----
-37
-60
-37
-69
-37
-97

skipif mysql # not compatible
query II rowsort label-670
SELECT - 37 AS col1, col0 / + - col0 + + - col2 FROM tab1 AS cor0
----
-37
-60
-37
-69
-37
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT ALL MIN( - col1 ) * + + 86 / + 65 FROM tab0 AS cor0 WHERE col1 < - + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL MIN ( - col1 ) * + + 86 / + 65 FROM tab0 AS cor0 WHERE col1 < - + 36
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, col1 * + col2 FROM tab0 AS cor0
----
-1
99
-21
210
-81
3807

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

query I rowsort
SELECT col2 FROM tab2 WHERE ( + col2 ) >= - col1 * + + 19 * + col2 AND NOT 79 / + 50 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-675
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN ( + - col0 + 73 * - ( + - 18 ) * - col2 / col2 + col2 ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-675
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN ( + - col0 + 73 * - ( + - 18 ) * - col2 / col2 + col2 ) AND - col1
----

query II rowsort
SELECT ALL - col0 - + 48, - col0 + - - col1 AS col2 FROM tab1 AS cor0
----
-133
-80
-139
-44
-99
-37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 24 NOT BETWEEN ( + - col0 ) AND ( ( - ( - col0 ) ) / 66 ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 IN ( + 95 * col0 * + 78, col0 )
----

query I rowsort
SELECT ALL 7 + + col1 FROM tab1 AS cor0
----
12
21
54

query I rowsort
SELECT ALL + 24 FROM tab2 cor0 WHERE NOT col0 > NULL
----

query II rowsort
SELECT + col1 AS col2, col2 * + + col2 AS col1 FROM tab0
----
1
9801
21
100
81
2209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 57 col1 FROM tab1
----
3363
3876
5472

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 BETWEEN col2 * 45 / + 29 AND + col0 * + col1 + 57 OR NOT col0 * 98 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 22 - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT - MAX( - 81 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-685
SELECT - MAX ( - 81 ) AS col2 FROM tab0 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 14, col2 col2 FROM tab1 AS cor0
----
14
59
14
68
14
96

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

query I rowsort
SELECT ALL - 83 * col1 AS col1 FROM tab1 AS cor0
----
-1162
-3901
-415

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

skipif mysql # not compatible
query I rowsort label-689
SELECT SUM ( DISTINCT - col1 ) FROM tab1 cor0
----
-66

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

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

query II rowsort
SELECT col2 * + - col1, - col0 AS col0 FROM tab0 AS cor0
----
-210
-87
-3807
-15
-99
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 - - 90 ) >= ( col2 - - col0 * + 17 )
----

query II rowsort
SELECT ALL ( + col2 ) + col0 + col0, col2 AS col2 FROM tab0 AS cor0
----
184
10
293
99
77
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-694
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <= - + 98 / ( + 99 ) + + 19 - - - CAST( NULL AS SIGNED ) * ( - col2 ) * + 89
----

skipif mysql # not compatible
query I rowsort label-694
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <= - + 98 / ( + 99 ) + + 19 - - - CAST ( NULL AS INTEGER ) * ( - col2 ) * + 89
----

query I rowsort
SELECT DISTINCT - col0 + - 78 + + col1 FROM tab0 AS cor0
----
-12
-144
-174

query I rowsort
SELECT + col1 + - + 47 + - 33 / - 55 * col2 * - col1 * 96 AS col2 FROM tab0 WHERE 71 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT ALL 94 + - COUNT( * ) AS col1 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL 94 + - COUNT ( * ) AS col1 FROM tab2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-698
SELECT DISTINCT + col0 * + col0 + - + 81 * + 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-698
SELECT DISTINCT + col0 * + col0 + - + 81 * + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT SUM( ALL - 77 ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-699
SELECT SUM ( ALL - 77 ) FROM tab2
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT MAX( + - 41 ) col2 FROM tab0
----
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-700
SELECT MAX ( + - 41 ) col2 FROM tab0
----
-41

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

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

query I rowsort
SELECT DISTINCT + col1 + - - 18 AS col1 FROM tab0 AS cor0
----
19
39
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-704
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - - CAST( 37 AS SIGNED ) + + 5 AND NULL
----

skipif mysql # not compatible
query III rowsort label-704
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - - CAST ( 37 AS INTEGER ) + + 5 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 78 - 61 * - 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT + MIN( 12 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-706
SELECT + MIN ( 12 ) FROM tab2
----
12

query I rowsort
SELECT DISTINCT - 31 - 70 * - - col2 + 36 + col2 + + col0 AS col2 FROM tab0
----
-3223
-598
-6729

query I rowsort
SELECT ALL col0 * - col1 - - 87 AS col0 FROM tab2 AS cor0
----
-2259
-4841
-4938

query I rowsort
SELECT ALL + + ( + + 45 ) AS col2 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT ALL + 8 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - col2 AND - 78 / col2
----
8
8
8

query I rowsort
SELECT ALL - ( col2 ) * + ( - col2 ) * col2 FROM tab0 AS cor0
----
1000
103823
970299

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT 14 + col2 < - ( - - 88 )
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-713
SELECT ALL * FROM tab0 WHERE NOT col0 + col2 NOT BETWEEN - col1 AND ( - CAST( col1 AS SIGNED ) * + - 21 )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-713
SELECT ALL * FROM tab0 WHERE NOT col0 + col2 NOT BETWEEN - col1 AND ( - CAST ( col1 AS INTEGER ) * + - 21 )
----
15
81
47
87
21
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT ALL + 59 * - COUNT( * ) AS col1 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL + 59 * - COUNT ( * ) AS col1 FROM tab0
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-716
SELECT ALL + 53 DIV + - 50 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL + 53 / + - 50 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-717
SELECT col0 DIV col0, - col2 AS col1 FROM tab1
----
1
-59
1
-68
1
-96

skipif mysql # not compatible
query II rowsort label-717
SELECT col0 / col0, - col2 AS col1 FROM tab1
----
1
-59
1
-68
1
-96

query I rowsort
SELECT - 53 * - 69 FROM tab2
----
3657
3657
3657

query II rowsort
SELECT + col2 * + col1 AS col2, - col0 FROM tab1
----
1344
-51
295
-85
3196
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT - MAX( - 22 ) AS col0 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-720
SELECT - MAX ( - 22 ) AS col0 FROM tab1 AS cor0
----
22

query I rowsort
SELECT + - 40 FROM tab0 cor0
----
-40
-40
-40

query II rowsort
SELECT col0 AS col2, col0 * 45 AS col2 FROM tab0
----
15
675
87
3915
97
4365

query II rowsort
SELECT col0, - col1 * + - 92 FROM tab2
----
46
4692
64
7084
75
6164

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

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

query I rowsort
SELECT 26 * - + col0 AS col1 FROM tab2 cor0
----
-1196
-1664
-1950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( 41 ) ) col0 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT DISTINCT - col0 + + col0 * - ( 82 ) AS col2 FROM tab2 AS cor0
----
-3818
-5312
-6225

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

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL > + col2 * - col2 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 + - 49 + - - col0 + - col1 col1 FROM tab0 AS cor0
----
-115
17
47

query I rowsort
SELECT ALL col2 + - 27 FROM tab0
----
-17
20
72

query III rowsort
SELECT * FROM tab2 WHERE - col2 >= NULL OR NULL BETWEEN ( - - col2 * 5 * - col1 + + + col0 ) AND - col2 + col1
----

query I rowsort
SELECT 12 + + 17 * + col2 AS col0 FROM tab1
----
1015
1168
1644

query I rowsort
SELECT - col2 + + 5 FROM tab0
----
-42
-5
-94

query I rowsort
SELECT - 91 + + - col1 AS col2 FROM tab2
----
-142
-158
-168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-737
SELECT DISTINCT * FROM tab2 WHERE ( - 37 ) NOT BETWEEN - CAST( NULL AS SIGNED ) AND + - 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-737
SELECT DISTINCT * FROM tab2 WHERE ( - 37 ) NOT BETWEEN - CAST ( NULL AS INTEGER ) AND + - 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 40 + 50 * col2 FROM tab0
----
2390
4990
540

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT ALL + COUNT( * ) + + COUNT( * ) * + - 96 - - - 78 FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-739
SELECT ALL + COUNT ( * ) + + COUNT ( * ) * + - 96 - - - 78 FROM tab2
----
-363

query I rowsort
SELECT ( - ( col1 ) ) AS col1 FROM tab0
----
-1
-21
-81

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 - col0 AS col2, col1 * - + col2 col2 FROM tab2 AS cor0
----
-141
-3080
-142
-3886
-97
-1173

query I rowsort
SELECT 27 * - - 17 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30493a75c84cb29ae979ac0706bc460e

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

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

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT - MAX ( ALL - 20 ) FROM tab0 AS cor0
----
20

query I rowsort
SELECT ALL + - 27 AS col0 FROM tab0 AS cor0
----
-27
-27
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-747
SELECT + CAST( - - col2 AS SIGNED ) * 64 * 88 FROM tab0 AS cor0
----
264704
557568
56320

skipif mysql # not compatible
query I rowsort label-747
SELECT + CAST ( - - col2 AS INTEGER ) * 64 * 88 FROM tab0 AS cor0
----
264704
557568
56320

query I rowsort
SELECT ALL - 38 * - + col1 AS col2 FROM tab1 AS cor0
----
1786
190
532

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT DISTINCT - COUNT( ALL col2 ) col1 FROM tab1 cor0
----
-3

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

query I rowsort
SELECT ALL 51 * - 14 FROM tab2 AS cor0
----
-714
-714
-714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-751
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - col0 AND - col2 / 27 * + CAST( NULL AS SIGNED ) * 43 * 20
----

skipif mysql # not compatible
query III rowsort label-751
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - col0 AND - col2 / 27 * + CAST ( NULL AS INTEGER ) * 43 * 20
----

onlyif mysql # aggregate syntax: 
query II rowsort label-752
SELECT DISTINCT 11 * + COUNT( * ) AS col2, 16 AS col1 FROM tab0
----
33
16

skipif mysql # not compatible
query II rowsort label-752
SELECT DISTINCT 11 * + COUNT ( * ) AS col2, 16 AS col1 FROM tab0
----
33
16

query II rowsort
SELECT col0, - col0 * - - col0 * col1 - + col1 FROM tab0
----
15
-18306
87
-158970
97
-9410

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT + col2 + - col0 * - col0 IS NULL
----
14
47
5

query I rowsort
SELECT ALL 96 * + col0 AS col0 FROM tab2
----
4416
6144
7200

query II rowsort
SELECT ALL col1, 83 AS col0 FROM tab1
----
14
83
47
83
5
83

onlyif mysql # DIV for integer division: 
query I rowsort label-757
SELECT DISTINCT + col0 DIV 40 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT + col0 / 40 FROM tab1
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT 75 * - + SUM( DISTINCT col1 ) AS col2 FROM tab1
----
-4950

skipif mysql # not compatible
query I rowsort label-758
SELECT 75 * - + SUM ( DISTINCT col1 ) AS col2 FROM tab1
----
-4950

query II rowsort
SELECT + col2 AS col1, col2 * + - 41 AS col1 FROM tab2
----
23
-943
40
-1640
58
-2378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-760
SELECT ALL CAST( - ( + col2 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL CAST ( - ( + col2 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col0 + + col2 + + - col1 FROM tab2 AS cor0
----
-101
-74
-84

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

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

query III rowsort
SELECT * FROM tab0 WHERE + + col0 NOT IN ( + + 62, col0 / col1 + - 77, + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 52 * + col0 + + col1 AS col2 FROM tab2 AS cor0
----
-2341
-3251
-3833

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

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT + - MIN( ALL - - col2 ) * SUM( - - 10 ) FROM tab2 AS cor0
----
-690

skipif mysql # not compatible
query I rowsort label-766
SELECT + - MIN ( ALL - - col2 ) * SUM ( - - 10 ) FROM tab2 AS cor0
----
-690

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= ( + - 50 / - col2 / 40 * col0 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT DISTINCT 57 - COUNT( * ) AS col1 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT 57 - COUNT ( * ) AS col1 FROM tab0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-770
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + - col2 * - - col1 FROM tab0 WHERE + 94 >= NULL
----

skipif mysql # not compatible
query I rowsort label-770
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + - col2 * - - col1 FROM tab0 WHERE + 94 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-771
SELECT DISTINCT 65 DIV 48 * + col2 + - - col2 * + col1 + + col0 + - col1 AS col2 FROM tab0
----
286
294
3788

skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT 65 / 48 * + col2 + - - col2 * + col1 + + col0 + - col1 AS col2 FROM tab0
----
286
294
3788

query I rowsort
SELECT ALL 41 - - + col2 FROM tab2
----
64
81
99

query II rowsort
SELECT DISTINCT - + col2, col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 43 * + - col0 + col0 + + + ( - ( + col1 ) ) FROM tab2
----
1973
2739
3233

query II rowsort
SELECT DISTINCT col2, + 20 FROM tab0
----
10
20
47
20
99
20

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

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

query I rowsort
SELECT 17 * - + col2 FROM tab0
----
-1683
-170
-799

query I rowsort
SELECT ALL - - ( - + 32 ) / - col2 FROM tab1 AS cor0 WHERE - ( + - col0 ) IS NULL
----

query II rowsort
SELECT DISTINCT - col2 * + 43 AS col0, col2 * col1 FROM tab2 cor0
----
-1720
3080
-2494
3886
-989
1173

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0, - 22 FROM tab0
----
15
-22
87
-22
97
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-782
SELECT ALL + CAST( - 96 AS SIGNED ) AS col2 FROM tab0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL + CAST ( - 96 AS INTEGER ) AS col2 FROM tab0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT 44 * - + COUNT( * ) FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-783
SELECT 44 * - + COUNT ( * ) FROM tab2
----
-132

query I rowsort
SELECT DISTINCT + col2 * - col0 * - col2 AS col2 FROM tab1
----
295885
420784
470016

query I rowsort
SELECT 13 + col2 + - col0 AS col0 FROM tab0
----
-64
15
45

query I rowsort
SELECT ( col2 ) + - 17 AS col2 FROM tab0
----
-7
30
82

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

skipif mysql # not compatible
query I rowsort label-787
SELECT + + MIN ( - - col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT DISTINCT + + col0 DIV - 36 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
-1
439
6561

skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT + + col0 / - 36 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
-1
439
6561

query I rowsort
SELECT DISTINCT - + col1 * + 46 + - 90 FROM tab1 AS cor0
----
-2252
-320
-734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-790
SELECT DISTINCT SUM( DISTINCT - CAST( + + col1 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT SUM ( DISTINCT - CAST ( + + col1 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

query II rowsort
SELECT DISTINCT - 49, + col1 FROM tab1
----
-49
14
-49
47
-49
5

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-794
SELECT ALL - - ( - COUNT ( * ) ) col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + 91 / - col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-798
SELECT ALL - - col2 DIV col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL - - col2 / col2 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 78 + + col2 AS col0 FROM tab0 AS cor0
----
125
177
88

query I rowsort
SELECT ( 11 ) + - 42 FROM tab2 AS cor0
----
-31
-31
-31

query I rowsort
SELECT - 98 * col1 + + col2 AS col0 FROM tab2
----
-4975
-6508
-7506

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT MIN( + 48 ) + 60 AS col0 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-802
SELECT MIN ( + 48 ) + 60 AS col0 FROM tab2
----
108

query I rowsort
SELECT DISTINCT col2 + + ( col1 ) FROM tab1
----
110
115
64

query I rowsort
SELECT ALL col2 * - col1 + - 45 AS col1 FROM tab2
----
-1218
-3125
-3931

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

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

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

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

query I rowsort
SELECT - col2 - - + 46 FROM tab0 AS cor0
----
-1
-53
36

query I rowsort
SELECT + + col1 * + 11 + 14 FROM tab0 AS cor0
----
245
25
905

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 88 NOT IN ( + 93, col2 )
----

query II rowsort
SELECT ALL col2, - col0 * - + col2 FROM tab2
----
23
1058
40
2560
58
4350

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-817
SELECT DISTINCT + 80 AS col2, CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
80
-23
80
-40
80
-58

skipif mysql # not compatible
query II rowsort label-817
SELECT DISTINCT + 80 AS col2, CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
80
-23
80
-40
80
-58

query II rowsort
SELECT col2 AS col0, 52 * col1 FROM tab2 AS cor0
----
23
2652
40
4004
58
3484

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 / + 14 IS NOT NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-822
SELECT + MIN ( - col1 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT - - 84 AS col1 FROM tab2 cor0
----
84

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 37 IS NOT NULL
----

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

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

query I rowsort
SELECT + col1 * - - 72 AS col2 FROM tab2 AS cor0
----
3672
4824
5544

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 * col0 IS NOT NULL ) OR - col1 BETWEEN - - col0 + + 19 AND - - col0 * 97
----

query I rowsort
SELECT ALL + 39 * - - col2 AS col2 FROM tab0 AS cor0
----
1833
3861
390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-831
SELECT + + COUNT( * ) * 84 - - 5, COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col1 + + CAST( + - col0 AS SIGNED ) IS NOT NULL
----
257
3

skipif mysql # not compatible
query II rowsort label-831
SELECT + + COUNT ( * ) * 84 - - 5, COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col1 + + CAST ( + - col0 AS INTEGER ) IS NOT NULL
----
257
3

query I rowsort
SELECT DISTINCT - - ( 0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0

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

query I rowsort
SELECT - col2 + ( ( + + col2 ) ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-835
SELECT ALL col2 + - - ( - 71 ) * + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL col2 + - - ( - 71 ) * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + + - 19 AS col2 FROM tab1
----
-104
-110
-70

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-837
SELECT + CAST ( - - col1 AS INTEGER ) col0 FROM tab2
----
51
67
77

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

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

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

query I rowsort
SELECT DISTINCT ( - - 82 ) * + 67 AS col0 FROM tab1 AS cor0
----
5494

query I rowsort
SELECT col1 * - - 4 FROM tab2 AS cor0
----
204
268
308

query I rowsort
SELECT ( + + 74 ) * - col1 + - + col2 FROM tab2 cor0
----
-3797
-5016
-5738

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

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT DISTINCT - + 20 + - SUM( ALL + 88 ) FROM tab2 AS cor0
----
-284

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT - + 20 + - SUM ( ALL + 88 ) FROM tab2 AS cor0
----
-284

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT COUNT( * ) - - - 87 AS col2 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-845
SELECT COUNT ( * ) - - - 87 AS col2 FROM tab2
----
-84

query I rowsort
SELECT ALL - 95 * + col0 * 2 + + - col1 FROM tab1
----
-16155
-17337
-9704

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-847
SELECT * FROM tab0 WHERE NULL <> + + CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-847
SELECT * FROM tab0 WHERE NULL <> + + CAST ( - col2 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-848
SELECT - 71 DIV - col0 - - + col2 AS col1 FROM tab0
----
10
51
99

skipif mysql # not compatible
query I rowsort label-848
SELECT - 71 / - col0 - - + col2 AS col1 FROM tab0
----
10
51
99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-850
SELECT ALL + col0 DIV - + 91 - + col1 * - col2 AS col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL + col0 / - + 91 - + col1 * - col2 AS col2 FROM tab2
----
1173
3080
3886

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

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

query I rowsort
SELECT + ( - + 12 ) * + - 60 AS col1 FROM tab1
----
720
720
720

query I rowsort
SELECT - - col1 * 80 - col0 + + + col0 - - + col1 AS col0 FROM tab2 WHERE NOT NULL > + + col2
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 + + col0 <> + + 6
----

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

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

query I rowsort
SELECT DISTINCT - - 85 FROM tab1 cor0
----
85

query I rowsort
SELECT DISTINCT - - 95 AS col0 FROM tab2 AS cor0
----
95

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + + 70 + ( + - 12 ) + - 63 * + col1 * + + col2 FROM tab0
----
-13085
-239768
-6082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, 7 + + col2 + 70 * - col2 * - col1 * - + col2 * - 83 col0 FROM tab2
----
-46
156748020
-64
715792047
-75
1309504345

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 / + - col0 + - col1 + - col1 - - + 81 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - col2 + + col2 FROM tab2 WHERE NOT - + 17 IS NULL
----
-1150
-3040
-3828

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

skipif mysql # not compatible
query I rowsort label-867
SELECT 44 + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-868
SELECT ALL * FROM tab0 WHERE NOT - - 38 + CAST( + col2 AS SIGNED ) > - col0
----

skipif mysql # not compatible
query III rowsort label-868
SELECT ALL * FROM tab0 WHERE NOT - - 38 + CAST ( + col2 AS INTEGER ) > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-869
SELECT ALL col0, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-869
SELECT ALL col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 56 + - col2 > - col0
----

query I rowsort
SELECT + 85 - - - 96 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-11
-11
-11

query I rowsort
SELECT ALL + col1 * + col0 + + + col0 AS col2 FROM tab1 AS cor0
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT DISTINCT + + COUNT( * ) * + MAX( DISTINCT 98 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
882

skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT + + COUNT ( * ) * + MAX ( DISTINCT 98 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
882

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

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

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

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

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

query I rowsort
SELECT - col1 * + col1 + 23 AS col0 FROM tab2 AS cor0
----
-2578
-4466
-5906

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * col2 * - 44 FROM tab0 AS cor0
----
-31020
-38280
-422532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-881
SELECT ALL + col2 + + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL + col2 + + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-11
-34
98

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-882
SELECT DISTINCT MAX ( ALL - - col1 ) col1 FROM tab0 AS cor0
----
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT MAX( - + 20 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-884
SELECT MAX ( - + 20 ) FROM tab2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT MAX( - 7 ) AS col0 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-885
SELECT MAX ( - 7 ) AS col0 FROM tab2
----
-7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + + 78 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-887
SELECT ALL 91 DIV - ( - col0 ) AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL 91 / - ( - col0 ) AS col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT DISTINCT - SUM( ALL + + 11 ) AS col1 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT - SUM ( ALL + + 11 ) AS col1 FROM tab1 AS cor0
----
-33

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

query II rowsort
SELECT ALL - - col1 AS col2, - col1 * - 35 AS col1 FROM tab0 AS cor0
----
1
35
21
735
81
2835

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + MAX( + 64 ) FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-891
SELECT + MAX ( + 64 ) FROM tab2 AS cor0
----
64

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

query I rowsort
SELECT ALL 98 * - 77 AS col1 FROM tab0 AS cor0
----
-7546
-7546
-7546

onlyif mysql # DIV for integer division: 
query I rowsort label-894
SELECT DISTINCT 1 DIV - - 2 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-894
SELECT DISTINCT 1 / - - 2 AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT + col1, + 53 * - col0 * - col2 * - 22 AS col2 FROM tab1 cor0
----
14
-5708736
47
-7215208
5
-5847490

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-899
SELECT COUNT( * ), 18 AS col1 FROM tab2 AS cor0
----
3
18

skipif mysql # not compatible
query II rowsort label-899
SELECT COUNT ( * ), 18 AS col1 FROM tab2 AS cor0
----
3
18

query II rowsort
SELECT col1 AS col1, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 93 * - + ( col0 ) + - + 52 BETWEEN - col2 AND - col0
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL >= 22 - - 68
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-904
SELECT ALL CAST( - - MIN( ALL + - 65 ) AS SIGNED ) AS col1 FROM tab2
----
-65

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

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT SUM( ALL + - 46 ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-906
SELECT SUM ( ALL + - 46 ) FROM tab2
----
-138

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

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

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

query I rowsort
SELECT ALL col2 * - + col1 * - 80 + - col2 - - col0 * - col0 AS col0 FROM tab2
----
242264
305197
91701

query III rowsort
SELECT * FROM tab1 cor0 WHERE - ( + col1 ) IN ( - 86 + col2 / - + 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT 61 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-911
SELECT 61 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT DISTINCT - MIN( - 84 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
84

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT - MIN ( - 84 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT 53 - ( COUNT( * ) ) + - COUNT( * ) AS col0 FROM tab0 cor0
----
47

skipif mysql # not compatible
query I rowsort label-913
SELECT 53 - ( COUNT ( * ) ) + - COUNT ( * ) AS col0 FROM tab0 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT DISTINCT + 21 - - COUNT( * ) * - 5 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-914
SELECT DISTINCT + 21 - - COUNT ( * ) * - 5 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT + - 59 * - 12 AS col2 FROM tab2 AS cor0
----
708

query I rowsort
SELECT DISTINCT col2 * + + col0 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab1 WHERE NOT - 0 < NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT DISTINCT - col2 DIV 65 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT - col2 / 65 FROM tab2
----
0

query I rowsort
SELECT col2 * 62 AS col1 FROM tab2
----
1426
2480
3596

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-922
SELECT + MAX( DISTINCT col0 ) DIV - CAST( + - 63 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-922
SELECT + MAX ( DISTINCT col0 ) / - CAST ( + - 63 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1

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

query I rowsort
SELECT DISTINCT - col0 * col2 * + col0 AS col1 FROM tab0 AS cor0
----
-10575
-75690
-931491

query I rowsort
SELECT ALL 95 * - + ( + 20 ) FROM tab0 AS cor0
----
-1900
-1900
-1900

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + + col0 IS NOT NULL
----

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-929
SELECT + COUNT ( - col0 ) col0 FROM tab0
----
3

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

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

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

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

query I rowsort
SELECT - 7 + + 12 + 59 + - + col0 - + + col1 * + col1 * + col1 * - + 83 * + 20 AS col1 FROM tab1 AS cor0
----
172346153
207479
4555053

query I rowsort
SELECT + 39 + + + col2 + - 37 FROM tab1
----
61
70
98

query I rowsort
SELECT + col0 + 23 FROM tab2
----
69
87
98

query I rowsort
SELECT + col1 * + col0 + - col1 * - col1 * + - col2 * + 10 AS col1 FROM tab1
----
-14325
-1497843
-187446

query I rowsort
SELECT DISTINCT 48 * - 10 + col2 AS col0 FROM tab2
----
-422
-440
-457

query I rowsort
SELECT DISTINCT + 0 + ( - col2 ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT - col2 + + - col2 AS col2 FROM tab1
----
-118
-136
-192

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

query I rowsort
SELECT DISTINCT col0 - + - col1 * - col0 FROM tab2
----
-2300
-4864
-4950

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-943
SELECT - + 27 * 95 DIV - ( - - col0 ) FROM tab2 AS cor0
----
34
40
55

skipif mysql # not compatible
query I rowsort label-943
SELECT - + 27 * 95 / - ( - - col0 ) FROM tab2 AS cor0
----
34
40
55

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 - + col2 + 31 col2 FROM tab0
----
-114
-25
-62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT ALL SUM( DISTINCT + 51 ) + - + 94 AS col1 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL SUM ( DISTINCT + 51 ) + - + 94 AS col1 FROM tab1
----
-43

query I rowsort
SELECT DISTINCT col2 - - col2 * + col0 + + col2 - + + col2 AS col0 FROM tab0 AS cor0
----
752
880
9702

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

query I rowsort
SELECT ( - 40 ) * + 10 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-951
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) AS col1, - col2 DIV + 30 + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
58
NULL
66
NULL
93

skipif mysql # not compatible
query II rowsort label-951
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) AS col1, - col2 / + 30 + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
58
NULL
66
NULL
93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + + col0 NOT BETWEEN - 46 + - col2 AND - - col2
----
85
5
59
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 col0 FROM tab2 cor0 WHERE NOT col2 * + + 45 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 * - - 98 AS col0 FROM tab1
----
1372
4606
490

query I rowsort
SELECT DISTINCT + 67 * + col0 FROM tab2
----
3082
4288
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT ALL col1 * 1 DIV - - 31 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL col1 * 1 / - - 31 FROM tab1
----
0
0
1

query II rowsort
SELECT DISTINCT 65 AS col1, + 71 AS col2 FROM tab0
----
65
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-958
SELECT COUNT( * ) DIV - 40 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-958
SELECT COUNT ( * ) / - 40 AS col0 FROM tab2
----
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-960
SELECT - + col2 FROM tab2 WHERE NOT + ( + col0 ) >= + + CAST( col1 AS DECIMAL )
----
-23
-40

skipif mysql # not compatible
query I rowsort label-960
SELECT - + col2 FROM tab2 WHERE NOT + ( + col0 ) >= + + CAST ( col1 AS REAL )
----
-23
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-961
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - 98 = - col1
----
3

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - 98 = - col1
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT + + COUNT( ALL + 74 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-964
SELECT + + COUNT ( ALL + 74 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-965
SELECT DISTINCT - 94 + - 7 DIV - MIN( + ( col1 ) ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT - 94 + - 7 / - MIN ( + ( col1 ) ) FROM tab1
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-966
SELECT + COUNT( * ) + - CAST( + COUNT( * ) AS SIGNED ) col0 FROM tab1
----
0

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

query I rowsort
SELECT col2 + - col0 * ( - + 24 ) AS col2 FROM tab2
----
1127
1576
1858

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT DISTINCT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 <= - 54
----
-3

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 <= - 54
----
-3

query I rowsort
SELECT DISTINCT 94 * + col2 AS col2 FROM tab1 AS cor0
----
5546
6392
9024

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

skipif mysql # not compatible
query I rowsort label-970
SELECT - CAST ( - 51 AS INTEGER ) FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT + - col0 * 19 FROM tab2 AS cor0
----
-1216
-1425
-874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col1 FROM tab0 AS cor0 WHERE col1 * + + col0 + + col2 NOT BETWEEN + 23 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-973
SELECT - 78 DIV - col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-973
SELECT - 78 / - col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-974
SELECT ALL + col2 DIV ( 95 ) FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL + col2 / ( 95 ) FROM tab1 cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-975
SELECT DISTINCT + 92 DIV - - col0 + + col1 AS col0 FROM tab0
----
1
22
87

skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT + 92 / - - col0 + + col1 AS col0 FROM tab0
----
1
22
87

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

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

query I rowsort
SELECT DISTINCT ( - - 35 ) - + + col1 - - col0 AS col1 FROM tab1
----
115
72
79

query I rowsort
SELECT DISTINCT + col0 + - 45 AS col1 FROM tab2
----
1
19
30

query I rowsort
SELECT ALL 84 - - col1 FROM tab0
----
105
165
85

query I rowsort
SELECT 5 + + 89 AS col1 FROM tab1
----
94
94
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + - 60 NOT IN ( - - 49, + col0 + - 62, + 69, - 45, + col1 * + col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-983
SELECT DISTINCT - + 90 * - AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT - + 90 * - AVG ( DISTINCT CAST ( NULL AS REAL ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT COUNT( 99 ) + + - 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-5

skipif mysql # not compatible
query I rowsort label-985
SELECT COUNT ( 99 ) + + - 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE col1 / + col1 > - col2 + col1
----
1

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE col1 / + col1 > - col2 + col1
----
1

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + + col1 BETWEEN + + 64 + - - col0 + - + ( col1 ) * - - 73 AND ( 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT DISTINCT + + MAX( DISTINCT + 53 ) col0 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-989
SELECT DISTINCT + + MAX ( DISTINCT + 53 ) col0 FROM tab1 AS cor0
----
53

query I rowsort
SELECT ALL + 37 AS col0 FROM tab0 AS cor0 WHERE 51 * + 68 * - 81 BETWEEN col2 AND - - col2
----

query I rowsort
SELECT - + 68 * 20 AS col0 FROM tab1 AS cor0
----
-1360
-1360
-1360

onlyif mysql # DIV for integer division: 
query I rowsort label-992
SELECT + 29 * 92 DIV 56 * + 31 AS col1 FROM tab1
----
1457
1457
1457

skipif mysql # not compatible
query I rowsort label-992
SELECT + 29 * 92 / 56 * + 31 AS col1 FROM tab1
----
1457
1457
1457

query I rowsort
SELECT + 95 * - + 11 AS col2 FROM tab2
----
-1045
-1045
-1045

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT ( - - col1 ) BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL + 32 * + - 49 AS col0 FROM tab0 AS cor0
----
-1568
-1568
-1568

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

query I rowsort
SELECT ALL - col0 + + 25 AS col1 FROM tab2
----
-21
-39
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-998
SELECT DISTINCT - COUNT( * ) + - + 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-998
SELECT DISTINCT - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT ALL col2 DIV 99 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL col2 / 99 AS col0 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1000
SELECT col1, CAST( + col0 AS SIGNED ) col0 FROM tab0
----
1
97
21
87
81
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1000
SELECT col1, CAST ( + col0 AS INTEGER ) col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT ALL col0 * + 11 FROM tab2 cor0
----
506
704
825

query I rowsort
SELECT - 91 + + 86 + col0 * + + col0 AS col1 FROM tab1 AS cor0
----
2596
7220
8276

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT COUNT( - 28 ) - + 98 AS col0 FROM tab1 AS cor0 WHERE + 65 IS NULL
----
-98

skipif mysql # not compatible
query I rowsort label-1003
SELECT COUNT ( - 28 ) - + 98 AS col0 FROM tab1 AS cor0 WHERE + 65 IS NULL
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1004
SELECT DISTINCT ( - MAX( ALL - col0 ) ) AS col0 FROM tab1 cor0 WHERE NOT ( NOT + - CAST( - + col1 AS SIGNED ) IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT ( - MAX ( ALL - col0 ) ) AS col0 FROM tab1 cor0 WHERE NOT ( NOT + - CAST ( - + col1 AS INTEGER ) IS NULL )
----
NULL

query I rowsort
SELECT 20 + + col2 FROM tab1 AS cor0
----
116
79
88

query I rowsort
SELECT col0 * - col0 + - 91 FROM tab2 AS cor0
----
-2207
-4187
-5716

query II rowsort
SELECT DISTINCT - - col2 AS col2, + col2 FROM tab0 cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT - 52 + + + 85 AS col1 FROM tab1 AS cor0
----
33
33
33

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1010
SELECT DISTINCT col2 + + CAST( - + 10 AS SIGNED ) FROM tab1
----
49
58
86

skipif mysql # not compatible
query I rowsort label-1010
SELECT DISTINCT col2 + + CAST ( - + 10 AS INTEGER ) FROM tab1
----
49
58
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1011
SELECT DISTINCT + col1 DIV - col1 FROM tab0 WHERE ( NOT NULL IS NOT NULL ) OR NOT + col0 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT + col1 / - col1 FROM tab0 WHERE ( NOT NULL IS NOT NULL ) OR NOT + col0 IS NOT NULL
----
-1

query I rowsort
SELECT DISTINCT + 49 + - - col1 AS col0 FROM tab0
----
130
50
70

query I rowsort
SELECT DISTINCT - ( - col0 ) AS col0 FROM tab2 WHERE col2 NOT IN ( - + 30 )
----
46
64
75

query II rowsort
SELECT 95 * - col0, + col1 FROM tab1
----
-4845
14
-8075
5
-8645
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 36 IN ( - - 41 + col1, + col0, - 42 * - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-1016
SELECT DISTINCT 36 - + col2 AS col0, 37 DIV + 84 col2 FROM tab1 cor0
----
-23
0
-32
0
-60
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1016
SELECT DISTINCT 36 - + col2 AS col0, 37 / + 84 col2 FROM tab1 cor0
----
-23
0
-32
0
-60
0

query I rowsort
SELECT + 37 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
37
37
37

query I rowsort
SELECT DISTINCT - col2 * - - 41 + ( + 71 ) - + col1 FROM tab2 AS cor0
----
-1646
-2374
-923

query I rowsort
SELECT + col1 * + + col1 - - col1 AS col0 FROM tab1 AS cor0
----
210
2256
30

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1021
SELECT 81 - - CAST( 8 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

skipif mysql # not compatible
query I rowsort label-1021
SELECT 81 - - CAST ( 8 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1023
SELECT ALL ( + + col2 ) DIV - 76 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL ( + + col2 ) / - 76 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1024
SELECT - + 65 col2, 16 * - COUNT( * ) FROM tab1 AS cor0
----
-65
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1024
SELECT - + 65 col2, 16 * - COUNT ( * ) FROM tab1 AS cor0
----
-65
-48

query III rowsort
SELECT col0 AS col1, col0 + - 45, - col2 AS col0 FROM tab2 cor0
----
9 values hashing to ad19c388f4d6089e9b1b9407d743e902

query I rowsort
SELECT - col2 * - col2 * + + 9 AS col0 FROM tab0 AS cor0
----
19881
88209
900

query I rowsort
SELECT + col0 * - - col1 * col0 AS col1 FROM tab2 AS cor0
----
107916
315392
376875

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

query II rowsort
SELECT ALL - 7, col0 FROM tab0
----
-7
15
-7
87
-7
97

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT NULL < NULL
----

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

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

query I rowsort
SELECT DISTINCT - - 84 FROM tab0 WHERE NOT + + col0 / + col1 + 49 NOT BETWEEN NULL AND + + 98
----

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

query I rowsort
SELECT ALL - - col2 FROM tab0 AS cor0 WHERE + col1 + - + 22 IS NOT NULL
----
10
47
99

query I rowsort
SELECT - col2 * - col1 * col2 + + - col2 + - ( - col0 ) AS col2 FROM tab2
----
123224
225405
27002

query I rowsort
SELECT ALL ( - - col2 ) + col1 * - - 26 FROM tab2
----
1349
1800
2042

query I rowsort
SELECT + col0 * - col0 - - - 12 FROM tab1 AS cor0
----
-2613
-7237
-8293

onlyif mysql # aggregate syntax: 
query II rowsort label-1038
SELECT - + MAX( + 32 ), - 12 AS col0 FROM tab2 AS cor0
----
-32
-12

skipif mysql # not compatible
query II rowsort label-1038
SELECT - + MAX ( + 32 ), - 12 AS col0 FROM tab2 AS cor0
----
-32
-12

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

query I rowsort
SELECT col2 - - 68 AS col1 FROM tab1
----
127
136
164

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

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) FROM tab0 WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT ALL - 62 + - COUNT( * ) * - 62 AS col2 FROM tab0
----
124

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL - 62 + - COUNT ( * ) * - 62 AS col2 FROM tab0
----
124

query I rowsort
SELECT ALL - 56 - - 10 AS col2 FROM tab2
----
-46
-46
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1044
SELECT ALL * FROM tab2 WHERE + CAST( - 30 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1044
SELECT ALL * FROM tab2 WHERE + CAST ( - 30 AS REAL ) IS NULL
----

query I rowsort
SELECT DISTINCT 63 + - col1 AS col0 FROM tab0
----
-18
42
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1046
SELECT + COUNT( * ) + - MAX( + 57 ), COUNT( * ) AS col2 FROM tab2
----
-54
3

skipif mysql # not compatible
query II rowsort label-1046
SELECT + COUNT ( * ) + - MAX ( + 57 ), COUNT ( * ) AS col2 FROM tab2
----
-54
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1047
SELECT DISTINCT * FROM tab0 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1047
SELECT DISTINCT * FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT 64 + + COUNT( * ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-1048
SELECT 64 + + COUNT ( * ) FROM tab1
----
67

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

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

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

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE ( + col0 ) NOT BETWEEN - 46 * col2 AND + col1
----
-59
-68
-96

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL IN ( - col0 )
----

query I rowsort
SELECT ALL 86 + - col2 AS col1 FROM tab0
----
-13
39
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT COUNT( * ) AS col0 FROM tab2 WHERE 38 NOT IN ( + 70 )
----
3

skipif mysql # not compatible
query I rowsort label-1055
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE 38 NOT IN ( + 70 )
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1057
SELECT * FROM tab0 WHERE NOT + col1 - col2 BETWEEN + CAST( NULL AS SIGNED ) AND + 20
----
15
81
47

skipif mysql # not compatible
query III rowsort label-1057
SELECT * FROM tab0 WHERE NOT + col1 - col2 BETWEEN + CAST ( NULL AS INTEGER ) AND + 20
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT COUNT( * ) + MIN( ALL - 67 + col2 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-1058
SELECT COUNT ( * ) + MIN ( ALL - 67 + col2 ) FROM tab1
----
-5

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT NULL IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT DISTINCT - COUNT( * ) + MIN( - col0 ) AS col2 FROM tab1 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT - COUNT ( * ) + MIN ( - col0 ) AS col2 FROM tab1 WHERE col0 IS NULL
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1061
SELECT + 0 col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
0
0
0

query I rowsort
SELECT - col0 * col1 FROM tab2 WHERE NULL IS NULL
----
-2346
-4928
-5025

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

query III rowsort
SELECT * FROM tab1 WHERE - 91 * + col2 + - 13 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + col0 col2 FROM tab1
----
110
2300
247

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1066
SELECT DISTINCT 37 FROM tab2 WHERE col2 NOT BETWEEN - col0 * + CAST( NULL AS DECIMAL ) AND - 9
----
37

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT 37 FROM tab2 WHERE col2 NOT BETWEEN - col0 * + CAST ( NULL AS REAL ) AND - 9
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT + COUNT( ALL + col0 ) AS col2 FROM tab0 WHERE col2 * col2 + + col2 <> col1 * col2
----
3

skipif mysql # not compatible
query I rowsort label-1067
SELECT + COUNT ( ALL + col0 ) AS col2 FROM tab0 WHERE col2 * col2 + + col2 <> col1 * col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT DISTINCT MIN( + col2 ) col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1068
SELECT DISTINCT MIN ( + col2 ) col1 FROM tab1 AS cor0
----
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT ALL + COUNT( * ) + + SUM( ALL + 41 + + 85 * col0 ) FROM tab0 AS cor0
----
17041

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL + COUNT ( * ) + + SUM ( ALL + 41 + + 85 * col0 ) FROM tab0 AS cor0
----
17041

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE ( 93 - + 43 ) = NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE - col2 * + 43 NOT IN ( + col1 )
----
23
40
58

query I rowsort
SELECT ALL - 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

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

query I rowsort
SELECT ALL - + col0 * col1 - 54 FROM tab2 AS cor0
----
-2400
-4982
-5079

query I rowsort
SELECT ALL 55 AS col1 FROM tab1 cor0
----
55
55
55

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE - ( 34 ) IS NULL
----

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

query I rowsort
SELECT - col1 + 72 FROM tab0 AS cor0
----
-9
51
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1080
SELECT - col1 + col1 DIV - 8 AS col1 FROM tab2 AS cor0
----
-57
-75
-86

skipif mysql # not compatible
query I rowsort label-1080
SELECT - col1 + col1 / - 8 AS col1 FROM tab2 AS cor0
----
-57
-75
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1081
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE - 96 NOT BETWEEN NULL AND ( + col1 * + col1 + + 34 )
----
0

skipif mysql # not compatible
query I rowsort label-1081
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE - 96 NOT BETWEEN NULL AND ( + col1 * + col1 + + 34 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1082
SELECT - + col2 + 1 DIV + 27 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1082
SELECT - + col2 + 1 / + 27 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1084
SELECT DISTINCT 48 + + col2 * col1 col1 FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE 38 >= + 54
----

query I rowsort
SELECT - col0 * - 42 FROM tab0
----
3654
4074
630

query I rowsort
SELECT DISTINCT col2 * - 61 FROM tab1
----
-3599
-4148
-5856

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT SUM( + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-1092
SELECT SUM ( + col2 ) AS col1 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT DISTINCT MAX( - col1 ) * 37 - COUNT( * ) FROM tab2
----
-1890

skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT MAX ( - col1 ) * 37 - COUNT ( * ) FROM tab2
----
-1890

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1095
SELECT DISTINCT 48 * - CAST ( NULL AS INTEGER ) * 5 - + col0 * + col0 col2 FROM tab1
----
NULL

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 46 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL MIN( - col1 ) * + SUM( ALL - col0 + col1 ) FROM tab0 AS cor0
----
7776

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL MIN ( - col1 ) * + SUM ( ALL - col0 + col1 ) FROM tab0 AS cor0
----
7776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1102
SELECT + + 60 * - col2 * CAST( col1 * - 53 AS SIGNED ) + - 17 AS col1 FROM tab2 AS cor0
----
12357463
3730123
9794383

skipif mysql # not compatible
query I rowsort label-1102
SELECT + + 60 * - col2 * CAST ( col1 * - 53 AS INTEGER ) + - 17 AS col1 FROM tab2 AS cor0
----
12357463
3730123
9794383

query I rowsort
SELECT 38 AS col2 FROM tab2 cor0
----
38
38
38

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col0 * + - 67 col1 FROM tab1
----
14
-3417
47
-6097
5
-5695

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT DISTINCT 32 + MIN( DISTINCT + 59 ) col2 FROM tab0, tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1107
SELECT DISTINCT 32 + MIN ( DISTINCT + 59 ) col2 FROM tab0, tab1 AS cor0
----
91

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

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

query I rowsort
SELECT ALL 79 * - 12 * - ( - col0 ) AS col0 FROM tab1
----
-48348
-80580
-86268

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1114
SELECT ( - col1 ) DIV col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 + - col0 >= col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1114
SELECT ( - col1 ) / col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 + - col0 >= col2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 * + 36 col0 FROM tab2 AS cor0
----
3096

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE + col2 * + col2 IN ( 33 + - 48 )
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NOT 85 NOT IN ( + - 51 * ( col2 / col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT 85 NOT IN ( + - 51 * ( col2 / col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT - MIN( - - 13 ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-1123
SELECT - MIN ( - - 13 ) FROM tab1
----
-13

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

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE - col2 * ( 57 ) / col1 + + col1 = NULL
----

query I rowsort
SELECT - ( - ( + - 60 ) ) * col2 AS col1 FROM tab0
----
-2820
-5940
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col1 ) AND ( - col0 * - 46 * - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col1 ) AND ( - col0 * - 46 * - col1 )
----
0

query I rowsort
SELECT DISTINCT + col2 - 51 + 91 * col2 + + col0 AS col1 FROM tab0
----
4288
9154
956

query I rowsort
SELECT ALL 14 + - - col1 AS col1 FROM tab1 AS cor0
----
19
28
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT DISTINCT - COUNT( - ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT - COUNT ( - ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1132
SELECT ALL - AVG ( + col2 ) FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL - AVG ( + col2 ) FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) < NULL
----
NULL

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 19 * + col2 * col2 ) <> NULL
----

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

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

query II rowsort
SELECT DISTINCT 87, - 15 AS col2 FROM tab1 cor0
----
87
-15

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

query III rowsort
SELECT * FROM tab0 WHERE ( + + 40 * - col0 * - col2 ) BETWEEN + 84 AND + col0
----

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

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

query I rowsort
SELECT col1 * + 84 FROM tab2
----
4284
5628
6468

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 54 * - col0 IN ( 15 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-1143
SELECT ALL 12 AS col2, COUNT( * ) * + COUNT( col2 ) FROM tab0
----
12
9

skipif mysql # not compatible
query II rowsort label-1143
SELECT ALL 12 AS col2, COUNT ( * ) * + COUNT ( col2 ) FROM tab0
----
12
9

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

skipif mysql # not compatible
query I rowsort label-1144
SELECT SUM ( ALL col2 ) AS col2 FROM tab2
----
121

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1148
SELECT DISTINCT - - 2 * - - col1 * - 51 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT - - 2 * - - col1 * - 51 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query II rowsort
SELECT - col1 * + col0, col2 AS col2 FROM tab1 AS cor0
----
-425
59
-4277
68
-714
96

query I rowsort
SELECT DISTINCT col0 * col1 + + - 77 FROM tab2 AS cor0
----
2269
4851
4948

query I rowsort
SELECT ALL col1 * - 75 FROM tab0 AS cor0
----
-1575
-6075
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT + 73 DIV - col0 + + - 87 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-87
-87
-91

skipif mysql # not compatible
query I rowsort label-1152
SELECT + 73 / - col0 + + - 87 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-87
-87
-91

query II rowsort
SELECT DISTINCT + + col0 * + 24, + col2 FROM tab2 AS cor0
----
1104
23
1536
40
1800
58

query I rowsort
SELECT ALL - 49 * + 12 + col0 AS col1 FROM tab2 AS cor0
----
-513
-524
-542

query I rowsort
SELECT + - col2 * 36 * + - col0 + + - 92 - + col1 * 31 + - + col1 * - col1 FROM tab1 AS cor0
----
175926
180318
223428

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 46 = ( - + col1 + - - col2 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1159
SELECT COUNT( * ) + - COUNT( * ) * - CAST( NULL AS DECIMAL ) * - 54 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1159
SELECT COUNT ( * ) + - COUNT ( * ) * - CAST ( NULL AS REAL ) * - 54 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT + COUNT( * ) + 3 + - ( COUNT( * ) ) + 58 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-1161
SELECT + COUNT ( * ) + 3 + - ( COUNT ( * ) ) + 58 FROM tab2
----
61

query I rowsort
SELECT DISTINCT - 33 + + col0 - + col1 FROM tab2
----
-25
-38
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1163
SELECT 98 DIV - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-1163
SELECT 98 / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1164
SELECT + 48 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE - col1 BETWEEN + col2 * - 45 + col0 AND - - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1164
SELECT + 48 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE - col1 BETWEEN + col2 * - 45 + col0 AND - - col2
----
NULL
NULL
NULL

query II rowsort
SELECT + 35 * 7 AS col0, - 44 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 10 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-10
-10

query I rowsort
SELECT + col0 - + 64 + col2 AS col0 FROM tab1
----
80
83
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1168
SELECT ALL + + ( + - col0 ) * - 23 * - col1 - col1 - + + 4 DIV + col1 AS col2 FROM tab1 AS cor0
----
-16436
-9780
-98418

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL + + ( + - col0 ) * - 23 * - col1 - col1 - + + 4 / + col1 AS col2 FROM tab1 AS cor0
----
-16436
-9780
-98418

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 65 - - col0, - col0 + - 41 col2 FROM tab0 AS cor0
----
152
-128
162
-138
80
-56

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

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

query I rowsort
SELECT 54 * + + col2 AS col2 FROM tab0 cor0
----
2538
5346
540

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1174
SELECT + CAST( + col1 AS SIGNED ) * + col1 FROM tab2 cor0
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-1174
SELECT + CAST ( + col1 AS INTEGER ) * + col1 FROM tab2 cor0
----
2601
4489
5929

query I rowsort
SELECT 93 * - - col0 AS col1 FROM tab0
----
1395
8091
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT DISTINCT - MIN( ALL + col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT - MIN ( ALL + col2 ) AS col2 FROM tab1
----
-59

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + + ( + 79 ) / ( + - 36 ) + - col0 BETWEEN NULL AND ( - col2 + - col1 * - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + + col1
----

query I rowsort
SELECT ALL - col1 / + col0 * col1 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 70, - 59 AS col0 FROM tab1
----
70
-59
70
-59
70
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1181
SELECT + col0 + - CAST( NULL AS SIGNED ), + col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-1181
SELECT + col0 + - CAST ( NULL AS INTEGER ), + col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1182
SELECT col2 + + + 61 * - - CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-246
-2799
-758

skipif mysql # not compatible
query I rowsort label-1182
SELECT col2 + + + 61 * - - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-246
-2799
-758

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT DISTINCT + MIN( col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT + MIN ( col1 ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1184
SELECT * FROM tab1 cor0 WHERE ( col2 ) NOT BETWEEN + 55 / + - col1 AND + - col0 * - CAST( NULL AS SIGNED ) + col1 + col1 * 75
----

skipif mysql # not compatible
query III rowsort label-1184
SELECT * FROM tab1 cor0 WHERE ( col2 ) NOT BETWEEN + 55 / + - col1 AND + - col0 * - CAST ( NULL AS INTEGER ) + col1 + col1 * 75
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 18 AS col2, col2 - col0 col2 FROM tab2 AS cor0
----
-18
-17
-18
-23
-18
-24

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1188
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) DIV + COUNT( * ) + - - COUNT( * ) FROM tab2 AS cor0
----
-3
4

skipif mysql # not compatible
query II rowsort label-1188
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) / + COUNT ( * ) + - - COUNT ( * ) FROM tab2 AS cor0
----
-3
4

query I rowsort
SELECT DISTINCT col1 * + 72 + 42 + + + col0 FROM tab0 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
1641
211
5889

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

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

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL + COUNT ( * ) / - 10 + + + COUNT ( * ) FROM tab1
----
3

query I rowsort
SELECT ALL col2 + - + ( - ( + + col2 ) ) FROM tab1
----
118
136
192

query I rowsort
SELECT ALL col2 * + - col1 - - + 89 FROM tab0
----
-10
-121
-3718

query I rowsort
SELECT + col0 + - ( - col2 ) + col0 AS col2 FROM tab0
----
184
293
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1195
SELECT ALL col2 + 91 / - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL col2 + 91 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1196
SELECT ALL + - MAX( + + col1 ) AS col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-1196
SELECT ALL + - MAX ( + + col1 ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT - MAX( + 98 ) + MIN( DISTINCT + col0 ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-1197
SELECT - MAX ( + 98 ) + MIN ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1198
SELECT ALL + 51 DIV + 34 + - + 66 AS col2 FROM tab0 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL + 51 / + 34 + - + 66 AS col2 FROM tab0 AS cor0
----
-65
-65
-65

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1200
SELECT ALL col2 - 99 DIV ( - col0 ) FROM tab0 AS cor0
----
100
11
53

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL col2 - 99 / ( - col0 ) FROM tab0 AS cor0
----
100
11
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT DISTINCT - + MIN( DISTINCT - col0 ) + + COUNT( * ) FROM tab1 cor0
----
94

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT - + MIN ( DISTINCT - col0 ) + + COUNT ( * ) FROM tab1 cor0
----
94

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

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

query I rowsort
SELECT + 82 + - 15 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> 86
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( 43 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 95 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1209
SELECT DISTINCT COUNT( * ) * - 54 * + COUNT( * ) * + SUM( ALL 26 ) AS col2, - 47 FROM tab0
----
-37908
-47

skipif mysql # not compatible
query II rowsort label-1209
SELECT DISTINCT COUNT ( * ) * - 54 * + COUNT ( * ) * + SUM ( ALL 26 ) AS col2, - 47 FROM tab0
----
-37908
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 66 IN ( + - ( - - col0 ) )
----
3

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 66 IN ( + - ( - - col0 ) )
----
3

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

query I rowsort
SELECT ALL + 66 AS col0 FROM tab0 cor0 WHERE - 23 >= NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1215
SELECT - COUNT( * ) DIV 5 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-1215
SELECT - COUNT ( * ) / 5 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

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

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

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

query I rowsort
SELECT - col1 * - - col1 + + 18 + - 49 FROM tab1 AS cor0
----
-2240
-227
-56

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL > - col0
----

query I rowsort
SELECT col1 + + col2 + + - 92 AS col1 FROM tab1
----
-28
18
23

query I rowsort
SELECT + - col0 FROM tab2 WHERE - col0 >= 86
----

query I rowsort
SELECT + 63 + + ( + 80 ) AS col0 FROM tab0
----
143
143
143

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

query I rowsort
SELECT DISTINCT 69 - + col1 AS col1 FROM tab1
----
22
55
64

query I rowsort
SELECT DISTINCT + col1 + + ( 9 ) FROM tab0
----
10
30
90

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1228
SELECT col0 DIV 20, + col1 AS col2 FROM tab0 AS cor0
----
0
81
4
1
4
21

skipif mysql # not compatible
query II rowsort label-1228
SELECT col0 / 20, + col1 AS col2 FROM tab0 AS cor0
----
0
81
4
1
4
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1229
SELECT 64 - - CAST( NULL AS SIGNED ) / + 2 / - CAST( NULL AS SIGNED ) + + + 44 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1229
SELECT 64 - - CAST ( NULL AS INTEGER ) / + 2 / - CAST ( NULL AS INTEGER ) + + + 44 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT - col0 + - + ( col1 ) AS col0 FROM tab2 cor0
----
-141
-142
-97

query II rowsort
SELECT ALL - - 59 AS col2, - 66 * - - col1 AS col0 FROM tab0 AS cor0
----
59
-1386
59
-5346
59
-66

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1234
SELECT MAX( ALL + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT MAX ( ALL + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query II rowsort
SELECT DISTINCT + 34 * 76 AS col1, - col2 + col1 FROM tab2
----
2584
28
2584
37
2584
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1236
SELECT ALL + CAST( + - 10 AS SIGNED ) AS col2, - 63 FROM tab0 AS cor0
----
-10
-63
-10
-63
-10
-63

skipif mysql # not compatible
query II rowsort label-1236
SELECT ALL + CAST ( + - 10 AS INTEGER ) AS col2, - 63 FROM tab0 AS cor0
----
-10
-63
-10
-63
-10
-63

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

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

query I rowsort
SELECT DISTINCT - + 16 AS col1 FROM tab2 AS cor0 WHERE 17 IS NOT NULL
----
-16

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

query I rowsort
SELECT + - 36 FROM tab2 cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT - COUNT( * ) * 54 AS col0 FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-1242
SELECT - COUNT ( * ) * 54 AS col0 FROM tab2
----
-162

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

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

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

query I rowsort
SELECT DISTINCT col2 + col2 + + 66 AS col0 FROM tab2 AS cor0
----
112
146
182

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

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

query I rowsort
SELECT DISTINCT - col0 + + - col0 AS col1 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

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

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

skipif mysql # not compatible
query I rowsort label-1250
SELECT - - ( COUNT ( - 26 ) ) FROM tab1 AS cor0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT ALL MIN( DISTINCT - ( - col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL MIN ( DISTINCT - ( - col0 ) ) FROM tab2 AS cor0
----
46

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

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

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE ( NOT ( NOT 40 IS NOT NULL ) )
----
-59
-68
-96

query I rowsort
SELECT - 33 * 24 * - - col2 FROM tab0 cor0
----
-37224
-78408
-7920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1256
SELECT + col0 * + + 93 * + CAST( NULL AS SIGNED ) / + col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

skipif mysql # not compatible
query I rowsort label-1256
SELECT + col0 * + + 93 * + CAST ( NULL AS INTEGER ) / + col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

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

query I rowsort
SELECT - col2 - + col2 AS col1 FROM tab2 WHERE + col1 + 41 + + col1 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - + 18 col2 FROM tab0
----
-8
29
81

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

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

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

query I rowsort
SELECT col2 + + col0 * 67 * - 42 FROM tab2
----
-129421
-180056
-210992

query I rowsort
SELECT ALL - 22 - - + col2 AS col0 FROM tab1
----
37
46
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT ALL 66 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL 66 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT DISTINCT - - COUNT( * ) - ( + SUM( ALL - col0 ) ) FROM tab0 AS cor0
----
202

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT - - COUNT ( * ) - ( + SUM ( ALL - col0 ) ) FROM tab0 AS cor0
----
202

query II rowsort
SELECT + col0 / + + 76 + + + col2 + + col0 + - 73, + col1 + col2 FROM tab1 AS cor0 WHERE ( - col0 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT - MAX( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1267
SELECT - MAX ( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + ( - col2 ) - 44 + + ( 44 ) * + col2 FROM tab0 AS cor0 WHERE NOT + 36 / 45 IS NULL
----
1977
386
4213

query I rowsort
SELECT DISTINCT + + col1 * - col2 * - - col0 * + col1 - + 81 * col1 AS col2 FROM tab1 cor0
----
-125780
-13673099
-960750

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1271
SELECT - CAST( NULL AS SIGNED ) + - - 74 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1271
SELECT - CAST ( NULL AS INTEGER ) + - - 74 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN - + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 10, + col1 col2 FROM tab0 AS cor0
----
10
1
10
21
10
81

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

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

query I rowsort
SELECT ALL + - col0 * + col0 * - col2 + + 89 FROM tab2 cor0
----
163929
326339
48757

query I rowsort
SELECT DISTINCT + col1 * + col0 * - - col1 AS col0 FROM tab1 AS cor0
----
201019
2125
9996

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 27 / - + col2 / - 59 = - + 9
----

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

query I rowsort
SELECT + 18 * col2 AS col1 FROM tab0
----
1782
180
846

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE + 79 IS NOT NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 * + 67 col2 FROM tab0
----
-5628
-5628
-5628

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

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

query I rowsort
SELECT + 64 + + 73 + + col2 FROM tab2
----
160
177
195

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1287
SELECT + + 1 col2, ( + + 10 ) + - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
1
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1287
SELECT + + 1 col2, ( + + 10 ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
1
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ( - COUNT( * ) ) AS col0 FROM tab0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1289
SELECT ( - COUNT ( * ) ) AS col0 FROM tab0 WHERE - col0 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 53 col2 FROM tab1 AS cor0
----
-2
32
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1291
SELECT ALL + 99 AS col1, col2 + - CAST( 88 AS SIGNED ) FROM tab2 AS cor0
----
99
-30
99
-48
99
-65

skipif mysql # not compatible
query II rowsort label-1291
SELECT ALL + 99 AS col1, col2 + - CAST ( 88 AS INTEGER ) FROM tab2 AS cor0
----
99
-30
99
-48
99
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 80, 62 col0 FROM tab1 AS cor0
----
80
62

query I rowsort
SELECT - + col0 + - 15 FROM tab2 AS cor0
----
-61
-79
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 14, col2 col1 FROM tab1 AS cor0
----
-14
59
-14
68
-14
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 83 <= - ( - - col0 )
----

query I rowsort
SELECT DISTINCT - 78 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + - col0 + 19 FROM tab1
----
-125
-128
-140

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1298
SELECT DISTINCT CAST( NULL AS DECIMAL ) - COUNT( * ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1298
SELECT DISTINCT CAST ( NULL AS REAL ) - COUNT ( * ) col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 * + 26 - + col2 * col2 col2 FROM tab0
----
-12374
-3350
-339

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

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

query III rowsort
SELECT * FROM tab2 WHERE + 70 >= - - 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 68 BETWEEN + + 63 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT + MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1303
SELECT + MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
51

query II rowsort
SELECT ALL + - col0 * col2 * - 64 AS col1, + col2 FROM tab1 AS cor0
----
313344
96
320960
59
396032
68

query I rowsort
SELECT DISTINCT - col0 + - - 96 FROM tab2 AS cor0 WHERE ( NULL ) <= - col2
----

query II rowsort
SELECT DISTINCT col1, 15 * ( + col2 ) FROM tab1 cor0 WHERE - col1 >= NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1308
SELECT 42, COUNT( * ) * + COUNT( * ) + - 66 AS col2 FROM tab2 AS cor0
----
42
-57

skipif mysql # not compatible
query II rowsort label-1308
SELECT 42, COUNT ( * ) * + COUNT ( * ) + - 66 AS col2 FROM tab2 AS cor0
----
42
-57

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

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

skipif mysql # not compatible
query I rowsort label-1310
SELECT + MIN ( DISTINCT - 31 ) FROM tab2 cor0
----
-31

query I rowsort
SELECT DISTINCT - - col0 * + - 67 AS col0 FROM tab0 AS cor0
----
-1005
-5829
-6499

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

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

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT 79 * - - ( + 45 ) * - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-10665

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1314
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 83 + + + 48 + + ( - CAST( - + col1 AS DECIMAL ) ) * - - 94 ) = - 66 * + + 67
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1314
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 83 + + + 48 + + ( - CAST ( - + col1 AS REAL ) ) * - - 94 ) = - 66 * + + 67
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT + SUM( + + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-1315
SELECT + SUM ( + + col2 ) AS col1 FROM tab1
----
223

query I rowsort
SELECT ALL - 14 + + col1 FROM tab1
----
-9
0
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1317
SELECT CAST( + + col0 AS SIGNED ) - - CAST( + + col1 AS SIGNED ) AS col1 FROM tab1 WHERE NOT + col0 IS NULL
----
138
65
90

skipif mysql # not compatible
query I rowsort label-1317
SELECT CAST ( + + col0 AS INTEGER ) - - CAST ( + + col1 AS INTEGER ) AS col1 FROM tab1 WHERE NOT + col0 IS NULL
----
138
65
90

query I rowsort
SELECT DISTINCT + ( col1 ) + - 25 FROM tab1
----
-11
-20
22

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

query I rowsort
SELECT + 1 * + col2 AS col1 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE NOT + 87 NOT BETWEEN NULL AND - 90
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1322
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1322
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col0 * col1 + - col2 AS col2 FROM tab0 AS cor0
----
-2
1168
1817

query I rowsort
SELECT - 39 * + ( col2 ) AS col0 FROM tab0 AS cor0
----
-1833
-3861
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT + - SUM( + col1 ) + 58 FROM tab2 AS cor0
----
-137

skipif mysql # not compatible
query I rowsort label-1325
SELECT + - SUM ( + col1 ) + 58 FROM tab2 AS cor0
----
-137

query I rowsort
SELECT - - 47 + + col2 AS col2 FROM tab0 AS cor0
----
146
57
94

query I rowsort
SELECT + col2 + - - col1 + + col0 AS col2 FROM tab2 AS cor0
----
120
181
200

query I rowsort
SELECT ALL - - 80 + - col2 * col1 - - 1 AS col1 FROM tab0 AS cor0
----
-129
-18
-3726

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

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

query I rowsort
SELECT DISTINCT 86 * + - col2 AS col1 FROM tab2
----
-1978
-3440
-4988

query I rowsort
SELECT + - col0 * - + col0 AS col1 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT + - col1 * - col2 - + - col0 AS col0 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT col0 * - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT DISTINCT + COUNT( DISTINCT + 81 ) col2 FROM tab0 AS cor0
----
1

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

query I rowsort
SELECT - - ( 58 ) * + 55 FROM tab1 AS cor0
----
3190
3190
3190

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1339
SELECT ALL 53 DIV COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL 53 / COUNT ( * ) FROM tab1
----
17

query I rowsort
SELECT + 38 + - col1 FROM tab2
----
-13
-29
-39

query I rowsort
SELECT + 32 AS col0 FROM tab2 WHERE - 88 + + + col2 * + 77 / - - col0 BETWEEN 84 + - col1 + col1 AND NULL
----

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

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

query I rowsort
SELECT ALL + col2 + 77 FROM tab0 WHERE + col0 = + 44
----

query II rowsort
SELECT + - col1 + - col2 AS col2, + 70 FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1345
SELECT ALL - col0 AS col0, + col2 * - col1 * col2 + + - col0 - col2 + + col2 DIV + - col0 * - col2 * 73 FROM tab2 cor0
----
-46
-27048
-64
-123304
-75
-225521

skipif mysql # not compatible
query II rowsort label-1345
SELECT ALL - col0 AS col0, + col2 * - col1 * col2 + + - col0 - col2 + + col2 / + - col0 * - col2 * 73 FROM tab2 cor0
----
-46
-27048
-64
-123304
-75
-225521

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

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

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

query I rowsort
SELECT ALL - + 33 FROM tab1 AS cor0 WHERE ( ( + + col1 ) <> col0 )
----
-33
-33
-33

query II rowsort
SELECT DISTINCT + + col0 AS col1, - col1 * - 89 * + - 24 FROM tab2 cor0
----
46
-108936
64
-164472
75
-143112

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT MIN( - ( - + col0 ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1352
SELECT MIN ( - ( - + col0 ) ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL + col1 + 18 + col1 * 28 * col0 FROM tab0 AS cor0
----
2735
34119
51195

query I rowsort
SELECT ALL + + 52 AS col2 FROM tab0 AS cor0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1355
SELECT - CAST( 32 AS SIGNED ) + + 75 FROM tab2
----
43
43
43

skipif mysql # not compatible
query I rowsort label-1355
SELECT - CAST ( 32 AS INTEGER ) + + 75 FROM tab2
----
43
43
43

query I rowsort
SELECT ALL 51 * - 4 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 7b8034b70d7f8dbacc3191e900fbf17b

query II rowsort
SELECT col1 * + - col1 + col2 + col2 * - col0, + col2 FROM tab0
----
-1301
10
-7219
47
-9505
99

query I rowsort
SELECT + 11 + 98 FROM tab1
----
109
109
109

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

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

query I rowsort
SELECT - 61 * col0 + col1 FROM tab1
----
-3097
-5180
-5504

query I rowsort
SELECT ALL - col0 * - col2 * - col2 AS col2 FROM tab0
----
-33135
-8700
-950697

query I rowsort
SELECT DISTINCT 92 * + col0 AS col0 FROM tab0
----
1380
8004
8924

query I rowsort
SELECT col1 + col1 - - 16 AS col2 FROM tab1
----
110
26
44

query I rowsort
SELECT ALL - col1 * 42 AS col1 FROM tab0
----
-3402
-42
-882

query I rowsort
SELECT ALL col1 + 81 FROM tab2 cor0
----
132
148
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1366
SELECT DISTINCT - + col2 FROM tab2 AS cor0 WHERE NOT - CAST( - col1 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT - + col2 FROM tab2 AS cor0 WHERE NOT - CAST ( - col1 AS INTEGER ) <= NULL
----

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

query I rowsort
SELECT DISTINCT + 74 * + col0 AS col0 FROM tab0
----
1110
6438
7178

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > 16
----

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

query I rowsort
SELECT + 43 * col2 AS col2 FROM tab2 AS cor0
----
1720
2494
989

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - + col1 col0 FROM tab2 AS cor0
----
2601
4489
5929

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

query I rowsort
SELECT ALL + 51 * + col0 FROM tab1
----
2601
4335
4641

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT DISTINCT ( MAX( ALL + + col0 ) ) * + 57 FROM tab0
----
5529

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT ( MAX ( ALL + + col0 ) ) * + 57 FROM tab0
----
5529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1377
SELECT ALL col1, - col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) + + 99 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1377
SELECT ALL col1, - col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) + + 99 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - - 7 ) FROM tab0 WHERE NOT - + col2 IS NULL
----
7
7
7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 50 NOT BETWEEN NULL AND + + col2
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1382
SELECT ALL COUNT( ALL col0 ) DIV - 30 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL COUNT ( ALL col0 ) / - 30 AS col0 FROM tab0 AS cor0
----
0

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

skipif mysql # not compatible
query II rowsort label-1383
SELECT + 38 AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
38
-3

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

skipif mysql # not compatible
query I rowsort label-1384
SELECT - COUNT ( DISTINCT + col0 ) FROM tab1 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1385
SELECT - col2 DIV - col1 * + + col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1385
SELECT - col2 / - col1 * + + col2 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + 85 ) >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + - 32, + col0 * - col0, + 66 * - - col0 - col0 / + - col1 )
----

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

query I rowsort
SELECT + 42 * col1 AS col2 FROM tab1 cor0
----
1974
210
588

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1393
SELECT DISTINCT - col1 DIV - col1 + col0 * col0 FROM tab0
----
226
7570
9410

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT - col1 / - col1 + col0 * col0 FROM tab0
----
226
7570
9410

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

query I rowsort
SELECT ALL col2 * + + col1 * - - 26 + - ( - + 67 ) FROM tab0
----
2641
5527
99049

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

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

query I rowsort
SELECT - + col1 * - 42 * ( 98 ) + - col2 + - 24 AS col2 FROM tab1 AS cor0
----
193360
20497
57504

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

query I rowsort
SELECT + ( col2 ) + col2 AS col0 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1400
SELECT + - CAST( NULL AS DECIMAL ) * - COUNT( * ) col0 FROM tab2 AS cor0 WHERE ( NULL ) > - col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1400
SELECT + - CAST ( NULL AS REAL ) * - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE ( NULL ) > - col1
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1403
SELECT ALL - CAST( + 82 AS SIGNED ) * - SUM( - 68 ) AS col0 FROM tab0 AS cor0
----
-16728

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL - CAST ( + 82 AS INTEGER ) * - SUM ( - 68 ) AS col0 FROM tab0 AS cor0
----
-16728

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1407
SELECT + 26 DIV - 93 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1407
SELECT + 26 / - 93 AS col2 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT ALL - 92 DIV + - col2 AS col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL - 92 / + - col2 AS col1 FROM tab2
----
1
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT DISTINCT COUNT( DISTINCT 13 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT COUNT ( DISTINCT 13 ) FROM tab0
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1411
SELECT - 92 DIV - ( + + 86 ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1411
SELECT - 92 / - ( + + 86 ) FROM tab0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT - COUNT( * ) * 74 AS col2 FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-1413
SELECT - COUNT ( * ) * 74 AS col2 FROM tab1
----
-222

query II rowsort
SELECT ALL - 55 AS col1, + 34 FROM tab2
----
-55
34
-55
34
-55
34

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL + 33, 24 AS col1 FROM tab1 cor0
----
33
24
33
24
33
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1417
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, + 67 + col0 FROM tab0 AS cor0
----
NULL
154
NULL
164
NULL
82

skipif mysql # not compatible
query II rowsort label-1417
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, + 67 + col0 FROM tab0 AS cor0
----
NULL
154
NULL
164
NULL
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1418
SELECT 58 DIV - - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
6

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1419
SELECT - 64 * - CAST( - 23 AS SIGNED ) AS col1, col2 AS col2 FROM tab0
----
-1472
10
-1472
47
-1472
99

skipif mysql # not compatible
query II rowsort label-1419
SELECT - 64 * - CAST ( - 23 AS INTEGER ) AS col1, col2 AS col2 FROM tab0
----
-1472
10
-1472
47
-1472
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - 87 + col0 IS NOT NULL
----

query I rowsort
SELECT - col2 + - 77 FROM tab2 AS cor0
----
-100
-117
-135

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NOT col1 <> NULL )
----

query I rowsort
SELECT DISTINCT - + 47 * 78 FROM tab1 AS cor0
----
-3666

query I rowsort
SELECT DISTINCT - 26 + - + ( - 77 ) + + col2 * + ( - ( + ( - 31 ) ) ) + - - col2 FROM tab2 AS cor0
----
1331
1907
787

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1426
SELECT * FROM tab2 cor0 WHERE - col0 <> + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1426
SELECT * FROM tab2 cor0 WHERE - col0 <> + CAST ( NULL AS REAL )
----

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

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

query I rowsort
SELECT ALL - 3 + + - col2 + - col1 + - + col2 * + 27 + - - 95 * - + col2 FROM tab1
----
-11825
-7265
-8414

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col2 * - + col2 + + 91 IS NOT NULL
----

query I rowsort
SELECT + col1 + 95 FROM tab0
----
116
176
96

query I rowsort
SELECT DISTINCT col2 + + - col0 * - 78 + - 83 FROM tab2 WHERE NULL IS NULL
----
3528
4949
5825

onlyif mysql # DIV for integer division: 
query I rowsort label-1433
SELECT ALL 85 + - col2 DIV + - col2 FROM tab2
----
86
86
86

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL 85 + - col2 / + - col2 FROM tab2
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col1 FROM tab1
----
69
69
69

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col1 col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT + col1 - - 45 FROM tab2 AS cor0
----
112
122
96

query II rowsort
SELECT + 36 - 80 AS col2, 53 + - - col0 AS col1 FROM tab0
----
-44
140
-44
150
-44
68

onlyif mysql # DIV for integer division: 
query II rowsort label-1439
SELECT DISTINCT + 47 - + col0 AS col0, ( + col0 ) DIV - col1 + - col1 FROM tab0
----
-40
-25
-50
-98
32
-81

skipif mysql # not compatible
query II rowsort label-1439
SELECT DISTINCT + 47 - + col0 AS col0, ( + col0 ) / - col1 + - col1 FROM tab0
----
-40
-25
-50
-98
32
-81

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

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

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

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

query I rowsort
SELECT col2 * - col0 * + - 10 AS col0 FROM tab1 cor0
----
48960
50150
61880

query II rowsort
SELECT DISTINCT col0 * - col1 AS col0, 67 * - 57 AS col1 FROM tab2 AS cor0
----
-2346
-3819
-4928
-3819
-5025
-3819

query I rowsort
SELECT ALL col1 FROM tab2 cor0 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT ( + 53 ) * col1 + col0 FROM tab2 AS cor0
----
2749
3626
4145

query I rowsort
SELECT 86 * + - 83 * col0 AS col1 FROM tab1
----
-364038
-606730
-649558

query I rowsort
SELECT DISTINCT 42 * - col2 AS col0 FROM tab1
----
-2478
-2856
-4032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1448
SELECT ALL MIN( ALL - col0 ) DIV MAX( col1 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL MIN ( ALL - col0 ) / MAX ( col1 ) FROM tab1
----
-1

query II rowsort
SELECT - col2 AS col2, + 89 AS col1 FROM tab0
----
-10
89
-47
89
-99
89

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

query I rowsort
SELECT DISTINCT + - 64 AS col0 FROM tab1 AS cor0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1452
SELECT - 44 DIV - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1452
SELECT - 44 / - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT 54 * + MAX( ALL - col2 ) * + + 98 FROM tab1 AS cor0
----
-312228

skipif mysql # not compatible
query I rowsort label-1453
SELECT 54 * + MAX ( ALL - col2 ) * + + 98 FROM tab1 AS cor0
----
-312228

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NULL BETWEEN NULL AND 84
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 >= + - 82
----
87
21
10
97
1
99

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

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

query I rowsort
SELECT ALL + col2 * - col1 * - col2 AS col1 FROM tab1 AS cor0
----
129024
17405
217328

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1460
SELECT + 89 DIV + MIN( - col2 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1460
SELECT + 89 / + MIN ( - col2 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL col1 * ( 68 ) + - col2 FROM tab0 AS cor0
----
-31
1418
5461

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1463
SELECT ALL - col2 DIV - ( - 79 ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL - col2 / - ( - 79 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 58 + - col0 * - col1 + + col0 FROM tab1 AS cor0
----
4426
568
823

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL + MAX( 66 ) AS col0 FROM tab0 AS cor0 WHERE NULL <> - ( - ( col2 ) ) + - 73 / + ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL + MAX ( 66 ) AS col0 FROM tab0 AS cor0 WHERE NULL <> - ( - ( col2 ) ) + - 73 / + ( - col1 )
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1469
SELECT DISTINCT 20 DIV - - COUNT( * ) AS col2 FROM tab2, tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT 20 / - - COUNT ( * ) AS col2 FROM tab2, tab1 AS cor0
----
2

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

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

query I rowsort
SELECT + - 38 + col1 FROM tab0 AS cor0
----
-17
-37
43

query I rowsort
SELECT ALL - 45 * - col0 - - 72 + - col2 * + - col2 + + 9 * + col2 - + - col1 AS col1 FROM tab1 cor0
----
12461
7914
9450

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

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 59 = col2
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT DISTINCT 75 * - MIN( - col2 ) AS col0 FROM tab1 AS cor0
----
7200

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT 75 * - MIN ( - col2 ) AS col0 FROM tab1 AS cor0
----
7200

query I rowsort
SELECT - ( - 17 ) FROM tab1
----
17
17
17

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

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

query I rowsort
SELECT col2 * - + 73 AS col0 FROM tab0
----
-3431
-7227
-730

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

query I rowsort
SELECT col1 * - 25 * + 30 FROM tab1
----
-10500
-35250
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT ALL + SUM( DISTINCT + 4 ) AS col0 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL + SUM ( DISTINCT + 4 ) AS col0 FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1486
SELECT COUNT( * ), 32 AS col0 FROM tab0 WHERE NOT ( - + col2 ) > + col0 * + + col1 / - - col2 * + col2
----
3
32

skipif mysql # not compatible
query II rowsort label-1486
SELECT COUNT ( * ), 32 AS col0 FROM tab0 WHERE NOT ( - + col2 ) > + col0 * + + col1 / - - col2 * + col2
----
3
32

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1488
SELECT ALL - col2 DIV - + col0 + + 96 AS col2, col2 AS col1 FROM tab0 cor0
----
96
10
97
99
99
47

skipif mysql # not compatible
query II rowsort label-1488
SELECT ALL - col2 / - + col0 + + 96 AS col2, col2 AS col1 FROM tab0 cor0
----
96
10
97
99
99
47

query I rowsort
SELECT DISTINCT - col2 * - + 60 AS col1 FROM tab2 AS cor0
----
1380
2400
3480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1490
SELECT - + col0 * + CAST( - - CAST( + col2 AS SIGNED ) AS SIGNED ) + + col0 * - col2 * - col1 * - + col2 AS col1 FROM tab2 cor0
----
-1242092
-16908450
-7887360

skipif mysql # not compatible
query I rowsort label-1490
SELECT - + col0 * + CAST ( - - CAST ( + col2 AS INTEGER ) AS INTEGER ) + + col0 * - col2 * - col1 * - + col2 AS col1 FROM tab2 cor0
----
-1242092
-16908450
-7887360

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

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

query I rowsort
SELECT + col1 + - col2 * + col0 FROM tab2
----
-1007
-2483
-4283

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT 53 + - + COUNT( * ) col0 FROM tab0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1493
SELECT 53 + - + COUNT ( * ) col0 FROM tab0
----
50

query I rowsort
SELECT DISTINCT 4 + 92 AS col1 FROM tab1
----
96

query III rowsort
SELECT * FROM tab2 WHERE NULL > ( - - col2 ) + - col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT + COUNT( ALL - col0 ) * + 31 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-1497
SELECT + COUNT ( ALL - col0 ) * + 31 FROM tab0
----
93

query I rowsort
SELECT ALL + 47 - col1 FROM tab1
----
0
33
42

query II rowsort
SELECT DISTINCT - col0 AS col2, - 87 * - + col0 AS col0 FROM tab0
----
-15
1305
-87
7569
-97
8439

query I rowsort
SELECT DISTINCT - + 51 - + - ( 38 ) FROM tab1 AS cor0
----
-13

query I rowsort
SELECT DISTINCT + - 55 * col2 FROM tab0 AS cor0
----
-2585
-5445
-550

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, 75 * + + 45 + col0 col1 FROM tab0 WHERE NOT NULL BETWEEN col1 AND - + col2
----

query I rowsort
SELECT - + 41 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT - + MAX( ALL 62 ) FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-1505
SELECT - + MAX ( ALL 62 ) FROM tab2 AS cor0
----
-62

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

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

query I rowsort
SELECT ALL - + ( col0 ) * - col0 + 24 FROM tab2 WHERE NOT - col0 IS NULL
----
2140
4120
5649

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT DISTINCT + MIN( DISTINCT - 36 ) AS col2 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-1508
SELECT DISTINCT + MIN ( DISTINCT - 36 ) AS col2 FROM tab0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1509
SELECT DISTINCT + + col1 DIV + - col2 + ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-12
-48
-99

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT + + col1 / + - col2 + ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-12
-48
-99

query I rowsort
SELECT - col1 * + 84 AS col2 FROM tab0
----
-1764
-6804
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 72 col0 FROM tab2
----
-14
-32
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT DISTINCT MAX( ALL col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1512
SELECT DISTINCT MAX ( ALL col2 ) AS col0 FROM tab0
----
99

query I rowsort
SELECT DISTINCT + ( 70 ) * col0 + + 62 AS col1 FROM tab0
----
1112
6152
6852

query I rowsort
SELECT 88 * + col1 AS col2 FROM tab2
----
4488
5896
6776

query I rowsort
SELECT ALL - AVG ( ALL col1 ) * 53 AS col0 FROM tab2 WHERE ( + col2 ) IN ( + 29 )
----
NULL

query I rowsort
SELECT col1 * + 4 + ( 96 ) AS col1 FROM tab2
----
300
364
404

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT + COUNT( ALL - col2 ) + - 67 AS col0 FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-1517
SELECT + COUNT ( ALL - col2 ) + - 67 AS col0 FROM tab0
----
-64

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * 53 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1520
SELECT ALL - 41 DIV - col1 AS col0 FROM tab0
----
0
1
41

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL - 41 / - col1 AS col0 FROM tab0
----
0
1
41

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

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

skipif mysql # not compatible
query I rowsort label-1522
SELECT - MIN ( + col1 ) + - 37 AS col1 FROM tab2
----
-88

query I rowsort
SELECT col2 * col1 + - 30 FROM tab1
----
1314
265
3166

query I rowsort
SELECT DISTINCT + 92 * - col2 AS col0 FROM tab1
----
-5428
-6256
-8832

query I rowsort
SELECT col1 * + col2 + 76 FROM tab0
----
175
286
3883

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) * + col1 + 71 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT COUNT( * ) FROM tab2 WHERE NOT 42 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1527
SELECT COUNT ( * ) FROM tab2 WHERE NOT 42 = NULL
----
0

query I rowsort
SELECT DISTINCT + 51 + col1 AS col0 FROM tab1
----
56
65
98

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT ALL COUNT( * ) FROM tab1 WHERE ( NULL ) BETWEEN ( col2 ) AND ( + 64 )
----
0

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( NULL ) BETWEEN ( col2 ) AND ( + 64 )
----
0

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1534
SELECT DISTINCT - MAX( col1 ) DIV 68 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT - MAX ( col1 ) / 68 FROM tab2
----
-1

query I rowsort
SELECT ( col1 ) - - col2 * - col2 AS col2 FROM tab2
----
-1523
-3297
-478

query I rowsort
SELECT - col1 * 34 FROM tab0
----
-2754
-34
-714

query I rowsort
SELECT + 95 * 9 FROM tab1
----
855
855
855

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT ALL + COUNT( * ) + - 68 AS col1 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL + COUNT ( * ) + - 68 AS col1 FROM tab1
----
-65

query I rowsort
SELECT ALL 80 * - 95 + col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT ALL MIN( ALL + 68 ) AS col1 FROM tab2 cor0
----
68

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL MIN ( ALL + 68 ) AS col1 FROM tab2 cor0
----
68

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1543
SELECT DISTINCT - + CAST( + 64 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-64

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

query I rowsort
SELECT DISTINCT + + col0 * + 59 FROM tab0 cor0
----
5133
5723
885

query I rowsort
SELECT DISTINCT 11 * col1 AS col1 FROM tab0 AS cor0
----
11
231
891

query I rowsort
SELECT ALL - 14 + col0 FROM tab1
----
37
71
77

query III rowsort
SELECT ALL * FROM tab1 WHERE - 13 * 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT - COUNT( * ) * 86 * ( - COUNT( * ) ) + 49 FROM tab1
----
823

skipif mysql # not compatible
query I rowsort label-1548
SELECT - COUNT ( * ) * 86 * ( - COUNT ( * ) ) + 49 FROM tab1
----
823

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 / - col2 - + 64 <> ( 8 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1551
SELECT * FROM tab1 WHERE ( col0 ) NOT IN ( CAST( + 41 AS SIGNED ) ) OR NOT ( NULL ) > col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1551
SELECT * FROM tab1 WHERE ( col0 ) NOT IN ( CAST ( + 41 AS INTEGER ) ) OR NOT ( NULL ) > col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 47 * 81 NOT IN ( 38 )
----

query I rowsort
SELECT ALL - 39 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT ALL ( - MIN( DISTINCT - 76 ) ) FROM tab1 WHERE NOT ( - col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL ( - MIN ( DISTINCT - 76 ) ) FROM tab1 WHERE NOT ( - col0 ) IS NOT NULL
----
NULL

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

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

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

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

query I rowsort
SELECT ALL 40 - - 37 * - AVG ( - col0 * + 53 ) FROM tab1 WHERE ( NOT ( 60 ) NOT IN ( + col0 ) )
----
NULL

query I rowsort
SELECT ALL + 2 + - col1 AS col0 FROM tab1
----
-12
-3
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-1562
SELECT col2 AS col2, col1 DIV + 8 AS col0 FROM tab2
----
23
6
40
9
58
8

skipif mysql # not compatible
query II rowsort label-1562
SELECT col2 AS col2, col1 / + 8 AS col0 FROM tab2
----
23
6
40
9
58
8

query I rowsort
SELECT ALL + col2 + - + 76 FROM tab2
----
-18
-36
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT DISTINCT + COUNT( * ) + 0 + + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT + COUNT ( * ) + 0 + + COUNT ( * ) AS col0 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT DISTINCT SUM( DISTINCT col2 ) AS col0 FROM tab0 WHERE ( NOT ( col1 ) < ( 14 ) )
----
57

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT SUM ( DISTINCT col2 ) AS col0 FROM tab0 WHERE ( NOT ( col1 ) < ( 14 ) )
----
57

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1567
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( + - col2 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-1567
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( + - col2 AS INTEGER ) = NULL
----

query I rowsort
SELECT + 91 FROM tab2 AS cor0 WHERE NULL > ( + ( - col0 ) * - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1569
SELECT ALL - 58 AS col0, - SUM( DISTINCT - col0 ) FROM tab2 AS cor0
----
-58
185

skipif mysql # not compatible
query II rowsort label-1569
SELECT ALL - 58 AS col0, - SUM ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-58
185

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT - + COUNT( * ) * + ( + SUM( - 98 ) ) FROM tab1 AS cor0
----
882

skipif mysql # not compatible
query I rowsort label-1570
SELECT - + COUNT ( * ) * + ( + SUM ( - 98 ) ) FROM tab1 AS cor0
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT ALL COUNT( * ) * + MIN( ALL - - 79 ) + - 23 col1 FROM tab1 AS cor0
----
214

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1571
SELECT ALL COUNT ( * ) * + MIN ( ALL - - 79 ) + - 23 col1 FROM tab1 AS cor0
----
214

query I rowsort
SELECT col1 AS col1 FROM tab0 cor0 WHERE - col1 + + col0 > NULL
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 43 * - + 17 ) IN ( 53 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT SUM( DISTINCT + 13 ) * - - 5 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-1576
SELECT SUM ( DISTINCT + 13 ) * - - 5 FROM tab2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1577
SELECT AVG ( ALL CAST( NULL AS SIGNED ) ) col1, 49 FROM tab0
----
NULL
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1577
SELECT AVG ( ALL CAST ( NULL AS INTEGER ) ) col1, 49 FROM tab0
----
NULL
49

query I rowsort
SELECT 17 * + - col2 FROM tab1
----
-1003
-1156
-1632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab2 WHERE NOT ( + 54 ) <> NULL
----

query I rowsort
SELECT ALL 99 * + col2 * col0 * + col2 AS col1 FROM tab1
----
29292615
41657616
46531584

query I rowsort
SELECT DISTINCT 42 - + col1 * col1 AS col2 FROM tab0 WHERE + 12 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1582
SELECT DISTINCT * FROM tab0 WHERE 36 - CAST( - 52 AS SIGNED ) + - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1582
SELECT DISTINCT * FROM tab0 WHERE 36 - CAST ( - 52 AS INTEGER ) + - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 / - 61 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT + COUNT( DISTINCT + 57 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1585
SELECT + COUNT ( DISTINCT + 57 ) FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT + SUM( 97 ) FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-1586
SELECT + SUM ( 97 ) FROM tab1 AS cor0
----
291

query I rowsort
SELECT + col2 * - 74 FROM tab2 AS cor0
----
-1702
-2960
-4292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1588
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col2, MIN( col2 ) AS col2 FROM tab0 AS cor0
----
3
10

skipif mysql # not compatible
query II rowsort label-1588
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col2, MIN ( col2 ) AS col2 FROM tab0 AS cor0
----
3
10

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

query I rowsort
SELECT DISTINCT + 2 * + 84 AS col0 FROM tab1
----
168

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 * + - col1 / - + 30 + + col1 + + col2 ) <= + col2 * - col1 - + col0 * - col1
----
51
14
96

query I rowsort
SELECT ( ( 61 ) ) FROM tab1
----
61
61
61

query I rowsort
SELECT - 96 + 21 FROM tab0 WHERE NOT NULL NOT IN ( - - col0 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1596
SELECT - + col0 col1, + 73 - - col1 * - CAST( - + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
3880
-87
283
-97
172

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1596
SELECT - + col0 col1, + 73 - - col1 * - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
3880
-87
283
-97
172

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT + MIN( ALL - 43 ) FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-1597
SELECT + MIN ( ALL - 43 ) FROM tab1 AS cor0
----
-43

query I rowsort
SELECT DISTINCT - col2 * - - col2 FROM tab2 AS cor0
----
-1600
-3364
-529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * - 70 col2 FROM tab0 AS cor0
----
-5810
-5810
-5810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < + - 70 * + - 48 - 48 / - 61
----

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

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

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

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

query I rowsort
SELECT ALL - 13 AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 + + 7 - col0 + col1 * 25 ) >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1604
SELECT DISTINCT COUNT( ALL ( - col1 ) ) DIV + 61 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( - 45 * - 8 )
----
0

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT COUNT ( ALL ( - col1 ) ) / + 61 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( - 45 * - 8 )
----
0

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT 70 + + col1 NOT IN ( - + 48 )
----

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

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

query I rowsort
SELECT ALL 74 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # DIV for integer division: 
query I rowsort label-1608
SELECT 24 DIV - - 40 * - + col2 col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1608
SELECT 24 / - - 40 * - + col2 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 + + + 22 AS col2 FROM tab0 AS cor0
----
121
32
69

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col0 + - col2 * - col2 * - - col0 - + - col1 ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT MIN ( + + 90 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1612
SELECT DISTINCT - 60 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE col2 * - - col1 / + - col0 <= - - col0 * - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT - 60 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE col2 * - - col1 / + - col0 <= - - col0 * - - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT DISTINCT COUNT( 94 ) - COUNT( DISTINCT - + 83 ) AS col0 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT COUNT ( 94 ) - COUNT ( DISTINCT - + 83 ) AS col0 FROM tab0 AS cor0
----
2

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

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE col0 + + col0 >= - + col2
----
51
67
77

query I rowsort
SELECT col2 - - col2 * + col2 FROM tab1 AS cor0
----
3540
4692
9312

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

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

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

query I rowsort
SELECT + - col0 AS col1 FROM tab1 AS cor0 WHERE ( col0 ) <= 70
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - col2 * + + 0 col0, 26 * + col1 FROM tab2
----
0
1326
0
1742
0
2002

query I rowsort
SELECT 46 * + col0 AS col2 FROM tab2
----
2116
2944
3450

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1623
SELECT 86 DIV - 17 FROM tab2
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-1623
SELECT 86 / - 17 FROM tab2
----
-5
-5
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT - MAX( ALL - 50 ) FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-1625
SELECT - MAX ( ALL - 50 ) FROM tab1
----
50

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 * - 16 = - col2
----

query II rowsort
SELECT DISTINCT - 38, col1 FROM tab2
----
-38
51
-38
67
-38
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT + ( - - MIN( ALL 84 ) ) AS col2 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-1629
SELECT + ( - - MIN ( ALL 84 ) ) AS col2 FROM tab0
----
84

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

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL + COUNT ( * ) * + 6 AS col0 FROM tab1 AS cor0
----
18

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 25 <> ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT ALL + SUM( - ( + col2 ) ) * - ( - + 80 ) + COUNT( * ) FROM tab0 AS cor0
----
-12477

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL + SUM ( - ( + col2 ) ) * - ( - + 80 ) + COUNT ( * ) FROM tab0 AS cor0
----
-12477

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT ALL - col0 * + col0 + 90 + + 32 DIV - col1 - - col2 FROM tab0 AS cor0
----
-7470
-88
-9252

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL - col0 * + col0 + 90 + + 32 / - col1 - - col2 FROM tab0 AS cor0
----
-7470
-88
-9252

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

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

query I rowsort
SELECT col2 FROM tab1 WHERE NULL IN ( - 5 )
----

query I rowsort
SELECT DISTINCT - col0 + 35 FROM tab0
----
-52
-62
20

query I rowsort
SELECT ALL col2 * col1 * - + col0 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT ALL - 71 * + col1 + + col2 + + col1 * - - col2 AS col1 FROM tab1
----
-1
-73
446

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1642
SELECT + COUNT( * ) AS col2, 11 FROM tab1 WHERE col2 <= CAST( NULL AS DECIMAL ) + 43
----
0
11

skipif mysql # not compatible
query II rowsort label-1642
SELECT + COUNT ( * ) AS col2, 11 FROM tab1 WHERE col2 <= CAST ( NULL AS REAL ) + 43
----
0
11

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( col0 ) / col2 - col2 * - col2 + - 50 <> + col1 ) )
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - 68 * + col1 > - + 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT ALL - + 78 * + 6 + - MAX( - col1 ) AS col0 FROM tab2 AS cor0
----
-417

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL - + 78 * + 6 + - MAX ( - col1 ) AS col0 FROM tab2 AS cor0
----
-417

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1650
SELECT + - 73 - - col2 DIV 6 * col1 DIV + + CAST( + 82 AS SIGNED ) FROM tab1 AS cor0
----
-67
-71
-73

skipif mysql # not compatible
query I rowsort label-1650
SELECT + - 73 - - col2 / 6 * col1 / + + CAST ( + 82 AS INTEGER ) FROM tab1 AS cor0
----
-67
-71
-73

query I rowsort
SELECT + - 17 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT - 74 * - - 57 FROM tab2 cor0 WHERE col2 >= + - col0
----
-4218
-4218
-4218

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1653
SELECT + CAST( NULL AS SIGNED ) AS col0, + col0 AS col2 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-1653
SELECT + CAST ( NULL AS INTEGER ) AS col0, + col0 AS col2 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1654
SELECT + + CAST( NULL AS DECIMAL ) * col1 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-1654
SELECT + + CAST ( NULL AS REAL ) * col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

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

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

query I rowsort
SELECT - col2 * + + col2 AS col0 FROM tab2
----
-1600
-3364
-529

query II rowsort
SELECT DISTINCT - ( + - col1 ) AS col2, col0 FROM tab0
----
1
97
21
87
81
15

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1662
SELECT col1 DIV - - 76 + - 46 AS col2, + col0 FROM tab0
----
-45
15
-46
87
-46
97

skipif mysql # not compatible
query II rowsort label-1662
SELECT col1 / - - 76 + - 46 AS col2, + col0 FROM tab0
----
-45
15
-46
87
-46
97

query II rowsort
SELECT ALL - 4, 44 AS col0 FROM tab2
----
-4
44
-4
44
-4
44

onlyif mysql # DIV for integer division: 
query II rowsort label-1664
SELECT 93 DIV col1 * + + col2 AS col2, + col2 AS col0 FROM tab0
----
40
10
47
47
9207
99

skipif mysql # not compatible
query II rowsort label-1664
SELECT 93 / col1 * + + col2 AS col2, + col2 AS col0 FROM tab0
----
40
10
47
47
9207
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT DISTINCT 35 * + SUM( + - 99 ) - + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL < 68 - + + ( + ( - 47 ) ) + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT 35 * + SUM ( + - 99 ) - + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL < 68 - + + ( + ( - 47 ) ) + - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT - ( - COUNT( * ) ) * MIN( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-1666
SELECT - ( - COUNT ( * ) ) * MIN ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT DISTINCT - COUNT( * ) * + - COUNT( + 35 ) * - 86 AS col0 FROM tab2 cor0
----
-774

skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( + 35 ) * - 86 AS col0 FROM tab2 cor0
----
-774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 * + 55 col1 FROM tab2 AS cor0
----
3465
3465
3465

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1670
SELECT 76 * col2 DIV col2, 50 AS col1 FROM tab2 AS cor0
----
76
50
76
50
76
50

skipif mysql # not compatible
query II rowsort label-1670
SELECT 76 * col2 / col2, 50 AS col1 FROM tab2 AS cor0
----
76
50
76
50
76
50

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1671
SELECT * FROM tab1 AS cor0 WHERE ( - CAST( NULL AS DECIMAL ) * + col1 + + col0 IN ( + - col0, - col2 * - col2, - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-1671
SELECT * FROM tab1 AS cor0 WHERE ( - CAST ( NULL AS REAL ) * + col1 + + col0 IN ( + - col0, - col2 * - col2, - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT DISTINCT + ( MAX( DISTINCT + col2 ) ) AS col1 FROM tab1 WHERE - - col0 / + + col1 - col0 + + 98 + - - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT + ( MAX ( DISTINCT + col2 ) ) AS col1 FROM tab1 WHERE - - col0 / + + col1 - col0 + + 98 + - - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT ALL ( + 47 ) * + 51 + - ( COUNT( * ) ) FROM tab1
----
2394

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL ( + 47 ) * + 51 + - ( COUNT ( * ) ) FROM tab1
----
2394

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 BETWEEN ( - col0 ) AND + 48
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT + col2 * + + col0 * + + col0 AS col0 FROM tab2
----
163840
326250
48668

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT + col0 + + col0 DIV - 33 col0 FROM tab2
----
45
63
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1676
SELECT + col0 + + col0 / - 33 col0 FROM tab2
----
45
63
73

query I rowsort
SELECT + + 30 * + col2 + + - col0 FROM tab2 AS cor0
----
1136
1665
644

onlyif mysql # DIV for integer division: 
query I rowsort label-1678
SELECT ALL + 59 DIV + col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL + 59 / + col0 FROM tab2 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 * 43 col1 FROM tab0 AS cor0
----
-56
3436
893

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

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL COUNT ( + 51 ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT col2 + 5 FROM tab2
----
28
45
63

query I rowsort
SELECT DISTINCT + col2 + - ( + + 71 ) FROM tab1
----
-12
-3
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 + + col1 * - 23 col2 FROM tab1
----
-175
-922
29

onlyif mysql # aggregate syntax: 
query II rowsort label-1684
SELECT ALL ( + - COUNT( * ) ) + - 99, 18 AS col2 FROM tab0
----
-102
18

skipif mysql # not compatible
query II rowsort label-1684
SELECT ALL ( + - COUNT ( * ) ) + - 99, 18 AS col2 FROM tab0
----
-102
18

query I rowsort
SELECT + 29 - 17 FROM tab0
----
12
12
12

query I rowsort
SELECT 97 * + - col2 AS col2 FROM tab2 WHERE NOT + col0 NOT IN ( - + 73 - - - col0 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1688
SELECT COUNT( * ), + 22 * - - MAX( 50 ) AS col2 FROM tab1
----
3
1100

skipif mysql # not compatible
query II rowsort label-1688
SELECT COUNT ( * ), + 22 * - - MAX ( 50 ) AS col2 FROM tab1
----
3
1100

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 81 - - - col1 <> + 80 + + - col0 + - col1 / - - 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 93, 68 AS col2 FROM tab0
----
93
68
93
68
93
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT + COUNT( 40 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1692
SELECT + COUNT ( 40 ) FROM tab1
----
3

query II rowsort
SELECT ALL col0, 9 FROM tab0
----
15
9
87
9
97
9

query I rowsort
SELECT + + AVG ( ALL - col1 ) AS col2 FROM tab1 WHERE NOT + col0 * - + col2 + + col2 < + 29
----
NULL

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

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

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

query I rowsort
SELECT ALL + col0 + + 56 + + - 17 / col0 * - 10 * - col2 FROM tab2 WHERE NOT - col1 * col2 + - col2 IS NOT NULL
----

query I rowsort
SELECT + - 12 / + + col2 AS col0 FROM tab0 WHERE NOT - + col2 + + col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1699
SELECT DISTINCT 67 DIV - 88 * - col2 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT 67 / - 88 * - col2 AS col1 FROM tab0
----
0

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

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

query I rowsort
SELECT DISTINCT + - 28 AS col0 FROM tab0 AS cor0
----
-28

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

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

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

query II rowsort
SELECT DISTINCT - 83 + + 20, 97 AS col1 FROM tab1 AS cor0
----
-63
97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1707
SELECT ALL 61 DIV - col1 AS col0 FROM tab0 AS cor0 WHERE + ( + col2 ) NOT IN ( - col1 * - 14, + col0, col1 )
----
-2
-61
0

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL 61 / - col1 AS col0 FROM tab0 AS cor0 WHERE + ( + col2 ) NOT IN ( - col1 * - 14, + col0, col1 )
----
-2
-61
0

query I rowsort
SELECT ( - 86 ) + + col2 * + - 45 FROM tab1
----
-2741
-3146
-4406

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT ALL - 79 * 58 + ( - + ( - + SUM( - col0 ) ) ) AS col0 FROM tab2
----
-4767

skipif mysql # not compatible
query I rowsort label-1709
SELECT ALL - 79 * 58 + ( - + ( - + SUM ( - col0 ) ) ) AS col0 FROM tab2
----
-4767

query III rowsort
SELECT * FROM tab2 WHERE 26 < NULL
----

query II rowsort
SELECT col1 AS col1, col0 AS col0 FROM tab2
----
51
46
67
75
77
64

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

query I rowsort
SELECT DISTINCT - 66 + - + col1 FROM tab2 WHERE ( + 41 * 15 * - 87 IS NULL )
----

query I rowsort
SELECT DISTINCT + + col2 - + 71 AS col2 FROM tab2 AS cor0
----
-13
-31
-48

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col0 / col2 + + col0 + + - 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1717
SELECT ALL 46 AS col2, col1 FROM tab0 cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-1717
SELECT ALL 46 AS col2, col1 FROM tab0 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT + col1 - ( - - col2 ) FROM tab1 AS cor0
----
-21
-54
-82

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

skipif mysql # not compatible
query I rowsort label-1719
SELECT + MIN ( + col0 ) FROM tab2 cor0
----
46

query II rowsort
SELECT DISTINCT + col1 + + col0, + 12 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

query I rowsort
SELECT ALL - 64 FROM tab2 AS cor0 WHERE NULL <= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1723
SELECT DISTINCT - - col1 * + ( - CAST( 81 AS SIGNED ) ) FROM tab0 AS cor0
----
-1701
-6561
-81

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT - - col1 * + ( - CAST ( 81 AS INTEGER ) ) FROM tab0 AS cor0
----
-1701
-6561
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col0 col1 FROM tab0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab2 WHERE NOT + 45 * + + 49 * - col2 + 92 NOT IN ( - + ( - col0 ), - col2 - col1 / + + 95 * - + 25 )
----

query I rowsort
SELECT DISTINCT - - 82 * - - col1 FROM tab2 WHERE NOT + col2 BETWEEN - col1 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL - MIN ( ALL col0 ) FROM tab2
----
-46

query I rowsort
SELECT 48 * - ( + 30 ) AS col0 FROM tab2
----
-1440
-1440
-1440

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

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

query I rowsort
SELECT - + ( + col0 ) + - col2 AS col1 FROM tab2 AS cor0
----
-104
-133
-69

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + col1 AND col1
----

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

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

query I rowsort
SELECT + + 50 * + col2 AS col2 FROM tab2 AS cor0
----
1150
2000
2900

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT 31 + + - MAX( + + col2 ) AS col1 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-1735
SELECT 31 + + - MAX ( + + col2 ) AS col1 FROM tab0
----
-68

query I rowsort
SELECT DISTINCT - col0 + col1 + 44 AS col2 FROM tab2
----
36
49
57

query I rowsort
SELECT DISTINCT 71 + - 27 FROM tab2
----
44

query I rowsort
SELECT DISTINCT - 83 * + + col1 - + col1 - - + col1 FROM tab1
----
-1162
-3901
-415

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT DISTINCT SUM( DISTINCT + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT SUM ( DISTINCT + col2 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT DISTINCT + col2 - - col1 - + col2 FROM tab1
----
14
47
5

query I rowsort
SELECT - 95 * ( - + col2 ) + + + 4 FROM tab2 AS cor0
----
2189
3804
5514

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

query I rowsort
SELECT DISTINCT - 4 - + 18 AS col1 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-22

query I rowsort
SELECT - 26 * - - col2 FROM tab2 AS cor0
----
-1040
-1508
-598

onlyif mysql # DIV for integer division: 
query II rowsort label-1746
SELECT DISTINCT + 41, - 58 DIV - col2 AS col1 FROM tab2
----
41
1
41
2

skipif mysql # not compatible
query II rowsort label-1746
SELECT DISTINCT + 41, - 58 / - col2 AS col1 FROM tab2
----
41
1
41
2

query II rowsort
SELECT ALL - 14 AS col2, - 89 * - col1 FROM tab1 AS cor0
----
-14
1246
-14
4183
-14
445

query I rowsort
SELECT DISTINCT - + col2 * - 60 FROM tab1 AS cor0
----
3540
4080
5760

query I rowsort
SELECT col1 * - col0 * - col0 * + ( + col0 ) FROM tab1
----
1857114
3070625
35417837

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * - - ( - 28 ) * - col2 + - - col0 + - + 15 IS NOT NULL
----

query I rowsort
SELECT col1 * - 44 FROM tab2
----
-2244
-2948
-3388

query I rowsort
SELECT col2 * 15 + + + col2 AS col0 FROM tab2
----
368
640
928

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

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

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

query I rowsort
SELECT ALL + + 27 * - 72 * - 62 FROM tab0 AS cor0
----
120528
120528
120528

query I rowsort
SELECT ALL + - col1 * + - col1 + col1 FROM tab1 AS cor0
----
210
2256
30

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL IN ( + - col1, col0 * + 63 ) )
----

query I rowsort
SELECT ALL - 28 FROM tab0 cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT DISTINCT - MAX( ALL - + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT - MAX ( ALL - + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1761
SELECT + 27 * ( - col2 ) + + col2 + + - ( + 60 ) DIV + - col2 + + col0 AS col0 FROM tab1 cor0
----
-1448
-1677
-2445

skipif mysql # not compatible
query I rowsort label-1761
SELECT + 27 * ( - col2 ) + + col2 + + - ( + 60 ) / + - col2 + + col0 AS col0 FROM tab1 cor0
----
-1448
-1677
-2445

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT + ( + COUNT( * ) ) + + 58 AS col0 FROM tab2 cor0
----
61

skipif mysql # not compatible
query I rowsort label-1762
SELECT + ( + COUNT ( * ) ) + + 58 AS col0 FROM tab2 cor0
----
61

query I rowsort
SELECT + col0 + col2 * + col0 FROM tab2 AS cor0
----
1104
2624
4425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 29 AS col2, ( + 46 ) col1 FROM tab1
----
29
46
29
46
29
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, col1 + + 35 AS col1 FROM tab1
----
-14
49
-47
82
-5
40

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

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

query III rowsort
SELECT * FROM tab1 WHERE + col2 / - - col2 / 53 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 + - col1 col2 FROM tab1
----
420
4230
700

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT DISTINCT + COUNT( * ) + - 86 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT + COUNT ( * ) + - 86 FROM tab1
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1771
SELECT DISTINCT 14 - + col1 DIV + col0 AS col1 FROM tab2
----
13
14

skipif mysql # not compatible
query I rowsort label-1771
SELECT DISTINCT 14 - + col1 / + col0 AS col1 FROM tab2
----
13
14

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

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

query I rowsort
SELECT DISTINCT + + 33 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1774
SELECT ALL col0 * - CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL
NULL
NULL

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

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

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

skipif mysql # not compatible
query II rowsort label-1776
SELECT ALL + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) AS col2, + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

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

skipif mysql # not compatible
query I rowsort label-1777
SELECT CAST ( COUNT ( ALL + col2 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1778
SELECT DISTINCT - col0 DIV - col0 + 58 * col1 * + 34 + + col2 AS col1 FROM tab0 AS cor0
----
159780
2072
41423

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT - col0 / - col0 + 58 * col1 * + 34 + + col2 AS col1 FROM tab0 AS cor0
----
159780
2072
41423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1779
SELECT - + ( col0 ) * CAST( - ( + col1 ) AS SIGNED ) - - + col2 + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - col0 + + col1 + + - col1 > NULL
----

skipif mysql # not compatible
query I rowsort label-1779
SELECT - + ( col0 ) * CAST ( - ( + col1 ) AS INTEGER ) - - + col2 + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - col0 + + col1 + + - col1 > NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1783
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * 37 - + col1 + 74 AS col2 FROM tab1
----
1947
3214
3394

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * 37 - + col1 + 74 AS col2 FROM tab1
----
1947
3214
3394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1784
SELECT DISTINCT + + CAST( - col2 AS SIGNED ) * - col2 + - col0 + - 30 / col2 FROM tab0 WHERE col0 <= NULL
----

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT + + CAST ( - col2 AS INTEGER ) * - col2 + - col0 + - 30 / col2 FROM tab0 WHERE col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1785
SELECT ALL 67 * col0 DIV - 23 FROM tab0 WHERE NOT + col2 * - col1 IS NULL
----
-253
-282
-43

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL 67 * col0 / - 23 FROM tab0 WHERE NOT + col2 * - col1 IS NULL
----
-253
-282
-43

query I rowsort
SELECT 7 * + 25 FROM tab0
----
175
175
175

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

skipif mysql # not compatible
query I rowsort label-1787
SELECT col2 * + 66 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1788
SELECT ALL + col1 DIV + 11 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL + col1 / + 11 FROM tab0
----
0
1
7

query I rowsort
SELECT DISTINCT + 9 * - col2 FROM tab2 AS cor0
----
-207
-360
-522

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

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

query I rowsort
SELECT ALL 39 + + 56 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + col0 ) - col1 - + + col2 * - + col0 * - ( - col1 ) col2 FROM tab1 AS cor0
----
25155
290880
68581

query I rowsort
SELECT - 69 - + 93 FROM tab0 AS cor0
----
-162
-162
-162

query I rowsort
SELECT ALL - ( + + 10 ) AS col0 FROM tab1 cor0
----
-10
-10
-10

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

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

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT col1 / col1 / + + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - - col0 + + - col1 AS col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT - 37 + - 8 + - + 23 + - + col1 * + col2 - col0 AS col1 FROM tab0 AS cor0
----
-264
-365
-3890

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT 80 + - COUNT( * ) + 35 AS col0 FROM tab2
----
112

skipif mysql # not compatible
query I rowsort label-1801
SELECT 80 + - COUNT ( * ) + 35 AS col0 FROM tab2
----
112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, 4 FROM tab0
----
-10
4
-47
4
-99
4

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

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

query I rowsort
SELECT - + col2 + + - 49 * - 83 AS col2 FROM tab2 WHERE NOT + + col1 NOT BETWEEN + 33 + + - col0 + + 63 AND ( + col0 )
----
4009

query III rowsort
SELECT ALL * FROM tab2 WHERE + 29 < + + col0 * + - col1 * - + col1 * + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1806
SELECT DISTINCT + COUNT( * ) DIV + - CAST( - MIN( ALL - 13 ) AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT + COUNT ( * ) / + - CAST ( - MIN ( ALL - 13 ) AS INTEGER ) FROM tab2
----
0

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

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

query I rowsort
SELECT + ( - col1 ) FROM tab2 WHERE NOT 73 > + col1 + + col2
----
-51
-67
-77

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + + 53 - - col0 > NULL
----

query I rowsort
SELECT ALL + 64 + - + col2 * + col2 * - + 70 AS col1 FROM tab2 AS cor0 WHERE + col0 >= 52
----
112064
235544

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col0 + 31 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 + 31 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - + 93 FROM tab0 AS cor0 WHERE NOT + 85 IS NULL
----
-93
-93
-93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT - MAX( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE NOT + col0 * - 89 + - + col2 + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT - MAX ( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE NOT + col0 * - 89 + - + col2 + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT MIN( DISTINCT - col0 ) + - 26 col0 FROM tab0
----
-123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1818
SELECT MIN ( DISTINCT - col0 ) + - 26 col0 FROM tab0
----
-123

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 * col2 + - ( - - 7 ) * - 78 * + col0 * + + col0 * - col2 + col2 - - - col2 * + 96 + + 96 BETWEEN + 46 AND NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - - col1 col1 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT - COUNT( - col2 ) + + COUNT( * ) AS col2 FROM tab0
----
0

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

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

query I rowsort
SELECT ALL 71 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= + 79 / - col1
----

query I rowsort
SELECT ( - 78 ) + + + ( col1 ) * + + col1 FROM tab1
----
-53
118
2131

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT + + MIN( DISTINCT + 51 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
51

skipif mysql # not compatible
query I rowsort label-1827
SELECT + + MIN ( DISTINCT + 51 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
51

query I rowsort
SELECT col2 + - col1 * + + 89 * + - col0 AS col1 FROM tab0
----
108182
162613
8732

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE ( NULL > NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL > NULL )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 BETWEEN + col2 AND 51
----
46
51
23

query I rowsort
SELECT ALL + - 24 FROM tab1 cor0
----
-24
-24
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-1832
SELECT - col2 AS col2, col1 DIV + 46 AS col0 FROM tab2 AS cor0
----
-23
1
-40
1
-58
1

skipif mysql # not compatible
query II rowsort label-1832
SELECT - col2 AS col2, col1 / + 46 AS col0 FROM tab2 AS cor0
----
-23
1
-40
1
-58
1

query I rowsort
SELECT DISTINCT + 76 * col1 FROM tab1
----
1064
3572
380

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT COUNT( * ) * - ( + 47 ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-1834
SELECT COUNT ( * ) * - ( + 47 ) FROM tab1
----
-141

query I rowsort
SELECT DISTINCT + - col2 - 18 AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1836
SELECT + CAST( - 54 AS SIGNED ) FROM tab0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-1836
SELECT + CAST ( - 54 AS INTEGER ) FROM tab0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT DISTINCT + MIN( + 62 ) * + SUM( DISTINCT + - col2 ) FROM tab2
----
-7502

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT + MIN ( + 62 ) * + SUM ( DISTINCT + - col2 ) FROM tab2
----
-7502

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1839
SELECT - 60 DIV - col2 AS col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1839
SELECT - 60 / - col2 AS col2 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT - 88 * + + COUNT( * ) AS col2 FROM tab0 cor0
----
-264

skipif mysql # not compatible
query I rowsort label-1840
SELECT - 88 * + + COUNT ( * ) AS col2 FROM tab0 cor0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT DISTINCT + SUM( 49 ) AS col1 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT + SUM ( 49 ) AS col1 FROM tab2
----
147

query I rowsort
SELECT ALL - 69 * + col2 AS col2 FROM tab1 AS cor0
----
-4071
-4692
-6624

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT - 0 * - ( - - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1845
SELECT - 0 * - ( - - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 <> NULL
----

query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + ( col2 ) AND - col2 * - + col1 + + - col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE + + col0 = + - col0
----
0

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE + + col0 = + - col0
----
0

query I rowsort
SELECT ALL 60 AS col0 FROM tab2 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT ALL + 73 * + 14 + ( + - col0 ), + col0 FROM tab2
----
947
75
958
64
976
46

query I rowsort
SELECT ALL - col1 * 31 FROM tab2
----
-1581
-2077
-2387

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

query I rowsort
SELECT - ( - - 17 ) + - col0 FROM tab0
----
-104
-114
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT MAX( DISTINCT 77 ) + + COUNT( * ) + MAX( + 29 ) AS col1 FROM tab1
----
109

skipif mysql # not compatible
query I rowsort label-1855
SELECT MAX ( DISTINCT 77 ) + + COUNT ( * ) + MAX ( + 29 ) AS col1 FROM tab1
----
109

onlyif mysql # DIV for integer division: 
query II rowsort label-1856
SELECT ALL + col0 AS col1, 73 DIV + col1 col0 FROM tab0
----
15
0
87
3
97
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1856
SELECT ALL + col0 AS col1, 73 / + col1 col0 FROM tab0
----
15
0
87
3
97
73

query I rowsort
SELECT DISTINCT + col1 + col2 - - col0 FROM tab0
----
118
143
197

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 + + col2 col1 FROM tab0
----
-24
-61
28

query I rowsort
SELECT DISTINCT - 38 - - col0 FROM tab2
----
26
37
8

query I rowsort
SELECT 61 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT 83 - col0 AS col1 FROM tab2
----
19
37
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 37 - + - 99 + + col1 col1 FROM tab1 AS cor0
----
141
150
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - 42 col0 FROM tab0 cor0
----
-39
21
41

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT ALL COUNT( * ) * + 52 AS col1 FROM tab1 cor0
----
156

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL COUNT ( * ) * + 52 AS col1 FROM tab1 cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1869
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 73 * + + col1 / + CAST( NULL AS SIGNED ) < - 83
----

skipif mysql # not compatible
query III rowsort label-1869
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 73 * + + col1 / + CAST ( NULL AS INTEGER ) < - 83
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1871
SELECT - COUNT( * ), MAX( col2 ) AS col0 FROM tab0
----
-3
99

skipif mysql # not compatible
query II rowsort label-1871
SELECT - COUNT ( * ), MAX ( col2 ) AS col0 FROM tab0
----
-3
99

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 32 BETWEEN 35 AND + 37
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1874
SELECT DISTINCT + 79, + col1 * - + col1 / - + CAST( NULL AS DECIMAL ) * - - col0 AS col2 FROM tab0 AS cor0
----
79
NULL

skipif mysql # not compatible
query II rowsort label-1874
SELECT DISTINCT + 79, + col1 * - + col1 / - + CAST ( NULL AS REAL ) * - - col0 AS col2 FROM tab0 AS cor0
----
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL + MAX( DISTINCT 58 ) * COUNT( * ) FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL + MAX ( DISTINCT 58 ) * COUNT ( * ) FROM tab1 AS cor0
----
174

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1876
SELECT MAX( - - col0 ) * CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT col2 * - CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-1877
SELECT col2 * - CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
-1600
-3364
-529

query II rowsort
SELECT + ( - 21 ) AS col1, 89 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 7d4dfac5e687e29f807181217feb9a75

query I rowsort
SELECT DISTINCT + 85 - + col1 AS col1 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 / - ( + 39 ) + 86 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + 42
----

query I rowsort
SELECT + col1 + 80 + + - col2 * ( + col2 ) FROM tab1 AS cor0
----
-3396
-4497
-9122

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

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

query I rowsort
SELECT - 88 + - 26 AS col0 FROM tab0 AS cor0
----
-114
-114
-114

query I rowsort
SELECT DISTINCT 55 + + 9 FROM tab2 AS cor0
----
64

query I rowsort
SELECT + 9 + col2 + - col1 * col2 FROM tab2
----
-1141
-3031
-3819

query I rowsort
SELECT ALL col2 + ( + col1 ) + 95 AS col2 FROM tab1
----
159
205
210

query III rowsort
SELECT * FROM tab1 WHERE col1 * + col2 BETWEEN - ( col1 ) * 47 AND col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT DISTINCT 76 + + COUNT( * ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT 76 + + COUNT ( * ) FROM tab0
----
79

query I rowsort
SELECT DISTINCT - col0 + + 66 FROM tab2
----
-9
2
20

query I rowsort
SELECT ALL + col2 - 44 FROM tab1
----
15
24
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 * - 25 * - + ( + ( + - col2 ) ) col1 FROM tab0
----
-106925
-225225
-22750

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT ALL MAX( + - 20 ) + COUNT( * ) AS col2 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL MAX ( + - 20 ) + COUNT ( * ) AS col2 FROM tab1
----
-17

query I rowsort
SELECT DISTINCT - 87 - - col2 FROM tab0 AS cor0
----
-40
-77
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT 72 - + + COUNT( * ) AS col2 FROM tab0 cor0
----
69

skipif mysql # not compatible
query I rowsort label-1897
SELECT 72 - + + COUNT ( * ) AS col2 FROM tab0 cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT - 4 - + COUNT( * ) AS col2 FROM tab0 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-1898
SELECT - 4 - + COUNT ( * ) AS col2 FROM tab0 cor0
----
-7

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

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

query I rowsort
SELECT ALL - 10 * + 97 FROM tab2
----
-970
-970
-970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab2 WHERE NULL IS NULL
----
23
40
58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1902
SELECT DISTINCT col2 col0, + col2 / + - col2 AS col0 FROM tab2
----
23
-1
40
-1
58
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1904
SELECT - CAST( + col1 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-1904
SELECT - CAST ( + col1 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
210
3807
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT - - col2 * + - col2 DIV + col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1906
SELECT - - col2 * + - col2 / + col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT - SUM( ALL - col1 ) * COUNT( * ) FROM tab2 cor0
----
585

skipif mysql # not compatible
query I rowsort label-1907
SELECT - SUM ( ALL - col1 ) * COUNT ( * ) FROM tab2 cor0
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT COUNT( DISTINCT - 21 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1908
SELECT COUNT ( DISTINCT - 21 ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT col1 * - 21 * col1 FROM tab0
----
-137781
-21
-9261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1910
SELECT ALL + MIN( - CAST( NULL AS SIGNED ) ) + + + 92 AS col2 FROM tab2 WHERE - 58 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) + + + 92 AS col2 FROM tab2 WHERE - 58 IS NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT DISTINCT + - MIN( + 51 ) col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1912
SELECT DISTINCT + - MIN ( + 51 ) col2 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT ALL + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL > 65
----
0

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL > 65
----
0

query I rowsort
SELECT DISTINCT ( + + 47 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT + 46 + - MIN( ALL + ( 12 ) ) + 27 AS col0 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-1915
SELECT + 46 + - MIN ( ALL + ( 12 ) ) + 27 AS col0 FROM tab1
----
61

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1919
SELECT + CAST( - 96 AS SIGNED ) DIV + + 8 + - + 12 AS col2 FROM tab0 cor0
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-1919
SELECT + CAST ( - 96 AS INTEGER ) / + + 8 + - + 12 AS col2 FROM tab0 cor0
----
-24
-24
-24

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 30 * + 5 col0 FROM tab2 AS cor0
----
150

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

query I rowsort
SELECT DISTINCT + + 35 + + 77 FROM tab1 AS cor0
----
112

query I rowsort
SELECT DISTINCT - + 67 FROM tab2 cor0
----
-67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 33 + col2 = NULL
----

query I rowsort
SELECT ALL col2 + col0 * - 61 FROM tab0 AS cor0
----
-5297
-5818
-868

onlyif mysql # DIV for integer division: 
query II rowsort label-1927
SELECT DISTINCT - col2 DIV - 58, col1 FROM tab0
----
0
21
0
81
1
1

skipif mysql # not compatible
query II rowsort label-1927
SELECT DISTINCT - col2 / - 58, col1 FROM tab0
----
0
21
0
81
1
1

query I rowsort
SELECT - 97 AS col0 FROM tab0 WHERE NULL IS NULL
----
-97
-97
-97

query I rowsort
SELECT ALL + col1 + - col0 * - col1 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT DISTINCT - - COUNT( * ) * - 23 FROM tab2 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT - - COUNT ( * ) * - 23 FROM tab2 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE - - 47 NOT IN ( + col2 )
----
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1932
SELECT col0 + - 59 DIV col1 AS col0 FROM tab2
----
45
64
75

skipif mysql # not compatible
query I rowsort label-1932
SELECT col0 + - 59 / col1 AS col0 FROM tab2
----
45
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1933
SELECT DISTINCT + col1 + - ( + CAST( - - 61 AS SIGNED ) ) FROM tab1
----
-14
-47
-56

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT + col1 + - ( + CAST ( - - 61 AS INTEGER ) ) FROM tab1
----
-14
-47
-56

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

query I rowsort
SELECT ALL + 87 * col0 - - - col0 FROM tab0
----
1290
7482
8342

onlyif mysql # DIV for integer division: 
query I rowsort label-1936
SELECT col2 + 0 DIV col1 + - col1 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-1936
SELECT col2 + 0 / col1 + - col1 FROM tab2
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1937
SELECT ALL * FROM tab2 WHERE NOT + + 86 * 35 - + 27 <> + col0 * - CAST( NULL AS SIGNED ) + - 46
----

skipif mysql # not compatible
query III rowsort label-1937
SELECT ALL * FROM tab2 WHERE NOT + + 86 * 35 - + 27 <> + col0 * - CAST ( NULL AS INTEGER ) + - 46
----

query I rowsort
SELECT + 91 + - col0 * - col1 FROM tab1
----
4368
516
805

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT 81 + - - SUM( ALL col1 ) AS col1 FROM tab0
----
184

skipif mysql # not compatible
query I rowsort label-1939
SELECT 81 + - - SUM ( ALL col1 ) AS col1 FROM tab0
----
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 + col2 col2 FROM tab2
----
22
40
5

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

skipif mysql # not compatible
query I rowsort label-1941
SELECT - - COUNT ( * ) + + 35 FROM tab2 cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT ALL MAX( col2 ) col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1942
SELECT ALL MAX ( col2 ) col0 FROM tab0 AS cor0
----
99

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

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

query II rowsort
SELECT + 10 AS col2, col0 + + col1 FROM tab2 AS cor0
----
10
141
10
142
10
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT ALL - COUNT( * ) * + - 64 col1 FROM tab1 AS cor0
----
192

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

query I rowsort
SELECT DISTINCT + 87 * + col2 AS col1 FROM tab2 AS cor0
----
2001
3480
5046

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 >= col0 - - 40 + - + ( - - 36 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 cor0 WHERE 16 - - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 BETWEEN + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT ALL + ( + SUM( DISTINCT + col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL + ( + SUM ( DISTINCT + col2 ) ) FROM tab1
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-1951
SELECT + 24 DIV + ( - col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1951
SELECT + 24 / + ( - col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 * + 96 AS col1 FROM tab2
----
-2208
-3840
-5568

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1953
SELECT 23, + CAST( NULL AS SIGNED ) * + col1 + + 36 - + 21 AS col1 FROM tab1
----
23
NULL
23
NULL
23
NULL

skipif mysql # not compatible
query II rowsort label-1953
SELECT 23, + CAST ( NULL AS INTEGER ) * + col1 + + 36 - + 21 AS col1 FROM tab1
----
23
NULL
23
NULL
23
NULL

query I rowsort
SELECT ALL col1 * + 24 AS col0 FROM tab1
----
1128
120
336

query III rowsort
SELECT DISTINCT - ( + 28 ), - col1 * col1 AS col1, - - col1 AS col1 FROM tab2
----
9 values hashing to fc3ca52aa99d714fe13ed541683c4d15

query I rowsort
SELECT ALL - col1 * + + col2 FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + - col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 + - col2 + + col0 * + + col2 * - + 9 * + col0 col1 FROM tab2
----
-1474571
-2936279
-438006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1959
SELECT DISTINCT CAST( 66 AS SIGNED ) * - MAX( ALL - + col0 ) FROM tab2
----
3036

skipif mysql # not compatible
query I rowsort label-1959
SELECT DISTINCT CAST ( 66 AS INTEGER ) * - MAX ( ALL - + col0 ) FROM tab2
----
3036

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1960
SELECT DISTINCT - 16 * CAST( - 39 AS SIGNED ) DIV - col1 AS col1 FROM tab2
----
-12
-8
-9

skipif mysql # not compatible
query I rowsort label-1960
SELECT DISTINCT - 16 * CAST ( - 39 AS INTEGER ) / - col1 AS col1 FROM tab2
----
-12
-8
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1961
SELECT - col2 + 52 - - col0 DIV 62 - 82 * col1 col1 FROM tab0 AS cor0
----
-128
-1679
-6637

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1961
SELECT - col2 + 52 - - col0 / 62 - 82 * col1 col1 FROM tab0 AS cor0
----
-128
-1679
-6637

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1962
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 = CAST( col1 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1962
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 = CAST ( col1 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1963
SELECT ALL 40 * - CAST( NULL AS SIGNED ) / + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL 40 * - CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1964
SELECT 79 DIV 4 + - col2 AS col1, col1 col0 FROM tab1 AS cor0
----
-40
5
-49
47
-77
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1964
SELECT 79 / 4 + - col2 AS col1, col1 col0 FROM tab1 AS cor0
----
-40
5
-49
47
-77
14

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * - - 61 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1966
SELECT DISTINCT 89 * + COUNT( * ) + - - ( + - 38 ) AS col0, 29 + + 10 FROM tab1
----
229
39

skipif mysql # not compatible
query II rowsort label-1966
SELECT DISTINCT 89 * + COUNT ( * ) + - - ( + - 38 ) AS col0, 29 + + 10 FROM tab1
----
229
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1967
SELECT ALL * FROM tab0 WHERE 93 NOT BETWEEN NULL AND - CAST( + col0 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1967
SELECT ALL * FROM tab0 WHERE 93 NOT BETWEEN NULL AND - CAST ( + col0 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + - 20 * + col0 * 1 FROM tab2
----
-1240
-1442
-897

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1969
SELECT DISTINCT - + 8 DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT - + 8 / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL MAX( - col0 ) + + + 73 + + 21 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
43

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL MAX ( - col0 ) + + + 73 + + 21 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 14 * 19 IS NULL
----

query I rowsort
SELECT ALL - + col0 - 47 FROM tab1 AS cor0
----
-132
-138
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT + MIN( DISTINCT + - 20 ) FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-1973
SELECT + MIN ( DISTINCT + - 20 ) FROM tab1 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT + MIN( DISTINCT - col2 ) * + ( + + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-1974
SELECT + MIN ( DISTINCT - col2 ) * + ( + + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1975
SELECT - CAST( ( col0 ) AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1975
SELECT - CAST ( ( col0 ) AS INTEGER ) FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT ALL - MIN( + ( - 67 ) ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL - MIN ( + ( - 67 ) ) FROM tab1
----
67

query I rowsort
SELECT + ( - 49 ) FROM tab0
----
-49
-49
-49

query I rowsort
SELECT 64 * col0 AS col0 FROM tab0 WHERE NOT + 37 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 * + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 67 * + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3149
6633
670

query I rowsort
SELECT ALL 49 - - col0 / - 85 FROM tab2 WHERE NOT ( + 49 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 * - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1984
SELECT * FROM tab2 WHERE ( ( + CAST( - col0 AS SIGNED ) ) * - col1 ) NOT IN ( - 77 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1984
SELECT * FROM tab2 WHERE ( ( + CAST ( - col0 AS INTEGER ) ) * - col1 ) NOT IN ( - 77 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE + 47 + 81 IN ( 75 )
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( - 69 ) > col1
----
59
68
96

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE col2 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT ( ( 37 ) ) + + 89 * MAX( ALL col2 * + ( + 27 ) ) col0 FROM tab1
----
230725

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1988
SELECT ( ( 37 ) ) + + 89 * MAX ( ALL col2 * + ( + 27 ) ) col0 FROM tab1
----
230725

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 / - 54 + - 51 ) >= NULL
----

query I rowsort
SELECT ALL - col0 * col0 FROM tab1 WHERE NULL BETWEEN - 13 AND + col2 * col1
----

query III rowsort
SELECT * FROM tab0 WHERE 88 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col1 AND + 77
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1993
SELECT col0 DIV col2 col0 FROM tab2 WHERE NOT ( col0 ) BETWEEN + col2 * 55 AND NULL
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1993
SELECT col0 / col2 col0 FROM tab2 WHERE NOT ( col0 ) BETWEEN + col2 * 55 AND NULL
----
1
1
2

query I rowsort
SELECT col2 + col0 AS col2 FROM tab1 WHERE NOT col0 NOT IN ( 67 )
----

query I rowsort
SELECT col1 * col1 - - 28 FROM tab1
----
2237
224
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT - MAX( 96 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-1996
SELECT - MAX ( 96 ) FROM tab0
----
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 90 * 87 >= + col0 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 43 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( 85 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT - 43 * + COUNT( * ) AS col1 FROM tab0 WHERE 89 IS NOT NULL
----
-129

skipif mysql # not compatible
query I rowsort label-2000
SELECT - 43 * + COUNT ( * ) AS col1 FROM tab0 WHERE 89 IS NOT NULL
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-2001
SELECT col2 DIV 92 + col2 col1 FROM tab1 WHERE col2 IS NOT NULL
----
59
68
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2001
SELECT col2 / 92 + col2 col1 FROM tab1 WHERE col2 IS NOT NULL
----
59
68
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2002
SELECT + 6 DIV COUNT( * ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2002
SELECT + 6 / COUNT ( * ) FROM tab0 AS cor0
----
2

query I rowsort
SELECT 62 * col0 FROM tab1 AS cor0 WHERE ( col0 ) NOT IN ( col2 + 80 )
----
3162
5270
5642

onlyif mysql # DIV for integer division: 
query I rowsort label-2004
SELECT + col2 DIV - col0 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2004
SELECT + col2 / - col0 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT + 3 * MAX( 26 * col0 ) + - 64 AS col0 FROM tab0 AS cor0
----
7502

skipif mysql # not compatible
query I rowsort label-2005
SELECT + 3 * MAX ( 26 * col0 ) + - 64 AS col0 FROM tab0 AS cor0
----
7502

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT ALL 35 * SUM( 21 ) + 78 col0 FROM tab1
----
2283

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2006
SELECT ALL 35 * SUM ( 21 ) + 78 col0 FROM tab1
----
2283

query I rowsort
SELECT col1 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND ( col0 - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2008
SELECT DISTINCT 50 - + MAX( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT 50 - + MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2009
SELECT - 58 - + col1 DIV col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-2009
SELECT - 58 - + col1 / col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-59
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2010
SELECT ALL + COUNT( * ) DIV - SUM( DISTINCT col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL + COUNT ( * ) / - SUM ( DISTINCT col1 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - 35 * + 98 AS col0 FROM tab0 cor0
----
3430
3430
3430

query I rowsort
SELECT DISTINCT + + ( 78 ) AS col0 FROM tab2 AS cor0
----
78

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 66 + + 79 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT col1 - + 7 FROM tab0 AS cor0
----
-6
14
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2016
SELECT ALL CAST( + + ( + col2 ) AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL CAST ( + + ( + col2 ) AS INTEGER ) FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2017
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + 79 AS col1 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + 79 AS col1 FROM tab1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2018
SELECT 19 AS col1 FROM tab0 WHERE NOT col0 IS NULL OR ( + col0 * col1 ) NOT BETWEEN ( NULL ) AND ( col2 - CAST( - col2 AS SIGNED ) )
----
19
19
19

skipif mysql # not compatible
query I rowsort label-2018
SELECT 19 AS col1 FROM tab0 WHERE NOT col0 IS NULL OR ( + col0 * col1 ) NOT BETWEEN ( NULL ) AND ( col2 - CAST ( - col2 AS INTEGER ) )
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT DISTINCT - COUNT( * ) * + MIN( col0 ) * + 72 + - COUNT( * ) AS col0 FROM tab1
----
-11019

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT - COUNT ( * ) * + MIN ( col0 ) * + 72 + - COUNT ( * ) AS col0 FROM tab1
----
-11019

query I rowsort
SELECT ALL - col2 * + 82 + 47 FROM tab0
----
-3807
-773
-8071

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT + COUNT( * ) + + MIN( - col1 ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-2021
SELECT + COUNT ( * ) + + MIN ( - col1 ) FROM tab1
----
-44

query I rowsort
SELECT DISTINCT 78 - + 76 - col2 FROM tab2
----
-21
-38
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT ALL - COUNT( * ) - + 87 - 68 AS col1 FROM tab2
----
-158

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL - COUNT ( * ) - + 87 - 68 AS col1 FROM tab2
----
-158

query III rowsort
SELECT * FROM tab1 WHERE col1 * col1 NOT BETWEEN ( - col1 ) AND + col2
----
51
14
96
91
47
68

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2025
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 * + 73 ) BETWEEN + CAST( NULL AS DECIMAL ) AND - col0
----

skipif mysql # not compatible
query III rowsort label-2025
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 * + 73 ) BETWEEN + CAST ( NULL AS REAL ) AND - col0
----

query I rowsort
SELECT + col2 * col0 * - 42 FROM tab0 cor0
----
-29610
-36540
-403326

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + col0 ) - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 51 ) < 42
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2029
SELECT DISTINCT * FROM tab1 WHERE ( + - 81 + CAST( NULL AS SIGNED ) ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2029
SELECT DISTINCT * FROM tab1 WHERE ( + - 81 + CAST ( NULL AS INTEGER ) ) > ( NULL )
----

query I rowsort
SELECT - + 7 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= ( NULL ) OR + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 48 * + 19 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2033
SELECT ALL + COUNT( * ) DIV - + ( - + 70 ) + + 80 AS col2 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL + COUNT ( * ) / - + ( - + 70 ) + + 80 AS col2 FROM tab2 AS cor0
----
80

query I rowsort
SELECT DISTINCT 91 AS col1 FROM tab0 AS cor0 WHERE - 73 + - col0 / + col2 NOT BETWEEN NULL AND - ( col1 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT COUNT( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT - col2 * + col0 * col1 + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2035
SELECT COUNT ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT - col2 * + col0 * col1 + - col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2036
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 <> CAST( NULL AS SIGNED ) * ( - 22 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-2036
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 <> CAST ( NULL AS INTEGER ) * ( - 22 + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2037
SELECT ALL + - CAST( NULL AS SIGNED ) + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2037
SELECT ALL + - CAST ( NULL AS INTEGER ) + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col1 + + col2 AS col1, - 89 + - - 8 AS col0 FROM tab0
----
-11
-81
-34
-81
98
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-2039
SELECT ALL col1 DIV + col2 AS col2, - col0 FROM tab2
----
1
-64
1
-75
2
-46

skipif mysql # not compatible
query II rowsort label-2039
SELECT ALL col1 / + col2 AS col2, - col0 FROM tab2
----
1
-64
1
-75
2
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2040
SELECT DISTINCT col2 DIV - col0 + - + col1 FROM tab0
----
-2
-21
-84

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT col2 / - col0 + - + col1 FROM tab0
----
-2
-21
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT DISTINCT - MAX( - 69 ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT - MAX ( - 69 ) FROM tab1
----
69

query I rowsort
SELECT - 38 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND ( - 30 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2043
SELECT + + col1 DIV 59 + + 45 AS col1 FROM tab2 AS cor0
----
45
46
46

skipif mysql # not compatible
query I rowsort label-2043
SELECT + + col1 / 59 + + 45 AS col1 FROM tab2 AS cor0
----
45
46
46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 65 + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2045
SELECT - + col1 DIV - 47, + col0 + + 77 AS col2 FROM tab2 AS cor0
----
1
123
1
141
1
152

skipif mysql # not compatible
query II rowsort label-2045
SELECT - + col1 / - 47, + col0 + + 77 AS col2 FROM tab2 AS cor0
----
1
123
1
141
1
152

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT - 83 - - COUNT( * ) * + COUNT( * ) * - - 75 FROM tab0
----
592

skipif mysql # not compatible
query I rowsort label-2046
SELECT - 83 - - COUNT ( * ) * + COUNT ( * ) * - - 75 FROM tab0
----
592

query I rowsort
SELECT + col1 - + 28 FROM tab0
----
-27
-7
53

query I rowsort
SELECT DISTINCT + + 90 AS col0 FROM tab2 AS cor0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2049
SELECT 14 DIV - - col2 * - + col2 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2049
SELECT 14 / - - col2 * - + col2 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 3 - + col1 * + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT ALL 98 * - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2051
SELECT ALL 98 * - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT COUNT( ALL + col1 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2052
SELECT COUNT ( ALL + col1 ) col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 * + - col1 = NULL
----

query I rowsort
SELECT + col0 + - col1 + - ( - ( col1 ) ) FROM tab1 AS cor0 WHERE col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT DISTINCT MAX( ALL + ( col2 ) ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2055
SELECT DISTINCT MAX ( ALL + ( col2 ) ) AS col0 FROM tab0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2056
SELECT - 3 * + 16 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2056
SELECT - 3 * + 16 / - col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT + 91 AS col1, col1 * 76 * - col1 AS col2, col2 AS col0 FROM tab2
----
9 values hashing to 95d16f70ca23fd9adc5bcbfd43ea7007

query I rowsort
SELECT ALL col2 * + + col1 * + + col0 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT + 69 * + 39 AS col0 FROM tab1
----
2691
2691
2691

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( col2 NOT IN ( - 73 + - col2 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 36 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT ALL - ( - COUNT( * ) ) FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL - ( - COUNT ( * ) ) FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT ALL - - col1 * - col1 * - + col1 * - 31 AS col1 FROM tab1 cor0
----
-3218513
-3875
-85064

query II rowsort
SELECT + col0, col1 + col0 + - col1 - - 68 * + - col2 AS col2 FROM tab2 AS cor0
----
46
-1518
64
-2656
75
-3869

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 / + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT + SUM( DISTINCT + 62 ) FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-2066
SELECT + SUM ( DISTINCT + 62 ) FROM tab2 AS cor0
----
62

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 99 + + 7 )
----

query III rowsort
SELECT - 39 AS col2, + 93, + + col1 * - - col1 AS col1 FROM tab0 cor0
----
9 values hashing to 1a6b3ad9740038d0e0cb3d8a8259204b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2069
SELECT ALL 4 + - col2 + + col1 * 78 FROM tab1 WHERE CAST( 29 AS SIGNED ) NOT IN ( - + col0 )
----
1000
335
3602

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL 4 + - col2 + + col1 * 78 FROM tab1 WHERE CAST ( 29 AS INTEGER ) NOT IN ( - + col0 )
----
1000
335
3602

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2070
SELECT 77 DIV - SUM( - + col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2070
SELECT 77 / - SUM ( - + col2 ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + col0 BETWEEN + col1 * + + 26 AND + col2 * + 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
-9

query I rowsort
SELECT - col1 * - - col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - col0 * + 64 / - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2076
SELECT MIN( + + col1 ) DIV - 59 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2076
SELECT MIN ( + + col1 ) / - 59 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col1 * + + col2 + + ( - - 30 ) + + + ( col2 ) * 26 AS col1 FROM tab0 cor0 WHERE NOT + 18 IS NULL
----
-2555
2505
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT DISTINCT + COUNT( col2 ) FROM tab2 AS cor0 WHERE ( + col1 ) NOT BETWEEN 49 AND 45
----
3

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT + COUNT ( col2 ) FROM tab2 AS cor0 WHERE ( + col1 ) NOT BETWEEN 49 AND 45
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2079
SELECT - CAST( - col1 AS SIGNED ), + col2 AS col1 FROM tab0 AS cor0
----
1
99
21
10
81
47

skipif mysql # not compatible
query II rowsort label-2079
SELECT - CAST ( - col1 AS INTEGER ), + col2 AS col1 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT ( + 17 ) AS col2 FROM tab1 AS cor0
----
17
17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2081
SELECT DISTINCT + 83 DIV - - col0 + - col1 AS col0 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT + 83 / - - col0 + - col1 AS col0 FROM tab2 AS cor0
----
-50
-66
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT DISTINCT ( + ( + + COUNT( * ) ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT ( + ( + + COUNT ( * ) ) ) AS col0 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 + - + 38 col2 FROM tab1
----
10
10
10

query I rowsort
SELECT - col0 * - col2 FROM tab1 WHERE 52 IS NOT NULL
----
4896
5015
6188

query I rowsort
SELECT col1 + + col1 * + + 13 FROM tab2
----
1078
714
938

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT SUM( + - col2 ) * + SUM( DISTINCT + col2 ) + COUNT( * ) FROM tab1
----
-49726

skipif mysql # not compatible
query I rowsort label-2086
SELECT SUM ( + - col2 ) * + SUM ( DISTINCT + col2 ) + COUNT ( * ) FROM tab1
----
-49726

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT - + col1 DIV - col0 - col0 * + col1 + 39 FROM tab0 AS cor0
----
-1171
-1788
-58

skipif mysql # not compatible
query I rowsort label-2087
SELECT - + col1 / - col0 - col0 * + col1 + 39 FROM tab0 AS cor0
----
-1171
-1788
-58

query I rowsort
SELECT - col0 - + 67 FROM tab0 AS cor0 WHERE 29 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2089
SELECT DISTINCT + 5 DIV col1 + col2 - ( + col1 ) col1 FROM tab0 cor0
----
-11
-34
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2089
SELECT DISTINCT + 5 / col1 + col2 - ( + col1 ) col1 FROM tab0 cor0
----
-11
-34
103

query I rowsort
SELECT - col2 * - - col1 AS col2 FROM tab1 WHERE + + 23 - + col0 IS NOT NULL
----
-1344
-295
-3196

query I rowsort
SELECT ALL + 41 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT - col2 + - - col2 * col2 AS col2 FROM tab1 WHERE + col2 / ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT 0 - - col0 + + col1 AS col0 FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2094
SELECT + - CAST( NULL AS DECIMAL ) - - - col0 + 62 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2094
SELECT + - CAST ( NULL AS REAL ) - - - col0 + 62 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL - MIN( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL - MIN ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT - + col2 * ( col1 ) FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 * + col1 + 33 <> - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT - 72 DIV - col1 AS col2 FROM tab0
----
0
3
72

skipif mysql # not compatible
query I rowsort label-2098
SELECT - 72 / - col1 AS col2 FROM tab0
----
0
3
72

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 / + 34 BETWEEN - 44 + + col2 AND NULL
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT + COUNT( * ) - + 29 + 46 AS col2 FROM tab2 WHERE NOT col1 / + col2 + - col1 IN ( - ( col2 ), col0 )
----
20

skipif mysql # not compatible
query I rowsort label-2100
SELECT + COUNT ( * ) - + 29 + 46 AS col2 FROM tab2 WHERE NOT col1 / + col2 + - col1 IN ( - ( col2 ), col0 )
----
20

query I rowsort
SELECT ALL + 83 * - + col1 FROM tab0
----
-1743
-6723
-83

query II rowsort
SELECT col0 * + + ( col2 ) AS col2, 10 AS col0 FROM tab1
----
4896
10
5015
10
6188
10

query I rowsort
SELECT DISTINCT 39 * - - col2 AS col0 FROM tab0
----
1833
3861
390

query I rowsort
SELECT DISTINCT - 72 * - 93 + + + col0 AS col1 FROM tab2 WHERE + 24 IS NOT NULL
----
6742
6760
6771

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT - MAX( + - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2105
SELECT - MAX ( + - col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2106
SELECT ALL - COUNT( * ) AS col2, - 76 AS col0 FROM tab0 AS cor0
----
-3
-76

skipif mysql # not compatible
query II rowsort label-2106
SELECT ALL - COUNT ( * ) AS col2, - 76 AS col0 FROM tab0 AS cor0
----
-3
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-2107
SELECT ALL - col0 DIV - 95 col2, + ( - 86 ) * 63 - 88 DIV - ( - col1 ) + - - 34 FROM tab2
----
0
-5385
0
-5385
0
-5385

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2107
SELECT ALL - col0 / - 95 col2, + ( - 86 ) * 63 - 88 / - ( - col1 ) + - - 34 FROM tab2
----
0
-5385
0
-5385
0
-5385

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 + col1 - - col0 * + col0 + - col2 * 68 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= - + 26
----

query I rowsort
SELECT ALL 62 * col2 FROM tab0 AS cor0
----
2914
6138
620

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * col0 BETWEEN ( col2 ) AND + 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = col1 + + 88
----

query I rowsort
SELECT DISTINCT + 90 + + 48 FROM tab0 AS cor0
----
138

query I rowsort
SELECT ALL 76 * col0 FROM tab1
----
3876
6460
6916

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT DISTINCT + MIN( - col0 ) + + - 84 FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-2115
SELECT DISTINCT + MIN ( - col0 ) + + - 84 FROM tab2
----
-159

query I rowsort
SELECT ALL + col0 + col0 + - col2 * - ( col1 ) * + 12 * 50 + - - 15 AS col1 FROM tab1
----
177185
1917797
806517

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT - col2 * CAST( col0 AS SIGNED ) FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-2117
SELECT - col2 * CAST ( col0 AS INTEGER ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2118
SELECT ALL CAST( NULL AS SIGNED ) + 28 col1, ( + SUM( DISTINCT col2 ) ) FROM tab1
----
NULL
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2118
SELECT ALL CAST ( NULL AS INTEGER ) + 28 col1, ( + SUM ( DISTINCT col2 ) ) FROM tab1
----
NULL
223

query I rowsort
SELECT DISTINCT + col0 + - + 70 * + - col0 * - ( + col0 ) FROM tab1
----
-182019
-505665
-579579

query I rowsort
SELECT ALL + 48 * + - 89 * + col1 FROM tab2 AS cor0
----
-217872
-286224
-328944

query I rowsort
SELECT DISTINCT + ( - - col0 ) * - col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * 80 col1, - 28 AS col2 FROM tab1 cor0
----
-1120
-28
-3760
-28
-400
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT ALL - MAX( - 28 ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL - MAX ( - 28 ) FROM tab2 AS cor0
----
28

query I rowsort
SELECT ALL + col1 + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> + ( + - ( - col2 ) ) AND ( NULL ) = - col0
----

query I rowsort
SELECT DISTINCT - 71 + + + col1 + - col0 * + 50 FROM tab0
----
-4400
-4920
-740

query I rowsort
SELECT ALL - col2 + + col2 * + - col1 FROM tab2
----
-1196
-3120
-3944

query I rowsort
SELECT DISTINCT + col0 - + + 27 AS col1 FROM tab0 AS cor0
----
-12
60
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT COUNT( ALL - col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2129
SELECT COUNT ( ALL - col0 ) FROM tab2 cor0
----
3

query I rowsort
SELECT 32 * + - 94 * - 39 FROM tab0 AS cor0
----
117312
117312
117312

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT DISTINCT - MIN( DISTINCT + col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT - MIN ( DISTINCT + col1 ) AS col2 FROM tab1
----
-5

query I rowsort
SELECT DISTINCT + col2 + + + 66 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
106
124
89

query I rowsort
SELECT ( col2 ) * + col2 * + col0 FROM tab1
----
295885
420784
470016

query I rowsort
SELECT DISTINCT ( - 79 ) FROM tab0
----
-79

query I rowsort
SELECT - col2 * - 16 * - + 75 AS col2 FROM tab1 AS cor0
----
-115200
-70800
-81600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 58 col2 FROM tab2 AS cor0
----
58
58
58

query I rowsort
SELECT - + col0 + - 25 + - 95 * col2 + - col1 FROM tab2 AS cor0 WHERE NOT 73 IS NULL
----
-2307
-3966
-5677

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + ( - - col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT - - MAX( DISTINCT + 10 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2139
SELECT - - MAX ( DISTINCT + 10 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2140
SELECT DISTINCT CAST( - - col2 AS SIGNED ) + ( col1 ) AS col1 FROM tab0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) + ( col1 ) AS col1 FROM tab0
----
100
128
31

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + col2 AND - 37
----

query I rowsort
SELECT ALL + ( - col1 ) * + col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2144
SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - 60 NOT IN ( + col0, CAST( NULL AS SIGNED ) + - col0, col2, col1, - 60 + col0 - col0 + - 43 )
----

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - 60 NOT IN ( + col0, CAST ( NULL AS INTEGER ) + - col0, col2, col1, - 60 + col0 - col0 + - 43 )
----

query I rowsort
SELECT DISTINCT + + ( col0 ) * - col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT - 12 + 29 + - 10 * 25 AS col1 FROM tab2 AS cor0
----
-233

query II rowsort
SELECT - col1 AS col1, + col0 FROM tab2 WHERE + col0 IS NOT NULL
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT ALL 40 * - COUNT( * ) AS col2 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL 40 * - COUNT ( * ) AS col2 FROM tab2
----
-120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + - col2 + col2 + - - 78 + - col2 * - - col1 col1 FROM tab2
----
-1049
-2956
-3762

onlyif mysql # DIV for integer division: 
query I rowsort label-2150
SELECT ALL + col1 - - + 57 DIV + 91 * - - col1 * + ( - - col0 ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL + col1 - - + 57 / + 91 * - - col1 * + ( - - col0 ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT col1 + col1 * + 81 AS col1 FROM tab0
----
1722
6642
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT MIN( + - col2 ) + + COUNT( 55 ) AS col1 FROM tab2 WHERE col2 + + 6 <= - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2152
SELECT MIN ( + - col2 ) + + COUNT ( 55 ) AS col1 FROM tab2 WHERE col2 + + 6 <= - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT + + 61 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2153
SELECT + + 61 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
58

query I rowsort
SELECT + col1 + 33 AS col0 FROM tab0 AS cor0
----
114
34
54

onlyif mysql # DIV for integer division: 
query II rowsort label-2155
SELECT DISTINCT - col1 DIV 3, col1 AS col0 FROM tab2 AS cor0
----
-17
51
-22
67
-25
77

skipif mysql # not compatible
query II rowsort label-2155
SELECT DISTINCT - col1 / 3, col1 AS col0 FROM tab2 AS cor0
----
-17
51
-22
67
-25
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2156
SELECT ALL + CAST( - + 58 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL + CAST ( - + 58 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT MAX( - 73 ) AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT MAX ( - 73 ) AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + 7 - + 4 + - col1 AS col2 FROM tab2
----
-48
-64
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2159
SELECT DISTINCT - - MAX( DISTINCT + CAST( NULL AS SIGNED ) ), - SUM( DISTINCT col1 ) DIV + 60 col1 FROM tab0 AS cor0
----
NULL
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2159
SELECT DISTINCT - - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ), - SUM ( DISTINCT col1 ) / + 60 col1 FROM tab0 AS cor0
----
NULL
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2161
SELECT CAST( - 85 AS SIGNED ) * - COUNT( * ) FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-2161
SELECT CAST ( - 85 AS INTEGER ) * - COUNT ( * ) FROM tab1
----
255

onlyif mysql # DIV for integer division: 
query II rowsort label-2162
SELECT col1 DIV - + ( - 54 ) AS col2, - col0 + - - 58 FROM tab2
----
0
12
1
-17
1
-6

skipif mysql # not compatible
query II rowsort label-2162
SELECT col1 / - + ( - 54 ) AS col2, - col0 + - - 58 FROM tab2
----
0
12
1
-17
1
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT DISTINCT - - 4 + - COUNT( * ) FROM tab2 WHERE NOT col1 BETWEEN - + col2 / 73 AND 91
----
4

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT - - 4 + - COUNT ( * ) FROM tab2 WHERE NOT col1 BETWEEN - + col2 / 73 AND 91
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 * + - col1 col2 FROM tab1
----
-1302
-4371
-465

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT col0 DIV + + 19 AS col2 FROM tab0
----
0
4
5

skipif mysql # not compatible
query I rowsort label-2165
SELECT col0 / + + 19 AS col2 FROM tab0
----
0
4
5

query I rowsort
SELECT 62 * + - col0 AS col2 FROM tab2
----
-2852
-3968
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT SUM( DISTINCT - 93 ) AS col2 FROM tab2 WHERE NOT + + col1 * + 13 + - ( + - 4 ) * col0 NOT BETWEEN - 77 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2167
SELECT SUM ( DISTINCT - 93 ) AS col2 FROM tab2 WHERE NOT + + col1 * + 13 + - ( + - 4 ) * col0 NOT BETWEEN - 77 AND NULL
----
NULL

query II rowsort
SELECT col2 AS col1, col0 AS col0 FROM tab2
----
23
46
40
64
58
75

query II rowsort
SELECT ALL - col0, col0 * + - 53 AS col1 FROM tab2 AS cor0
----
-46
-2438
-64
-3392
-75
-3975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 col2 FROM tab0 AS cor0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT DISTINCT 48 DIV - 51 + col0 + + + col1 AS col1 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT 48 / - 51 + col0 + + + col1 AS col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT 79 * - + 23 AS col1 FROM tab1
----
-1817

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2173
SELECT ALL * FROM tab0 cor0 WHERE NOT 90 / + CAST( NULL AS SIGNED ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2173
SELECT ALL * FROM tab0 cor0 WHERE NOT 90 / + CAST ( NULL AS INTEGER ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT - 55 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT COUNT( * ) + + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2175
SELECT COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 19 * + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT ALL + CAST( + + col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL + CAST ( + + col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT + 89 + + col1 * - 48 AS col1 FROM tab2 AS cor0
----
-2359
-3127
-3607

onlyif mysql # DIV for integer division: 
query I rowsort label-2179
SELECT - col2 DIV + col1 + - - col1 + - col2 FROM tab2
----
28
37
9

skipif mysql # not compatible
query I rowsort label-2179
SELECT - col2 / + col1 + - - col1 + - col2 FROM tab2
----
28
37
9

query I rowsort
SELECT DISTINCT - col2 + + - 6 + - col1 + - 50 AS col0 FROM tab2
----
-130
-173
-181

query I rowsort
SELECT DISTINCT 84 - + - col0 FROM tab0
----
171
181
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - + col2 col0 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT + MIN( ALL col1 ) col1 FROM tab2 WHERE + + col0 * 90 + + - col0 + + col0 * - - col1 IS NOT NULL
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2183
SELECT + MIN ( ALL col1 ) col1 FROM tab2 WHERE + + col0 * 90 + + - col0 + + col0 * - - col1 IS NOT NULL
----
51

query I rowsort
SELECT ALL + - 95 * col0 - - col2 FROM tab1 AS cor0
----
-4749
-8016
-8577

query I rowsort
SELECT + + col1 - - 33 FROM tab1 AS cor0
----
38
47
80

query I rowsort
SELECT - + 95 - + col1 FROM tab1 AS cor0
----
-100
-109
-142

query I rowsort
SELECT - - ( + 80 ) FROM tab2 AS cor0
----
80
80
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT + + MAX( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2189
SELECT + + MAX ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
47

query II rowsort
SELECT + + col2 AS col2, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT - col0 * - 4 * col1 AS col0 FROM tab0
----
388
4860
7308

onlyif mysql # DIV for integer division: 
query I rowsort label-2192
SELECT DISTINCT 57 DIV + col2 AS col1 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT 57 / + col2 AS col1 FROM tab0
----
0
1
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2193
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 93 ) FROM tab1 WHERE NOT + - col0 IS NULL
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT + - ( + SUM( + col0 ) ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2195
SELECT + - ( + SUM ( + col0 ) ) FROM tab0 cor0
----
-199

query I rowsort
SELECT DISTINCT 21 FROM tab0 cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT DISTINCT + 26 + + + COUNT( * ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT + 26 + + + COUNT ( * ) FROM tab1 AS cor0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2198
SELECT + - 62 DIV - col1 + + 33 DIV + 40 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2198
SELECT + - 62 / - col1 + + 33 / + 40 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT + 36 + + COUNT( * ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-2199
SELECT + 36 + + COUNT ( * ) FROM tab2 AS cor0
----
39

query I rowsort
SELECT ALL - 18 AS col2 FROM tab2
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT 8 * - - COUNT( * ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-2201
SELECT 8 * - - COUNT ( * ) FROM tab0
----
24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 81 * + 95 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 19 - + col2, 72 * - 15, col1 * - - col1 * + - col1 )
----

query II rowsort
SELECT DISTINCT col2, col1 + - - col2 AS col2 FROM tab1 AS cor0
----
59
64
68
115
96
110

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2205
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 * + - CAST( col0 AS SIGNED ) + - - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2205
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 * + - CAST ( col0 AS INTEGER ) + - - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 FROM tab2 AS cor0 WHERE + 32 + + 37 IS NULL
----

query I rowsort
SELECT col0 * - col2 * 84 FROM tab0 AS cor0
----
-59220
-73080
-806652

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 / + col2 * - 36 / col0 col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 - + 17 FROM tab1
----
34
68
74

query II rowsort
SELECT - col1 + 98 AS col0, + col0 + - - 39 FROM tab0
----
17
54
77
126
97
136

query I rowsort
SELECT ALL + 95 - 23 + - 35 FROM tab0
----
37
37
37

query I rowsort
SELECT - col2 * col1 * 76 + 36 FROM tab0 AS cor0
----
-15924
-289296
-7488

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + col1 ) BETWEEN + col2 + 24 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT - - MIN( + - col0 ) + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 <> - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT - - MIN ( + - col0 ) + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 <> - - col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * ( col1 ) col2 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2216
SELECT ALL - + 22 - + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE + ( - 95 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL - + 22 - + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE + ( - 95 ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - - 77 FROM tab1 cor0
----
1078
3619
385

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * + + col0 * col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2219
SELECT ALL + MAX( + 0 ) * - + ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL + MAX ( + 0 ) * - + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + 97 AS col0, + col0 * - - col0 + - - col0 FROM tab1 AS cor0
----
97
2652
97
7310
97
8372

query I rowsort
SELECT ALL 78 AS col2 FROM tab1 cor0
----
78
78
78

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( ( - - col2 ) )
----

query I rowsort
SELECT - 66 + + 57 + - 91 + 99 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2224
SELECT DISTINCT col1 + + col0 DIV - 58 AS col2 FROM tab1
----
14
4
46

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT col1 + + col0 / - 58 AS col2 FROM tab1
----
14
4
46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( ( - + col0 ) ) AND 61
----

query I rowsort
SELECT + ( - col1 ) + + 63 FROM tab0
----
-18
42
62

query I rowsort
SELECT + col1 * - ( + - col2 ) AS col1 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-2228
SELECT 44 DIV col2 * + + 89 * col2 * col2 col0 FROM tab2
----
0
142400
47081

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2228
SELECT 44 / col2 * + + 89 * col2 * col2 col0 FROM tab2
----
0
142400
47081

query II rowsort
SELECT - col2, 2 * - - col0 AS col0 FROM tab0
----
-10
174
-47
30
-99
194

query I rowsort
SELECT ALL - col2 FROM tab1 cor0 WHERE + col0 * - + ( col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT col1 + + col1 / + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT col1 + + col1 / + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 82 * - 66 * 69 - + col0 + + col0 FROM tab1 AS cor0
----
373428
373428
373428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2234
SELECT 36 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL <> 69
----

skipif mysql # not compatible
query I rowsort label-2234
SELECT 36 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL <> 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT + + ( - + COUNT( * ) ) + + MAX( + col2 ) AS col1 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-2235
SELECT + + ( - + COUNT ( * ) ) + + MAX ( + col2 ) AS col1 FROM tab2 AS cor0
----
55

query II rowsort
SELECT ALL ( 43 ) AS col0, col1 AS col1 FROM tab1 cor0
----
43
14
43
47
43
5

query I rowsort
SELECT - col2 * + 53 AS col2 FROM tab2 AS cor0
----
-1219
-2120
-3074

onlyif mysql # DIV for integer division: 
query I rowsort label-2238
SELECT + - 36 DIV - - col1 AS col0 FROM tab0 AS cor0
----
-1
-36
0

skipif mysql # not compatible
query I rowsort label-2238
SELECT + - 36 / - - col1 AS col0 FROM tab0 AS cor0
----
-1
-36
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2239
SELECT 92, COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - col2 + - CAST( NULL AS SIGNED ) > 17
----
92
0

skipif mysql # not compatible
query II rowsort label-2239
SELECT 92, COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - col2 + - CAST ( NULL AS INTEGER ) > 17
----
92
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2240
SELECT DISTINCT + COUNT( * ) + - ( 37 ) AS col2, SUM( - CAST( + col2 AS SIGNED ) ) FROM tab1
----
-34
-223

skipif mysql # not compatible
query II rowsort label-2240
SELECT DISTINCT + COUNT ( * ) + - ( 37 ) AS col2, SUM ( - CAST ( + col2 AS INTEGER ) ) FROM tab1
----
-34
-223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2241
SELECT ALL * FROM tab2 WHERE NOT - CAST( 70 AS SIGNED ) * CAST( NULL AS SIGNED ) + - - 35 - + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2241
SELECT ALL * FROM tab2 WHERE NOT - CAST ( 70 AS INTEGER ) * CAST ( NULL AS INTEGER ) + - - 35 - + col0 IS NULL
----

query I rowsort
SELECT ALL - col2 + + col1 + - - col2 * - col0 FROM tab1
----
-4978
-5069
-6209

query I rowsort
SELECT DISTINCT + 61 + col0 FROM tab1
----
112
146
152

onlyif mysql # DIV for integer division: 
query I rowsort label-2244
SELECT col1 DIV + 14 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-2244
SELECT col1 / + 14 FROM tab0
----
0
1
5

query II rowsort
SELECT ALL col1 / - 30 + - 37 * 30 AS col1, col2 AS col1 FROM tab0 WHERE NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2246
SELECT - CAST( NULL AS SIGNED ), - col0 * + 39 AS col1 FROM tab2
----
NULL
-1794
NULL
-2496
NULL
-2925

skipif mysql # not compatible
query II rowsort label-2246
SELECT - CAST ( NULL AS INTEGER ), - col0 * + 39 AS col1 FROM tab2
----
NULL
-1794
NULL
-2496
NULL
-2925

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2247
SELECT + col2 * 96 DIV + col2 - - CAST( 7 AS SIGNED ) FROM tab0
----
103
103
103

skipif mysql # not compatible
query I rowsort label-2247
SELECT + col2 * 96 / + col2 - - CAST ( 7 AS INTEGER ) FROM tab0
----
103
103
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT ALL - - MAX( ( - + col1 ) ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL - - MAX ( ( - + col1 ) ) AS col2 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT - 95 * - - ( - ( 35 ) ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
9975

skipif mysql # not compatible
query I rowsort label-2249
SELECT - 95 * - - ( - ( 35 ) ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9975

query II rowsort
SELECT - - col0 AS col0, + col1 + - col1 AS col0 FROM tab0 cor0
----
15
0
87
0
97
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 + - col2 col0 FROM tab0 AS cor0 WHERE NOT + col0 + - 35 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - + col1 ) * + 51 + + - 65 FROM tab2
----
-2666
-3482
-3992

query I rowsort
SELECT ALL - col0 * col2 * + + 5 FROM tab0
----
-3525
-4350
-48015

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2255
SELECT DISTINCT MIN( + col0 ) AS col2, - 52 DIV COUNT( * ) DIV + - COUNT( * ) AS col0 FROM tab2
----
46
5

skipif mysql # not compatible
query II rowsort label-2255
SELECT DISTINCT MIN ( + col0 ) AS col2, - 52 / COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab2
----
46
5

query I rowsort
SELECT + 11 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT ALL COUNT( ALL + 97 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL COUNT ( ALL + 97 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2258
SELECT DISTINCT 55 * col2 DIV - col1 AS col1 FROM tab1 cor0
----
-377
-649
-79

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT 55 * col2 / - col1 AS col1 FROM tab1 cor0
----
-377
-649
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT ALL + COUNT( * ) * - - COUNT( + 5 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL + COUNT ( * ) * - - COUNT ( + 5 ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT 52 AS col1 FROM tab1 cor0
----
52
52
52

query I rowsort
SELECT DISTINCT col2 * + - col1 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2262
SELECT ALL * FROM tab0 AS cor0 WHERE - 60 - - col0 + + + col1 * - + CAST( NULL AS SIGNED ) BETWEEN - 68 / - - col2 AND + col0
----

skipif mysql # not compatible
query III rowsort label-2262
SELECT ALL * FROM tab0 AS cor0 WHERE - 60 - - col0 + + + col1 * - + CAST ( NULL AS INTEGER ) BETWEEN - 68 / - - col2 AND + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2263
SELECT ALL - 39 + + + COUNT( * ) + - + SUM( + + col2 ) + + 60 DIV - MIN( DISTINCT - - col2 ) col0 FROM tab0 AS cor0 WHERE NOT + 56 + + + col0 + - - col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2263
SELECT ALL - 39 + + + COUNT ( * ) + - + SUM ( + + col2 ) + + 60 / - MIN ( DISTINCT - - col2 ) col0 FROM tab0 AS cor0 WHERE NOT + 56 + + + col0 + - - col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
-198

query I rowsort
SELECT ALL col2 * - col0 + + 25 AS col0 FROM tab1
----
-4871
-4990
-6163

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col1, col1 * - col2 )
----

query I rowsort
SELECT - + 93 FROM tab2 WHERE ( NOT col0 <> - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2267
SELECT COUNT( * ) * + MIN( - 15 ) DIV - 15 AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2267
SELECT COUNT ( * ) * + MIN ( - 15 ) / - 15 AS col1 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( col0, - col1, - col2 - + col1 + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2269
SELECT + COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2270
SELECT - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2270
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 + - + ( + col0 ) AS col2 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-2272
SELECT DISTINCT col0 DIV 26 * col1 AS col1 FROM tab0 AS cor0
----
0
3
63

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT col0 / 26 * col1 AS col1 FROM tab0 AS cor0
----
0
3
63

query I rowsort
SELECT ALL + 23 + col1 - - col0 + + ( 13 ) + col2 * - col0 FROM tab2 AS cor0
----
-2383
-4172
-925

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT + MIN( - - col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2274
SELECT + MIN ( - - col0 ) AS col2 FROM tab2
----
46

query I rowsort
SELECT 57 - - - 69 FROM tab1 AS cor0
----
-12
-12
-12

query II rowsort
SELECT - col2 - - 53 AS col2, - col0 AS col0 FROM tab0 AS cor0
----
-46
-97
43
-87
6
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2277
SELECT - + CAST( - 7 AS SIGNED ) - + col0 + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-10
-16
-17

skipif mysql # not compatible
query I rowsort label-2277
SELECT - + CAST ( - 7 AS INTEGER ) - + col0 + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-10
-16
-17

query I rowsort
SELECT + 32 - + ( - + col2 ) AS col0 FROM tab0 AS cor0
----
131
42
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2279
SELECT DISTINCT + CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2280
SELECT ALL 10 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL 10 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT DISTINCT 71 * - 14 * col0 - - CAST( NULL AS SIGNED ) / + ( col0 ) FROM tab2 WHERE NOT - 59 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT 71 * - 14 * col0 - - CAST ( NULL AS INTEGER ) / + ( col0 ) FROM tab2 WHERE NOT - 59 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2282
SELECT - CAST( NULL AS SIGNED ) * + col2 + - - ( 64 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT - CAST ( NULL AS INTEGER ) * + col2 + - - ( 64 ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - - ( col0 ) <= + col2
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + + col2 NOT IN ( + ( + col0 ), + col0 * - - 83 + col0 + - col2 * + col0 / - col2, + 51 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2285
SELECT MIN( - col2 ) AS col1, + 85 FROM tab0
----
-99
85

skipif mysql # not compatible
query II rowsort label-2285
SELECT MIN ( - col2 ) AS col1, + 85 FROM tab0
----
-99
85

onlyif mysql # aggregate syntax: 
query II rowsort label-2286
SELECT ALL MAX( DISTINCT - col0 ) AS col0, - 47 - - 94 FROM tab2 AS cor0
----
-46
47

skipif mysql # not compatible
query II rowsort label-2286
SELECT ALL MAX ( DISTINCT - col0 ) AS col0, - 47 - - 94 FROM tab2 AS cor0
----
-46
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT 83 DIV col0 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2287
SELECT 83 / col0 AS col1 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2288
SELECT MAX( - CAST( + + ( - col1 ) AS SIGNED ) ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2288
SELECT MAX ( - CAST ( + + ( - col1 ) AS INTEGER ) ) AS col0 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL + 96 * + COUNT( * ) FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL + 96 * + COUNT ( * ) FROM tab0
----
288

query I rowsort
SELECT DISTINCT - ( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 3 AND + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2291
SELECT ALL + - 28 AS col0, COUNT( * ) col2 FROM tab1 AS cor0
----
-28
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2291
SELECT ALL + - 28 AS col0, COUNT ( * ) col2 FROM tab1 AS cor0
----
-28
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 19 + + + 66 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2293
SELECT * FROM tab1 cor0 WHERE NOT col2 NOT IN ( + CAST( NULL AS SIGNED ) + + + col0 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-2293
SELECT * FROM tab1 cor0 WHERE NOT col2 NOT IN ( + CAST ( NULL AS INTEGER ) + + + col0 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT DISTINCT MAX( + - col2 ) + + 0 AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT MAX ( + - col2 ) + + 0 AS col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT - - col1 + - + col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT ALL + 86 + - 85 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - col1 + col1 + 88 * + col1 * - 46 - - col0 * col2 FROM tab1
----
-15225
-184068
-51776

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2298
SELECT * FROM tab2 WHERE 55 * CAST( NULL AS SIGNED ) = + col2 - col0
----

skipif mysql # not compatible
query III rowsort label-2298
SELECT * FROM tab2 WHERE 55 * CAST ( NULL AS INTEGER ) = + col2 - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2299
SELECT col1 DIV - + col0 + - col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2299
SELECT col1 / - + col0 + - col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL - 41 + + + 36 * - 67 AS col2 FROM tab1
----
-2453
-2453
-2453

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2302
SELECT COUNT( * ) * 62 AS col0, 20 AS col2 FROM tab1
----
186
20

skipif mysql # not compatible
query II rowsort label-2302
SELECT COUNT ( * ) * 62 AS col0, 20 AS col2 FROM tab1
----
186
20

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col2 IS NOT NULL )
----

query I rowsort
SELECT ALL + 15 * + col0 AS col2 FROM tab0 AS cor0
----
1305
1455
225

query I rowsort
SELECT DISTINCT 85 * - 91 + - 58 FROM tab1
----
-7793

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - + col1 * - 84 col2 FROM tab2
----
4330
5703
6532

query I rowsort
SELECT DISTINCT - 35 + 82 AS col1 FROM tab0
----
47

query I rowsort
SELECT DISTINCT 16 - col1 AS col0 FROM tab2 cor0
----
-35
-51
-61

query I rowsort
SELECT ALL col2 * + 71 - - - 90 AS col0 FROM tab2 AS cor0
----
1543
2750
4028

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT COUNT( * ) FROM tab0 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2310
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 36 - + col0 + + + col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * + - ( - - ( - 94 ) ) col0 FROM tab1 AS cor0
----
564
564
564

query I rowsort
SELECT ALL 37 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 col0 FROM tab2 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT ALL COUNT( * ) * - 94 AS col0 FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL COUNT ( * ) * - 94 AS col0 FROM tab1 AS cor0
----
-282

query I rowsort
SELECT col2 + - + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * + col0 * 60 FROM tab2
----
140760
295680
301500

query III rowsort
SELECT col0 AS col2, col1 AS col1, - col2 FROM tab0
----
9 values hashing to 18379598e11f9f7a75a003095c5165df

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 81, - 0 col2 FROM tab0 WHERE NOT ( + 27 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT COUNT( ALL - 52 ) AS col2 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2320
SELECT COUNT ( ALL - 52 ) AS col2 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

query I rowsort
SELECT ALL + 1 - + + col1 + - - col1 + - 45 * col0 AS col1 FROM tab0 WHERE NOT - + col2 * - col1 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2322
SELECT ALL * FROM tab2 WHERE ( NOT - 90 + + 51 * + col0 * + 88 * - - CAST( NULL AS SIGNED ) > ( + 15 ) )
----

skipif mysql # not compatible
query III rowsort label-2322
SELECT ALL * FROM tab2 WHERE ( NOT - 90 + + 51 * + col0 * + 88 * - - CAST ( NULL AS INTEGER ) > ( + 15 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT MIN( DISTINCT + ( + 16 ) ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-2323
SELECT MIN ( DISTINCT + ( + 16 ) ) FROM tab2
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2324
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - CAST( NULL AS DECIMAL ) * + + 21 IN ( + col0, col1 )
----

skipif mysql # not compatible
query III rowsort label-2324
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - CAST ( NULL AS REAL ) * + + 21 IN ( + col0, col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * + col0 * + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col1 + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2327
SELECT - ( - + MIN( ALL CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2327
SELECT - ( - + MIN ( ALL CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - col0 AS col0, + col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT - - MAX( DISTINCT + - col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2329
SELECT - - MAX ( DISTINCT + - col0 ) FROM tab2 cor0
----
-46

query I rowsort
SELECT + + ( 11 ) * + col1 FROM tab1 AS cor0
----
154
517
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2331
SELECT - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2331
SELECT - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 34 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT + COUNT( * ) * + 21 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
189

skipif mysql # not compatible
query I rowsort label-2333
SELECT + COUNT ( * ) * + 21 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
189

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2335
SELECT + 10 DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2335
SELECT + 10 / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL AVG ( DISTINCT col1 ) col2 FROM tab0 cor0 WHERE NULL <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT + SUM( + + 72 ) FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-2337
SELECT + SUM ( + + 72 ) FROM tab1 AS cor0
----
216

query II rowsort
SELECT ALL - 19 + - 43 * - 38 AS col0, 23 + 61 FROM tab2
----
1615
84
1615
84
1615
84

query II rowsort
SELECT DISTINCT col2 * + col2 + - 75 * 43, + col2 FROM tab2
----
-1625
40
-2696
23
139
58

query I rowsort
SELECT ALL 55 + + col0 FROM tab1
----
106
140
146

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 68 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT DISTINCT col1 + - + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT col1 + - + col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( - 83 ) * col0 + + col1 * col0 FROM tab2
----
-1200
-1472
-384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 87 col1, - 10 + + col2 AS col1 FROM tab1 AS cor0
----
87
49
87
58
87
86

query I rowsort
SELECT ALL - 78 + - col1 AS col0 FROM tab0 AS cor0
----
-159
-79
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT - + COUNT( - + col1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2347
SELECT - + COUNT ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 / - col1 / col2 * - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT DISTINCT + + COUNT( * ) * + 29 FROM tab0 WHERE NULL IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-2349
SELECT DISTINCT + + COUNT ( * ) * + 29 FROM tab0 WHERE NULL IS NULL
----
87

query I rowsort
SELECT - col0 + col0 + + col0 FROM tab0 WHERE - 63 NOT BETWEEN - 32 AND col2
----
15
87
97

query I rowsort
SELECT - + 33 - + - col1 AS col1 FROM tab0 AS cor0
----
-12
-32
48

onlyif mysql # DIV for integer division: 
query II rowsort label-2352
SELECT ALL - 30 DIV col2 * + col0 AS col0, 76 + + - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-261
-11
0
-21
0
61

skipif mysql # not compatible
query II rowsort label-2352
SELECT ALL - 30 / col2 * + col0 AS col0, 76 + + - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-261
-11
0
-21
0
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT - - ( - - MAX( ALL + col0 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2353
SELECT - - ( - - MAX ( ALL + col0 ) ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT - col0 * - - 5 AS col2 FROM tab0 AS cor0
----
-435
-485
-75

query II rowsort
SELECT ALL 53 - + + col0 + col2 * + 56 - ( col2 ) + + + col1 - + col0 AS col0, + col1 AS col2 FROM tab2 WHERE NOT + - col0 <= ( + col1 )
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE col2 - 55 / col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL + 6 * + col1 FROM tab0
----
126
486
6

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / 67 * + col1 * col2 NOT IN ( - 51, - col0, 96 - + - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2359
SELECT - 74 * + + ( + COUNT( * ) ) DIV COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-2359
SELECT - 74 * + + ( + COUNT ( * ) ) / COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-2360
SELECT DISTINCT - col2 DIV - col0 AS col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT - col2 / - col0 AS col0 FROM tab0
----
0
1
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - - col0 / + col0 + col1
----

query I rowsort
SELECT - 35 + 67 * 33 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 029b5a46b3090c4cbf2982646da25f08

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT ALL + + MIN( + 63 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
63

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL + + MIN ( + 63 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
63

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 IS NOT NULL AND NOT - col2 * - col0 + + + col1 * - col0 < ( - col1 )
----

query II rowsort
SELECT DISTINCT 81, 83 AS col2 FROM tab1 AS cor0
----
81
83

query I rowsort
SELECT DISTINCT - 25 + + + 38 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2367
SELECT ALL - SUM( DISTINCT + + 62 ), + 8 AS col2 FROM tab0 cor0
----
-62
8

skipif mysql # not compatible
query II rowsort label-2367
SELECT ALL - SUM ( DISTINCT + + 62 ), + 8 AS col2 FROM tab0 cor0
----
-62
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2368
SELECT DISTINCT - 57 DIV - + MIN( ALL - + col2 ) - + - COUNT( * ) + + SUM( ALL - col2 ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT - 57 / - + MIN ( ALL - + col2 ) - + - COUNT ( * ) + + SUM ( ALL - col2 ) FROM tab2
----
-118

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 + + 14 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 + + col0 col2 FROM tab0
----
160
170
88

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( - 21 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT - 97 + col2 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT col1 + - - 52 AS col1 FROM tab0 cor0
----
133
53
73

query I rowsort
SELECT 52 - + - col2 AS col2 FROM tab0 AS cor0
----
151
62
99

query I rowsort
SELECT ALL + col0 + + col1 * + col1 FROM tab0 AS cor0
----
528
6576
98

query II rowsort
SELECT - - 47 + - - 72, + col1 AS col1 FROM tab2 AS cor0
----
119
51
119
67
119
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2377
SELECT CAST( NULL AS SIGNED ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT DISTINCT - MIN( ALL col0 ) AS col1 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT - MIN ( ALL col0 ) AS col1 FROM tab1 cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - col1 col2 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + + 97 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - col2, col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= 79
----

query I rowsort
SELECT - 46 * - col0 AS col2 FROM tab1 AS cor0
----
2346
3910
4186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col0 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT DISTINCT + 33 * 34 FROM tab1 AS cor0
----
1122

query II rowsort
SELECT col2 * - - 67 AS col0, col1 - - 19 - 45 * col2 FROM tab2
----
1541
-965
2680
-1704
3886
-2524

onlyif mysql # aggregate syntax: 
query II rowsort label-2387
SELECT SUM( ALL col1 ) AS col2, SUM( - 8 ) * COUNT( * ) FROM tab0
----
103
-72

skipif mysql # not compatible
query II rowsort label-2387
SELECT SUM ( ALL col1 ) AS col2, SUM ( - 8 ) * COUNT ( * ) FROM tab0
----
103
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT ( - + MIN( DISTINCT + col2 ) ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2388
SELECT ( - + MIN ( DISTINCT + col2 ) ) AS col1 FROM tab1
----
-59

query I rowsort
SELECT DISTINCT - 12 * - col0 AS col1 FROM tab2
----
552
768
900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * col0 + + col1 + col2 * + - 79 + + 22, col2 col0 FROM tab0 WHERE NOT + - 87 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col0 col2 FROM tab2 AS cor0 WHERE NULL BETWEEN 50 AND + - col0
----

query I rowsort
SELECT ALL + col2 * + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2393
SELECT COUNT( * ) * CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2393
SELECT COUNT ( * ) * CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
-9

query I rowsort
SELECT 34 * col2 FROM tab2
----
1360
1972
782

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL + MAX( DISTINCT + - 86 ) FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL + MAX ( DISTINCT + - 86 ) FROM tab0 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT - COUNT( * ) * 88 AS col2 FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-2396
SELECT - COUNT ( * ) * 88 AS col2 FROM tab0 AS cor0
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2397
SELECT DISTINCT CAST( - - col1 AS SIGNED ) * + + 37 col0, 49 FROM tab2 AS cor0
----
1887
49
2479
49
2849
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2397
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) * + + 37 col0, 49 FROM tab2 AS cor0
----
1887
49
2479
49
2849
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2398
SELECT - + col2 DIV - 34 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2398
SELECT - + col2 / - 34 FROM tab2 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 * + - 96 col2 FROM tab1 AS cor0
----
2784
2784
2784

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2400
SELECT ALL + + CAST( - col0 AS DECIMAL ) + - + ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL + + CAST ( - col0 AS REAL ) + - + ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE col0 + + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT DISTINCT 62 - - + 38 DIV + 37 AS col2 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT 62 - - + 38 / + 37 AS col2 FROM tab0
----
63

query I rowsort
SELECT ALL col0 + - col0 - - 6 FROM tab2
----
6
6
6

query I rowsort
SELECT DISTINCT - ( + - 42 ) FROM tab1
----
42

query I rowsort
SELECT ALL - col0 - + + col1 + col1 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE NULL = col1
----

query I rowsort
SELECT + ( - col2 ) + - 59 AS col2 FROM tab2 AS cor0
----
-117
-82
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2408
SELECT - SUM( - + col2 ) AS col2, - 32 col2 FROM tab1 AS cor0
----
223
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2408
SELECT - SUM ( - + col2 ) AS col2, - 32 col2 FROM tab1 AS cor0
----
223
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab1 WHERE NULL > + 87
----

query I rowsort
SELECT + 14 * + + col2 FROM tab1
----
1344
826
952

query I rowsort
SELECT DISTINCT - 59 * + + col0 * ( col2 ) AS col1 FROM tab1 AS cor0
----
-288864
-295885
-365092

query I rowsort
SELECT ALL col0 + - - col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
102
170
182

query I rowsort
SELECT DISTINCT - 31 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 47 * - + ( - 0 ) AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT DISTINCT SUM( ALL + - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT SUM ( ALL + - col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2416
SELECT + CAST( - - CAST( + + ( COUNT( * ) ) AS SIGNED ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2416
SELECT + CAST ( - - CAST ( + + ( COUNT ( * ) ) AS INTEGER ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 20 * + 67 FROM tab0
----
1340
1340
1340

query II rowsort
SELECT 20, + ( - col2 ) AS col2 FROM tab0
----
20
-10
20
-47
20
-99

query II rowsort
SELECT DISTINCT col1, 9 AS col1 FROM tab0
----
1
9
21
9
81
9

query I rowsort
SELECT col2 * + 37 FROM tab1
----
2183
2516
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT SUM( ALL - col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2422
SELECT SUM ( ALL - col0 ) AS col1 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT SUM( ALL - col0 ) col0 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2423
SELECT SUM ( ALL - col0 ) col0 FROM tab1
----
-227

query I rowsort
SELECT 92 + + 69 FROM tab1
----
161
161
161

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT COUNT( DISTINCT 95 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2425
SELECT COUNT ( DISTINCT 95 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2426
SELECT ALL ( col0 ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST( + col0 AS SIGNED ) - ( + ( col2 ) + CAST( NULL AS SIGNED ) ) AND col1 * + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL ( col0 ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST ( + col0 AS INTEGER ) - ( + ( col2 ) + CAST ( NULL AS INTEGER ) ) AND col1 * + CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 18 NOT IN ( col1 + 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT DISTINCT COUNT( * ) * + MAX( 39 ) AS col2 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT COUNT ( * ) * + MAX ( 39 ) AS col2 FROM tab1
----
117

query I rowsort
SELECT DISTINCT 33 + - col2 AS col0 FROM tab0
----
-14
-66
23

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT col1 IN ( - 20 * col1 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ALL COUNT( * ) FROM tab1 WHERE 79 * + 6 NOT BETWEEN ( NULL ) AND + col2 + 15
----
3

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL COUNT ( * ) FROM tab1 WHERE 79 * + 6 NOT BETWEEN ( NULL ) AND + col2 + 15
----
3

query I rowsort
SELECT - col0 * col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT + col2 * col0 AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * 11 AS col1 FROM tab0
----
-1089
-110
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT - 68 + + COUNT( * ) FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-2436
SELECT - 68 + + COUNT ( * ) FROM tab0
----
-65

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE col1 + - col1 <= ( - col0 + - col2 / col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2438
SELECT ALL + 80 DIV col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL + 80 / col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + ( 79 ) FROM tab0 WHERE 30 IS NOT NULL
----
79
79
79

query I rowsort
SELECT ALL col0 * - col2 + - 51 * + 4 AS col2 FROM tab1
----
-5100
-5219
-6392

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2441
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) > CAST( + ( + col2 ) AS SIGNED ) + col0
----

skipif mysql # not compatible
query III rowsort label-2441
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) > CAST ( + ( + col2 ) AS INTEGER ) + col0
----

query I rowsort
SELECT DISTINCT - ( + col2 ) * col2 AS col1 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NULL = - col0
----

query I rowsort
SELECT + col2 + + 34 FROM tab2
----
57
74
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2445
SELECT ALL CAST( 4 AS SIGNED ) FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL CAST ( 4 AS INTEGER ) FROM tab2
----
4
4
4

query I rowsort
SELECT col0 + col2 * - ( - 54 + col1 ) AS col0 FROM tab1
----
2976
3891
567

query I rowsort
SELECT DISTINCT - col0 * + ( 40 ) AS col0 FROM tab0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT COUNT( * ) + 15 AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-2448
SELECT COUNT ( * ) + 15 AS col1 FROM tab0
----
18

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 * col0 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * ( - col1 ) AS col2 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2451
SELECT ALL + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT ALL MIN( ALL col0 ) * 2 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL MIN ( ALL col0 ) * 2 FROM tab2
----
92

query I rowsort
SELECT ALL - 8 FROM tab0 WHERE NOT - col2 + col1 BETWEEN - col1 * - col2 AND + col0 * col2
----
-8
-8
-8

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( 13 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2455
SELECT DISTINCT * FROM tab1 WHERE NOT - 13 NOT BETWEEN + col1 + 77 * - col1 AND - CAST( - col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2455
SELECT DISTINCT * FROM tab1 WHERE NOT - 13 NOT BETWEEN + col1 + 77 * - col1 AND - CAST ( - col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2456
SELECT * FROM tab1 WHERE CAST( + col0 AS SIGNED ) + col1 NOT BETWEEN - col1 AND col0 * col2
----

skipif mysql # not compatible
query III rowsort label-2456
SELECT * FROM tab1 WHERE CAST ( + col0 AS INTEGER ) + col1 NOT BETWEEN - col1 AND col0 * col2
----

query I rowsort
SELECT ALL + col2 * 48 + + ( col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( col0 ) AND ( + 95 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 / - 92 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 48 AS col0 FROM tab2 cor0 WHERE NOT 12 IS NULL
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT ALL - SUM( - 84 ) * + 64 FROM tab0
----
16128

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL - SUM ( - 84 ) * + 64 FROM tab0
----
16128

query I rowsort
SELECT - 4 AS col2 FROM tab1 AS cor0 WHERE NOT ( - ( + col0 ) ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + 75 col2 FROM tab2 cor0
----
1725
3000
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * + col0 col1 FROM tab2 AS cor0 WHERE NOT + col2 + - 11 IS NULL
----
2254
3136
3675

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 52 * - col2 BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2465
SELECT ALL - col0 + 47 * + 96 FROM tab0 AS cor0 WHERE NOT - col2 * + CAST( NULL AS SIGNED ) + + 71 BETWEEN 9 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL - col0 + 47 * + 96 FROM tab0 AS cor0 WHERE NOT - col2 * + CAST ( NULL AS INTEGER ) + + 71 BETWEEN 9 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL IN ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2467
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND col1 + - CAST( - 7 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND col1 + - CAST ( - 7 AS INTEGER )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 / col2 NOT BETWEEN + col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT 66 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT DISTINCT ( + CAST( - 32 AS SIGNED ) ) + col1 FROM tab2
----
19
35
45

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT ( + CAST ( - 32 AS INTEGER ) ) + col1 FROM tab2
----
19
35
45

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) > - 51
----

query I rowsort
SELECT + 84 * col0 AS col0 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT ( - col2 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 BETWEEN NULL AND + col2 / + col0
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2476
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL MIN( - + 70 ) AS col1 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL MIN ( - + 70 ) AS col1 FROM tab0 AS cor0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2478
SELECT ALL col2 * col2 + ( - CAST( - col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
110
2256
9900

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL col2 * col2 + ( - CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
110
2256
9900

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL - COUNT( * ) AS col2 FROM tab0 cor0 WHERE 96 * col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE 96 * col2 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 * col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 59 * + col1 AS col0 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + 0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL ( - 54 ) * + ( col2 ) * col0 FROM tab1
----
-264384
-270810
-334152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT - + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2484
SELECT - + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 > col2 + 79
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-2486
SELECT ALL + + col0 col2, ( - 51 ) DIV col0 FROM tab2 AS cor0
----
46
-1
64
0
75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2486
SELECT ALL + + col0 col2, ( - 51 ) / col0 FROM tab2 AS cor0
----
46
-1
64
0
75
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2487
SELECT col0, col1 DIV + col2 * 25 AS col1 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-2487
SELECT col0, col1 / + col2 * 25 AS col1 FROM tab1 AS cor0
----
51
0
85
0
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT ALL - 44 + - - 49 AS col0 FROM tab0 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT DISTINCT + + COUNT( - 12 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT + + COUNT ( - 12 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 * - col1 - 24 FROM tab0 cor0 WHERE NOT + col1 * - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL MAX( col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) IN ( + col2 * - 1 )
----
58

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL MAX ( col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) IN ( + col2 * - 1 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2493
SELECT ALL MIN( + - 19 ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL MIN ( + - 19 ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 28 + 84 FROM tab0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ALL + 52 - COUNT( * ) FROM tab0 WHERE ( NULL ) IS NULL
----
49

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL + 52 - COUNT ( * ) FROM tab0 WHERE ( NULL ) IS NULL
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2496
SELECT DISTINCT + col2 + + col0 + - + col2 DIV - col0 FROM tab0
----
197
65
97

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT + col2 + + col0 + - + col2 / - col0 FROM tab0
----
197
65
97

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
23
40
58

query I rowsort
SELECT 87 + + - col1 AS col2 FROM tab2
----
10
20
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2499
SELECT DISTINCT AVG ( ALL - 11 ) * - COUNT( - 50 ) - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT AVG ( ALL - 11 ) * - COUNT ( - 50 ) - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT 61 FROM tab2 WHERE NOT + + 3 >= + col1
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2501
SELECT DISTINCT * FROM tab1 WHERE ( + - col2 * + ( CAST( 56 AS SIGNED ) ) ) BETWEEN NULL AND col2
----

skipif mysql # not compatible
query III rowsort label-2501
SELECT DISTINCT * FROM tab1 WHERE ( + - col2 * + ( CAST ( 56 AS INTEGER ) ) ) BETWEEN NULL AND col2
----

query I rowsort
SELECT col0 * + 52 * + ( + col0 ) FROM tab1
----
135252
375700
430612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2503
SELECT + col2 * 2 + + CAST( + 56 AS SIGNED ) FROM tab0 AS cor0
----
150
254
76

skipif mysql # not compatible
query I rowsort label-2503
SELECT + col2 * 2 + + CAST ( + 56 AS INTEGER ) FROM tab0 AS cor0
----
150
254
76

query I rowsort
SELECT DISTINCT col2 * + - 53 AS col0 FROM tab2 AS cor0
----
-1219
-2120
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL + MIN( - 66 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + MIN ( - 66 ) AS col1 FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2506
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2506
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - + col2 + col2 + - ( + - col1 ) * - col1 AS col1 FROM tab2 cor0
----
-2601
-4489
-5929

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * + ( + - 9 ) IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT ALL COUNT( * ) - - 64 FROM tab2 AS cor0 WHERE ( + col1 ) = 56 + + 96 + - col1
----
64

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL COUNT ( * ) - - 64 FROM tab2 AS cor0 WHERE ( + col1 ) = 56 + + 96 + - col1
----
64

query I rowsort
SELECT col0 + + + col1 FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT ALL 73 + - col0 FROM tab1
----
-12
-18
22

query II rowsort
SELECT ALL col0, + col2 AS col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT DISTINCT SUM( - 22 ) + COUNT( * ) AS col0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT SUM ( - 22 ) + COUNT ( * ) AS col0 FROM tab0
----
-63

query I rowsort
SELECT - ( + ( - - col1 ) ) + - 94 AS col1 FROM tab0
----
-115
-175
-95

query I rowsort
SELECT DISTINCT + ( + + col1 ) FROM tab2 WHERE 40 IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE col2 * + 53 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 82 < 32 / - + 16 - + col0 - col1 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2518
SELECT col1, - CAST( col1 AS SIGNED ) + col1 * + col0 AS col2 FROM tab1
----
14
700
47
4230
5
420

skipif mysql # not compatible
query II rowsort label-2518
SELECT col1, - CAST ( col1 AS INTEGER ) + col1 * + col0 AS col2 FROM tab1
----
14
700
47
4230
5
420

query I rowsort
SELECT ALL ( + - col0 ) AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2520
SELECT + col1 DIV - 7 col2 FROM tab0
----
-11
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2520
SELECT + col1 / - 7 col2 FROM tab0
----
-11
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2521
SELECT * FROM tab1 WHERE ( + col0 + - CAST( NULL AS SIGNED ) * + + 66 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2521
SELECT * FROM tab1 WHERE ( + col0 + - CAST ( NULL AS INTEGER ) * + + 66 ) IS NOT NULL
----

query II rowsort
SELECT ALL - 78 AS col2, col2 FROM tab0 AS cor0
----
-78
10
-78
47
-78
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2523
SELECT - 31 DIV + SUM( col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2523
SELECT - 31 / + SUM ( col2 ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL + col2 - + - col0 AS col2, + 46 + + + 63 * - + 98 FROM tab0 cor0
----
196
-6128
62
-6128
97
-6128

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT DISTINCT - + 28 - - MAX( ALL col0 ) col0 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2525
SELECT DISTINCT - + 28 - - MAX ( ALL col0 ) col0 FROM tab2 AS cor0
----
47

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
51
67
77

query I rowsort
SELECT ( + col1 ) * col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # DIV for integer division: 
query II rowsort label-2528
SELECT col2 DIV + col2 AS col1, + 10 AS col1 FROM tab0 AS cor0
----
1
10
1
10
1
10

skipif mysql # not compatible
query II rowsort label-2528
SELECT col2 / + col2 AS col1, + 10 AS col1 FROM tab0 AS cor0
----
1
10
1
10
1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT - COUNT( DISTINCT + - 48 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2529
SELECT - COUNT ( DISTINCT + - 48 ) AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL + COUNT( ALL ( + col0 ) ) + + 0 AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL + COUNT ( ALL ( + col0 ) ) + + 0 AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL < 50 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2532
SELECT CAST( NULL AS SIGNED ) * - + 5 * + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2532
SELECT CAST ( NULL AS INTEGER ) * - + 5 * + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT 49 * - col0 AS col1 FROM tab2
----
-2254
-3136
-3675

query I rowsort
SELECT ALL - 6 AS col1 FROM tab1 WHERE NOT - col0 + - 31 <= NULL
----

query II rowsort
SELECT DISTINCT - ( - - col2 ) * - + 93 AS col0, + col0 AS col0 FROM tab0
----
4371
15
9207
97
930
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT SUM( DISTINCT + 9 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-2536
SELECT SUM ( DISTINCT + 9 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2537
SELECT CAST( NULL AS SIGNED ) * 91 AS col1 FROM tab0 WHERE NOT + ( + col2 ) - col2 - + col2 IN ( + ( + 80 ) * 23 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT CAST ( NULL AS INTEGER ) * 91 AS col1 FROM tab0 WHERE NOT + ( + col2 ) - col2 - + col2 IN ( + ( + 80 ) * 23 )
----
NULL
NULL
NULL

query I rowsort
SELECT 2 * + col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT DISTINCT + 93 * - col2 FROM tab2 AS cor0
----
-2139
-3720
-5394

query I rowsort
SELECT ALL + + col2 * - + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query II rowsort label-2541
SELECT ( - - 86 ), + SUM( ALL ( 21 ) ) AS col0 FROM tab0
----
86
63

skipif mysql # not compatible
query II rowsort label-2541
SELECT ( - - 86 ), + SUM ( ALL ( 21 ) ) AS col0 FROM tab0
----
86
63

query II rowsort
SELECT DISTINCT - col0 * + 31 AS col2, - col1 * + col0 AS col1 FROM tab2
----
-1426
-2346
-1984
-4928
-2325
-5025

query I rowsort
SELECT 41 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # DIV for integer division: 
query I rowsort label-2544
SELECT DISTINCT + col1 DIV 25 + + 18 * + - col0 FROM tab0 AS cor0 WHERE col1 * col0 * col1 - col0 IS NOT NULL
----
-1566
-1746
-267

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT + col1 / 25 + + 18 * + - col0 FROM tab0 AS cor0 WHERE col1 * col0 * col1 - col0 IS NOT NULL
----
-1566
-1746
-267

query I rowsort
SELECT col2 * - - col1 AS col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2546
SELECT ALL ( + - SUM( - + 73 ) ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL ( + - SUM ( - + 73 ) ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col2 * - col0 + - col0 AS col2 FROM tab2
----
-1104
-2624
-4425

query I rowsort
SELECT - col1 * col2 + - 65 FROM tab1
----
-1409
-3261
-360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 AS cor0 WHERE NOT 48 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL SUM( ALL + - ( - - 83 ) ) AS col2 FROM tab0 cor0
----
-249

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL SUM ( ALL + - ( - - 83 ) ) AS col2 FROM tab0 cor0
----
-249

query I rowsort
SELECT 24 * + col0 * col2 + - 7 AS col1 FROM tab0 AS cor0
----
16913
20873
230465

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2552
SELECT - col0 + - col2 + col0 * + col1 + + col1 - + CAST( NULL AS DECIMAL ) / col1 + ( - - 56 ) * - 45 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2552
SELECT - col0 + - col2 + col0 * + col1 + + col1 - + CAST ( NULL AS REAL ) / col1 + ( - - 56 ) * - 45 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 + col0 * + - col1 FROM tab0 cor0
----
-1134
-1806
-96

query I rowsort
SELECT ALL col1 + - 30 FROM tab0 AS cor0
----
-29
-9
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2555
SELECT 43 + + CAST( NULL AS SIGNED ) * - 42 + + - col1 + + 11 AS col2, 64 + 65 AS col0 FROM tab1 WHERE NULL BETWEEN 89 AND ( - col0 )
----

skipif mysql # not compatible
query II rowsort label-2555
SELECT 43 + + CAST ( NULL AS INTEGER ) * - 42 + + - col1 + + 11 AS col2, 64 + 65 AS col0 FROM tab1 WHERE NULL BETWEEN 89 AND ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * + - 61 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT DISTINCT + 62 + ( + COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT + 62 + ( + COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab1
----
71

query I rowsort
SELECT ( ( 5 ) ) AS col1 FROM tab0
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - 10 col2 FROM tab2
----
51
-10
67
-10
77
-10

query II rowsort
SELECT DISTINCT + 90, + col0 FROM tab2
----
90
46
90
64
90
75

query I rowsort
SELECT - col2 - col1 AS col2 FROM tab2 cor0
----
-117
-125
-74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 71 * 71 / - col2 + + 73 - - col2 * + + 64 IS NULL AND NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 53 * - col0 + 52 col1 FROM tab0 AS cor0
----
4663
5193
847

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT 86 + COUNT( * ) FROM tab1 cor0
----
89

skipif mysql # not compatible
query I rowsort label-2564
SELECT 86 + COUNT ( * ) FROM tab1 cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2565
SELECT + - CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2565
SELECT + - CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - col1 * col2 * + - 68 FROM tab1
----
20060
217328
91392

query I rowsort
SELECT + 10 * - ( - col1 ) AS col2 FROM tab0
----
10
210
810

query II rowsort
SELECT + col0 * + col2, col2 FROM tab0
----
705
47
870
10
9603
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2569
SELECT col1 DIV + - 14 AS col0 FROM tab2
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-2569
SELECT col1 / + - 14 AS col0 FROM tab2
----
-3
-4
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2570
SELECT COUNT( ALL 34 ) DIV COUNT( * ) FROM tab1, tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2570
SELECT COUNT ( ALL 34 ) / COUNT ( * ) FROM tab1, tab0 AS cor0
----
1

query I rowsort
SELECT + col2 * + col1 * + col0 * + ( + col2 ) FROM tab1 AS cor0
----
1479425
19776848
6580224

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT DISTINCT + + COUNT( - col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT + + COUNT ( - col1 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + + col2 AND NULL
----

query I rowsort
SELECT ALL + ( + 31 ) * + + col1 FROM tab0 cor0
----
2511
31
651

query I rowsort
SELECT DISTINCT col0 * + - col0 AS col2 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT - 46 FROM tab0 WHERE NOT ( - 62 ) IS NOT NULL
----

query I rowsort
SELECT 56 * - + col0 FROM tab0
----
-4872
-5432
-840

query I rowsort
SELECT - + col0 * col2 / - + 26 AS col0 FROM tab1 cor0 WHERE NOT NULL < + ( - + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col1 <= ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT ALL + ( - + ( - 79 ) ) * - COUNT( * ) col1 FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2580
SELECT ALL + ( - + ( - 79 ) ) * - COUNT ( * ) col1 FROM tab2 AS cor0
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-3

query I rowsort
SELECT - - col2 + - - 24 * - 76 FROM tab2 cor0
----
-1766
-1784
-1801

query I rowsort
SELECT DISTINCT col0 * + col2 * - col2 FROM tab1 AS cor0
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT - ( + + 8 ) + - - ( + ( COUNT( * ) ) ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-2584
SELECT - ( + + 8 ) + - - ( + ( COUNT ( * ) ) ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT ALL + COUNT( * ) + + 87 AS col0 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL + COUNT ( * ) + + 87 AS col0 FROM tab1
----
90

query I rowsort
SELECT ALL 4 * col2 AS col0 FROM tab2 WHERE - - 32 NOT BETWEEN - col0 AND - + col2 + - + 2
----
160
232
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2587
SELECT CAST( - + 69 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE col1 + + 53 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2587
SELECT CAST ( - + 69 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE col1 + + 53 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2588
SELECT col2 * + col2 + - + col2 DIV col0 + - + col2 - + 47 AS col1 FROM tab2 AS cor0
----
1513
3259
459

skipif mysql # not compatible
query I rowsort label-2588
SELECT col2 * + col2 + - + col2 / col0 + - + col2 - + 47 AS col1 FROM tab2 AS cor0
----
1513
3259
459

query II rowsort
SELECT DISTINCT 71 + + col0, ( + + col0 ) AS col1 FROM tab0 AS cor0
----
158
87
168
97
86
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT - MIN( ALL + col0 ) + COUNT( * ) AS col2 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-2590
SELECT - MIN ( ALL + col0 ) + COUNT ( * ) AS col2 FROM tab0
----
-12

query I rowsort
SELECT DISTINCT 6 - 27 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-21

query I rowsort
SELECT DISTINCT 67 - + col1 AS col1 FROM tab0
----
-14
46
66

query I rowsort
SELECT ( + 85 ) AS col0 FROM tab2 cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT DISTINCT - + MAX( + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT - + MAX ( + col0 ) AS col0 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT DISTINCT COUNT( ALL + - col1 ) FROM tab2 AS cor0 WHERE NOT + 32 + col0 * + 39 * - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT COUNT ( ALL + - col1 ) FROM tab2 AS cor0 WHERE NOT + 32 + col0 * + 39 * - col2 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2596
SELECT + 21 DIV - col2 - col2 AS col2 FROM tab0 AS cor0
----
-12
-47
-99

skipif mysql # not compatible
query I rowsort label-2596
SELECT + 21 / - col2 - col2 AS col2 FROM tab0 AS cor0
----
-12
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT ALL - COUNT( * ) * + 89 AS col0 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL - COUNT ( * ) * + 89 AS col0 FROM tab2
----
-267

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + 37 FROM tab2
----
-1702
-2368
-2775

query I rowsort
SELECT - 19 * + + col0 AS col1 FROM tab2
----
-1216
-1425
-874

query II rowsort
SELECT ALL - col0 AS col2, - 75 AS col1 FROM tab1
----
-51
-75
-85
-75
-91
-75

query II rowsort
SELECT ALL + 67, - col0 AS col0 FROM tab0
----
67
-15
67
-87
67
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT DISTINCT + MIN( + col1 ) AS col0 FROM tab2 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT DISTINCT + MIN ( + col1 ) AS col0 FROM tab2 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT + - col0 + - - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 8 AS col0, col1 FROM tab2
----
8
51
8
67
8
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2606
SELECT - - ( - - COUNT( * ) ) / - - 30 + CAST( NULL AS SIGNED ) AS col0, COUNT( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2606
SELECT - - ( - - COUNT ( * ) ) / - - 30 + CAST ( NULL AS INTEGER ) AS col0, COUNT ( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----
NULL
0

query II rowsort
SELECT DISTINCT col0 * - + col1 AS col0, - col0 * + + 95 AS col1 FROM tab0 AS cor0
----
-1215
-1425
-1827
-8265
-97
-9215

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL + SUM( ALL + - col1 ) - + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL + SUM ( ALL + - col1 ) - + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) < NULL
----

query I rowsort
SELECT 33 + - col1 AS col1 FROM tab0 cor0
----
-48
12
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2611
SELECT 25 * 15 AS col0, + MAX( col2 ) FROM tab0
----
375
99

skipif mysql # not compatible
query II rowsort label-2611
SELECT 25 * 15 AS col0, + MAX ( col2 ) FROM tab0
----
375
99

query II rowsort
SELECT - - col1 * + 62 AS col1, - col2 AS col2 FROM tab2 AS cor0
----
3162
-23
4154
-58
4774
-40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + + col0 - + - 26 <> + + 35
----

query I rowsort
SELECT DISTINCT 3 + - 20 FROM tab2 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT ALL - MAX( + ( col1 ) ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL - MAX ( + ( col1 ) ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-77

query I rowsort
SELECT ALL + 74 * - + col1 AS col1 FROM tab0 AS cor0
----
-1554
-5994
-74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 73 * - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 + - 7 col0 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT + col1 - col0 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-2620
SELECT DISTINCT - ( + - 7 ) DIV + col1 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2620
SELECT DISTINCT - ( + - 7 ) / + col1 col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2621
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 56 NOT IN ( + ( CAST( NULL AS SIGNED ) ) ) AND NULL IS NULL
----

skipif mysql # not compatible
query III rowsort label-2621
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 56 NOT IN ( + ( CAST ( NULL AS INTEGER ) ) ) AND NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT ALL - col2 + - + 90 DIV - col0 - - col2 * - + 89 FROM tab1
----
-5309
-6120
-8639

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL - col2 + - + 90 / - col0 - - col2 * - + 89 FROM tab1
----
-5309
-6120
-8639

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-2624
SELECT + 99 + - col1 DIV + col0, + 84 AS col0 FROM tab1
----
99
84
99
84
99
84

skipif mysql # not compatible
query II rowsort label-2624
SELECT + 99 + - col1 / + col0, + 84 AS col0 FROM tab1
----
99
84
99
84
99
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT DISTINCT ( + col2 ) * - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT ( + col2 ) * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2626
SELECT - 90 DIV - COUNT( * ) + - COUNT( * ) + + MIN( ALL - col2 ) AS col2 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-2626
SELECT - 90 / - COUNT ( * ) + - COUNT ( * ) + + MIN ( ALL - col2 ) AS col2 FROM tab1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 59 * - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2627
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 59 * - col2 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2628
SELECT ALL - 71 / + 29 - MAX( + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL - 71 / + 29 - MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2629
SELECT DISTINCT + + ( + CAST( - 87 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT + + ( + CAST ( - 87 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT ALL 11 + - SUM( ALL - 16 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL 11 + - SUM ( ALL - 16 ) FROM tab1
----
59

query I rowsort
SELECT ALL - - 54 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT 8 - - col2 FROM tab2
----
31
48
66

query II rowsort
SELECT DISTINCT - col2 * col0, - col2 AS col2 FROM tab1 cor0
----
-4896
-96
-5015
-59
-6188
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2634
SELECT + ( + CAST( NULL AS DECIMAL ) ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2634
SELECT + ( + CAST ( NULL AS REAL ) ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT DISTINCT - - MIN( ALL - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT - - MIN ( ALL - col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT - 90 * - col1 AS col0 FROM tab1 AS cor0
----
1260
4230
450

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2638
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 72 * - - CAST( - col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2638
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 72 * - - CAST ( - col2 AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT ALL COUNT( ALL + + col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL COUNT ( ALL + + col2 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT + 36 * - ( - COUNT( 77 ) ) AS col0 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-2640
SELECT + 36 * - ( - COUNT ( 77 ) ) AS col0 FROM tab1
----
108

query II rowsort
SELECT DISTINCT col0 AS col0, col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NOT col0 * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2642
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NOT col0 * + col0 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( col1, col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 + + col0 - + 0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2645
SELECT ALL - 98 + + COUNT( * ) + CAST( NULL AS DECIMAL ) AS col2, 43 AS col0 FROM tab1 AS cor0
----
NULL
43

skipif mysql # not compatible
query II rowsort label-2645
SELECT ALL - 98 + + COUNT ( * ) + CAST ( NULL AS REAL ) AS col2, 43 AS col0 FROM tab1 AS cor0
----
NULL
43

onlyif mysql # aggregate syntax: 
query II rowsort label-2646
SELECT - COUNT( * ) AS col2, 96 AS col2 FROM tab2 AS cor0
----
-3
96

skipif mysql # not compatible
query II rowsort label-2646
SELECT - COUNT ( * ) AS col2, 96 AS col2 FROM tab2 AS cor0
----
-3
96

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2647
SELECT col2 col2, CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2647
SELECT col2 col2, CAST ( NULL AS REAL ) AS col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT DISTINCT + 40 + - col0 - - 90 + + - col2 + + 78 FROM tab2
----
104
139
75

query I rowsort
SELECT + - col2 + col1 - + + 59 AS col2 FROM tab1 cor0
----
-113
-141
-80

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT col2 + - + 82 FROM tab0 AS cor0 WHERE + col2 + + + col1 * col1 NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND + 83
----
-35
-72
17

skipif mysql # not compatible
query I rowsort label-2651
SELECT col2 + - + 82 FROM tab0 AS cor0 WHERE + col2 + + + col1 * col1 NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND + 83
----
-35
-72
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT DISTINCT - CAST( + - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT - CAST ( + - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL 4 * 23, + col1 FROM tab1 AS cor0
----
92
14
92
47
92
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT - COUNT( * ) + + MAX( ALL - ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT - COUNT ( * ) + + MAX ( ALL - ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
94

query I rowsort
SELECT - + 63 + - col1 FROM tab0 AS cor0
----
-144
-64
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT - + COUNT( col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2656
SELECT - + COUNT ( col0 ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - - 30 ) + - - 73 / + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT + - COUNT( - - 61 ) * - + ( + - 93 ) * + SUM( DISTINCT - 78 ) FROM tab1 AS cor0
----
21762

skipif mysql # not compatible
query I rowsort label-2658
SELECT + - COUNT ( - - 61 ) * - + ( + - 93 ) * + SUM ( DISTINCT - 78 ) FROM tab1 AS cor0
----
21762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2659
SELECT ALL col1 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL col1 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2660
SELECT ALL + col1 + - 39 + - + ( + 69 ) * + col1 FROM tab0 WHERE + col1 + - CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL + col1 + - 39 + - + ( + 69 ) * + col1 FROM tab0 WHERE + col1 + - CAST ( - col1 AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 79 / + 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT 32 - - 6 * + - COUNT( * ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-2662
SELECT 32 - - 6 * + - COUNT ( * ) FROM tab2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2663
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) - COUNT( + col0 ) + 57 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2663
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) - COUNT ( + col0 ) + 57 col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + - col1 * - col0 - - - col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 89 * + + col2 IS NOT NULL
----

query I rowsort
SELECT 42 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 + + + col0 AS col1 FROM tab2 AS cor0
----
128
150
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 27 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2669
SELECT 42, + 8 DIV + 73 * - 95 AS col1 FROM tab2
----
42
0
42
0
42
0

skipif mysql # not compatible
query II rowsort label-2669
SELECT 42, + 8 / + 73 * - 95 AS col1 FROM tab2
----
42
0
42
0
42
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT ALL + MAX( DISTINCT + + 41 ) AS col1 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL + MAX ( DISTINCT + + 41 ) AS col1 FROM tab1 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2671
SELECT DISTINCT - CAST( + col2 AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT NULL <> col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2671
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT NULL <> col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2672
SELECT - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) * - 0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2672
SELECT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) * - 0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT COUNT( * ) * - 36 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-2673
SELECT COUNT ( * ) * - 36 FROM tab0
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-2674
SELECT col1 * - + col1 DIV - col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2674
SELECT col1 * - + col1 / - col1 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2675
SELECT + 45 DIV 35 * + col2 AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2675
SELECT + 45 / 35 * + col2 AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL col2 + + + col0 * + + 3 + - - col0 AS col1 FROM tab0
----
107
358
487

query I rowsort
SELECT DISTINCT - ( + 3 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab0 WHERE NOT - + 1 * + 35 IS NULL
----
15
87
97

query I rowsort
SELECT col2 * - col0 FROM tab0 WHERE NULL NOT BETWEEN col2 + + 91 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT ALL 79 + + + SUM( 89 ) FROM tab1
----
346

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL 79 + + + SUM ( 89 ) FROM tab1
----
346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2681
SELECT COUNT( * ) AS col2, - 37 * MIN( ALL - CAST( - col1 AS SIGNED ) ) AS col1 FROM tab2
----
3
-1887

skipif mysql # not compatible
query II rowsort label-2681
SELECT COUNT ( * ) AS col2, - 37 * MIN ( ALL - CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab2
----
3
-1887

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2682
SELECT * FROM tab1 WHERE + col0 / - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2682
SELECT * FROM tab1 WHERE + col0 / - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 * + + col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT col1 * - CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT col1 * - CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2685
SELECT - - COUNT( * ) DIV - + COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2685
SELECT - - COUNT ( * ) / - + COUNT ( * ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + ( 1 ) FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL + 20 + - 66 * 3 AS col1 FROM tab2 AS cor0
----
-178
-178
-178

query I rowsort
SELECT + + col1 - + + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - 7 col1 FROM tab2 AS cor0
----
51
-7
67
-7
77
-7

query I rowsort
SELECT 93 - + + col0 - - col0 FROM tab0 AS cor0
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT ALL + - CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL + - CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT col2 + + col1 + + 95 - - + col2 AS col0 FROM tab1 AS cor0
----
218
278
301

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = + col1 + + - 28 + 46
----

query I rowsort
SELECT DISTINCT 72 + col0 AS col0 FROM tab2
----
118
136
147

query I rowsort
SELECT col1 + 28 AS col1 FROM tab1
----
33
42
75

query I rowsort
SELECT col0 + - 77 * - col0 * col2 + - col1 AS col0 FROM tab2
----
197107
334958
81461

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT - MIN( - + 65 ) + - - COUNT( * ) AS col0 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-2697
SELECT - MIN ( - + 65 ) + - - COUNT ( * ) AS col0 FROM tab0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2698
SELECT CAST( 19 AS SIGNED ) + 75 + col2 FROM tab1
----
153
162
190

skipif mysql # not compatible
query I rowsort label-2698
SELECT CAST ( 19 AS INTEGER ) + 75 + col2 FROM tab1
----
153
162
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2699
SELECT ALL col1 - - col1 * ( - CAST( NULL AS SIGNED ) ) + + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL col1 - - col1 * ( - CAST ( NULL AS INTEGER ) ) + + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL + col1 AS col2, col2 AS col0, + - 74 FROM tab2
----
9 values hashing to aa21c5c99459a3d2ca43926e85914a93

query I rowsort
SELECT + - 30 * 25 FROM tab1 AS cor0
----
-750
-750
-750

query II rowsort
SELECT ALL - + 18, - col2 AS col2 FROM tab0 AS cor0
----
-18
-10
-18
-47
-18
-99

query I rowsort
SELECT DISTINCT + - col0 * + + 39 + 96 FROM tab2 AS cor0
----
-1698
-2400
-2829

query I rowsort
SELECT DISTINCT + + 88 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
88

query I rowsort
SELECT DISTINCT + 1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2706
SELECT - 54 DIV + - 46 + 0 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2706
SELECT - 54 / + - 46 + 0 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + - 95 * ( - - col1 ) FROM tab2 AS cor0
----
-4845
-6365
-7315

query II rowsort
SELECT DISTINCT + ( + col0 ), + col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 col2 FROM tab0 cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 <> + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT DISTINCT 58 DIV + - 90 * - col0 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT 58 / + - 90 * - col0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 44 + - - col2 FROM tab1
----
103
112
140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 66 AS col1, + col2 col1 FROM tab2 WHERE NOT - - col2 IS NULL
----
66
23
66
40
66
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ALL SUM( DISTINCT + - col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL SUM ( DISTINCT + - col1 ) AS col1 FROM tab1
----
-66

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2716
SELECT ALL MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT DISTINCT MAX( ALL + - 88 ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT MAX ( ALL + - 88 ) FROM tab1 AS cor0
----
-88

query I rowsort
SELECT - col2 + - - 59 + 82 AS col1 FROM tab1 WHERE - col2 <> - col0 * + + col1
----
45
73
82

query III rowsort
SELECT * FROM tab1 WHERE - 60 IS NULL
----

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE + + col1 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2721
SELECT 7 DIV + col0 + - col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2721
SELECT 7 / + col0 + - col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL + col0 - col2 - + col1 + - 18 FROM tab2 AS cor0
----
-46
-68
-71

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - col2 - - - 38 * 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2724
SELECT DISTINCT 59 * CAST( + ( + 33 ) AS SIGNED ) * - CAST( NULL AS SIGNED ) - - ( - col0 ) * + col1 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN ( + col1 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT 59 * CAST ( + ( + 33 ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) - - ( - col0 ) * + col1 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN ( + col1 ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2725
SELECT + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE 8 <= - col0
----

skipif mysql # not compatible
query I rowsort label-2725
SELECT + - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 WHERE 8 <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2726
SELECT ALL CAST( - 19 AS SIGNED ) * + 22 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL CAST ( - 19 AS INTEGER ) * + 22 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 18 + - 53 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE 86 BETWEEN NULL AND + - ( - + col0 )
----

query I rowsort
SELECT - - 4 * - + 79 FROM tab0 AS cor0
----
-316
-316
-316

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2730
SELECT - col0 DIV + CAST( + 20 AS SIGNED ), col1 + - + col2 AS col0 FROM tab1
----
-2
-82
-4
-21
-4
-54

skipif mysql # not compatible
query II rowsort label-2730
SELECT - col0 / + CAST ( + 20 AS INTEGER ), col1 + - + col2 AS col0 FROM tab1
----
-2
-82
-4
-21
-4
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 * 75 col0 FROM tab1
----
5700
5700
5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col2 FROM tab1
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT ALL 82 - MAX( ALL - ( + - 67 ) ) - - 25 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL 82 - MAX ( ALL - ( + - 67 ) ) - - 25 FROM tab2
----
40

query I rowsort
SELECT ALL + 59 + - col2 FROM tab2
----
1
19
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT + SUM( 92 ) FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-2735
SELECT + SUM ( 92 ) FROM tab1
----
276

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 ) * + + col1 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ALL + MAX( ALL col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL + MAX ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 12 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 94 + - - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 76 FROM tab1 WHERE NOT ( NULL ) <> - ( + col0 ) * - col0 - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 35 col0, + 48 FROM tab1 cor0
----
35
48
35
48
35
48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 29 + - - col0 + + ( + - col0 ) <> col1 + + col0
----

query I rowsort
SELECT + 16 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= col0
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL 17 + - + COUNT( * ) FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL 17 + - + COUNT ( * ) FROM tab1 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2747
SELECT ALL + col1 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL + col1 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT + 33 * + - 86 AS col0 FROM tab1
----
-2838
-2838
-2838

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL 73 * - MIN( ALL - col0 ) AS col0 FROM tab1
----
6643

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL 73 * - MIN ( ALL - col0 ) AS col0 FROM tab1
----
6643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2750
SELECT DISTINCT + 59 + + col1 * - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2750
SELECT DISTINCT + 59 + + col1 * - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query II rowsort
SELECT - col1 + col1 AS col0, - col1 AS col0 FROM tab1
----
0
-14
0
-47
0
-5

query I rowsort
SELECT ALL col2 * + - col2 AS col1 FROM tab2
----
-1600
-3364
-529

query II rowsort
SELECT - col2 + + - col2 AS col1, col0 AS col1 FROM tab2
----
-116
75
-46
46
-80
64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 47 + + col1 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT 32 + - COUNT( 32 ) AS col2 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-2755
SELECT 32 + - COUNT ( 32 ) AS col2 FROM tab1 AS cor0
----
29

query II rowsort
SELECT + - col2 + - col1 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
-117
77
-125
67
-74
51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 22 > NULL
----

query I rowsort
SELECT - - col0 + 34 FROM tab0 AS cor0
----
121
131
49

query II rowsort
SELECT + + 71 + - - col2, + 5 AS col1 FROM tab1 AS cor0
----
130
5
139
5
167
5

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE + 74 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT - - col0 * - 65 FROM tab2 AS cor0
----
-2990
-4160
-4875

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT COUNT( * ) - - MIN( col1 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2762
SELECT COUNT ( * ) - - MIN ( col1 ) FROM tab1 AS cor0
----
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 39 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2764
SELECT col2 * + - CAST( NULL AS SIGNED ) - - 24 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT col2 * + - CAST ( NULL AS INTEGER ) - - 24 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2765
SELECT + ( - AVG ( ALL - - CAST( NULL AS DECIMAL ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT + ( - AVG ( ALL - - CAST ( NULL AS REAL ) ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL - SUM( - 17 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL - SUM ( - 17 ) FROM tab1
----
51

query I rowsort
SELECT ALL - ( - col1 ) FROM tab2 WHERE + 79 <= - - col2 * + 93 + - ( - col0 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT - - 24 - - ( + ( + COUNT( - 23 ) ) ) col1 FROM tab2 cor0 WHERE NOT NULL >= - ( + 85 )
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2768
SELECT - - 24 - - ( + ( + COUNT ( - 23 ) ) ) col1 FROM tab2 cor0 WHERE NOT NULL >= - ( + 85 )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2769
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( + 48 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2769
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( + 48 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - - col2 ) * - col2 + + col1 * col2 + + col0 + - + 83 * - 8 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) IN ( col1, col0 )
----

query I rowsort
SELECT ALL - 15 * - + col0 AS col2 FROM tab1
----
1275
1365
765

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT + COUNT( * ) * + COUNT( * ) * - MAX( DISTINCT - + col0 ) FROM tab2
----
414

skipif mysql # not compatible
query I rowsort label-2773
SELECT + COUNT ( * ) * + COUNT ( * ) * - MAX ( DISTINCT - + col0 ) FROM tab2
----
414

query II rowsort
SELECT col2 AS col1, ( + col0 ) FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT - - MAX( - - 0 ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2775
SELECT - - MAX ( - - 0 ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + col1 col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT + 46 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN NULL AND - - 47
----
46

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2779
SELECT ALL - 28 + + CAST( 71 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL - 28 + + CAST ( 71 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT ALL col2 + - + col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT DISTINCT - - 15 * - 80 * col1 AS col1 FROM tab1 WHERE + col0 IS NOT NULL
----
-16800
-56400
-6000

query II rowsort
SELECT - col2, - col0 * + + col2 AS col0 FROM tab0
----
-10
-870
-47
-705
-99
-9603

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 + - - col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2784
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( + col0 ) + + col1 + - col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( + col0 ) + + col1 + - col1 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT - + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, + col2 * col1 * - - 8 FROM tab0
----
1
792
21
1680
81
30456

query I rowsort
SELECT - 98 * + - 53 AS col0 FROM tab0
----
5194
5194
5194

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT SUM( DISTINCT + 48 ) + + COUNT( * ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT SUM ( DISTINCT + 48 ) + + COUNT ( * ) FROM tab1
----
51

query I rowsort
SELECT DISTINCT 37 * + - col1 * + ( - col0 ) FROM tab0
----
3589
44955
67599

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 * col0 + - - 4 col1 FROM tab1 AS cor0
----
-4739
-7901
-8459

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT + MAX( ALL - col2 ) - + 85 + + - COUNT( * ) AS col1 FROM tab2 cor0
----
-111

skipif mysql # not compatible
query I rowsort label-2792
SELECT + MAX ( ALL - col2 ) - + 85 + + - COUNT ( * ) AS col1 FROM tab2 cor0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT + 72 * + + MAX( ALL + col1 ) + - 80 FROM tab0 AS cor0
----
5752

skipif mysql # not compatible
query I rowsort label-2793
SELECT + 72 * + + MAX ( ALL + col1 ) + - 80 FROM tab0 AS cor0
----
5752

onlyif mysql # DIV for integer division: 
query I rowsort label-2794
SELECT + col2 DIV + col0 + 20 AS col2 FROM tab1
----
20
20
21

skipif mysql # not compatible
query I rowsort label-2794
SELECT + col2 / + col0 + 20 AS col2 FROM tab1
----
20
20
21

query II rowsort
SELECT - 17 AS col2, 58 * + 10 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 7f52b035b53463d7a2b9657d6880e1f3

query I rowsort
SELECT - col0 / - col1 FROM tab2 AS cor0 WHERE NULL < col1
----

query II rowsort
SELECT DISTINCT - 13 - - col1 AS col2, - col2 * - 76 FROM tab1 AS cor0
----
-8
4484
1
7296
34
5168

query I rowsort
SELECT DISTINCT + col2 * - - col2 + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 AND NULL
----

query I rowsort
SELECT + ( - + col2 ) * + 99 FROM tab0 AS cor0
----
-4653
-9801
-990

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 81 IS NOT NULL )
----

query I rowsort
SELECT ALL 58 * + col1 FROM tab0 AS cor0
----
1218
4698
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2802
SELECT DISTINCT CAST( + 46 AS SIGNED ) AS col2 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT CAST ( + 46 AS INTEGER ) AS col2 FROM tab0
----
46

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( col1 ) + - 90 + ( + 16 ) - col0 + col1 * + ( + + col1 ) IS NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, col1 + + - col0 - + - col2 + - - col1 FROM tab1
----
14
73
47
71
5
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT - MAX( ALL + - col2 ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2805
SELECT - MAX ( ALL + - col2 ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2806
SELECT ALL + + 19 AS col2, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
19
-3

skipif mysql # not compatible
query II rowsort label-2806
SELECT ALL + + 19 AS col2, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
19
-3

query II rowsort
SELECT ( col1 ), col0 AS col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT - ( - col1 ) * - 63 FROM tab0 AS cor0
----
-1323
-5103
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT ALL - + ( COUNT( * ) ) + + + 84 AS col2 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL - + ( COUNT ( * ) ) + + + 84 AS col2 FROM tab2 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2810
SELECT - col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT - col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + 25 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( 64 ) AS col1 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT ALL + col2 * - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-100
-2209
-9801

query II rowsort
SELECT ALL - + col1 + col0, col0 AS col1 FROM tab0 AS cor0
----
-66
15
66
87
96
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT + - COUNT( * ) AS col1 FROM tab1 WHERE 88 * - 72 * - + col1 + + 0 / - 79 * - + ( + col0 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2815
SELECT + - COUNT ( * ) AS col1 FROM tab1 WHERE 88 * - 72 * - + col1 + + 0 / - 79 * - + ( + col0 ) < NULL
----
0

query I rowsort
SELECT ALL - col1 + + 3 FROM tab1
----
-11
-2
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2817
SELECT * FROM tab1 WHERE - + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query III rowsort label-2817
SELECT * FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE ( - 36 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT + 98 + - col1 * + + col2 + - - col1 DIV 39 FROM tab0
----
-1
-112
-3707

skipif mysql # not compatible
query I rowsort label-2819
SELECT + 98 + - col1 * + + col2 + - - col1 / 39 FROM tab0
----
-1
-112
-3707

query I rowsort
SELECT ALL - col2 * + - col2 + - 67 FROM tab2
----
1533
3297
462

query II rowsort
SELECT ALL + 60 AS col1, col0 FROM tab1 AS cor0
----
60
51
60
85
60
91

query II rowsort
SELECT - col0, + 97 + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-15
-608
-87
-773
-97
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT DISTINCT + + COUNT( * ) + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT + + COUNT ( * ) + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT ALL - - 15 AS col2 FROM tab2 WHERE NOT - - col2 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2825
SELECT - - CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2825
SELECT - - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND + 51 + + - col2 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT ALL - MIN( - 89 ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL - MIN ( - 89 ) FROM tab2 AS cor0
----
89

query I rowsort
SELECT - 93 * + - col2 AS col0 FROM tab1 AS cor0
----
5487
6324
8928

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT ALL - ( + 85 ) DIV col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL - ( + 85 ) / col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT ALL - + 65 AS col0, - 49 AS col1 FROM tab1 AS cor0
----
-65
-49
-65
-49
-65
-49

query II rowsort
SELECT ALL col1 AS col2, col1 * + col2 AS col1 FROM tab0 AS cor0
----
1
99
21
210
81
3807

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT DISTINCT 93 + - COUNT( * ) + + - MAX( DISTINCT - - col0 ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT 93 + - COUNT ( * ) + + - MAX ( DISTINCT - - col0 ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT - 82 <= + col0
----

query II rowsort
SELECT DISTINCT 87 * + + col0 * + 31 AS col0, 19 * + + 61 - + - 92 FROM tab1
----
137547
1251
229245
1251
245427
1251

query I rowsort
SELECT ALL ( - 38 ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + - col1 + + + 23 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT ALL - col0 DIV 66 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - col0 / 66 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2838
SELECT DISTINCT - 42 DIV 78 AS col1, - 56 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0
-168

skipif mysql # not compatible
query II rowsort label-2838
SELECT DISTINCT - 42 / 78 AS col1, - 56 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0
-168

query I rowsort
SELECT DISTINCT 86 AS col1 FROM tab1 cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT ( + - MIN( DISTINCT col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2840
SELECT ( + - MIN ( DISTINCT col0 ) ) FROM tab0
----
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 2 / col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT + ( - + 73 ) + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-2842
SELECT + ( - + 73 ) + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT DISTINCT - - COUNT( * ) * + - 37 * 47 AS col2 FROM tab0 cor0
----
-5217

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT - - COUNT ( * ) * + - 37 * 47 AS col2 FROM tab0 cor0
----
-5217

onlyif mysql # DIV for integer division: 
query I rowsort label-2844
SELECT + col0 * + ( + + col2 ) + + - col0 DIV - - 29 FROM tab1 AS cor0
----
4895
5013
6185

skipif mysql # not compatible
query I rowsort label-2844
SELECT + col0 * + ( + + col2 ) + + - col0 / - - 29 FROM tab1 AS cor0
----
4895
5013
6185

query I rowsort
SELECT col0 + - - 78 FROM tab1 AS cor0 WHERE col2 - + col1 < + + ( - - col1 )
----
169

query I rowsort
SELECT ALL col2 + + 40 FROM tab2 AS cor0
----
63
80
98

query II rowsort
SELECT DISTINCT + - col1 * col2 * + col1 * + col2 * + + col2 + 33 AS col0, - col2 * - col1 + - 65 FROM tab2 AS cor0
----
-31646334
1108
-379455967
3015
-875857735
3821

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= + 54
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2849
SELECT DISTINCT + 69 + + MAX( + CAST( + - col2 AS SIGNED ) ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT + 69 + + MAX ( + CAST ( + - col2 AS INTEGER ) ) FROM tab1 AS cor0
----
10

query I rowsort
SELECT DISTINCT 71 + + col1 AS col1 FROM tab2
----
122
138
148

query I rowsort
SELECT ALL 89 + - 95 * - col1 FROM tab1
----
1419
4554
564

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT 66 * - COUNT( * ) FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-2852
SELECT 66 * - COUNT ( * ) FROM tab2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT - 87 - - COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2853
SELECT - 87 - - COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT DISTINCT MIN( - 8 ) AS col1 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT MIN ( - 8 ) AS col1 FROM tab1
----
-8

query I rowsort
SELECT + 35 FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 39 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2857
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2857
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 19 * 37 col2 FROM tab2 AS cor0
----
703
703
703

query I rowsort
SELECT DISTINCT col0 * + + col0 FROM tab2 AS cor0 WHERE 98 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT DISTINCT + SUM( DISTINCT + - 8 ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT + SUM ( DISTINCT + - 8 ) FROM tab2 AS cor0
----
-8

query I rowsort
SELECT - - 95 * - - col2 FROM tab0 AS cor0
----
4465
9405
950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2862
SELECT - 23 * + + CAST( NULL AS SIGNED ) - - - MIN( ALL + col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT - 23 * + + CAST ( NULL AS INTEGER ) - - - MIN ( ALL + col0 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 76 FROM tab0 cor0 WHERE - ( - - col0 ) IS NULL
----

query I rowsort
SELECT + col2 + + ( - col1 ) * - 36 + + ( - 56 ) AS col0 FROM tab2 AS cor0
----
1803
2414
2756

query I rowsort
SELECT DISTINCT - - ( + + 0 ) + + ( col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT 14 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
14

query I rowsort
SELECT DISTINCT + col1 + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 44 IS NULL
----
28
37
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 ) * - + ( - col0 ) * 61 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 * - 46 * - col0 + - + col0 FROM tab1 AS cor0
----
-119697
-332435
-381017

query I rowsort
SELECT DISTINCT col1 * - 63 AS col2 FROM tab2 AS cor0
----
-3213
-4221
-4851

query I rowsort
SELECT ALL - - col0 + - - col1 + - col0 AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT col1 * CAST( NULL AS SIGNED ) / + 52 - + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT col1 * CAST ( NULL AS INTEGER ) / + 52 - + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 90 + + 24 + - ( 74 ) >= NULL
----

query I rowsort
SELECT ALL col1 + - - col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT - col0 - + 85 FROM tab2 AS cor0
----
-131
-149
-160

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2876
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN - col2 AND - - 81 * CAST( col1 AS SIGNED ) + 28
----

skipif mysql # not compatible
query III rowsort label-2876
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN - col2 AND - - 81 * CAST ( col1 AS INTEGER ) + 28
----

query I rowsort
SELECT DISTINCT col0 + + + col2 * col1 FROM tab0
----
196
297
3822

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE - + 84 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2879
SELECT ALL + + 64, - 41 + + col0 + + + col0 * CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab2 AS cor0
----
64
NULL
64
NULL
64
NULL

skipif mysql # not compatible
query II rowsort label-2879
SELECT ALL + + 64, - 41 + + col0 + + + col0 * CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab2 AS cor0
----
64
NULL
64
NULL
64
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ALL - 91 - ( - MAX( + 96 ) ) AS col2 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL - 91 - ( - MAX ( + 96 ) ) AS col2 FROM tab2
----
5

query I rowsort
SELECT DISTINCT col2 + - col1 * + col0 AS col1 FROM tab1
----
-366
-4209
-618

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) <> col2 + - col0
----

query I rowsort
SELECT ALL col2 + 15 FROM tab1 WHERE - 13 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) < ( 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT DISTINCT COUNT( * ) + ( + 23 ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT COUNT ( * ) + ( + 23 ) FROM tab0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + 51 col2 FROM tab2
----
109
74
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN 42 / - col2 AND 85
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col0 AND ( - col0 * + col0 )
----

query I rowsort
SELECT - ( + col2 ) AS col2 FROM tab1 WHERE + col1 IN ( + col0 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT MAX( + col2 ) AS col2 FROM tab1 WHERE NOT 35 IN ( + col2 * - col2 + col1 )
----
96

skipif mysql # not compatible
query I rowsort label-2891
SELECT MAX ( + col2 ) AS col2 FROM tab1 WHERE NOT 35 IN ( + col2 * - col2 + col1 )
----
96

query I rowsort
SELECT - 24 + + col1 FROM tab2
----
27
43
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ( 81 ) + SUM( 82 ) FROM tab1
----
327

skipif mysql # not compatible
query I rowsort label-2893
SELECT ( 81 ) + SUM ( 82 ) FROM tab1
----
327

query I rowsort
SELECT DISTINCT ( ( - col0 ) ) AS col0 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 23 + col0 FROM tab1 WHERE NOT + col0 + col0 * ( 42 + 54 ) BETWEEN NULL AND + col2 * - 52
----
108
114
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT COUNT( * ) + - 42 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-2897
SELECT COUNT ( * ) + - 42 FROM tab2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL + COUNT( DISTINCT - 42 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL + COUNT ( DISTINCT - 42 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT + col0 / + col1 < ( col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 99 * + 93 BETWEEN 79 AND + 56 * - 62
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + ( + 79 ) >= NULL
----

query I rowsort
SELECT DISTINCT + 59 * - ( + col1 ) FROM tab0 AS cor0
----
-1239
-4779
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 * col0 col0 FROM tab2 cor0
----
2070
2880
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT + COUNT( * ) * 64 col1 FROM tab2 cor0
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2904
SELECT + COUNT ( * ) * 64 col1 FROM tab2 cor0
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT - CAST( 36 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-2905
SELECT - CAST ( 36 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE ( col0 + + 17 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE ( col0 + + 17 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2907
SELECT - 55 / - 24 + + CAST( NULL AS SIGNED ) * - 57 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2907
SELECT - 55 / - 24 + + CAST ( NULL AS INTEGER ) * - 57 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * - 92 FROM tab1
----
4692
7820
8372

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2909
SELECT ALL CAST( col2 AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT + ( col0 ) = ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL CAST ( col2 AS REAL ) FROM tab0 AS cor0 WHERE NOT + ( col0 ) = ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT ALL - 63 * COUNT( * ) FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL - 63 * COUNT ( * ) FROM tab0 AS cor0
----
-189

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col0 / + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2912
SELECT DISTINCT - col2 DIV + col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT - col2 / + col2 FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT DISTINCT + - COUNT( * ) * - 15 + + 32 * 30 FROM tab1 AS cor0
----
1005

skipif mysql # not compatible
query I rowsort label-2913
SELECT DISTINCT + - COUNT ( * ) * - 15 + + 32 * 30 FROM tab1 AS cor0
----
1005

query I rowsort
SELECT + 98 + + 39 FROM tab2 AS cor0 WHERE NULL IN ( - 60 + 72 )
----

query I rowsort
SELECT 87 AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT COUNT( ALL + 89 ) - + 32 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-29

skipif mysql # not compatible
query I rowsort label-2916
SELECT COUNT ( ALL + 89 ) - + 32 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT COUNT( ALL + col0 ) FROM tab2 AS cor0 WHERE - col0 * + col1 NOT IN ( + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-2917
SELECT COUNT ( ALL + col0 ) FROM tab2 AS cor0 WHERE - col0 * + col1 NOT IN ( + col0 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 cor0 WHERE NULL NOT IN ( 42 / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT ALL - 47 - MIN( + 84 ) AS col2 FROM tab1
----
-131

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL - 47 - MIN ( + 84 ) AS col2 FROM tab1
----
-131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * col1 + - col1 col1 FROM tab1 WHERE 22 IS NOT NULL
----
-210
-705
-75

query I rowsort
SELECT + ( + 51 ) FROM tab2
----
51
51
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 99 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT + MAX( DISTINCT - col2 ) * - 74 AS col1 FROM tab1
----
4366

skipif mysql # not compatible
query I rowsort label-2923
SELECT + MAX ( DISTINCT - col2 ) * - 74 AS col1 FROM tab1
----
4366

query I rowsort
SELECT DISTINCT - col1 - + - col2 AS col2 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT + COUNT( * ) * - MAX( + 99 ) - 3 FROM tab2
----
-300

skipif mysql # not compatible
query I rowsort label-2925
SELECT + COUNT ( * ) * - MAX ( + 99 ) - 3 FROM tab2
----
-300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2926
SELECT ALL 64 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL 64 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 20 - + col1 FROM tab0
----
-1
-61
19

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col2 * col2 ) BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT MIN( - 41 ) - - 57 AS col0 FROM tab0 WHERE ( - col1 * col2 ) > ( col1 * col0 - col1 * col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2929
SELECT MIN ( - 41 ) - - 57 AS col0 FROM tab0 WHERE ( - col1 * col2 ) > ( col1 * col0 - col1 * col0 )
----
NULL

query I rowsort
SELECT DISTINCT col1 * 9 - + col0 FROM tab2
----
413
528
629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2931
SELECT ALL CAST( + col1 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL = ( 22 * col0 )
----

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL CAST ( + col1 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL = ( 22 * col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2932
SELECT DISTINCT + COUNT( * ) DIV 49 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT + COUNT ( * ) / 49 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT ALL + - MAX( + - 61 ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL + - MAX ( + - 61 ) FROM tab2 AS cor0
----
61

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + - col1 * + col0 NOT BETWEEN + col0 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 + - col2 ) NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - 26 ) col0 FROM tab2 AS cor0 WHERE col1 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( col0 ) + col2 * 17 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2938
SELECT ALL + col1 * + 61 FROM tab1 cor0 WHERE ( NULL ) > - col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL + col1 * + 61 FROM tab1 cor0 WHERE ( NULL ) > - col2 * CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2939
SELECT ALL CAST( 67 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL CAST ( 67 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2940
SELECT + - COUNT( * ) AS col0, 56 AS col1 FROM tab1 AS cor0
----
-3
56

skipif mysql # not compatible
query II rowsort label-2940
SELECT + - COUNT ( * ) AS col0, 56 AS col1 FROM tab1 AS cor0
----
-3
56

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 + + 61 + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 * - + col1 * 23 + 98 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 19 + - - col1 - - col2 * + ( + col0 ) AS col2 FROM tab2
----
1090
2618
4398

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + + ( + ( ( 49 ) ) ) IS NULL
----
46
64
75

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT + 57 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT + MAX( ALL + 55 ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-2946
SELECT + MAX ( ALL + 55 ) FROM tab2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT + COUNT( * ) + + SUM( ALL - 83 ) - + 98 * COUNT( * ) FROM tab1
----
-540

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT + COUNT ( * ) + + SUM ( ALL - 83 ) - + 98 * COUNT ( * ) FROM tab1
----
-540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2948
SELECT DISTINCT 39 + ( - 6 + ( + col2 + col0 * col2 ) ) AS col1 FROM tab2 WHERE NOT - ( ( CAST( - col1 AS SIGNED ) ) ) / 27 NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-2948
SELECT DISTINCT 39 + ( - 6 + ( + col2 + col0 * col2 ) ) AS col1 FROM tab2 WHERE NOT - ( ( CAST ( - col1 AS INTEGER ) ) ) / 27 NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2949
SELECT DISTINCT + ( + 31 ) * + + CAST( + - 10 AS SIGNED ) FROM tab2
----
-310

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT + ( + 31 ) * + + CAST ( + - 10 AS INTEGER ) FROM tab2
----
-310

query I rowsort
SELECT + + col0 + - 86 AS col2 FROM tab0 AS cor0
----
-71
1
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col1 col2 FROM tab1 cor0
----
10
28
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + 1 + - - col1 )
----

query I rowsort
SELECT - col2 * col2 + - + col1 + + 48 FROM tab2 AS cor0
----
-1629
-3383
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT DISTINCT + + MIN( DISTINCT + 56 ) + + 88 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT + + MIN ( DISTINCT + 56 ) + + 88 FROM tab1 AS cor0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL + - 75 * - COUNT( * ) col0 FROM tab2 cor0
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2955
SELECT ALL + - 75 * - COUNT ( * ) col0 FROM tab2 cor0
----
225

query I rowsort
SELECT ( ( ( + col2 ) ) ) + - col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT DISTINCT + col1 + + 13 + - col2 * - col1 * - col2 * + col0 AS col2 FROM tab2
----
-1240970
-16904020
-7884710

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE + 37 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT DISTINCT - COUNT( DISTINCT 75 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT - COUNT ( DISTINCT 75 ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT ( 40 ) * + - ( - ( - + 39 ) ) + COUNT( * ) col2 FROM tab0 AS cor0
----
-1557

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2960
SELECT ( 40 ) * + - ( - ( - + 39 ) ) + COUNT ( * ) col2 FROM tab0 AS cor0
----
-1557

onlyif mysql # DIV for integer division: 
query I rowsort label-2961
SELECT DISTINCT col0 DIV + col2 - col1 AS col1 FROM tab1 AS cor0
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT col0 / + col2 - col1 AS col1 FROM tab1 AS cor0
----
-14
-4
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2962
SELECT COUNT( * ) - + 76 * + COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2962
SELECT COUNT ( * ) - + 76 * + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 / - col2 IS NULL
----

query I rowsort
SELECT + - 45 * 30 + - 72 FROM tab1 AS cor0
----
-1422
-1422
-1422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2965
SELECT DISTINCT - 86 + + - CAST( + 94 AS SIGNED ) AS col0 FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT - 86 + + - CAST ( + 94 AS INTEGER ) AS col0 FROM tab1
----
-180

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL BETWEEN col1 AND + - col2 )
----

query I rowsort
SELECT ALL + 92 + - - 1 AS col0 FROM tab0
----
93
93
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2968
SELECT DISTINCT COUNT( * ) + - CAST( + MIN( DISTINCT col1 ) AS SIGNED ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT COUNT ( * ) + - CAST ( + MIN ( DISTINCT col1 ) AS INTEGER ) FROM tab2
----
-48

query I rowsort
SELECT - 61 FROM tab0 WHERE NOT NULL <= - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2970
SELECT 41, - CAST( NULL AS SIGNED ) * col2 + + 97 * - col1 * 67 AS col1 FROM tab0
----
41
NULL
41
NULL
41
NULL

skipif mysql # not compatible
query II rowsort label-2970
SELECT 41, - CAST ( NULL AS INTEGER ) * col2 + + 97 * - col1 * 67 AS col1 FROM tab0
----
41
NULL
41
NULL
41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ALL - MIN( + + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL - MIN ( + + col1 ) FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT + 39 * - + col0 - 31 - 19 DIV - + col2 FROM tab1 AS cor0
----
-2020
-3346
-3580

skipif mysql # not compatible
query I rowsort label-2972
SELECT + 39 * - + col0 - 31 - 19 / - + col2 FROM tab1 AS cor0
----
-2020
-3346
-3580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2973
SELECT ALL CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2975
SELECT DISTINCT + 29 AS col1, + COUNT( * ) FROM tab1 AS cor0
----
29
3

skipif mysql # not compatible
query II rowsort label-2975
SELECT DISTINCT + 29 AS col1, + COUNT ( * ) FROM tab1 AS cor0
----
29
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2976
SELECT ALL + 45, + COUNT( * ) + - SUM( ALL col1 ) AS col1 FROM tab0 cor0
----
45
-100

skipif mysql # not compatible
query II rowsort label-2976
SELECT ALL + 45, + COUNT ( * ) + - SUM ( ALL col1 ) AS col1 FROM tab0 cor0
----
45
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-2977
SELECT 73 DIV col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2977
SELECT 73 / col2 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL AVG ( col2 ) AS col0 FROM tab0 WHERE NOT - + 63 NOT BETWEEN col0 AND ( col1 + + 64 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2979
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) + - - 18 IN ( + col2, 4 )
----
0

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + - - 18 IN ( + col2, 4 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2980
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2980
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 37 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 12 * 53 / + - col2 * col0 * + ( ( col2 ) ) + + 57 <> + col2
----

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN col1 AND NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT CAST( - 68 AS SIGNED ) FROM tab2
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-2984
SELECT CAST ( - 68 AS INTEGER ) FROM tab2
----
-68
-68
-68

query I rowsort
SELECT col1 / col2 + + + col1 + + ( - col1 ) + col1 FROM tab1 WHERE - col0 NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT + COUNT( * ) * + + 72 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-2986
SELECT + COUNT ( * ) * + + 72 FROM tab1
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-2987
SELECT ALL col2 + + 56 DIV + col2 col2 FROM tab2
----
25
41
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2987
SELECT ALL col2 + + 56 / + col2 col2 FROM tab2
----
25
41
58

query I rowsort
SELECT ( - 27 ) FROM tab2
----
-27
-27
-27

query I rowsort
SELECT + 87 FROM tab1 WHERE + col2 BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL col0 + + 53 FROM tab1
----
104
138
144

query I rowsort
SELECT - + 7 AS col2 FROM tab2 WHERE + - col1 IN ( 32, col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2992
SELECT COUNT( * ) AS col0, - 87 AS col2 FROM tab0
----
3
-87

skipif mysql # not compatible
query II rowsort label-2992
SELECT COUNT ( * ) AS col0, - 87 AS col2 FROM tab0
----
3
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT + + ( + COUNT( * ) ) AS col0 FROM tab0 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2993
SELECT + + ( + COUNT ( * ) ) AS col0 FROM tab0 WHERE + col2 IS NOT NULL
----
3

query II rowsort
SELECT DISTINCT - 74, col2 * - ( - col1 ) + 1 * col1 AS col2 FROM tab1 AS cor0
----
-74
1358
-74
300
-74
3243

query I rowsort
SELECT ALL - 70 + col2 AS col2 FROM tab1 AS cor0
----
-11
-2
26

query I rowsort
SELECT ( + 30 ) + col2 + col1 AS col0 FROM tab0
----
130
158
61

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT DISTINCT + SUM( ALL + + col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
156

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT + SUM ( ALL + + col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 16 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3000
SELECT + COUNT( * ) DIV - 90 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3000
SELECT + COUNT ( * ) / - 90 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT - + col1 + - + 45 AS col2, 30 FROM tab0 AS cor0
----
-126
30
-46
30
-66
30

query I rowsort
SELECT ( + 45 ) FROM tab1 AS cor0
----
45
45
45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - col0 ) >= col1 + + - 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT - SUM( ALL + col0 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-3005
SELECT - SUM ( ALL + col0 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-555

query I rowsort
SELECT ( - ( + 44 ) ) * + col1 FROM tab0
----
-3564
-44
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT SUM( ALL + 20 ) AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-3007
SELECT SUM ( ALL + 20 ) AS col1 FROM tab1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3008
SELECT - 89 DIV + MAX( ( + CAST( + col2 AS SIGNED ) ) ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3008
SELECT - 89 / + MAX ( ( + CAST ( + col2 AS INTEGER ) ) ) AS col1 FROM tab2
----
-1

query I rowsort
SELECT ALL 59 * + - col1 AS col2 FROM tab2
----
-3009
-3953
-4543

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 31 + + 70 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( - 66 ) AS col1 FROM tab1
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3012
SELECT DISTINCT + 19 * col2 FROM tab0 AS cor0 WHERE NOT CAST( + 75 AS SIGNED ) IS NULL
----
1881
190
893

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT + 19 * col2 FROM tab0 AS cor0 WHERE NOT CAST ( + 75 AS INTEGER ) IS NULL
----
1881
190
893

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT DISTINCT - MAX( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT - MAX ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT + ( - col2 ) * + col2 AS col0 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT MAX( - 91 ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3015
SELECT MAX ( - 91 ) FROM tab0 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + 77 AS col2 FROM tab0 AS cor0 WHERE col2 * + - col1 * - col2 IS NOT NULL
----
77
77
77

query II rowsort
SELECT + col0 AS col0, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3019
SELECT CAST( MAX( DISTINCT col0 ) AS SIGNED ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3019
SELECT CAST ( MAX ( DISTINCT col0 ) AS INTEGER ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL + col2 + - - col0 FROM tab2 AS cor0
----
104
133
69

query II rowsort
SELECT - 60 AS col0, col0 - - + ( + 38 ) * col2 FROM tab0 AS cor0
----
-60
1801
-60
3859
-60
467

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 68 < NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE - 74 / - 89 < col0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 17, 30 col2 FROM tab2 AS cor0
----
-17
30
-17
30
-17
30

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + col0 - + + col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3026
SELECT ALL * FROM tab2 WHERE NOT ( ( CAST( + - 14 AS SIGNED ) ) >= NULL )
----

skipif mysql # not compatible
query III rowsort label-3026
SELECT ALL * FROM tab2 WHERE NOT ( ( CAST ( + - 14 AS INTEGER ) ) >= NULL )
----

query II rowsort
SELECT DISTINCT - col1 + - + col0, col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3028
SELECT ALL CAST( NULL AS SIGNED ), - MAX( + + 50 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3028
SELECT ALL CAST ( NULL AS INTEGER ), - MAX ( + + 50 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 + + col2 col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + col0 - - + col1 AS col2 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT DISTINCT COUNT( * ) * - MIN( + + col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT COUNT ( * ) * - MIN ( + + col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT - - 30, + col2 + + + 19 - - + 70 * 16 AS col2 FROM tab0 AS cor0
----
30
1149
30
1186
30
1238

query II rowsort
SELECT ALL col1, + 23 FROM tab2 cor0
----
51
23
67
23
77
23

query I rowsort
SELECT DISTINCT - col0 * + - col2 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT DISTINCT 3 * + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( ( NULL IN ( - col1 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT 3 * + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( ( NULL IN ( - col1 ) ) )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - col1 * + col0 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 <> + - 43 * - - col0 * + col2
----

query I rowsort
SELECT 10 * + + 42 FROM tab2
----
420
420
420

query I rowsort
SELECT ALL + col1 FROM tab2 cor0 WHERE NULL BETWEEN + col0 * + 30 AND + + col0 + + - col0 + + - 20
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * + 87 AS col2, - col1 col2 FROM tab2 AS cor0
----
2001
-51
3480
-77
5046
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col1 ) col0 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( col2 + 4 * - col2 + col2 * + - 85 * 26 * + col1 )
----

query I rowsort
SELECT ALL - col1 * + col1 + + col0 FROM tab1 cor0
----
-145
-2118
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3045
SELECT - - 4 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3045
SELECT - - 4 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT DISTINCT - MIN( col0 ) * + COUNT( * ) AS col2 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT - MIN ( col0 ) * + COUNT ( * ) AS col2 FROM tab1
----
-153

query I rowsort
SELECT + 60 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT DISTINCT + CAST( 34 AS SIGNED ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
34

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT + CAST ( 34 AS INTEGER ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
34

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3050
SELECT col0 DIV - 10 AS col1 FROM tab0
----
-1
-8
-9

skipif mysql # not compatible
query I rowsort label-3050
SELECT col0 / - 10 AS col1 FROM tab0
----
-1
-8
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT ALL - SUM( + + col2 ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL - SUM ( + + col2 ) AS col1 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT - - 43 + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3052
SELECT - - 43 + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
40

query II rowsort
SELECT ALL 34 * col0 * - 58 AS col1, - col0 * col1 + + + col0 FROM tab1 AS cor0
----
-100572
-663
-167620
-340
-179452
-4186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 15, - 47 col0 FROM tab2 cor0
----
15
-47
15
-47
15
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3055
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT + - col2 + + 85 * - - 78 * - ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT + - col2 + + 85 * - - 78 * - ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3057
SELECT - - ( CAST( - col2 AS SIGNED ) ) FROM tab0 AS cor0 WHERE - col1 + + - col1 / + col1 >= + 84
----

skipif mysql # not compatible
query I rowsort label-3057
SELECT - - ( CAST ( - col2 AS INTEGER ) ) FROM tab0 AS cor0 WHERE - col1 + + - col1 / + col1 >= + 84
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col2 col2 FROM tab0 cor0
----
-77
2
32

query II rowsort
SELECT + col0, + 35 + 24 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
59
87
59
97
59

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 2 ) IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 48 col1, - 61 * + col1 + - col2 FROM tab0
----
48
-1291
48
-160
48
-4988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 70 AS col2, col2 col2 FROM tab0
----
70
10
70
47
70
99

query II rowsort
SELECT DISTINCT col2, - col1 AS col2 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT DISTINCT 5 + 32 + - ( + 52 ) FROM tab0
----
-15

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 AS col1 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3066
SELECT - 45 col1, MAX( + 38 ) FROM tab1
----
-45
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3066
SELECT - 45 col1, MAX ( + 38 ) FROM tab1
----
-45
38

query I rowsort
SELECT DISTINCT + col2 - - 16 FROM tab2
----
39
56
74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 3 * 21 * + 94 BETWEEN col1 * - col1 / col2 * col2 AND col2 + + col0
----

query I rowsort
SELECT col2 + col2 * + 26 FROM tab2 AS cor0
----
1080
1566
621

query III rowsort
SELECT ALL * FROM tab2 WHERE 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - + col2 * - 29 IS NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NULL NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT ALL + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT DISTINCT + 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 92 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3075
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 92 = NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 - - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3077
SELECT col2 * + - 49 * + col0 / - - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3077
SELECT col2 * + - 49 * + col0 / - - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT + MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3078
SELECT + MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT ( - col1 ) * + 32 * + col1 + + 89 FROM tab0 AS cor0
----
-14023
-209863
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3080
SELECT + + 41 * ( - 34 ) * - - CAST( - + col1 AS SIGNED ) AS col1, - 85 FROM tab0 AS cor0
----
112914
-85
1394
-85
29274
-85

skipif mysql # not compatible
query II rowsort label-3080
SELECT + + 41 * ( - 34 ) * - - CAST ( - + col1 AS INTEGER ) AS col1, - 85 FROM tab0 AS cor0
----
112914
-85
1394
-85
29274
-85

query I rowsort
SELECT col2 * + - 94 AS col2 FROM tab0
----
-4418
-9306
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT ALL SUM( - 71 ) AS col1 FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL SUM ( - 71 ) AS col1 FROM tab2
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3083
SELECT DISTINCT + 97 FROM tab1 WHERE NOT + - 77 + - col2 >= - col0 * + - col2 * + - CAST( NULL AS SIGNED ) + + col2 * + + 95 + col1
----

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT + 97 FROM tab1 WHERE NOT + - 77 + - col2 >= - col0 * + - col2 * + - CAST ( NULL AS INTEGER ) + + col2 * + + 95 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 40 + - col1 FROM tab1 AS cor0
----
14
26
47
-7
5
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT - 57 + + ( + + COUNT( * ) ) col1 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3085
SELECT - 57 + + ( + + COUNT ( * ) ) col1 FROM tab0 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT MIN( DISTINCT + - 95 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-95

skipif mysql # not compatible
query I rowsort label-3086
SELECT MIN ( DISTINCT + - 95 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-95

query I rowsort
SELECT DISTINCT + - col1 + + - col1 FROM tab0 AS cor0
----
-162
-2
-42

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3089
SELECT ALL - CAST( + 25 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL - CAST ( + 25 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT - col2 * - + 97 + + - col1 + ( - - 19 ) + + col1 * - + ( + 75 ) + - col2 FROM tab1 AS cor0 WHERE ( - col0 IS NOT NULL )
----
2975
5303
8171

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 BETWEEN col1 AND - 20 * - - 0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( col0 ) AS col1, col2 col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3093
SELECT * FROM tab2 AS cor0 WHERE + col0 * + ( col1 ) IN ( ( - + 13 ) * - + 14, + CAST( + col2 AS SIGNED ), + 90 * col0, - + col2 )
----

skipif mysql # not compatible
query III rowsort label-3093
SELECT * FROM tab2 AS cor0 WHERE + col0 * + ( col1 ) IN ( ( - + 13 ) * - + 14, + CAST ( + col2 AS INTEGER ), + 90 * col0, - + col2 )
----

query I rowsort
SELECT ALL col2 + - 89 FROM tab0
----
-42
-79
10

query I rowsort
SELECT + + 70 FROM tab0 WHERE col2 IS NOT NULL
----
70
70
70

onlyif mysql # DIV for integer division: 
query II rowsort label-3096
SELECT DISTINCT + col2, - col2 DIV 31 * + 65 FROM tab2 WHERE NULL IS NULL
----
23
0
40
-65
58
-65

skipif mysql # not compatible
query II rowsort label-3096
SELECT DISTINCT + col2, - col2 / 31 * + 65 FROM tab2 WHERE NULL IS NULL
----
23
0
40
-65
58
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL + MIN( + 67 ) + - 84 AS col2 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + MIN ( + 67 ) + - 84 AS col2 FROM tab0
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 + + col1 col0 FROM tab2
----
120
136
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3099
SELECT DISTINCT col2 + - - CAST( + + col1 AS SIGNED ) col0 FROM tab0
----
100
128
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3099
SELECT DISTINCT col2 + - - CAST ( + + col1 AS INTEGER ) col0 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT ALL + COUNT( * ) - MIN( 58 ) FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL + COUNT ( * ) - MIN ( 58 ) FROM tab0 AS cor0
----
-55

query I rowsort
SELECT - - col1 + - col1 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT DISTINCT - - MAX( + - 78 ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT - - MAX ( + - 78 ) FROM tab0 AS cor0
----
-78

query III rowsort
SELECT * FROM tab0 WHERE col2 * - col2 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT MIN( - 64 ) FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-3104
SELECT MIN ( - 64 ) FROM tab2
----
-64

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) = NULL
----

query II rowsort
SELECT - col1 AS col1, - col2 - 40 * - + 26 FROM tab0 AS cor0
----
-1
941
-21
1030
-81
993

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3107
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3107
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL + - col0 AS col0, - col0 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT - ( - - MAX( DISTINCT + + col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3109
SELECT - ( - - MAX ( DISTINCT + + col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + + col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 ) * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3113
SELECT DISTINCT ( - + col1 ) AS col1, - CAST( NULL AS SIGNED ) FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-3113
SELECT DISTINCT ( - + col1 ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT ALL + MIN( + - col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL + MIN ( + - col1 ) AS col1 FROM tab2
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col0 FROM tab1
----
42

query I rowsort
SELECT - AVG ( + - col1 ) AS col1 FROM tab0 WHERE NOT - + 15 BETWEEN NULL AND + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT + COUNT( ALL + col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3117
SELECT + COUNT ( ALL + col0 ) AS col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3118
SELECT 9 DIV + + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3118
SELECT 9 / + + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + 72 * col2 AS col0 FROM tab2
----
1656
2880
4176

query I rowsort
SELECT ALL - ( - - ( + + 9 ) ) * + - 70 * - col0 * - + col0 AS col2 FROM tab2
----
1333080
2580480
3543750

query I rowsort
SELECT ALL ( + 41 ) AS col2 FROM tab0 AS cor0
----
41
41
41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3123
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * + - 48 + col0 col2 FROM tab1 AS cor0
----
-2397
-3995
-4277

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3123
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * + - 48 + col0 col2 FROM tab1 AS cor0
----
-2397
-3995
-4277

query I rowsort
SELECT DISTINCT - col0 * - + col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

query II rowsort
SELECT ALL col2 AS col2, col2 AS col0 FROM tab1 cor0
----
59
59
68
68
96
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + 13 )
----

query I rowsort
SELECT ALL + + 80 + - col2 FROM tab1 AS cor0
----
-16
12
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3128
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3128
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < CAST ( - col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3129
SELECT ALL 67 DIV CAST( 44 AS SIGNED ) * + - col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL 67 / CAST ( 44 AS INTEGER ) * + - col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT DISTINCT + ( col1 ) + - + 23 + - 4 + + col0 + 64 * - col0 + + col0 + CAST( NULL AS SIGNED ) * - col2 * + col0 + + col0 + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT DISTINCT + ( col1 ) + - + 23 + - 4 + + col0 + 64 * - col0 + + col0 + CAST ( NULL AS INTEGER ) * - col2 * + col0 + + col0 + - col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3131
SELECT ALL + COUNT( * ) AS col1, 94 FROM tab2, tab1 AS cor0
----
9
94

skipif mysql # not compatible
query II rowsort label-3131
SELECT ALL + COUNT ( * ) AS col1, 94 FROM tab2, tab1 AS cor0
----
9
94

query I rowsort
SELECT ALL 52 + col2 + + - col0 FROM tab0
----
-25
54
84

query I rowsort
SELECT DISTINCT + 49 AS col2 FROM tab0 WHERE + col2 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT DISTINCT + 44 - + - COUNT( * ) + + COUNT( * ) AS col2 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT + 44 - + - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2
----
50

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + ( 99 ) AND - 66 * + col2 + - col0 * + - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT DISTINCT - 35 - - - COUNT( * ) AS col0 FROM tab0 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT - 35 - - - COUNT ( * ) AS col0 FROM tab0 cor0
----
-38

query I rowsort
SELECT DISTINCT - + ( + 60 ) AS col1 FROM tab1 AS cor0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3138
SELECT + - 76 DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-3138
SELECT + - 76 / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 56 <= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * - 26 AS col2 FROM tab0
----
-1222
-2574
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT DISTINCT COUNT( col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT COUNT ( col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 60 col2 FROM tab1 AS cor0
----
-60
-60
-60

query II rowsort
SELECT + 36 AS col1, col1 FROM tab0 AS cor0
----
36
1
36
21
36
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT DISTINCT - MAX( ALL + 37 ) col0 FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3144
SELECT DISTINCT - MAX ( ALL + 37 ) col0 FROM tab0 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT DISTINCT - - 2 * + COUNT( * ) + - MIN( + 94 ) col0 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3145
SELECT DISTINCT - - 2 * + COUNT ( * ) + - MIN ( + 94 ) col0 FROM tab1 AS cor0
----
-88

query I rowsort
SELECT ALL - - ( + 86 ) FROM tab2 AS cor0
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col2 col1 FROM tab1 cor0
----
-4896
-5015
-6188

query I rowsort
SELECT + - ( 14 ) AS col0 FROM tab0 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT - 17 * + + SUM( - col0 ) FROM tab0
----
3383

skipif mysql # not compatible
query I rowsort label-3149
SELECT - 17 * + + SUM ( - col0 ) FROM tab0
----
3383

onlyif mysql # DIV for integer division: 
query I rowsort label-3150
SELECT DISTINCT + col2 DIV + 58 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT + col2 / + 58 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT SUM( 59 ) FROM tab1 WHERE NOT + col0 + col0 / + col0 IS NULL
----
177

skipif mysql # not compatible
query I rowsort label-3151
SELECT SUM ( 59 ) FROM tab1 WHERE NOT + col0 + col0 / + col0 IS NULL
----
177

query I rowsort
SELECT + - 26 + - col2 * col2 * col2 AS col2 FROM tab0 cor0
----
-1026
-103849
-970325

query I rowsort
SELECT 2 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 col0, col0 + - col2 col1 FROM tab1 AS cor0
----
51
-45
85
26
91
23

query II rowsort
SELECT ALL - 20 AS col2, 0 FROM tab2 AS cor0
----
-20
0
-20
0
-20
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3156
SELECT CAST( col2 AS SIGNED ) DIV col0 + - 4 + + col2 + + col0 + - 69 FROM tab1 cor0
----
71
75
86

skipif mysql # not compatible
query I rowsort label-3156
SELECT CAST ( col2 AS INTEGER ) / col0 + - 4 + + col2 + + col0 + - 69 FROM tab1 cor0
----
71
75
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT ALL - + SUM( - - 6 ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL - + SUM ( - - 6 ) FROM tab0 AS cor0
----
-18

query I rowsort
SELECT - 25 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT 40 * 61 / - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT 40 * 61 / - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 12 - col2, col0 AS col2 FROM tab0 AS cor0
----
-111
97
-22
87
-59
15

query I rowsort
SELECT 56 - col0 FROM tab2 AS cor0
----
-19
-8
10

query I rowsort
SELECT 92 + + 74 AS col0 FROM tab1 AS cor0
----
166
166
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3164
SELECT - + CAST( - col2 AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3164
SELECT - + CAST ( - col2 AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3165
SELECT * FROM tab0 cor0 WHERE CAST( + + 35 AS SIGNED ) NOT BETWEEN - - col2 AND - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3165
SELECT * FROM tab0 cor0 WHERE CAST ( + + 35 AS INTEGER ) NOT BETWEEN - - col2 AND - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT DISTINCT col1 + col1 * + col0 + - + 43 + col0 + col0 * CAST( NULL AS SIGNED ) * 90 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT col1 + col1 * + col0 + - + 43 + col0 + col0 * CAST ( NULL AS INTEGER ) * 90 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab0 cor0
----
40

query III rowsort
SELECT * FROM tab2 WHERE + col1 + col2 NOT BETWEEN - - 8 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 80 + 33 AS col1 FROM tab2
----
-3647
-5087
-5967

query I rowsort
SELECT + 30 + - + col1 FROM tab2
----
-21
-37
-47

query I rowsort
SELECT DISTINCT - 42 - + 99 FROM tab1 WHERE NULL IS NULL
----
-141

query I rowsort
SELECT ALL + 78 - + - col1 * + col2 FROM tab0
----
177
288
3885

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3173
SELECT + + col1 DIV + col2 AS col0 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3173
SELECT + + col1 / + col2 AS col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
1
1
2

query I rowsort
SELECT - ( - ( + - col2 ) ) AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + 10 - + 1 + - + 39 - - 42 AS col0 FROM tab2
----
12

query I rowsort
SELECT col2 * - + 95 * 57 FROM tab1
----
-319485
-368220
-519840

query I rowsort
SELECT ALL - 88 * 97 AS col1 FROM tab0
----
-8536
-8536
-8536

query I rowsort
SELECT DISTINCT - col1 * + - col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT - + 32 AS col0 FROM tab2 WHERE NOT ( + col1 ) IS NULL
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT + COUNT( * ) + COUNT( 60 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) > NULL OR NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3180
SELECT + COUNT ( * ) + COUNT ( 60 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) > NULL OR NULL = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT ALL + + SUM( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL + + SUM ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL + COUNT( ALL col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL + COUNT ( ALL col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 / + + 33 * + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 78 = - col2 * - 56 + - + 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 88 * - col0 + 71 + - + col0 + + col0 FROM tab0 AS cor0
----
-1249
-7585
-8465

query I rowsort
SELECT ALL + + 46 FROM tab1 cor0
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3187
SELECT DISTINCT + + col0 * + + col2 + + 62 * 37 DIV - 15 FROM tab0 AS cor0
----
553
718
9451

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT + + col0 * + + col2 + + 62 * 37 / - 15 FROM tab0 AS cor0
----
553
718
9451

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - 0 * + 54
----

query I rowsort
SELECT ALL col0 + + 70 FROM tab2
----
116
134
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3190
SELECT CAST( NULL AS SIGNED ) * - - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3190
SELECT CAST ( NULL AS INTEGER ) * - - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + col0 ) * + col0, 61 col1 FROM tab1
----
2601
61
7225
61
8281
61

query I rowsort
SELECT ALL - col1 * - col0 * + col0 + + 9 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
158958
18234
9418

query I rowsort
SELECT ALL 14 AS col0 FROM tab2 cor0
----
14
14
14

query I rowsort
SELECT ALL 92 + 13 AS col0 FROM tab1 AS cor0
----
105
105
105

query II rowsort
SELECT - col1, + ( - col1 ) FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 98
----

query I rowsort
SELECT + - col2 + + + col1 FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT DISTINCT + col1 - - 79 FROM tab1
----
126
84
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3199
SELECT DISTINCT COUNT( * ) + + CAST( + 60 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
69

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT COUNT ( * ) + + CAST ( + 60 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3200
SELECT ALL - 22 * COUNT( DISTINCT + 2 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL - 22 * COUNT ( DISTINCT + 2 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT COUNT( * ) FROM tab1 WHERE - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3201
SELECT COUNT ( * ) FROM tab1 WHERE - + col2 IS NULL
----
0

query I rowsort
SELECT - 5 - + col1 AS col1 FROM tab1
----
-10
-19
-52

query III rowsort
SELECT * FROM tab2 WHERE col2 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT ALL - COUNT( * ) * - - 21 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL - COUNT ( * ) * - - 21 FROM tab0 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL + ( - + 24 ) * + COUNT( * ) col0 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3205
SELECT ALL + ( - + 24 ) * + COUNT ( * ) col0 FROM tab1 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT DISTINCT COUNT( * ) * - MIN( ALL - + col2 ) AS col2 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT COUNT ( * ) * - MIN ( ALL - + col2 ) AS col2 FROM tab2 AS cor0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT ALL + MAX( DISTINCT + - 93 ) + + 92 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL + MAX ( DISTINCT + - 93 ) + + 92 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL 92 * - COUNT( * ) * + 24 AS col2 FROM tab1
----
-6624

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL 92 * - COUNT ( * ) * + 24 AS col2 FROM tab1
----
-6624

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 34 = - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0 * 70 * col2 AS col0, - col0 + - 14 FROM tab2 cor0
----
179200
-78
304500
-89
74060
-60

query I rowsort
SELECT DISTINCT - 17 + + col1 * + 18 FROM tab2 AS cor0
----
1189
1369
901

query I rowsort
SELECT ALL col2 * - 49 FROM tab2 AS cor0
----
-1127
-1960
-2842

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3213
SELECT + CAST( NULL AS SIGNED ) / + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3213
SELECT + CAST ( NULL AS INTEGER ) / + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab2 AS cor0 WHERE col1 * col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3215
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3215
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, - col1 col2 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query I rowsort
SELECT + 86 AS col0 FROM tab0 cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT COUNT( DISTINCT - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3218
SELECT COUNT ( DISTINCT - col0 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT col0 + - - col0 AS col2 FROM tab1
----
102
170
182

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE ( 60 - - 93 ) <> + col2
----
46
64
75

query I rowsort
SELECT + + 57 + + col0 AS col1 FROM tab2 AS cor0
----
103
121
132

query I rowsort
SELECT DISTINCT - + 41 AS col1 FROM tab2 AS cor0
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - ( + col1 ) col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3224
SELECT - 29 DIV - 44 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3224
SELECT - 29 / - 44 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( + 88 ) FROM tab2 AS cor0
----
88
88
88

onlyif mysql # DIV for integer division: 
query II rowsort label-3226
SELECT ALL col0 DIV - col2, - col0 AS col2 FROM tab2 cor0
----
-1
-64
-1
-75
-2
-46

skipif mysql # not compatible
query II rowsort label-3226
SELECT ALL col0 / - col2, - col0 AS col2 FROM tab2 cor0
----
-1
-64
-1
-75
-2
-46

query I rowsort
SELECT DISTINCT - 6 - + 69 AS col1 FROM tab2
----
-75

query II rowsort
SELECT ALL + 99 AS col1, - col0 * + col2 AS col0 FROM tab2 AS cor0
----
99
-1058
99
-2560
99
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - 28 col0 FROM tab1 AS cor0
----
-19
14
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 74 + - + 23 col1 FROM tab2 AS cor0
----
102
118
128

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * col2 / - + col2 BETWEEN NULL AND ( + ( col0 ) + - - ( - - col0 ) * + col0 )
----

query I rowsort
SELECT - 13 + + + col1 + col2 FROM tab2 AS cor0
----
104
112
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT ALL COUNT( DISTINCT + - col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL COUNT ( DISTINCT + - col2 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3234
SELECT + ( + - col2 ) AS col1 FROM tab1 WHERE NOT - 45 IN ( 12 / + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3234
SELECT + ( + - col2 ) AS col1 FROM tab1 WHERE NOT - 45 IN ( 12 / + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col2 + + 3 FROM tab1 WHERE NOT NULL = 73
----

query I rowsort
SELECT + 63 * + - col0 - - + 51 - - 60 FROM tab2 WHERE NOT ( 89 * + + col2 NOT BETWEEN + - col1 AND NULL )
----

query I rowsort
SELECT - 5 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + ( - col1 ) + col1
----

query I rowsort
SELECT - 81 AS col0 FROM tab2 cor0
----
-81
-81
-81

query II rowsort
SELECT DISTINCT + - col0 AS col2, - 70 AS col2 FROM tab1 AS cor0
----
-51
-70
-85
-70
-91
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT DISTINCT + - CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT + - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3241
SELECT + + CAST( 55 AS SIGNED ) + + COUNT( * ) AS col2 FROM tab0 WHERE NOT + col2 IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-3241
SELECT + + CAST ( 55 AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + col2 IS NULL
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-3242
SELECT col1 DIV col1, + 43 AS col2 FROM tab0
----
1
43
1
43
1
43

skipif mysql # not compatible
query II rowsort label-3242
SELECT col1 / col1, + 43 AS col2 FROM tab0
----
1
43
1
43
1
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3243
SELECT - - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3243
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT DISTINCT - COUNT( * ) * - + ( - - 1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT - COUNT ( * ) * - + ( - - 1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT DISTINCT + 79 * + ( + ( COUNT( * ) ) ) FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT + 79 * + ( + ( COUNT ( * ) ) ) FROM tab0 AS cor0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3246
SELECT ALL ( + CAST( NULL AS SIGNED ) ) * - AVG ( DISTINCT 37 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) * - AVG ( DISTINCT 37 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT DISTINCT COUNT( ALL - - col2 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT COUNT ( ALL - - col2 ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL 57 + col1 AS col2 FROM tab1 cor0
----
104
62
71

query I rowsort
SELECT DISTINCT + 82 + + + col1 AS col0 FROM tab1
----
129
87
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT 75 + col1 FROM tab0
----
156
76
96

query II rowsort
SELECT ALL col2, 17 FROM tab2
----
23
17
40
17
58
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3253
SELECT DISTINCT - 55 + + + COUNT( * ) DIV - 13 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT - 55 + + + COUNT ( * ) / - 13 FROM tab0
----
-55

query I rowsort
SELECT ALL + col1 * + - col0 + - col0 + + - col0 + + col1 * - + 3 * + 5 + - - col1 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ( + col0 ) * - col1 * - 83 + - + 17 + col2 + + + ( - col0 ) AS col1, + col2 AS col2 FROM tab0
----
100860
47
151547
10
8036
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col1 * - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT ( - col2 ) * - col2 DIV col2 + - - 76 + - col0 * + col2 FROM tab2 AS cor0
----
-2444
-4216
-959

skipif mysql # not compatible
query I rowsort label-3257
SELECT ( - col2 ) * - col2 / col2 + - - 76 + - col0 * + col2 FROM tab2 AS cor0
----
-2444
-4216
-959

query I rowsort
SELECT DISTINCT 13 * - col0 * - - 36 AS col1 FROM tab2 cor0
----
-21528
-29952
-35100

onlyif mysql # DIV for integer division: 
query II rowsort label-3259
SELECT DISTINCT col1 col1, + col0 DIV + + col2 AS col0 FROM tab0 AS cor0
----
1
0
21
8
81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3259
SELECT DISTINCT col1 col1, + col0 / + + col2 AS col0 FROM tab0 AS cor0
----
1
0
21
8
81
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3260
SELECT - 8 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3260
SELECT - 8 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 70 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT ALL 22 * 42 * + col0 - - CAST( NULL AS SIGNED ) + + col2 * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL 22 * 42 * + col0 - - CAST ( NULL AS INTEGER ) + + col2 * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3263
SELECT DISTINCT - - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT - - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3264
SELECT 25 col1 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN + + col2 * + CAST( NULL AS SIGNED ) * - col0 + + 89 + - col1 AND 23
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3264
SELECT 25 col1 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN + + col2 * + CAST ( NULL AS INTEGER ) * - col0 + + 89 + - col1 AND 23
----

query I rowsort
SELECT col1 * + + 2 AS col0 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3266
SELECT ALL - col2 / + - CAST( NULL AS SIGNED ) + - 70 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL - col2 / + - CAST ( NULL AS INTEGER ) + - 70 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3267
SELECT + + CAST( NULL AS SIGNED ) / ( - col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3267
SELECT + + CAST ( NULL AS INTEGER ) / ( - col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 73 * + - col2 FROM tab1 AS cor0
----
-4307
-4964
-7008

query I rowsort
SELECT col0 * 1 AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT - ( - 0 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT ( + 48 ) AS col0 FROM tab1
----
48

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3273
SELECT + + col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 84 / CAST( + 83 AS SIGNED ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3273
SELECT + + col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 84 / CAST ( + 83 AS INTEGER ) AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NOT col1 - col2 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NOT col1 - col2 IS NOT NULL )
----
0

query II rowsort
SELECT ALL - 27, col2 FROM tab0 cor0
----
-27
10
-27
47
-27
99

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT + CAST( NULL AS SIGNED ) * 74 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT + CAST ( NULL AS INTEGER ) * 74 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3278
SELECT ALL CAST( 91 AS SIGNED ) AS col0 FROM tab0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL CAST ( 91 AS INTEGER ) AS col0 FROM tab0
----
91
91
91

query I rowsort
SELECT - col0 * + 33 AS col0 FROM tab0
----
-2871
-3201
-495

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col1, ( - - 85 ) col0 FROM tab2 AS cor0
----
46
85
64
85
75
85

query I rowsort
SELECT DISTINCT ( + - ( - 66 ) ) * - - col0 + col2 AS col0 FROM tab2 AS cor0
----
3059
4264
5008

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3282
SELECT DISTINCT + - CAST( - SUM( DISTINCT + 52 ) AS DECIMAL ) + - 33 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT + - CAST ( - SUM ( DISTINCT + 52 ) AS REAL ) + - 33 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT DISTINCT + MIN( - col1 ) + + 7 AS col1 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT + MIN ( - col1 ) + + 7 AS col1 FROM tab0 AS cor0
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 96 * + + col2 col1 FROM tab0 AS cor0
----
212064
940896
9600

query II rowsort
SELECT + col1 AS col0, + col1 + col1 * - 90 FROM tab2 AS cor0
----
51
-4539
67
-5963
77
-6853

query II rowsort
SELECT DISTINCT + 34 AS col2, col0 AS col2 FROM tab0 AS cor0
----
34
15
34
87
34
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3287
SELECT ALL COUNT( * ) * + 61 + + MAX( - ( - col0 ) ) col0, 66 AS col0 FROM tab2
----
258
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3287
SELECT ALL COUNT ( * ) * + 61 + + MAX ( - ( - col0 ) ) col0, 66 AS col0 FROM tab2
----
258
66

query I rowsort
SELECT DISTINCT col1 * - col2 + - 62 FROM tab1
----
-1406
-3258
-357

query II rowsort
SELECT DISTINCT + col0 + - col1 AS col0, 37 FROM tab2
----
-13
37
-5
37
8
37

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT col1 + - 80 - - col0 + - col0 * col2 * ( - col0 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 5 + - col1 AS col0 FROM tab1 AS cor0
----
-42
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT + COUNT( col0 ) + - - 36 AS col0 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3292
SELECT + COUNT ( col0 ) + - - 36 AS col0 FROM tab2 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT + COUNT( - 11 ) AS col2 FROM tab0 cor0 WHERE NOT col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT + COUNT ( - 11 ) AS col2 FROM tab0 cor0 WHERE NOT col1 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT - 15 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-3294
SELECT - 15 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-45

query II rowsort
SELECT DISTINCT - col2 + + col0 AS col1, ( - col2 ) FROM tab0 AS cor0
----
-2
-99
-32
-47
77
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3296
SELECT - - col2 DIV + + 29 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3296
SELECT - - col2 / + + 29 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3297
SELECT - 29, - ( + + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-29
-3

skipif mysql # not compatible
query II rowsort label-3297
SELECT - 29, - ( + + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-29
-3

query II rowsort
SELECT DISTINCT col2, + col1 + 52 AS col2 FROM tab2 AS cor0
----
23
103
40
129
58
119

query II rowsort
SELECT ALL + col2, 65 FROM tab1 AS cor0
----
59
65
68
65
96
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 7 col1 FROM tab1 AS cor0
----
-7
-7
-7

query II rowsort
SELECT + col0 * - + 66 * col0, - col2 AS col0 FROM tab0 AS cor0
----
-14850
-47
-499554
-10
-620994
-99

query II rowsort
SELECT DISTINCT - col0 AS col1, - 44 * col0 FROM tab0 AS cor0
----
-15
-660
-87
-3828
-97
-4268

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 * + + col0 / + col2 AND + col0 / col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3304
SELECT + ( + col0 ) DIV + + col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-3304
SELECT + ( + col0 ) / + + col1 FROM tab0
----
0
4
97

query I rowsort
SELECT ( - ( - + col0 ) ) FROM tab0
----
15
87
97

query I rowsort
SELECT ALL + col2 * + 9 * - col1 FROM tab1
----
-12096
-2655
-28764

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3307
SELECT - col2 * - + col1 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT - col2 * - + col1 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + col1 * + col2 AS col2 FROM tab2
----
237160
260362
59823

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT MIN( ALL + 7 ) col2 FROM tab0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3309
SELECT MIN ( ALL + 7 ) col2 FROM tab0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT DISTINCT - - MAX( ALL 72 ) AS col0 FROM tab2 cor0 WHERE col1 * 5 IS NOT NULL
----
72

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT - - MAX ( ALL 72 ) AS col0 FROM tab2 cor0 WHERE col1 * 5 IS NOT NULL
----
72

query I rowsort
SELECT - - col1 * - + col1 * - 46 FROM tab2 AS cor0
----
119646
206494
272734

query I rowsort
SELECT DISTINCT - + 84 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-84

query I rowsort
SELECT ALL 9 AS col0 FROM tab0 cor0
----
9
9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT - COUNT( * ) * CAST( - + 66 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3314
SELECT - COUNT ( * ) * CAST ( - + 66 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL 23 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # aggregate syntax: 
query II rowsort label-3316
SELECT ALL - COUNT( * ) AS col0, - ( COUNT( * ) ) FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3316
SELECT ALL - COUNT ( * ) AS col0, - ( COUNT ( * ) ) FROM tab0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT 30 + COUNT( * ) AS col2 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-3317
SELECT 30 + COUNT ( * ) AS col2 FROM tab1
----
33

query II rowsort
SELECT ALL 67 AS col2, - 3 FROM tab1
----
67
-3
67
-3
67
-3

query I rowsort
SELECT ALL + - col0 * - + 25 AS col1 FROM tab1 cor0
----
1275
2125
2275

query I rowsort
SELECT 53 + - + col2 * col0 AS col0 FROM tab0 cor0
----
-652
-817
-9550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3321
SELECT DISTINCT - 76 FROM tab0 AS cor0 WHERE NOT + col2 + CAST( - 65 AS SIGNED ) * + col0 + + col1 IS NULL
----
-76

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT - 76 FROM tab0 AS cor0 WHERE NOT + col2 + CAST ( - 65 AS INTEGER ) * + col0 + + col1 IS NULL
----
-76

query I rowsort
SELECT ALL + ( + + 91 ) AS col0 FROM tab0 cor0
----
91
91
91

query II rowsort
SELECT DISTINCT - col1 AS col1, 32 FROM tab0 AS cor0
----
-1
32
-21
32
-81
32

query I rowsort
SELECT DISTINCT 38 + - col0 * - col2 FROM tab2 AS cor0
----
1096
2598
4388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 col2, - ( - 92 ) FROM tab2 AS cor0
----
-23
92
-40
92
-58
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3326
SELECT * FROM tab1 cor0 WHERE col0 - + - 96 - - - CAST( NULL AS SIGNED ) - 82 * col0 <= col1 + + 85
----

skipif mysql # not compatible
query III rowsort label-3326
SELECT * FROM tab1 cor0 WHERE col0 - + - 96 - - - CAST ( NULL AS INTEGER ) - 82 * col0 <= col1 + + 85
----

query II rowsort
SELECT col0 AS col0, + col0 - - 9 * - col2 FROM tab1 AS cor0
----
51
-813
85
-446
91
-521

query II rowsort
SELECT 65 AS col1, ( + - col1 ) * + col1 - + - 70 FROM tab0
----
65
-371
65
-6491
65
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3329
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN + - 83 * + col2 AND - col0
----

skipif mysql # not compatible
query III rowsort label-3329
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN + - 83 * + col2 AND - col0
----

query I rowsort
SELECT ALL + - 4 AS col2 FROM tab2 WHERE ( col0 ) > - col1
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 - + 71 col0 FROM tab1
----
24
24
24

query I rowsort
SELECT DISTINCT col0 - + 48 + - + col2 FROM tab0
----
-50
-80
29

query I rowsort
SELECT DISTINCT col1 + - + 7 + - col2 AS col1 FROM tab1
----
-28
-61
-89

query I rowsort
SELECT - 14 - + + col0 AS col1 FROM tab1
----
-105
-65
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 18 + - 10 - col2 * - 56 AS col1, + col1 col0 FROM tab1 AS cor0
----
3312
5
3816
47
5384
14

query I rowsort
SELECT DISTINCT ( 48 ) * 3 AS col1 FROM tab0
----
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 56 * - col2 col1, - 2 AS col2 FROM tab0
----
-2632
-2
-5544
-2
-560
-2

query I rowsort
SELECT ALL ( 73 ) FROM tab0 AS cor0
----
73
73
73

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT ALL + - col1 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL + - col1 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT + COUNT( - col2 ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3341
SELECT + COUNT ( - col2 ) * COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + 8 * 55 AS col1 FROM tab0 AS cor0
----
440

query I rowsort
SELECT + 18 * 63 + col0 AS col2 FROM tab1 AS cor0
----
1185
1219
1225

query II rowsort
SELECT 67 * + 96 AS col0, 46 FROM tab1 AS cor0
----
6432
46
6432
46
6432
46

query I rowsort
SELECT DISTINCT + 39 * ( + 67 ) * + 86 AS col0 FROM tab0 AS cor0
----
224718

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3346
SELECT ALL * FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3346
SELECT ALL * FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NULL
----

query II rowsort
SELECT ALL 68 AS col0, 62 AS col2 FROM tab2
----
68
62
68
62
68
62

onlyif mysql # aggregate syntax: 
query II rowsort label-3348
SELECT DISTINCT - SUM( DISTINCT - + 10 ) AS col2, - COUNT( * ) FROM tab2, tab2 AS cor0
----
10
-9

skipif mysql # not compatible
query II rowsort label-3348
SELECT DISTINCT - SUM ( DISTINCT - + 10 ) AS col2, - COUNT ( * ) FROM tab2, tab2 AS cor0
----
10
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3349
SELECT ALL - - col0 AS col1, + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-3349
SELECT ALL - - col0 AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT DISTINCT - ( + + 99 ) AS col0 FROM tab1 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT + - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3351
SELECT + - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL - COUNT( DISTINCT + col2 ) + + SUM( + + col1 ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL - COUNT ( DISTINCT + col2 ) + + SUM ( + + col1 ) FROM tab1 AS cor0
----
63

query I rowsort
SELECT + ( 41 ) + 99 AS col0 FROM tab0 cor0
----
140
140
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT DISTINCT - COUNT( * ) * 48 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT - COUNT ( * ) * 48 FROM tab0
----
-144

query I rowsort
SELECT ( - 0 ) + col0 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - col2 < ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 * 12 AS col0 FROM tab2
----
612
804
924

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT DISTINCT + 2 * COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3358
SELECT DISTINCT + 2 * COUNT ( * ) AS col2 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT DISTINCT - 48 + - 88 * COUNT( * ) AS col0 FROM tab1
----
-312

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT - 48 + - 88 * COUNT ( * ) AS col0 FROM tab1
----
-312

query I rowsort
SELECT 96 FROM tab1 WHERE NOT - 98 + + 26 NOT IN ( - 38 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( col2 - + col2 * col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT DISTINCT - MAX( 95 ) AS col0 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-3362
SELECT DISTINCT - MAX ( 95 ) AS col0 FROM tab2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT DISTINCT COUNT( DISTINCT - 35 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3363
SELECT DISTINCT COUNT ( DISTINCT - 35 ) FROM tab2
----
1

query I rowsort
SELECT - col0 + 68 * col1 AS col2 FROM tab0
----
-29
1341
5493

query III rowsort
SELECT * FROM tab0 WHERE + col1 * + col2 + 72 <= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN 76 / - col0 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT DISTINCT COUNT( * ) - ( - COUNT( ALL + col0 ) ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT COUNT ( * ) - ( - COUNT ( ALL + col0 ) ) FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3368
SELECT DISTINCT - col1 DIV - col1 - col2 * ( col0 * 18 ) AS col1 FROM tab1
----
-111383
-88127
-90269

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT - col1 / - col1 - col2 * ( col0 * 18 ) AS col1 FROM tab1
----
-111383
-88127
-90269

query I rowsort
SELECT col0 * + 40 AS col2 FROM tab0
----
3480
3880
600

onlyif mysql # DIV for integer division: 
query I rowsort label-3370
SELECT - 92 DIV + col0 + 56 FROM tab2
----
54
55
55

skipif mysql # not compatible
query I rowsort label-3370
SELECT - 92 / + col0 + 56 FROM tab2
----
54
55
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3371
SELECT CAST( COUNT( * ) AS SIGNED ) + + CAST( NULL AS DECIMAL ) FROM tab2 WHERE ( + 63 * - ( - 62 ) ) BETWEEN ( NULL ) AND col1 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3371
SELECT CAST ( COUNT ( * ) AS INTEGER ) + + CAST ( NULL AS REAL ) FROM tab2 WHERE ( + 63 * - ( - 62 ) ) BETWEEN ( NULL ) AND col1 * + col2
----
NULL

query I rowsort
SELECT ALL - 63 * - col2 FROM tab1
----
3717
4284
6048

query III rowsort
SELECT * FROM tab1 WHERE + 62 * ( - col2 / col0 ) + col2 * col2 = 76
----

query I rowsort
SELECT ALL ( + col2 ) * ( + col2 ) AS col0 FROM tab1
----
3481
4624
9216

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= ( col0 / + 82 + + 87 * 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT + ( COUNT( * ) ) * - 66 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-3376
SELECT + ( COUNT ( * ) ) * - 66 FROM tab2
----
-198

query I rowsort
SELECT + 25 + col0 FROM tab1
----
110
116
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3378
SELECT ALL + 78 DIV ( 62 ) AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL + 78 / ( 62 ) AS col2 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3379
SELECT + 46 * + col0 + CAST( col1 AS SIGNED ) FROM tab2 WHERE + 92 IS NOT NULL
----
2167
3021
3517

skipif mysql # not compatible
query I rowsort label-3379
SELECT + 46 * + col0 + CAST ( col1 AS INTEGER ) FROM tab2 WHERE + 92 IS NOT NULL
----
2167
3021
3517

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3380
SELECT DISTINCT col2 FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) * - col0 BETWEEN NULL AND + col0
----

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT col2 FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) * - col0 BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3381
SELECT DISTINCT + 19 DIV COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT + 19 / COUNT ( * ) AS col1 FROM tab1
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 41 + - 88 / + col2 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 col2 FROM tab0 AS cor0
----
14
14
14

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col0 / - 75 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + col1 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 64 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 / col2 + - col0 AS col0 FROM tab1 WHERE - 54 / - 84 IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * 39 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT - SUM( DISTINCT ( 37 ) ) * COUNT( * ) AS col2 FROM tab2 cor0
----
-111

skipif mysql # not compatible
query I rowsort label-3389
SELECT - SUM ( DISTINCT ( 37 ) ) * COUNT ( * ) AS col2 FROM tab2 cor0
----
-111

query I rowsort
SELECT DISTINCT - col2 + + 39 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3391
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3391
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 69 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3393
SELECT col0 FROM tab1 AS cor0 WHERE NOT col0 * + 88 + col0 * - col0 NOT IN ( CAST( 54 AS SIGNED ) * - 50 )
----

skipif mysql # not compatible
query I rowsort label-3393
SELECT col0 FROM tab1 AS cor0 WHERE NOT col0 * + 88 + col0 * - col0 NOT IN ( CAST ( 54 AS INTEGER ) * - 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT ALL + + COUNT( 1 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3394
SELECT ALL + + COUNT ( 1 ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * col0 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT - COUNT( + 47 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3396
SELECT - COUNT ( + 47 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT 33 * - - COUNT( * ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3397
SELECT 33 * - - COUNT ( * ) AS col2 FROM tab0
----
99

query I rowsort
SELECT + col0 * 13 AS col0 FROM tab0
----
1131
1261
195

query III rowsort
SELECT ALL * FROM tab2 WHERE 29 / - col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT 92 * + COUNT( * ) FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-3400
SELECT 92 * + COUNT ( * ) FROM tab1
----
276

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= ( - col0 * 3 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3402
SELECT DISTINCT - col1 + + CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT - col1 + + CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT - COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-3403
SELECT - COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

query I rowsort
SELECT DISTINCT ( - col0 ) + + col1 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT + 90 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 * + 79 col1 FROM tab1
----
1264
1264
1264

query I rowsort
SELECT - col2 + + + col1 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1145
-3043
-3877

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 93 ) IN ( 27 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <> + 91 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 - + col1 ) NOT IN ( 2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND - 0 * + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3412
SELECT ALL - CAST( COUNT( DISTINCT - ( ( col1 ) ) ) AS SIGNED ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL - CAST ( COUNT ( DISTINCT - ( ( col1 ) ) ) AS INTEGER ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3413
SELECT - + COUNT( * ) DIV + - COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3413
SELECT - + COUNT ( * ) / + - COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3414
SELECT + MAX( ALL CAST( NULL AS DECIMAL ) ) / 20 FROM tab1 AS cor0 WHERE ( ( 78 ) * + col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT + MAX ( ALL CAST ( NULL AS REAL ) ) / 20 FROM tab1 AS cor0 WHERE ( ( 78 ) * + col2 ) IS NOT NULL
----
NULL

query I rowsort
SELECT - col1 - + + col2 AS col0 FROM tab0
----
-100
-128
-31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + + col2 ) BETWEEN 48 AND ( col2 * - col2 + - 16 ) AND NOT NULL <= NULL
----

query I rowsort
SELECT ALL 56 + - 92 + col0 * + 42 + col1 * + col1 FROM tab1
----
2302
3559
5995

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 0 IS NULL AND NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT COUNT( * ) - + COUNT( ALL + col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3419
SELECT COUNT ( * ) - + COUNT ( ALL + col0 ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3420
SELECT * FROM tab2 WHERE col2 + + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-3420
SELECT * FROM tab2 WHERE col2 + + CAST ( NULL AS INTEGER ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 <> + 14
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT SUM( ALL 27 ) FROM tab2 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3422
SELECT SUM ( ALL 27 ) FROM tab2 WHERE NOT ( NULL ) <> NULL
----
NULL

query I rowsort
SELECT DISTINCT 38 * + + col0 + + 31 * - - ( + col2 ) * - 71 AS col0 FROM tab2 cor0
----
-124808
-48875
-85608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3424
SELECT DISTINCT COUNT( * ) DIV + MAX( + col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT COUNT ( * ) / + MAX ( + col1 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( - 20 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT DISTINCT + SUM( DISTINCT - + col1 ) AS col1 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT + SUM ( DISTINCT - + col1 ) AS col1 FROM tab1 cor0
----
-66

query II rowsort
SELECT + - ( + col1 ) AS col0, - 25 + + col1 + + col0 * - 82 FROM tab2 AS cor0
----
-51
-3746
-67
-6108
-77
-5196

onlyif mysql # DIV for integer division: 
query I rowsort label-3428
SELECT - col1 DIV - + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3428
SELECT - col1 / - + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT + 73 * - MAX( col0 ) * - - COUNT( * ) * COUNT( * ) FROM tab2
----
-49275

skipif mysql # not compatible
query I rowsort label-3429
SELECT + 73 * - MAX ( col0 ) * - - COUNT ( * ) * COUNT ( * ) FROM tab2
----
-49275

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT ALL SUM( ALL + - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL SUM ( ALL + - col1 ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT col2 = - + 36 * col1
----
3

skipif mysql # not compatible
query I rowsort label-3431
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT col2 = - + 36 * col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT DISTINCT - MIN( DISTINCT + col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3432
SELECT DISTINCT - MIN ( DISTINCT + col0 ) FROM tab2
----
-46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 14 * - 96 <> 34
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3434
SELECT 39, COUNT( * ) AS col2 FROM tab0 AS cor0
----
39
3

skipif mysql # not compatible
query II rowsort label-3434
SELECT 39, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
39
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + 82 - + col2 * + + col1 + + col1 IN ( col1 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 54 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 69 * + - col2 AS col1 FROM tab2 AS cor0
----
-1587
-2760
-4002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3438
SELECT ( - - CAST( - ( + + 81 ) AS SIGNED ) ) FROM tab0 cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-3438
SELECT ( - - CAST ( - ( + + 81 ) AS INTEGER ) ) FROM tab0 cor0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3439
SELECT DISTINCT col2 + - col0 * 39 * + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT col2 + - col0 * 39 * + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT - COUNT( 96 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3440
SELECT - COUNT ( 96 ) col0 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + 84 * 86 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col1 FROM tab2 WHERE NOT + 77 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 92 * - - col0 FROM tab2
----
4232
5888
6900

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT COUNT( * ) * + - 49 + MIN( + col0 ) FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-3445
SELECT COUNT ( * ) * + - 49 + MIN ( + col0 ) FROM tab0
----
-132

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 / - 43 + - 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - col2 + + - col2 = - 16 * col2
----

query III rowsort
SELECT * FROM tab1 WHERE col2 + - + col2 > ( - + col2 * - col1 - + col1 * 66 + - col2 * 14 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT + + COUNT( * ) + + 22 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT + + COUNT ( * ) + + 22 FROM tab0 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT ALL 44 * - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-396

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL 44 * - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT ALL + ( + COUNT( * ) ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL + ( + COUNT ( * ) ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT SUM( - col2 ) FROM tab2 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT SUM ( - col2 ) FROM tab2 AS cor0 WHERE NULL > NULL
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( 83 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT + - COUNT( ALL - col1 ) + - MAX( + + 66 ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3454
SELECT + - COUNT ( ALL - col1 ) + - MAX ( + + 66 ) FROM tab2 AS cor0
----
-69

query II rowsort
SELECT ALL + + col1 + 48 * + 50, col0 AS col2 FROM tab2 AS cor0
----
2451
46
2467
75
2477
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 + + 26 * + col2 * - col1 FROM tab2 AS cor0
----
-101094
-30521
-80120

query I rowsort
SELECT ALL - + col1 * 36 + - - ( + col0 ) FROM tab1 AS cor0
----
-1601
-453
-95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 12 + + 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 38 + col1 AS col1 FROM tab0
----
119
39
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3461
SELECT DISTINCT 48 AS col1 FROM tab2 WHERE col1 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT 48 AS col1 FROM tab2 WHERE col1 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) >= ( NULL )
----

query II rowsort
SELECT col0, col0 + + ( + col1 ) + col0 FROM tab2
----
46
143
64
205
75
217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3463
SELECT ALL col1 * ( + CAST( 59 AS SIGNED ) ) AS col1 FROM tab0
----
1239
4779
59

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL col1 * ( + CAST ( 59 AS INTEGER ) ) AS col1 FROM tab0
----
1239
4779
59

query I rowsort
SELECT - - 41 FROM tab0 WHERE NOT - - col0 <> + 32 * + 33 * - col0 * + + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3465
SELECT ALL col0, - col1 DIV + 36 AS col1 FROM tab1 AS cor0
----
51
0
85
0
91
-1

skipif mysql # not compatible
query II rowsort label-3465
SELECT ALL col0, - col1 / + 36 AS col1 FROM tab1 AS cor0
----
51
0
85
0
91
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT DISTINCT - + MAX( ALL - + col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT - + MAX ( ALL - + col0 ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3467
SELECT + col1 DIV 20 AS col2 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3467
SELECT + col1 / 20 AS col2 FROM tab0
----
0
1
4

query I rowsort
SELECT ALL ( + ( + col1 ) ) AS col2 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - 95 * col1
----

query I rowsort
SELECT ( col0 ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL ( + ( 61 ) ) FROM tab1
----
61
61
61

query I rowsort
SELECT ALL col2 + - - col1 AS col2 FROM tab2
----
117
125
74

query I rowsort
SELECT ( 0 ) AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT ALL MAX( ALL - 9 ) AS col0 FROM tab2 WHERE NOT + 53 / - col1 * + 19 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL MAX ( ALL - 9 ) AS col0 FROM tab2 WHERE NOT + 53 / - col1 * + 19 IS NULL
----
-9

query I rowsort
SELECT ALL ( - + 64 ) FROM tab2
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT DISTINCT + - ( 3 ) * + + COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT + - ( 3 ) * + + COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3477
SELECT DISTINCT - MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = ( NULL )
----

query II rowsort
SELECT col2 + 41, + col0 * + col2 AS col1 FROM tab2
----
64
1058
81
2560
99
4350

query I rowsort
SELECT ALL col2 + - + ( col1 ) FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ALL - 95 + - col2 * - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + 91, + col0 * + 38 * 14, - - col2 )
----

query II rowsort
SELECT ALL + - col0 - - col2 * + col2 + 52, + col2 FROM tab1 AS cor0
----
3448
59
4585
68
9217
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3485
SELECT col1 / + + CAST( NULL AS SIGNED ) / 55 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT col1 / + + CAST ( NULL AS INTEGER ) / 55 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * 37 * col0 AS col2 FROM tab2 AS cor0
----
160950
39146
94720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3487
SELECT 17 / + + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3487
SELECT 17 / + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3488
SELECT COUNT( 52 ) DIV + 70 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3488
SELECT COUNT ( 52 ) / + 70 AS col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col1, - col2 )
----

query II rowsort
SELECT DISTINCT + col2 * + col2 * - col2 AS col2, 25 - + col2 + - col0 AS col0 FROM tab2
----
-12167
-44
-195112
-108
-64000
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3491
SELECT DISTINCT col2 * - col0 AS col1, CAST( + col2 AS SIGNED ) AS col1 FROM tab0
----
-705
47
-870
10
-9603
99

skipif mysql # not compatible
query II rowsort label-3491
SELECT DISTINCT col2 * - col0 AS col1, CAST ( + col2 AS INTEGER ) AS col1 FROM tab0
----
-705
47
-870
10
-9603
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3492
SELECT ALL + ( - col0 ) * - ( - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL + ( - col0 ) * - ( - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3493
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3493
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 52 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3495
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IN ( + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL + MIN( DISTINCT - 26 ) AS col1 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL + MIN ( DISTINCT - 26 ) AS col1 FROM tab2 AS cor0
----
-26

query II rowsort
SELECT ALL - col0 AS col1, - 14 * + col2 AS col2 FROM tab1 AS cor0
----
-51
-1344
-85
-826
-91
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT DISTINCT MIN( ALL - col2 ) col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3498
SELECT DISTINCT MIN ( ALL - col2 ) col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL + 45 + + col0 AS col1 FROM tab1 AS cor0
----
130
136
96

query I rowsort
SELECT ( - 76 ) FROM tab2 cor0
----
-76
-76
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-3501
SELECT col2 + - + col2 + + 31 DIV + - col2 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3501
SELECT col2 + - + col2 + + 31 / + - col2 AS col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL + col2 + + 44 FROM tab0
----
143
54
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 90 + - col0 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT + + 54 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-3504
SELECT + + 54 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL + COUNT( + 66 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL + COUNT ( + 66 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 28 AS col2 FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT DISTINCT + COUNT( * ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT + COUNT ( * ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT DISTINCT - SUM( ALL col1 ) + MIN( - col0 ) col2 FROM tab2
----
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3508
SELECT DISTINCT - SUM ( ALL col1 ) + MIN ( - col0 ) col2 FROM tab2
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT - COUNT( ALL - + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3509
SELECT - COUNT ( ALL - + col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT SUM( DISTINCT + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3510
SELECT SUM ( DISTINCT + col2 ) FROM tab1 AS cor0
----
223

query II rowsort
SELECT ALL - col0 AS col0, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT DISTINCT + + 44 * + + col1 FROM tab1 AS cor0
----
2068
220
616

query I rowsort
SELECT ALL - - col1 * - 52 FROM tab1 AS cor0
----
-2444
-260
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT DISTINCT + MIN( col1 ) * - 47 + + COUNT( * ) FROM tab1 AS cor0
----
-232

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT + MIN ( col1 ) * - 47 + + COUNT ( * ) FROM tab1 AS cor0
----
-232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3515
SELECT ALL + CAST( + SUM( DISTINCT + col0 ) AS SIGNED ) * 69 AS col1 FROM tab0 AS cor0
----
13731

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL + CAST ( + SUM ( DISTINCT + col0 ) AS INTEGER ) * 69 AS col1 FROM tab0 AS cor0
----
13731

query I rowsort
SELECT - 61 * + ( + col0 ) * 86 AS col2 FROM tab1 cor0 WHERE NOT + col1 >= + 76
----
-267546
-445910
-477386

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( - col2, + 59 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3518
SELECT ALL CAST( + ( + col1 ) AS SIGNED ) DIV + 14 AS col0 FROM tab2
----
3
4
5

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL CAST ( + ( + col1 ) AS INTEGER ) / + 14 AS col0 FROM tab2
----
3
4
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( - col1 ) col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3520
SELECT ALL + - 6 AS col0 FROM tab1 WHERE NULL <= + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL + - 6 AS col0 FROM tab1 WHERE NULL <= + CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 57 * + + col0 col1 FROM tab0
----
-104139
-5529
-69255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3522
SELECT DISTINCT + + 3 FROM tab2 WHERE NOT col1 * col2 NOT IN ( + col1 + + - col1, CAST( NULL AS SIGNED ), - col2 )
----

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT + + 3 FROM tab2 WHERE NOT col1 * col2 NOT IN ( + col1 + + - col1, CAST ( NULL AS INTEGER ), - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3523
SELECT DISTINCT - 68 AS col1, SUM( - col2 ) + + - 49 col0 FROM tab1
----
-68
-272

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3523
SELECT DISTINCT - 68 AS col1, SUM ( - col2 ) + + - 49 col0 FROM tab1
----
-68
-272

query III rowsort
SELECT * FROM tab1 WHERE 72 IS NULL AND col1 = + col2 + 84
----

query I rowsort
SELECT - col1 * 46 AS col1 FROM tab0
----
-3726
-46
-966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3526
SELECT CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3526
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col2, col2 + col0 FROM tab2
----
23
69
40
104
58
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3528
SELECT 34 DIV - - COUNT( * ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-3528
SELECT 34 / - - COUNT ( * ) FROM tab2
----
11

query II rowsort
SELECT ALL + 9, + 13 AS col2 FROM tab0
----
9
13
9
13
9
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3530
SELECT ALL + 21 * - COUNT( DISTINCT + CAST( 76 AS SIGNED ) ) col2 FROM tab0 WHERE NOT - col2 = + - col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3530
SELECT ALL + 21 * - COUNT ( DISTINCT + CAST ( 76 AS INTEGER ) ) col2 FROM tab0 WHERE NOT - col2 = + - col2
----
0

query I rowsort
SELECT + ( + - col1 ) AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3532
SELECT ALL + col1, CAST( NULL AS SIGNED ) / - 65 * - 28 AS col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3532
SELECT ALL + col1, CAST ( NULL AS INTEGER ) / - 65 * - 28 AS col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT DISTINCT - + col1 * - + 33 * + col0 FROM tab1 cor0
----
14025
141141
23562

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT - MAX( - 2 ) FROM tab0 AS cor0 WHERE NOT - col0 <= - col2
----
2

skipif mysql # not compatible
query I rowsort label-3534
SELECT - MAX ( - 2 ) FROM tab0 AS cor0 WHERE NOT - col0 <= - col2
----
2

query I rowsort
SELECT - + 51 AS col0 FROM tab0 cor0
----
-51
-51
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( col2 ), col1 + + ( + col2 ) col0 FROM tab1 AS cor0
----
59
64
68
115
96
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT DISTINCT COUNT( * ) * + 52 FROM tab2 cor0
----
156

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT COUNT ( * ) * + 52 FROM tab2 cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3538
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + - + col2 <= - CAST( col0 AS SIGNED ) + 20
----

skipif mysql # not compatible
query III rowsort label-3538
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + - + col2 <= - CAST ( col0 AS INTEGER ) + 20
----

query I rowsort
SELECT ALL - + col0 + col2 AS col2 FROM tab1 cor0
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3540
SELECT * FROM tab0 WHERE NOT - ( - + col0 ) IN ( - CAST( + - 40 AS DECIMAL ) + + col2 + - - col0, + CAST( - 51 AS SIGNED ), - col0 + 55, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3540
SELECT * FROM tab0 WHERE NOT - ( - + col0 ) IN ( - CAST ( + - 40 AS REAL ) + + col2 + - - col0, + CAST ( - 51 AS INTEGER ), - col0 + 55, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + - ( - + 98 ) AS col1 FROM tab0
----
119
179
99

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 94 ) NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + col2 ) IN ( col1 * + + col0, - 44 * + col1, + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 97 + + - col2 FROM tab1 AS cor0
----
1
29
38

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 - - - 58 + - col2 + + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + 14 ) AS col2 FROM tab1 cor0
----
14
14
14

query I rowsort
SELECT DISTINCT - 73 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-73

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE 11 * - col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE ( - col0 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL col2 + - 43 AS col2 FROM tab0
----
-33
4
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, + col1 * col1 FROM tab1
----
-51
196
-85
25
-91
2209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, - col2 AS col2 FROM tab1
----
-14
-96
-47
-68
-5
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 24, - 82 * - 86 col0 FROM tab2 AS cor0
----
24
7052

query I rowsort
SELECT ALL - 93 + col2 FROM tab1 AS cor0
----
-25
-34
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT + COUNT( * ) + + 55 col2 FROM tab0 cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3555
SELECT + COUNT ( * ) + + 55 col2 FROM tab0 cor0
----
58

query I rowsort
SELECT DISTINCT - ( + col2 ) * col1 + - - col0 FROM tab1
----
-1293
-210
-3105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3557
SELECT + + MIN( ALL + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = - CAST( + 8 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3557
SELECT + + MIN ( ALL + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = - CAST ( + 8 AS INTEGER )
----
NULL

query I rowsort
SELECT col1 + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 97 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 * col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3561
SELECT - + col1 * + col2, CAST( NULL AS DECIMAL ) - + - 74 * + col1 * - + 71 * col2 * - col2 AS col0 FROM tab1 AS cor0
----
-1344
NULL
-295
NULL
-3196
NULL

skipif mysql # not compatible
query II rowsort label-3561
SELECT - + col1 * + col2, CAST ( NULL AS REAL ) - + - 74 * + col1 * - + 71 * col2 * - col2 AS col0 FROM tab1 AS cor0
----
-1344
NULL
-295
NULL
-3196
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3562
SELECT + 93 * 65 * - col2 + - - ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT + 93 * 65 * - col2 + - - ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3563
SELECT + COUNT( * ) DIV 63 DIV COUNT( * ) * COUNT( * ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3563
SELECT + COUNT ( * ) / 63 / COUNT ( * ) * COUNT ( * ) col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT DISTINCT - COUNT( * ) * + - 31 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT - COUNT ( * ) * + - 31 FROM tab1
----
93

query I rowsort
SELECT ALL col2 * - 51 FROM tab0
----
-2397
-5049
-510

query II rowsort
SELECT DISTINCT col2, ( - col0 ) AS col0 FROM tab2
----
23
-46
40
-64
58
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 6 * - - col2 > - 45
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3568
SELECT CAST( col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3568
SELECT CAST ( col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT ALL - col2 * 2 + + + ( col2 ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3570
SELECT + CAST( + - 39 AS SIGNED ) + - - col2 + ( + col2 ) * col2 AS col1 FROM tab0 AS cor0
----
2217
71
9861

skipif mysql # not compatible
query I rowsort label-3570
SELECT + CAST ( + - 39 AS INTEGER ) + - - col2 + ( + col2 ) * col2 AS col1 FROM tab0 AS cor0
----
2217
71
9861

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE - 41 * - col2 + - col2 BETWEEN NULL AND - - 46 * + - 52 + - + ( ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT MIN( ALL 4 ) + 55 * + 14 col2 FROM tab2 AS cor0
----
774

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3572
SELECT MIN ( ALL 4 ) + 55 * + 14 col2 FROM tab2 AS cor0
----
774

query I rowsort
SELECT DISTINCT 30 * - - 34 FROM tab0 AS cor0
----
1020

query I rowsort
SELECT DISTINCT + 80 * + - ( - col0 ) + 87 + + ( col0 ) + - - col0 FROM tab2 AS cor0
----
3859
5335
6237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3575
SELECT ALL - 50 + COUNT( * ) - - CAST( 64 AS SIGNED ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL - 50 + COUNT ( * ) - - CAST ( 64 AS INTEGER ) FROM tab2 AS cor0
----
17

query I rowsort
SELECT ALL + 10 * - 16 + - + col1 + + col0 - + col0 + - col0 FROM tab0 AS cor0
----
-256
-258
-268

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 68 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3578
SELECT ALL 99 * - col2 + ( + col1 ) + - ( - col0 ) * + CAST( NULL AS SIGNED ) * 91 * + - 62 * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL 99 * - col2 + ( + col1 ) + - ( - col0 ) * + CAST ( NULL AS INTEGER ) * 91 * + - 62 * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 <= NULL
----

query I rowsort
SELECT - 90 * + - 37 FROM tab2 AS cor0
----
3330
3330
3330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3581
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 / + - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 / + - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 74 * + 51 AS col0 FROM tab2 AS cor0
----
3774
3774
3774

query I rowsort
SELECT + + 60 - + col1 FROM tab1 AS cor0
----
13
46
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT - COUNT( * ) + - COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3584
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab0 cor0
----
-6

query I rowsort
SELECT col2 + + - col0 FROM tab2 cor0
----
-17
-23
-24

query I rowsort
SELECT ALL + + col2 + + ( + 5 ) AS col1 FROM tab1 AS cor0
----
101
64
73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * + - col1 <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3588
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE + CAST( + + col2 AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3588
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE + CAST ( + + col2 AS INTEGER ) IS NOT NULL
----
-3

query I rowsort
SELECT + 73 + - + col2 + - col2 AS col1 FROM tab2
----
-43
-7
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3590
SELECT DISTINCT - col0 + + + col1 + - col2 DIV col0 FROM tab0
----
-66
-97
63

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT - col0 + + + col1 + - col2 / col0 FROM tab0
----
-66
-97
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - - col0 * - col0 col1 FROM tab2
----
-2065
-4019
-5558

query I rowsort
SELECT - 13 * + 89 + + - 32 FROM tab2
----
-1189
-1189
-1189

onlyif mysql # aggregate syntax: 
query II rowsort label-3593
SELECT DISTINCT 79 + - SUM( 92 ) * - ( SUM( ALL + ( + col1 ) ) ) AS col2, 82 * + 67 AS col2 FROM tab2
----
53899
5494

skipif mysql # not compatible
query II rowsort label-3593
SELECT DISTINCT 79 + - SUM ( 92 ) * - ( SUM ( ALL + ( + col1 ) ) ) AS col2, 82 * + 67 AS col2 FROM tab2
----
53899
5494

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3594
SELECT * FROM tab0 WHERE + CAST( + col1 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-3594
SELECT * FROM tab0 WHERE + CAST ( + col1 AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT ALL MIN( ALL + col1 ) + - 89 + + COUNT( * ) AS col1 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL MIN ( ALL + col1 ) + - 89 + + COUNT ( * ) AS col1 FROM tab1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT 87 + COUNT( - col2 ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-3596
SELECT 87 + COUNT ( - col2 ) FROM tab0
----
90

query I rowsort
SELECT DISTINCT 4 * - col0 - - + 3 AS col1 FROM tab0
----
-345
-385
-57

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) - + + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) - + + col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT MIN( + + col0 ) * + MAX( ALL - 32 ) AS col2 FROM tab1
----
-1632

skipif mysql # not compatible
query I rowsort label-3600
SELECT MIN ( + + col0 ) * + MAX ( ALL - 32 ) AS col2 FROM tab1
----
-1632

query I rowsort
SELECT ALL + col0 * - + col2 * - 63 AS col1 FROM tab2
----
161280
274050
66654

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT DISTINCT SUM( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT SUM ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query II rowsort label-3603
SELECT DISTINCT 75 AS col0, COUNT( * ) AS col2 FROM tab0
----
75
3

skipif mysql # not compatible
query II rowsort label-3603
SELECT DISTINCT 75 AS col0, COUNT ( * ) AS col2 FROM tab0
----
75
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - col2 AS col0 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE + 70 < - - col0
----
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 52 + 11 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3607
SELECT + 1 * - CAST( - col0 AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3607
SELECT + 1 * - CAST ( - col0 AS REAL ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT DISTINCT - MAX( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3608
SELECT DISTINCT - MAX ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT - col1 DIV - 59 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3609
SELECT - col1 / - 59 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT ( ( NOT NULL NOT IN ( - col2 ) ) )
----

query I rowsort
SELECT ALL + 77 * ( + col1 ) FROM tab1 WHERE ( col2 <> col1 )
----
1078
3619
385

query I rowsort
SELECT + ( - col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT DISTINCT SUM( ALL - 98 ) + + - 36 AS col0 FROM tab0 cor0
----
-330

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT SUM ( ALL - 98 ) + + - 36 AS col0 FROM tab0 cor0
----
-330

query I rowsort
SELECT DISTINCT 16 + - col0 FROM tab2
----
-30
-48
-59

query I rowsort
SELECT + + 24 + 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT - col0 + - col0 * + 46 * + ( + - col2 ) AS col1 FROM tab0
----
32415
39933
441641

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT DISTINCT + 13 + - + MIN( ALL - + col0 ) FROM tab1
----
104

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT + 13 + - + MIN ( ALL - + col0 ) FROM tab1
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT ALL + col2 DIV + + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL + col2 / + + col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3619
SELECT DISTINCT + - col1 DIV + + 98 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT + - col1 / + + 98 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = + 13 * + 36
----

query I rowsort
SELECT ALL + 87 + - - col2 AS col2 FROM tab0 cor0
----
134
186
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3622
SELECT DISTINCT col1 + CAST( + - col1 AS SIGNED ) + + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT col1 + CAST ( + - col1 AS INTEGER ) + + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + col1 * 29 AS col1 FROM tab0 AS cor0
----
2349
29
609

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT - 49 * - MIN( + + col2 ) AS col0 FROM tab0 AS cor0
----
490

skipif mysql # not compatible
query I rowsort label-3624
SELECT - 49 * - MIN ( + + col2 ) AS col0 FROM tab0 AS cor0
----
490

onlyif mysql # aggregate syntax: 
query II rowsort label-3625
SELECT ALL - 79 + - 72 + COUNT( * ) col1, COUNT( * ) FROM tab1 AS cor0
----
-148
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3625
SELECT ALL - 79 + - 72 + COUNT ( * ) col1, COUNT ( * ) FROM tab1 AS cor0
----
-148
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3626
SELECT 48 DIV - col1 FROM tab0
----
-2
-48
0

skipif mysql # not compatible
query I rowsort label-3626
SELECT 48 / - col1 FROM tab0
----
-2
-48
0

query I rowsort
SELECT ALL + - 56 FROM tab0 WHERE NULL IS NULL
----
-56
-56
-56

query I rowsort
SELECT - 2 - - col0 AS col0 FROM tab2
----
44
62
73

query I rowsort
SELECT ALL + col2 + + col2 - + col2 + - col1 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT COUNT( * ) - - COUNT( * ) * + + 40 + 58 * + 29 AS col1 FROM tab2
----
1805

skipif mysql # not compatible
query I rowsort label-3630
SELECT COUNT ( * ) - - COUNT ( * ) * + + 40 + 58 * + 29 AS col1 FROM tab2
----
1805

query I rowsort
SELECT ALL - col2 * col1 - - - 10 AS col1 FROM tab1
----
-1354
-305
-3206

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( ( NULL IS NULL ) )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT ALL + ( - - 59 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT DISTINCT - + SUM( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT - + SUM ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3636
SELECT ALL + COUNT( * ) DIV + - COUNT( * ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3636
SELECT ALL + COUNT ( * ) / + - COUNT ( * ) col2 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 96 BETWEEN + + col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 FROM tab2 WHERE NOT - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3639
SELECT ALL * FROM tab0 WHERE ( + - ( - ( CAST( NULL AS SIGNED ) ) ) * + 40 + + col1 * col1 ) IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-3639
SELECT ALL * FROM tab0 WHERE ( + - ( - ( CAST ( NULL AS INTEGER ) ) ) * + 40 + + col1 * col1 ) IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT 47 * + 60 * + MIN( - 6 ) FROM tab2
----
-16920

skipif mysql # not compatible
query I rowsort label-3640
SELECT 47 * + 60 * + MIN ( - 6 ) FROM tab2
----
-16920

query I rowsort
SELECT col0 * - - ( + + ( + 25 ) ) FROM tab1
----
1275
2125
2275

query I rowsort
SELECT ALL - ( - col2 ) AS col2 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 48 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 68 * + - col0 + - 69 FROM tab0 AS cor0
----
-1089
-5985
-6665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3645
SELECT ALL - 97 / + + col1 + + - CAST( + 49 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col0 - + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL - 97 / + + col1 + + - CAST ( + 49 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col0 - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3646
SELECT + + CAST( - col0 AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3646
SELECT + + CAST ( - col0 AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT + + 13 AS col1, + col2 FROM tab0 AS cor0
----
13
10
13
47
13
99

query I rowsort
SELECT - col2 + - + col1 - col1 FROM tab0 AS cor0
----
-101
-209
-52

query I rowsort
SELECT - 65 * - 72 * + - col0 + + + 4 FROM tab1
----
-238676
-397796
-425876

query I rowsort
SELECT col2 + + col1 AS col1 FROM tab0 WHERE + 79 BETWEEN NULL AND - + 46 + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3651
SELECT DISTINCT col0 - + + col0 DIV 46 * + col2 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-3651
SELECT DISTINCT col0 - + + col0 / 46 * + col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT ALL 72 + + 35 AS col1 FROM tab1
----
107
107
107

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT 81 + - + ( - COUNT( * ) ) AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT 81 + - + ( - COUNT ( * ) ) AS col0 FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT MIN( 54 ) AS col2 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-3654
SELECT MIN ( 54 ) AS col2 FROM tab2
----
54

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 + - - col1 AS col2 FROM tab0 WHERE NOT + - ( + 51 ) IS NULL
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3657
SELECT CAST( NULL AS SIGNED ), - col2 AS col0 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-3657
SELECT CAST ( NULL AS INTEGER ), - col2 AS col0 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3658
SELECT ALL - COUNT( ALL + - 93 ) * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL - COUNT ( ALL + - 93 ) * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT + - ( col1 ) AS col2 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) / - col0 >= - - col0
----

skipif mysql # not compatible
query I rowsort label-3659
SELECT + - ( col1 ) AS col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) / - col0 >= - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3660
SELECT COUNT( * ) FROM tab1 WHERE NOT - 53 IN ( + ( + col2 ), - ( - + col1 ) + + col1, + col1, CAST( + col2 AS SIGNED ), col2 * - 13 )
----
3

skipif mysql # not compatible
query I rowsort label-3660
SELECT COUNT ( * ) FROM tab1 WHERE NOT - 53 IN ( + ( + col2 ), - ( - + col1 ) + + col1, + col1, CAST ( + col2 AS INTEGER ), col2 * - 13 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3661
SELECT DISTINCT col2 DIV - 72 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT col2 / - 72 AS col0 FROM tab2
----
0

query II rowsort
SELECT - col2 AS col2, - col2 AS col0 FROM tab1
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT - col1 / - col0 AS col2 FROM tab2 WHERE NOT 6 IS NOT NULL
----

query II rowsort
SELECT + + 44, + col1 AS col0 FROM tab1 AS cor0
----
44
14
44
47
44
5

query I rowsort
SELECT DISTINCT - col2 + - 71 AS col2 FROM tab2 AS cor0 WHERE + col1 + + + 39 * + + col1 * - col1 + - col0 IS NULL
----

query II rowsort
SELECT + + 45, + col0 + col2 AS col0 FROM tab0 AS cor0
----
45
196
45
62
45
97

query II rowsort
SELECT DISTINCT - - col1, col0 * + - 28 * - + col1 * + - 36 AS col2 FROM tab1 cor0
----
14
-719712
47
-4311216
5
-428400

query I rowsort
SELECT ALL - - ( - 79 ) AS col0 FROM tab1 AS cor0
----
-79
-79
-79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 36 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 45 - - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 48 AS col1 FROM tab2 WHERE NOT - col1 * 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT COUNT( DISTINCT - - col0 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3672
SELECT COUNT ( DISTINCT - - col0 ) col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT SUM( ALL + + col2 ) * + MAX( ALL + - col2 ) FROM tab2
----
-2783

skipif mysql # not compatible
query I rowsort label-3673
SELECT SUM ( ALL + + col2 ) * + MAX ( ALL + - col2 ) FROM tab2
----
-2783

query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT IN ( col2 * col2 + 28, - col1, - + 60 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3675
SELECT DISTINCT COUNT( - col1 ) AS col1, - 23 FROM tab1
----
3
-23

skipif mysql # not compatible
query II rowsort label-3675
SELECT DISTINCT COUNT ( - col1 ) AS col1, - 23 FROM tab1
----
3
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + 6 AS col0, 70 col0 FROM tab0
----
-282
70
-594
70
-60
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT + 36 + - COUNT( * ) AS col1 FROM tab0 WHERE + - ( 53 ) IN ( - col0 + - + ( + + col2 ), + col2 )
----
36

skipif mysql # not compatible
query I rowsort label-3677
SELECT + 36 + - COUNT ( * ) AS col1 FROM tab0 WHERE + - ( 53 ) IN ( - col0 + - + ( + + col2 ), + col2 )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3678
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3678
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT - ( - + MIN( + col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3679
SELECT - ( - + MIN ( + col2 ) ) FROM tab1
----
59

query I rowsort
SELECT + col2 + - 95 AS col2 FROM tab0 cor0
----
-48
-85
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT ALL + COUNT( * ) + - + 37 + 28 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL + COUNT ( * ) + - + 37 + 28 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT + MAX( ALL - col0 ) + - 88 FROM tab1 WHERE + + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3682
SELECT + MAX ( ALL - col0 ) + - 88 FROM tab1 WHERE + + col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + ( + 97 ) FROM tab2 AS cor0
----
97

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 * 24 BETWEEN 15 AND NULL
----

query I rowsort
SELECT ALL col0 * + col1 + - 43 * + col0 + 99 - - col2 FROM tab1 AS cor0
----
-1284
-3072
531

query I rowsort
SELECT - col1 - + + col1 FROM tab1 AS cor0
----
-10
-28
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 - + col2 col0, + 4 AS col0 FROM tab1
----
-21
4
-54
4
-82
4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - + col1 + 75 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 WHERE NOT - col2 * - col2 * ( + col2 ) IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT + COUNT( * ) FROM tab0 WHERE NOT - ( col0 ) - + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3690
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - ( col0 ) - + col2 IS NULL
----
3

query I rowsort
SELECT ALL + col1 * + - col0 FROM tab0 WHERE - col2 <> - + col1 + - col1
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3692
SELECT - ( - COUNT( * ) ) AS col1, + 64 AS col2 FROM tab2
----
3
64

skipif mysql # not compatible
query II rowsort label-3692
SELECT - ( - COUNT ( * ) ) AS col1, + 64 AS col2 FROM tab2
----
3
64

query I rowsort
SELECT ALL - ( - ( 78 ) ) FROM tab0
----
78
78
78

query I rowsort
SELECT - 46 * col1 - + col0 FROM tab1 AS cor0 WHERE NOT ( - - 47 ) > 43
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3695
SELECT + COUNT( DISTINCT - 83 ) AS col2, - SUM( ALL - + col1 ) FROM tab1 AS cor0
----
1
66

skipif mysql # not compatible
query II rowsort label-3695
SELECT + COUNT ( DISTINCT - 83 ) AS col2, - SUM ( ALL - + col1 ) FROM tab1 AS cor0
----
1
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3696
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3696
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 79 * 8 * - + col1 - col2 AS col0 FROM tab0 cor0
----
13262
51145
533

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT + 95 DIV col2 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3699
SELECT + 95 / col2 AS col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT ( + - col1 ) * + col0 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + ( - + 14 ) FROM tab2 cor0
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT + CAST( + 9 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-3702
SELECT + CAST ( + 9 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
9
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + 45 + ( + + col2 ) col0 FROM tab1 AS cor0 WHERE NOT - ( + 35 ) + + col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT DISTINCT + col2 AS col0 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN col0 AND col0 * col1 + CAST( - - 30 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT + col2 AS col0 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN col0 AND col0 * col1 + CAST ( - - 30 AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3705
SELECT ALL - CAST( NULL AS DECIMAL ), + col2 * - + col1 * 21 AS col1 FROM tab1 AS cor0
----
NULL
-28224
NULL
-6195
NULL
-67116

skipif mysql # not compatible
query II rowsort label-3705
SELECT ALL - CAST ( NULL AS REAL ), + col2 * - + col1 * 21 AS col1 FROM tab1 AS cor0
----
NULL
-28224
NULL
-6195
NULL
-67116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3706
SELECT ALL - - col0 * + + 86 - + 77 + - col1 + + 19 * - col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL - - col0 * + + 86 - + 77 + - col1 + + 19 * - col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + + + 21 FROM tab2
----
44
61
79

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE - col2 + + + col0 + 74 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3709
SELECT ALL - 91 * + col0 - - - col0 AS col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) <= + + col0
----

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL - 91 * + col0 - - - col0 AS col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) <= + + col0
----

query III rowsort
SELECT * FROM tab0 WHERE col2 - - col1 IS NULL
----

query I rowsort
SELECT ALL - - col2 + - col0 * - col0 AS col0 FROM tab2 AS cor0
----
2139
4136
5683

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT - MAX( - ( + 59 ) ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3712
SELECT - MAX ( - ( + 59 ) ) AS col1 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT SUM( ALL + - ( + - col1 ) ) col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3713
SELECT SUM ( ALL + - ( + - col1 ) ) col1 FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col0 + - col1 col0 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3715
SELECT - COUNT( * ) * + ( + 38 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3715
SELECT - COUNT ( * ) * + ( + 38 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3716
SELECT DISTINCT - col2 - + + col1 * + + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
2323
4888
4967

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT - col2 - + + col1 * + + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
2323
4888
4967

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 68 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 75 - - col2 + - - col0 FROM tab1 AS cor0
----
219
222
234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3719
SELECT - - col0 + - col1 + + col0 - + col2 * col1 * + + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3719
SELECT - - col0 + - col1 + + col0 - + col2 * col1 * + + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3720
SELECT - 76 + MIN( ALL - col0 ) DIV + 9 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3720
SELECT - 76 + MIN ( ALL - col0 ) / + 9 FROM tab2 AS cor0
----
-84

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 * - col1 <> NULL
----

query I rowsort
SELECT - ( + 95 ) AS col1 FROM tab0 AS cor0
----
-95
-95
-95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 - - - col1 + - - ( + 4 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3724
SELECT DISTINCT ( - CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS col0, 42 AS col1 FROM tab0
----
NULL
42

skipif mysql # not compatible
query II rowsort label-3724
SELECT DISTINCT ( - CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) ) AS col0, 42 AS col1 FROM tab0
----
NULL
42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT - MIN( - 84 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-3726
SELECT - MIN ( - 84 ) FROM tab0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3727
SELECT - CAST( NULL AS SIGNED ) col2, - MAX( DISTINCT - col0 ) AS col2 FROM tab2
----
NULL
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3727
SELECT - CAST ( NULL AS INTEGER ) col2, - MAX ( DISTINCT - col0 ) AS col2 FROM tab2
----
NULL
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT DISTINCT ( - SUM( DISTINCT + col2 ) ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT ( - SUM ( DISTINCT + col2 ) ) AS col0 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT DISTINCT - SUM( col0 ) col2 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3729
SELECT DISTINCT - SUM ( col0 ) col2 FROM tab1
----
-227

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 93 * col0 * - 13 * + col1 * - col0 + + col2 BETWEEN NULL AND + - 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT - - COUNT( ALL - - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3731
SELECT - - COUNT ( ALL - - col0 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 1 + - col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 * - col2 col2 FROM tab1 AS cor0
----
1152
708
816

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT SUM( + + col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-3734
SELECT SUM ( + + col1 ) FROM tab2 cor0
----
195

query I rowsort
SELECT col1 * - 60 FROM tab2
----
-3060
-4020
-4620

query I rowsort
SELECT - + 42 + - - col2 FROM tab0 cor0
----
-32
5
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3737
SELECT ALL - - col1 DIV - + col0 + + col1 + - col1 + + - 61 AS col2 FROM tab0 AS cor0
----
-61
-61
-66

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL - - col1 / - + col0 + + col1 + - col1 + + - 61 AS col2 FROM tab0 AS cor0
----
-61
-61
-66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT ALL - COUNT( * ) * - - 63 FROM tab2 cor0
----
-189

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL - COUNT ( * ) * - - 63 FROM tab2 cor0
----
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-3740
SELECT ALL col2 * col1 + + 23 DIV - col0 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL col2 * col1 + + 23 / - col0 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT DISTINCT - 13 + - - COUNT( - 61 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT - 13 + - - COUNT ( - 61 ) AS col1 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND + - col0
----
0

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND + - col0
----
0

query I rowsort
SELECT ALL 12 * - 39 FROM tab1
----
-468
-468
-468

query I rowsort
SELECT - ( + col2 ) * + 45 AS col1 FROM tab2
----
-1035
-1800
-2610

query I rowsort
SELECT - 99 * - 67 FROM tab2
----
6633
6633
6633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 + 56 col0 FROM tab1
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT + COUNT( * ) * 89 * - 33 FROM tab0
----
-8811

skipif mysql # not compatible
query I rowsort label-3747
SELECT + COUNT ( * ) * 89 * - 33 FROM tab0
----
-8811

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( - + col2 ) / - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 - + col1 + col2 + - - ( - - col1 ) * 99 + - 4 FROM tab1 AS cor0
----
1478
4717
550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3750
SELECT ALL - 7 * + CAST( NULL AS SIGNED ) * MIN( ALL col0 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL - 7 * + CAST ( NULL AS INTEGER ) * MIN ( ALL col0 ) FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT CAST( + + 40 AS SIGNED ) + 91 FROM tab0
----
131
131
131

skipif mysql # not compatible
query I rowsort label-3751
SELECT CAST ( + + 40 AS INTEGER ) + 91 FROM tab0
----
131
131
131

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3752
SELECT * FROM tab2 cor0 WHERE NOT + col0 - + col2 NOT BETWEEN + + ( - col0 ) * CAST( NULL AS SIGNED ) - - - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3752
SELECT * FROM tab2 cor0 WHERE NOT + col0 - + col2 NOT BETWEEN + + ( - col0 ) * CAST ( NULL AS INTEGER ) - - - col1 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + - 65 + - 50 + col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3754
SELECT DISTINCT COUNT( * ) DIV + MIN( DISTINCT - 28 ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT COUNT ( * ) / + MIN ( DISTINCT - 28 ) AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 / - - 39 * col1 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3756
SELECT - + CAST( NULL AS DECIMAL ) * - 57 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3756
SELECT - + CAST ( NULL AS REAL ) * - 57 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col2 / - 67 + - col0 + + col1 * col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3758
SELECT ALL + + COUNT( * ), ( + MIN( DISTINCT 2 ) ) AS col1 FROM tab0 AS cor0
----
3
2

skipif mysql # not compatible
query II rowsort label-3758
SELECT ALL + + COUNT ( * ), ( + MIN ( DISTINCT 2 ) ) AS col1 FROM tab0 AS cor0
----
3
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 col1 FROM tab0 AS cor0
----
-18

query I rowsort
SELECT 89 * col1 * - ( - 84 ) AS col0 FROM tab0
----
156996
605556
7476

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT DISTINCT - COUNT( DISTINCT - 26 ) col0 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3761
SELECT DISTINCT - COUNT ( DISTINCT - 26 ) col0 FROM tab1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 96 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 59 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3765
SELECT DISTINCT col2 AS col0, col0 / + - CAST( + ( CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3765
SELECT DISTINCT col2 AS col0, col0 / + - CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col0 FROM tab2 AS cor0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + 54, - 98 col0, + col1 * 89 * + - col1 col2 FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----

query II rowsort
SELECT DISTINCT col2, + ( + + col0 ) FROM tab2 cor0
----
23
46
40
64
58
75

query I rowsort
SELECT - ( + 61 ) FROM tab2 AS cor0
----
-61
-61
-61

query II rowsort
SELECT + 47 AS col0, 19 AS col0 FROM tab2 AS cor0
----
47
19
47
19
47
19

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3772
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - 12 + - 68 AS col0 FROM tab1 AS cor0
----
-80
-80
-80

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE + col0 BETWEEN + ( 16 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3775
SELECT col1 DIV - col0 + - col2 AS col0 FROM tab0
----
-10
-52
-99

skipif mysql # not compatible
query I rowsort label-3775
SELECT col1 / - col0 + - col2 AS col0 FROM tab0
----
-10
-52
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ALL COUNT( * ) FROM tab0 WHERE col0 + + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL COUNT ( * ) FROM tab0 WHERE col0 + + + col0 IS NULL
----
0

query I rowsort
SELECT - 46 AS col2 FROM tab0 WHERE NULL <= - col0 * + 33
----

query II rowsort
SELECT ALL 95 + + - col1 AS col2, - col1 AS col0 FROM tab0
----
14
-81
74
-21
94
-1

query I rowsort
SELECT DISTINCT 49 AS col0 FROM tab2 WHERE + + 85 IS NULL
----

query I rowsort
SELECT ALL - 85 + ( col0 ) FROM tab2
----
-10
-21
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT DISTINCT CAST( - col2 AS SIGNED ) * + 66 AS col2 FROM tab0
----
-3102
-6534
-660

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * + 66 AS col2 FROM tab0
----
-3102
-6534
-660

query I rowsort
SELECT DISTINCT col1 - + 68 AS col1 FROM tab1 AS cor0
----
-21
-54
-63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 IN ( - - 4 - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3784
SELECT col2 AS col1 FROM tab1 WHERE NOT - - col2 NOT BETWEEN + col1 + col2 + + CAST( NULL AS DECIMAL ) * + + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3784
SELECT col2 AS col1 FROM tab1 WHERE NOT - - col2 NOT BETWEEN + col1 + col2 + + CAST ( NULL AS REAL ) * + + col2 AND NULL
----

query I rowsort
SELECT ALL 79 + col0 FROM tab0 WHERE NULL IS NULL
----
166
176
94

query I rowsort
SELECT - 73 AS col2 FROM tab2 cor0
----
-73
-73
-73

query I rowsort
SELECT - - col0 * - - col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT ALL SUM( ALL - - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL SUM ( ALL - - col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT MIN( DISTINCT col1 ) FROM tab1 WHERE NOT - 91 >= - 30 + + - 83 + 48 / - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT MIN ( DISTINCT col1 ) FROM tab1 WHERE NOT - 91 >= - 30 + + - 83 + 48 / - 67
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 49 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 86 * + - col1 FROM tab0
----
-1806
-6966
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-3792
SELECT DISTINCT - 96 DIV - 1 AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT - 96 / - 1 AS col2 FROM tab1
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 60 BETWEEN + col1 AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 + - 48 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3795
SELECT DISTINCT 92 DIV + COUNT( * ) + - + 53 AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT 92 / + COUNT ( * ) + - + 53 AS col1 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT ( + col2 ) NOT BETWEEN + + ( + col2 ) AND + 90
----
3

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT ( + col2 ) NOT BETWEEN + + ( + col2 ) AND + 90
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3797
SELECT 86 + + + 12 * ( + CAST( CAST( - col1 AS DECIMAL ) AS SIGNED ) ) FROM tab2
----
-526
-718
-838

skipif mysql # not compatible
query I rowsort label-3797
SELECT 86 + + + 12 * ( + CAST ( CAST ( - col1 AS REAL ) AS INTEGER ) ) FROM tab2
----
-526
-718
-838

query I rowsort
SELECT - ( + col2 ) + - + 97 AS col1 FROM tab2 AS cor0
----
-120
-137
-155

query I rowsort
SELECT - col0 * - 16 + - col0 + + 99 AS col0 FROM tab1 AS cor0
----
1374
1464
864

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT + SUM( ALL 66 ) AS col2 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-3800
SELECT + SUM ( ALL 66 ) AS col2 FROM tab2 AS cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT MAX( ALL - + col1 ) AS col1 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3801
SELECT MAX ( ALL - + col1 ) AS col1 FROM tab2 cor0
----
-51

query II rowsort
SELECT 11 AS col2, col1 FROM tab1
----
11
14
11
47
11
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT MAX( ALL - - 45 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-3803
SELECT MAX ( ALL - - 45 ) FROM tab0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3804
SELECT ALL col0 * - - CAST( + col2 AS SIGNED ) - col2 * + - 51 FROM tab1
----
8024
9656
9792

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL col0 * - - CAST ( + col2 AS INTEGER ) - col2 * + - 51 FROM tab1
----
8024
9656
9792

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ALL 71 + MIN( ALL + + col1 ) + - 36 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL 71 + MIN ( ALL + + col1 ) + - 36 FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE + 71 * col0 - 34 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE + 71 * col0 - 34 IS NULL
----
0

query I rowsort
SELECT col2 - - 79 FROM tab2
----
102
119
137

query I rowsort
SELECT ALL + ( + 65 ) - 95 FROM tab0 cor0
----
-30
-30
-30

query II rowsort
SELECT ALL col1, 35 * + - ( + + col0 ) + col1 FROM tab2 AS cor0
----
51
-1559
67
-2558
77
-2163

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT ALL MIN( 64 ) AS col0 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL MIN ( 64 ) AS col0 FROM tab0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT DISTINCT SUM( ALL 7 ) AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT SUM ( ALL 7 ) AS col2 FROM tab2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3812
SELECT - ( 77 ) - SUM( DISTINCT 31 ) DIV COUNT( * ) col1 FROM tab2
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3812
SELECT - ( 77 ) - SUM ( DISTINCT 31 ) / COUNT ( * ) col1 FROM tab2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3813
SELECT DISTINCT 84 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT 84 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + + ( col2 + col2 ) < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * - 27 < - 50 * col0 + + 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT - col2 FROM tab2 WHERE NOT 37 * CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-3816
SELECT - col2 FROM tab2 WHERE NOT 37 * CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT ALL + 59 - MAX( - 44 ) FROM tab1
----
103

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL + 59 - MAX ( - 44 ) FROM tab1
----
103

query I rowsort
SELECT DISTINCT ( col0 ) * col2 + 46 AS col0 FROM tab2 WHERE ( col1 ) < col2 * col1
----
1104
2606
4396

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT + 62 + COUNT( * ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-3819
SELECT + 62 + COUNT ( * ) FROM tab2
----
65

query I rowsort
SELECT DISTINCT + col0 + - 19 AS col0 FROM tab1
----
32
66
72

query I rowsort
SELECT ( 71 ) FROM tab1
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3822
SELECT - col1 + 4 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT - col1 + 4 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL NOT IN ( col2 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3823
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL NOT IN ( col2 * - col0 )
----
0

query I rowsort
SELECT ALL - col2 + 0 AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3825
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE - col1 IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE - col1 IN ( col1 )
----

query I rowsort
SELECT 70 FROM tab0 WHERE NOT NULL IS NOT NULL
----
70
70
70

query I rowsort
SELECT 85 FROM tab0 WHERE ( col0 ) NOT BETWEEN col2 AND + col0
----
85
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3828
SELECT CAST( - col0 AS SIGNED ) * + 47 + - 20 DIV col0 AS col1 FROM tab2
----
-2162
-3008
-3525

skipif mysql # not compatible
query I rowsort label-3828
SELECT CAST ( - col0 AS INTEGER ) * + 47 + - 20 / col0 AS col1 FROM tab2
----
-2162
-3008
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT COUNT( * ) + - COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3829
SELECT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col1 FROM tab2
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3831
SELECT ALL CAST( + ( col2 ) AS DECIMAL ) col2 FROM tab1 WHERE NOT ( - col2 + col2 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3831
SELECT ALL CAST ( + ( col2 ) AS REAL ) col2 FROM tab1 WHERE NOT ( - col2 + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT DISTINCT + MAX( + col1 ) col0 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3832
SELECT DISTINCT + MAX ( + col1 ) col0 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL ( - COUNT( col2 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL ( - COUNT ( col2 ) ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT ( col1 ) BETWEEN ( col0 ) AND NULL
----
-14
-47
-5

query I rowsort
SELECT 29 + ( - col2 - + col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-45
-88
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT ALL MAX( ALL - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL MAX ( ALL - col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL + 1 + + col2 AS col0 FROM tab2 AS cor0
----
24
41
59

query I rowsort
SELECT DISTINCT 50 + + 16 * + col2 AS col1 FROM tab1 AS cor0
----
1138
1586
994

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT ALL COUNT( * ) + - COUNT( col2 + - 2 / + col0 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL COUNT ( * ) + - COUNT ( col2 + - 2 / + col0 ) AS col0 FROM tab0 AS cor0
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT 65 * 26 FROM tab1 WHERE NOT NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ( COUNT( * ) ) col2 FROM tab2 AS cor0 WHERE 54 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3842
SELECT ( COUNT ( * ) ) col2 FROM tab2 AS cor0 WHERE 54 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT ALL 96 DIV + col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
19
2
6

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL 96 / + col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
19
2
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3844
SELECT col0 DIV col2 - col1 FROM tab1 AS cor0
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-3844
SELECT col0 / col2 - col1 FROM tab1 AS cor0
----
-14
-4
-46

query I rowsort
SELECT + - 2 * + col2 + + col0 AS col2 FROM tab2 cor0
----
-16
-41
0

query I rowsort
SELECT col0 + + 24 * col1 FROM tab0 AS cor0
----
121
1959
591

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT MIN( 93 ) * 14 + - 46 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT MIN ( 93 ) * 14 + - 46 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT - col2 + 10 AS col1 FROM tab0 AS cor0
----
-37
-89
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3850
SELECT COUNT( * ) + COUNT( * ) DIV - COUNT( * ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3850
SELECT COUNT ( * ) + COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
2

query I rowsort
SELECT ALL ( col0 ) * + col0 + 45 AS col1 FROM tab1 WHERE NOT - col1 <> ( col1 )
----

query I rowsort
SELECT ALL col1 + 80 FROM tab0 WHERE NULL > col1 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3853
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) + 30 * - ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3853
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) + 30 * - ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT DISTINCT SUM( + + ( 5 ) ) - 56 AS col2 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT SUM ( + + ( 5 ) ) - 56 AS col2 FROM tab2
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT DISTINCT col2 - 13 FROM tab2 WHERE NOT + 90 <= NULL OR NULL BETWEEN ( CAST( + 8 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT col2 - 13 FROM tab2 WHERE NOT + 90 <= NULL OR NULL BETWEEN ( CAST ( + 8 AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE ( 66 / - col1 ) IN ( - 79 )
----

query I rowsort
SELECT ALL 88 * - 57 - col1 AS col0 FROM tab1
----
-5021
-5030
-5063

query I rowsort
SELECT DISTINCT 22 * + col1 FROM tab1 WHERE col1 + - 43 IN ( 57 / - 7 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 - - 3 col1 FROM tab0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ALL COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 4 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT DISTINCT - + 21 * 4 + + col2 + col1 FROM tab2 AS cor0
----
-10
33
41

query I rowsort
SELECT ALL - - col0 * 98 * + col1 + + col1 * 55 AS col1 FROM tab0 AS cor0
----
123525
180201
9561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 AS cor0 WHERE NOT - 3 + + + 12 NOT BETWEEN - 22 AND ( col0 )
----
10
47
99

query I rowsort
SELECT DISTINCT - ( + col2 ) * col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 IN ( + col2 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + + col0, 93 FROM tab2 cor0
----
46
93
64
93
75
93

query I rowsort
SELECT ALL + ( + col0 ) + 46 FROM tab1 AS cor0 WHERE + 65 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 24 BETWEEN - col2 AND ( 72 )
----
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = ( + 12 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT DISTINCT + col2 DIV 92 * - col1 + 14 FROM tab0
----
13
14

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT + col2 / 92 * - col1 + 14 FROM tab0
----
13
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * col0 col1, 46 AS col1 FROM tab2
----
2116
46
4096
46
5625
46

query I rowsort
SELECT DISTINCT 49 AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ( + col1 ) AS col1 FROM tab0 WHERE NOT NULL NOT IN ( col1 + + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - col2 ) IN ( 41 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 39 * + 87 FROM tab0
----
3393
3393
3393

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL - 68 * + - COUNT( * ) col1 FROM tab0 AS cor0
----
204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3878
SELECT ALL - 68 * + - COUNT ( * ) col1 FROM tab0 AS cor0
----
204

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - 0 ) * - 98 <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT ALL + MAX( ALL + col0 ) AS col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL + MAX ( ALL + col0 ) AS col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT ALL - 39 + - ( - ( + - CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL - 39 + - ( - ( + - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT col0 col2 FROM tab2 AS cor0 WHERE + 18 * + + col2 NOT BETWEEN - CAST( - ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) + 11 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3882
SELECT col0 col2 FROM tab2 AS cor0 WHERE + 18 * + + col2 NOT BETWEEN - CAST ( - ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + 11 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3883
SELECT DISTINCT COUNT( * ) DIV + - 77 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT COUNT ( * ) / + - 77 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col0 + col1 * col0 AS col1 FROM tab2 cor0 WHERE - col2 IS NOT NULL
----
2392
4992
5100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 90 col0 FROM tab1
----
149
158
186

query I rowsort
SELECT col1 + - col1 + + col0 FROM tab1
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 56 NOT BETWEEN + - col0 AND ( - 50 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2 * - col1 * + col2, col2 + + col2 + col2 * col2 * 32 AS col0 FROM tab1
----
-129024
295104
-17405
111510
-217328
148104

query I rowsort
SELECT + 73 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 55 BETWEEN NULL AND col1
----

query II rowsort
SELECT ALL + 59, col2 + + + 42 AS col2 FROM tab2 cor0
----
59
100
59
65
59
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT DISTINCT + MAX( - col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT + MAX ( - col1 ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3893
SELECT - col0 DIV 69 + col1 AS col1 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-3893
SELECT - col0 / 69 + col1 AS col1 FROM tab1 AS cor0
----
14
4
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3894
SELECT + COUNT( * ) AS col2 FROM tab2 cor0 WHERE + ( + ( - - 5 ) ) * 90 >= ( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3894
SELECT + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE + ( + ( - - 5 ) ) * 90 >= ( CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT col2 + - - 34 + col0 - + - col1 + - col2 * + col2 FROM tab2 AS cor0
----
-1385
-3130
-375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3896
SELECT DISTINCT + 14 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT + 14 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 - 53 FROM tab1
----
-100
-58
-67

query I rowsort
SELECT ALL 65 + - ( col1 ) FROM tab1
----
18
51
60

query I rowsort
SELECT + col1 - 84 FROM tab2
----
-17
-33
-7

query I rowsort
SELECT + col0 - - col1 + + col0 FROM tab1
----
116
175
229

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3901
SELECT ALL * FROM tab0 WHERE + CAST( + col2 AS SIGNED ) * - col2 + + 12 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3901
SELECT ALL * FROM tab0 WHERE + CAST ( + col2 AS INTEGER ) * - col2 + + 12 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 - - 39 FROM tab1
----
-20
-29
-57

query I rowsort
SELECT DISTINCT - - AVG ( + 96 ) + - 6 AS col0 FROM tab2 WHERE ( + - 65 ) > col0
----
NULL

query I rowsort
SELECT DISTINCT ( + + col2 ) AS col2 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT ALL col0 * + + 18 FROM tab1 AS cor0
----
1530
1638
918

query I rowsort
SELECT ALL + 59 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3907
SELECT ALL * FROM tab2 WHERE NOT ( - - ( + + CAST( NULL AS SIGNED ) ) + - 83 * + + CAST( - col1 AS SIGNED ) / + col1 - + col2 * 6 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3907
SELECT ALL * FROM tab2 WHERE NOT ( - - ( + + CAST ( NULL AS INTEGER ) ) + - 83 * + + CAST ( - col1 AS INTEGER ) / + col1 - + col2 * 6 ) IS NULL
----

query I rowsort
SELECT 32 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT 91 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE - col0 = 16
----

query I rowsort
SELECT - - 42 * + ( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT + 79 < + col0 + 21 + - col2 / - + col1
----
588

query I rowsort
SELECT DISTINCT - col0 - - col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3913
SELECT DISTINCT col0 * col0 * + col2 + - 67 DIV + + col1 FROM tab0 AS cor0
----
10575
75687
931424

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT col0 * col0 * + col2 + - 67 / + + col1 FROM tab0 AS cor0
----
10575
75687
931424

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT + MIN( col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3914
SELECT + MIN ( col0 ) FROM tab1 cor0
----
51

query I rowsort
SELECT ALL + 35 AS col0 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT DISTINCT + col2 + - 69 + col1 FROM tab2 AS cor0
----
48
5
56

query I rowsort
SELECT DISTINCT ( + col2 ) * 82 * - + 33 FROM tab2 AS cor0
----
-108240
-156948
-62238

query I rowsort
SELECT DISTINCT + ( - col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 + 23 col2 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL + COUNT( * ) + MAX( - col2 ) AS col0 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL + COUNT ( * ) + MAX ( - col2 ) AS col0 FROM tab1
----
-56

query II rowsort
SELECT DISTINCT col1, + 86 AS col1 FROM tab0
----
1
86
21
86
81
86

query I rowsort
SELECT DISTINCT + col0 + - - 60 FROM tab0
----
147
157
75

query II rowsort
SELECT ALL - col0 AS col2, - col1 + + - col1 FROM tab2
----
-46
-102
-64
-154
-75
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT + COUNT( * ) + + - 65 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-3924
SELECT + COUNT ( * ) + + - 65 FROM tab2
----
-62

query I rowsort
SELECT ( + - ( col1 ) ) + - col1 AS col2 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3926
SELECT + - col0 + - - ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT + - col0 + - - ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3927
SELECT - - col0 DIV col2 col1 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3927
SELECT - - col0 / col2 col1 FROM tab0 AS cor0
----
0
0
8

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 / - + col0 IS NULL
----

query I rowsort
SELECT ALL + 62 + + col0 AS col0 FROM tab0 AS cor0
----
149
159
77

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT - 47 + - - COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-38

skipif mysql # not compatible
query I rowsort label-3931
SELECT - 47 + - - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-38

query I rowsort
SELECT DISTINCT + 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
57

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * col1 IS NULL
----

query II rowsort
SELECT + 60 + - - 3 AS col2, - col1 AS col2 FROM tab1 AS cor0
----
63
-14
63
-47
63
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3936
SELECT DISTINCT - 18 DIV - col1 * + ( - col1 ) * - + col1 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT - 18 / - col1 * + ( - col1 ) * - + col1 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 + 48 * + 5 FROM tab1 AS cor0
----
245
254
287

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 col2 FROM tab1 cor0
----
-84
-84
-84

query II rowsort
SELECT DISTINCT - col0 AS col0, 41 FROM tab0
----
-15
41
-87
41
-97
41

query I rowsort
SELECT ALL 72 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT ALL COUNT( ALL - + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL COUNT ( ALL - + col0 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT col1 * 49 AS col0 FROM tab0
----
1029
3969
49

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT + MAX( ALL - 64 ) FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT + MAX ( ALL - 64 ) FROM tab0
----
-64

query II rowsort
SELECT DISTINCT + - col2 + - col0 / - - col2, + 57 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 46 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT ALL + + 89 * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-801

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL + + 89 * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 * - - col0 col1 FROM tab1
----
2397
3995
4277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - col2 col0 FROM tab0 WHERE NOT NULL > - ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3949
SELECT - CAST( + COUNT( * ) AS SIGNED ) * - MAX( + - col1 ) * - COUNT( DISTINCT CAST( NULL AS SIGNED ) ), - COUNT( * ) AS col0 FROM tab2
----
0
-3

skipif mysql # not compatible
query II rowsort label-3949
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * - MAX ( + - col1 ) * - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ), - COUNT ( * ) AS col0 FROM tab2
----
0
-3

query I rowsort
SELECT - - 52 + 50 AS col0 FROM tab0 AS cor0
----
102
102
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT + 27 + COUNT( * ) AS col2 FROM tab1 cor0
----
30

skipif mysql # not compatible
query I rowsort label-3951
SELECT + 27 + COUNT ( * ) AS col2 FROM tab1 cor0
----
30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT + + col0 + + col2 + + col2 + + + ( + + 89 ) FROM tab0 AS cor0
----
196
198
384

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3954
SELECT DISTINCT - AVG ( ALL - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT - AVG ( ALL - CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT ALL - MIN( ALL - + 77 ) FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL - MIN ( ALL - + 77 ) FROM tab0 AS cor0
----
77

query I rowsort
SELECT - ( + + 89 ) FROM tab2
----
-89
-89
-89

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 + 50 AS col2 FROM tab2
----
108
73
90

query II rowsort
SELECT DISTINCT - 74 + + - 76, col2 + - col1 AS col1 FROM tab1
----
-150
21
-150
54
-150
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col2 * - 63 * + col1 col2 FROM tab0
----
-19427121
-277830
-6237

onlyif mysql # DIV for integer division: 
query II rowsort label-3961
SELECT col0 DIV + + col1, - ( + col2 ) * col0 AS col0 FROM tab1
----
1
-6188
17
-5015
3
-4896

skipif mysql # not compatible
query II rowsort label-3961
SELECT col0 / + + col1, - ( + col2 ) * col0 AS col0 FROM tab1
----
1
-6188
17
-5015
3
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT DISTINCT - MAX( DISTINCT - - col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT - MAX ( DISTINCT - - col1 ) FROM tab2 cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3963
SELECT + CAST( ( + col1 ) AS SIGNED ) + col1 + + 52 DIV + - col1 FROM tab1 cor0
----
0
25
93

skipif mysql # not compatible
query I rowsort label-3963
SELECT + CAST ( ( + col1 ) AS INTEGER ) + col1 + + 52 / + - col1 FROM tab1 cor0
----
0
25
93

query I rowsort
SELECT 78 + + col2 AS col0 FROM tab0
----
125
177
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + - col2 ) + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT ALL + + MAX( DISTINCT - - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL + + MAX ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
81

query II rowsort
SELECT - ( + 96 ) * col1 AS col2, - col0 * - col2 FROM tab2 cor0
----
-4896
1058
-6432
4350
-7392
2560

onlyif mysql # DIV for integer division: 
query I rowsort label-3968
SELECT - + col0 DIV - + col2 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3968
SELECT - + col0 / - + col2 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1 cor0 WHERE NOT ( NOT NULL NOT IN ( + + 61 - + + ( - - ( + - 24 ) ) ) )
----

query I rowsort
SELECT col1 * + col2 + col1 * - 8 AS col0 FROM tab0 cor0
----
3159
42
91

query I rowsort
SELECT DISTINCT 19 * + 26 AS col1 FROM tab2
----
494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3972
SELECT - ( ( - + col2 ) ) * + - CAST( + col0 AS SIGNED ) FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-3972
SELECT - ( ( - + col2 ) ) * + - CAST ( + col0 AS INTEGER ) FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT ALL - col2 DIV - 29 AS col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL - col2 / - 29 AS col1 FROM tab2
----
0
1
2

query I rowsort
SELECT + ( - col1 ) * 54 AS col0 FROM tab0
----
-1134
-4374
-54

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 58 / col0 + + ( - col2 ) / 52 + - ( - col1 ) * - 95 + + - 24 + - + col1 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > - col1 * + 52
----

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3978
SELECT - - 67 * + + 12 + - 72 DIV MIN( + col2 ) FROM tab2 AS cor0
----
801

skipif mysql # not compatible
query I rowsort label-3978
SELECT - - 67 * + + 12 + - 72 / MIN ( + col2 ) FROM tab2 AS cor0
----
801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3979
SELECT - 98 * CAST( NULL AS SIGNED ) + + SUM( DISTINCT - 75 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT - 98 * CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT - 75 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT MAX( DISTINCT + col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-3980
SELECT MAX ( DISTINCT + col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3981
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3982
SELECT * FROM tab1 WHERE NOT + + col1 - + col1 IN ( - 67, 19 * - col1 * - CAST( NULL AS DECIMAL ), - + col0 + col0, + + 49 )
----

skipif mysql # not compatible
query III rowsort label-3982
SELECT * FROM tab1 WHERE NOT + + col1 - + col1 IN ( - 67, 19 * - col1 * - CAST ( NULL AS REAL ), - + col0 + col0, + + 49 )
----

query II rowsort
SELECT + col0, 46 AS col1 FROM tab1 AS cor0
----
51
46
85
46
91
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT + - SUM( ALL + - 10 ) AS col0 FROM tab1 cor0
----
30

skipif mysql # not compatible
query I rowsort label-3984
SELECT + - SUM ( ALL + - 10 ) AS col0 FROM tab1 cor0
----
30

query I rowsort
SELECT ALL ( - 68 ) + col2 FROM tab1 AS cor0
----
-9
0
28

query I rowsort
SELECT ALL + ( - ( - + col1 ) ) + + - 69 FROM tab1 AS cor0
----
-22
-55
-64

query I rowsort
SELECT ALL + col1 + - col2 + + col2 AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + col1 - + 84 FROM tab0
----
-3
-63
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3989
SELECT + CAST( NULL AS SIGNED ) AS col2, 61 * + COUNT( ALL + 45 ) col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
NULL
549

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3989
SELECT + CAST ( NULL AS INTEGER ) AS col2, 61 * + COUNT ( ALL + 45 ) col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
NULL
549

query I rowsort
SELECT DISTINCT - col1 + - - col1 AS col2 FROM tab0
----
0

query I rowsort
SELECT + 22 * - + ( - 54 ) FROM tab0 AS cor0
----
1188
1188
1188

query I rowsort
SELECT DISTINCT + + 25 * - ( + + 12 ) AS col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT + + MIN( col1 ) AS col2 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-3994
SELECT + + MIN ( col1 ) AS col2 FROM tab1 cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT DISTINCT + - col2 - 89 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE col2 BETWEEN col0 + - + col0 AND - + col1
----

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT + - col2 - 89 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE col2 BETWEEN col0 + - + col0 AND - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT + MAX( DISTINCT - - ( 58 ) ) AS col2 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3996
SELECT + MAX ( DISTINCT - - ( 58 ) ) AS col2 FROM tab0 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT DISTINCT - + 17 * + COUNT( * ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT - + 17 * + COUNT ( * ) FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 92 col2 FROM tab1 AS cor0
----
1288
4324
460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3999
SELECT col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3999
SELECT col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * col1 * + + col2 AS col0 FROM tab2
----
123200
225388
26979

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT DISTINCT + col1 DIV + 93 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT + col1 / + 93 AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4002
SELECT - col0 + col1 + - 85 - + col2 * - col1 FROM tab0 WHERE NOT + - 27 * col1 + CAST( + col1 AS SIGNED ) + CAST( NULL AS SIGNED ) + + + col1 / - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4002
SELECT - col0 + col1 + - 85 - + col2 * - col1 FROM tab0 WHERE NOT + - 27 * col1 + CAST ( + col1 AS INTEGER ) + CAST ( NULL AS INTEGER ) + + + col1 / - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 92 AS col0, + col1 col1 FROM tab0
----
-92
1
-92
21
-92
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4004
SELECT + CAST( NULL AS SIGNED ), - col0 AS col2 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-4004
SELECT + CAST ( NULL AS INTEGER ), - col0 AS col2 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT SUM( DISTINCT 26 ) col0 FROM tab1 WHERE NOT - 35 * + + 79 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4005
SELECT SUM ( DISTINCT 26 ) col0 FROM tab1 WHERE NOT - 35 * + + 79 IS NOT NULL
----
NULL

query II rowsort
SELECT + 82 AS col2, - col0 AS col2 FROM tab0
----
82
-15
82
-87
82
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + - 73 IN ( - + col1 + ( + 36 ), - col0 * 87 * + - col1 )
----

query II rowsort
SELECT DISTINCT + ( + - ( + col1 ) ) * + - 53, col1 * + 39 * + 6 AS col0 FROM tab2 cor0
----
2703
11934
3551
15678
4081
18018

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT DISTINCT MAX( 16 ) + - ( + COUNT( DISTINCT + + col0 ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT MAX ( 16 ) + - ( + COUNT ( DISTINCT + + col0 ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4010
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 + col1 * - col0 * + CAST( + col1 AS SIGNED ) ) <= - 19
----

skipif mysql # not compatible
query III rowsort label-4010
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 + col1 * - col0 * + CAST ( + col1 AS INTEGER ) ) <= - 19
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4011
SELECT DISTINCT + col0 DIV col2 AS col1, col0 + + ( + + col1 ) + + 30 AS col2 FROM tab2
----
1
171
1
172
2
127

skipif mysql # not compatible
query II rowsort label-4011
SELECT DISTINCT + col0 / col2 AS col1, col0 + + ( + + col1 ) + + 30 AS col2 FROM tab2
----
1
171
1
172
2
127

query I rowsort
SELECT 79 + + - col2 + + - col2 FROM tab0
----
-119
-15
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4013
SELECT ALL + col0 DIV + - ( col1 ) FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + col0 / + - ( col1 ) FROM tab1
----
-1
-17
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 col2 FROM tab2 AS cor0
----
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4015
SELECT ALL + 65 * CAST( NULL AS DECIMAL ) AS col1, col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-4015
SELECT ALL + 65 * CAST ( NULL AS REAL ) AS col1, col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT ALL 35 * col1 + + + CAST( - col1 AS SIGNED ) + + col0 * + col1 AS col1 FROM tab2 cor0
----
4080
7303
7546

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL 35 * col1 + + + CAST ( - col1 AS INTEGER ) + + col0 * + col1 AS col1 FROM tab2 cor0
----
4080
7303
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT 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-4017
SELECT SUM ( ALL - col0 ) col2 FROM tab1 AS cor0
----
-227

query II rowsort
SELECT col2, 24 FROM tab1
----
59
24
68
24
96
24

query I rowsort
SELECT ( + - 18 ) AS col1 FROM tab0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT ALL SUM( - col1 ) - 25 AS col0 FROM tab0
----
-128

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL SUM ( - col1 ) - 25 AS col0 FROM tab0
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4021
SELECT + CAST( NULL AS SIGNED ) - + - ( + col2 ) * + col0 * 61 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4021
SELECT + CAST ( NULL AS INTEGER ) - + - ( + col2 ) * + col0 * 61 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + 63 FROM tab2
----
103
121
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT DISTINCT COUNT( ALL + + 26 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT COUNT ( ALL + + 26 ) FROM tab1
----
3

query I rowsort
SELECT - col2 * + col1 - - col1 AS col0 FROM tab0
----
-189
-3726
-98

query I rowsort
SELECT DISTINCT - col2 * + col2 + + ( - 88 ) FROM tab1
----
-3569
-4712
-9304

query I rowsort
SELECT + 53 - col2 FROM tab2
----
-5
13
30

query I rowsort
SELECT ALL + ( col0 ) AS col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 30 * - ( 25 ) + - + 69 - + 32 AS col0, col1 * - + col1 FROM tab2 cor0
----
-851
-2601
-851
-4489
-851
-5929

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND - 38
----

query I rowsort
SELECT DISTINCT col2 + + + 89 FROM tab2
----
112
129
147

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 9 <> - 87 / + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4032
SELECT COUNT( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4032
SELECT COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4033
SELECT ALL + 92, ( + CAST( 15 AS SIGNED ) ) * - - 58 AS col1 FROM tab0 AS cor0
----
92
870
92
870
92
870

skipif mysql # not compatible
query II rowsort label-4033
SELECT ALL + 92, ( + CAST ( 15 AS INTEGER ) ) * - - 58 AS col1 FROM tab0 AS cor0
----
92
870
92
870
92
870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, 18 FROM tab2 AS cor0
----
-23
18
-40
18
-58
18

query I rowsort
SELECT - 34 FROM tab0 cor0 WHERE NOT + 25 IS NULL
----
-34
-34
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 * - col1 AS col1, col0 col1 FROM tab0 AS cor0
----
-1
97
-441
87
-6561
15

query I rowsort
SELECT DISTINCT ( - + col0 ) * + 3 FROM tab1
----
-153
-255
-273

query III rowsort
SELECT * FROM tab2 WHERE NOT - 5 / col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT - COUNT( * ) * - 88 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-4039
SELECT - COUNT ( * ) * - 88 FROM tab0
----
264

query II rowsort
SELECT ALL 80 * - col0, col0 + - - 53 AS col0 FROM tab0
----
-1200
68
-6960
140
-7760
150

query I rowsort
SELECT col1 * 98 * + - col2 FROM tab0
----
-20580
-373086
-9702

query I rowsort
SELECT + 26 * ( + 45 ) * + 62 * col1 * + 42 AS col1 FROM tab1
----
143193960
15233400
42653520

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ALL - COUNT( * ) col2 FROM tab2 WHERE - col1 BETWEEN + - col2 - 83 * 91 * - col0 AND + - col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4043
SELECT ALL - COUNT ( * ) col2 FROM tab2 WHERE - col1 BETWEEN + - col2 - 83 * 91 * - col0 AND + - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4044
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 87 * col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 87 * col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 26 + col1 * - - col2 * 80 FROM tab2 AS cor0
----
246374
310854
93814

query II rowsort
SELECT ALL - col1 + - - col1, col0 AS col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT ALL COUNT( + + ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL COUNT ( + + ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4048
SELECT ALL - 70 AS col0, + SUM( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
-70
156

skipif mysql # not compatible
query II rowsort label-4048
SELECT ALL - 70 AS col0, + SUM ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
-70
156

query I rowsort
SELECT - - col2 + + 49 + - col1 AS col2 FROM tab2 AS cor0
----
12
21
40

query I rowsort
SELECT DISTINCT + - ( - - col2 ) * - - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-163840
-326250
-48668

query I rowsort
SELECT 22 AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + + col2 + + + 65 * + col0 FROM tab0 AS cor0
----
1022
5665
6404

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT DISTINCT COUNT( * ) * - MAX( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT COUNT ( * ) * - MAX ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-225

query I rowsort
SELECT DISTINCT - + 61 + - + col0 FROM tab0 AS cor0
----
-148
-158
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT DISTINCT - COUNT( * ) + + ( ( + MAX( ALL 48 ) ) ) AS col0 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT - COUNT ( * ) + + ( ( + MAX ( ALL 48 ) ) ) AS col0 FROM tab2 AS cor0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4056
SELECT col0 + + col2 + col2 DIV col2 FROM tab2 AS cor0
----
105
134
70

skipif mysql # not compatible
query I rowsort label-4056
SELECT col0 + + col2 + col2 / col2 FROM tab2 AS cor0
----
105
134
70

query I rowsort
SELECT + 32 + - col1 - + col0 AS col2 FROM tab0
----
-64
-66
-76

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE col2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL 98 - + col1 * col0 AS col2 FROM tab1
----
-327
-4179
-616

query I rowsort
SELECT ALL col0 * + - 96 - - - col1 FROM tab2
----
-4467
-6221
-7267

query I rowsort
SELECT ALL - + 37 FROM tab1 WHERE NOT ( - col1 + + + col0 + - 68 > ( - 5 ) )
----
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col1 FROM tab2 cor0
----
31
31
31

query I rowsort
SELECT 75 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= 26
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4064
SELECT DISTINCT - COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) / 91 AS col0 FROM tab1 cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4064
SELECT DISTINCT - COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) / 91 AS col0 FROM tab1 cor0
----
-3
NULL

query I rowsort
SELECT DISTINCT - 65 * - col2 FROM tab2 AS cor0
----
1495
2600
3770

query I rowsort
SELECT ALL + + col0 * - col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT ( - MAX( - - col0 ) ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4067
SELECT ( - MAX ( - - col0 ) ) AS col2 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT - COUNT( ALL - 91 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4068
SELECT - COUNT ( ALL - 91 ) FROM tab0
----
-3

query I rowsort
SELECT col0 * + - ( + ( + + col0 ) ) FROM tab1
----
-2601
-7225
-8281

query II rowsort
SELECT DISTINCT 70 AS col2, col0 AS col1 FROM tab2
----
70
46
70
64
70
75

query I rowsort
SELECT ALL - col2 + - - col1 + 74 * col0 FROM tab1 WHERE NOT col1 / col0 + + col1 + + - ( + 74 ) + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT ALL - 86 * MAX( ALL col1 ) FROM tab0
----
-6966

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL - 86 * MAX ( ALL col1 ) FROM tab0
----
-6966

query I rowsort
SELECT DISTINCT 33 FROM tab0 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT col1 * - - 85 AS col0 FROM tab0
----
1785
6885
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1, tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL 47 * - SUM( col1 ) AS col2 FROM tab0
----
-4841

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL 47 * - SUM ( col1 ) AS col2 FROM tab0
----
-4841

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4077
SELECT * FROM tab0 WHERE + + CAST( NULL AS SIGNED ) >= - col2
----

skipif mysql # not compatible
query III rowsort label-4077
SELECT * FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) >= - col2
----

query I rowsort
SELECT ALL + ( - 88 ) AS col1 FROM tab2 WHERE NOT ( NOT NULL = - col1 * 23 + - 47 )
----

query I rowsort
SELECT DISTINCT - - 68 * - col2 FROM tab1 AS cor0
----
-4012
-4624
-6528

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT ALL 34 * + COUNT( + col1 ) FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL 34 * + COUNT ( + col1 ) FROM tab1 AS cor0
----
102

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 92 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT DISTINCT - + COUNT( + col2 ) + - - 31 AS col1 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT - + COUNT ( + col2 ) + - - 31 AS col1 FROM tab1 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT ALL - COUNT( 67 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL - COUNT ( 67 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4084
SELECT DISTINCT col0 + + + 73 + + col2 * + ( + + col0 ) DIV col0 * + + col1 FROM tab0
----
269
370
3895

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT col0 + + + 73 + + col2 * + ( + + col0 ) / col0 * + + col1 FROM tab0
----
269
370
3895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 36 col2, + col1 AS col0 FROM tab2
----
-36
51
-36
67
-36
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT 14 - + COUNT( - col1 ) * - 62 AS col0 FROM tab0
----
200

skipif mysql # not compatible
query I rowsort label-4086
SELECT 14 - + COUNT ( - col1 ) * - 62 AS col0 FROM tab0
----
200

query I rowsort
SELECT ALL - 4 * + col0 + - 40 + - + ( - + col0 ) AS col1 FROM tab0
----
-301
-331
-85

query I rowsort
SELECT DISTINCT 81 + + + col0 FROM tab0
----
168
178
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4089
SELECT DISTINCT SUM( + col0 ) - + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT SUM ( + col0 ) - + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4090
SELECT ALL + col0 DIV - - CAST( - 24 AS SIGNED ) - 79 AS col2 FROM tab1
----
-81
-82
-82

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL + col0 / - - CAST ( - 24 AS INTEGER ) - 79 AS col2 FROM tab1
----
-81
-82
-82

query III rowsort
SELECT * FROM tab0 WHERE col0 + - col2 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT - col2 - - + col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT + col0 - + ( - col0 ) AS col0 FROM tab2
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4094
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE 5 + - col1 IN ( - 59 * - - 62, col1, col2 * - - 8 )
----

skipif mysql # not compatible
query I rowsort label-4094
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE 5 + - col1 IN ( - 59 * - - 62, col1, col2 * - - 8 )
----

query I rowsort
SELECT + 46 + + 97 FROM tab0
----
143
143
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT DISTINCT + COUNT( * ) * 36 FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT + COUNT ( * ) * 36 FROM tab1 AS cor0
----
108

query I rowsort
SELECT col2 - - 9 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
108
19
56

query I rowsort
SELECT col2 + - col0 FROM tab1 AS cor0 WHERE NOT - 80 IS NULL
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT - MIN( ALL - - col0 ) * - 10 FROM tab2 AS cor0
----
460

skipif mysql # not compatible
query I rowsort label-4099
SELECT - MIN ( ALL - - col0 ) * - 10 FROM tab2 AS cor0
----
460

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4101
SELECT + 82, - COUNT( * ) AS col2 FROM tab2
----
82
-3

skipif mysql # not compatible
query II rowsort label-4101
SELECT + 82, - COUNT ( * ) AS col2 FROM tab2
----
82
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4102
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 + - col2 - + 43 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 + - col2 - + 43 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + - 42 FROM tab0
----
3654
4074
630

query II rowsort
SELECT DISTINCT + 28, 7 AS col2 FROM tab1
----
28
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4105
SELECT DISTINCT - + 66 col1 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4105
SELECT DISTINCT - + 66 col1 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4106
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 0 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4106
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 0 AND + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 NOT IN ( 63 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 85 AS col2 FROM tab0 cor0
----
85
85
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4109
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT + CAST ( NULL AS REAL ) + + - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL - 4 + - + 94 * + col0 + + - col1 FROM tab1
----
-4812
-7999
-8605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col2 FROM tab0 WHERE - col2 = - + col2
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4113
SELECT - - CAST( + 67 AS SIGNED ) - + col1 * - - 77 * + 48 AS col1 FROM tab0 AS cor0
----
-299309
-3629
-77549

skipif mysql # not compatible
query I rowsort label-4113
SELECT - - CAST ( + 67 AS INTEGER ) - + col1 * - - 77 * + 48 AS col1 FROM tab0 AS cor0
----
-299309
-3629
-77549

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > - col2 + + + 54
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4115
SELECT - + CAST( 61 AS SIGNED ) FROM tab2 AS cor0 WHERE 95 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4115
SELECT - + CAST ( 61 AS INTEGER ) FROM tab2 AS cor0 WHERE 95 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT + 84 - 6 + + col2 * + - col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4117
SELECT + CAST( NULL AS DECIMAL ) + - SUM( - - 19 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT + CAST ( NULL AS REAL ) + - SUM ( - - 19 ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4118
SELECT DISTINCT 17 AS col2, 27 * COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0
----
17
-243

skipif mysql # not compatible
query II rowsort label-4118
SELECT DISTINCT 17 AS col2, 27 * COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0
----
17
-243

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4119
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( + - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4119
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( + - col2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + - 42 * - col1 + + col0 FROM tab0 AS cor0
----
139
3417
969

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL >= NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 70 <= NULL
----

query I rowsort
SELECT + 87 + col2 * + 62 AS col1 FROM tab2 AS cor0
----
1513
2567
3683

onlyif mysql # aggregate syntax: 
query II rowsort label-4124
SELECT + 85 AS col2, COUNT( ALL + 18 ) FROM tab1 AS cor0 WHERE NULL > 97 + - col1
----
85
0

skipif mysql # not compatible
query II rowsort label-4124
SELECT + 85 AS col2, COUNT ( ALL + 18 ) FROM tab1 AS cor0 WHERE NULL > 97 + - col1
----
85
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT + - COUNT( * ) + 24 AS col0 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4125
SELECT + - COUNT ( * ) + 24 AS col0 FROM tab0 AS cor0
----
21

query I rowsort
SELECT - 89 + 18 FROM tab0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL + - 60 * + ( COUNT( * ) ) AS col1 FROM tab1 WHERE NOT - col1 NOT BETWEEN + col1 AND + - col2
----
0

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL + - 60 * + ( COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT - col1 NOT BETWEEN + col1 AND + - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4128
SELECT ALL * FROM tab0 WHERE - CAST( col0 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-4128
SELECT ALL * FROM tab0 WHERE - CAST ( col0 AS INTEGER ) > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + 47
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4130
SELECT CAST( + MAX( + col0 ) AS SIGNED ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4130
SELECT CAST ( + MAX ( + col0 ) AS INTEGER ) AS col0 FROM tab2
----
75

query I rowsort
SELECT DISTINCT + col2 + 10 * + 92 FROM tab0
----
1019
930
967

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT + SUM( col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4132
SELECT + SUM ( col0 ) AS col2 FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 39 col1 FROM tab0 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT MAX( col1 ) * - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-4134
SELECT MAX ( col1 ) * - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT - + MAX( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-4135
SELECT - + MAX ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT DISTINCT - + SUM( DISTINCT - col2 ) col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4136
SELECT DISTINCT - + SUM ( DISTINCT - col2 ) col0 FROM tab1 AS cor0
----
223

query I rowsort
SELECT col2 * col2 + + col1 + + 15 AS col2 FROM tab0 AS cor0
----
136
2305
9817

query I rowsort
SELECT ALL col2 * - col1 + 48 FROM tab0
----
-162
-3759
-51

query I rowsort
SELECT 8 * - + 52 FROM tab1
----
-416
-416
-416

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4140
SELECT * FROM tab2 WHERE 53 - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4140
SELECT * FROM tab2 WHERE 53 - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 36 + + col1 AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
41
50
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT DISTINCT + 71 + COUNT( * ) AS col2 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT + 71 + COUNT ( * ) AS col2 FROM tab1
----
74

query I rowsort
SELECT DISTINCT ( - ( 73 ) ) AS col2 FROM tab0
----
-73

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL + 35 * col0 + col2 FROM tab0 AS cor0
----
3055
3494
572

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= col1
----

query I rowsort
SELECT + col1 + + - col2 * - - 29 AS col0 FROM tab1
----
-1706
-1925
-2770

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT - 36 * ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-324

skipif mysql # not compatible
query I rowsort label-4148
SELECT - 36 * ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-324

query I rowsort
SELECT DISTINCT col0 * + col2 * - 42 - - - 40 AS col1 FROM tab1 AS cor0
----
-205672
-210670
-259936

query I rowsort
SELECT ALL + - col1 * + col2 + - col0 - 54 AS col1 FROM tab0 AS cor0
----
-250
-351
-3876

query I rowsort
SELECT ALL - col2 * - col1 + - 24 + col1 FROM tab2 cor0
----
1200
3133
3929

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT COUNT( * ) * - 49 - + ( 48 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4152
SELECT COUNT ( * ) * - 49 - + ( 48 ) AS col2 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT - 56 - + SUM( - 30 ) col0 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4153
SELECT - 56 - + SUM ( - 30 ) col0 FROM tab0 AS cor0
----
34

query II rowsort
SELECT ALL - ( - col2 ) + - 45 AS col2, col1 AS col2 FROM tab0 AS cor0
----
-35
21
2
81
54
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT + COUNT( * ) * 57 * - COUNT( * ) FROM tab2
----
-513

skipif mysql # not compatible
query I rowsort label-4155
SELECT + COUNT ( * ) * 57 * - COUNT ( * ) FROM tab2
----
-513

query II rowsort
SELECT + col2 * - + col2, - col0 AS col2 FROM tab0
----
-100
-87
-2209
-15
-9801
-97

query I rowsort
SELECT ALL + col2 * 1 * - - col0 AS col0 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4158
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col0, 11 col1 FROM tab2
----
46
11
64
11
75
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL COUNT( ALL + - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL COUNT ( ALL + - col0 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4161
SELECT col1 * CAST( col2 AS SIGNED ) + - + 23 + + - col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4161
SELECT col1 * CAST ( col2 AS INTEGER ) + - + 23 + + - col2 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + 40, col0 AS col2 FROM tab1 AS cor0
----
40
51
40
85
40
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - - col0 ) >= 80
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, 92 FROM tab0 AS cor0
----
1
92
21
92
81
92

query I rowsort
SELECT ALL 7 * + 58 + col2 - - 34 FROM tab2 AS cor0
----
463
480
498

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 + - - col0 BETWEEN ( 73 ) AND col2 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL = NULL )
----

query I rowsort
SELECT ALL - ( col1 ) * 84 FROM tab2 AS cor0
----
-4284
-5628
-6468

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL COUNT( * ) * - + ( 2 ) + 66 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
60

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL COUNT ( * ) * - + ( 2 ) + 66 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT - SUM( col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4170
SELECT - SUM ( col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT DISTINCT - MAX( DISTINCT + - col0 ) * 61 - - - 80 col2 FROM tab1 AS cor0
----
3031

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4171
SELECT DISTINCT - MAX ( DISTINCT + - col0 ) * 61 - - - 80 col2 FROM tab1 AS cor0
----
3031

query I rowsort
SELECT - 2 FROM tab0 AS cor0 WHERE - col1 * + col1 >= - + col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT 97 + - ( + + COUNT( * ) ) + COUNT( * ) AS col0 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-4173
SELECT 97 + - ( + + COUNT ( * ) ) + COUNT ( * ) AS col0 FROM tab2
----
97

query I rowsort
SELECT DISTINCT ( - col1 ) * - col1 + - - col0 AS col0 FROM tab2
----
2647
4564
5993

query III rowsort
SELECT * FROM tab0 WHERE + col0 / + 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 77 + - col0 FROM tab0
----
-10
-20
62

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < - 37
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4178
SELECT - + col1 DIV - col1 col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4178
SELECT - + col1 / - col1 col1 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT DISTINCT - - 18 AS col2, + col2 AS col2 FROM tab0 AS cor0
----
18
10
18
47
18
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, + ( col1 ) FROM tab0 AS cor0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * - col2 = + 84 - - col0
----

query I rowsort
SELECT + + 54 * - - col1 AS col0 FROM tab1 AS cor0
----
2538
270
756

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT - 1 DIV col2 col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4183
SELECT - 1 / col2 col0 FROM tab0 AS cor0
----
0
0
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 8 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 27 - + col1 FROM tab0
----
-108
-28
-48

query I rowsort
SELECT DISTINCT + 91 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
91

query I rowsort
SELECT 88 * 4 + 16 + - col2 FROM tab1
----
272
300
309

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4188
SELECT ALL - - CAST( NULL AS SIGNED ) - - MIN( DISTINCT + 64 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL - - CAST ( NULL AS INTEGER ) - - MIN ( DISTINCT + 64 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4189
SELECT col2 + CAST( - - CAST( NULL AS DECIMAL ) 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-4189
SELECT col2 + CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4191
SELECT - COUNT( * ) * - + COUNT( * ) DIV + + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4191
SELECT - COUNT ( * ) * - + COUNT ( * ) / + + COUNT ( * ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * col2 col0, - col2 FROM tab0 AS cor0
----
-100
-10
-2209
-47
-9801
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4193
SELECT + COUNT( * ) * + + COUNT( * ) DIV + + 44 + ( + 21 ) AS col2 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4193
SELECT + COUNT ( * ) * + + COUNT ( * ) / + + 44 + ( + 21 ) AS col2 FROM tab1 AS cor0
----
21

query I rowsort
SELECT ALL + + 35 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
35
35
35

query I rowsort
SELECT ALL + 4 * - col0 AS col0 FROM tab1
----
-204
-340
-364

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + - - 14 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 * - 22 col1 FROM tab1
----
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT + 63 * + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT + 63 * + col0 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT + MIN( - + 1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4199
SELECT + MIN ( - + 1 ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT COUNT( ALL + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4200
SELECT COUNT ( ALL + col1 ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT - 72 AS col0, col1 FROM tab0
----
-72
1
-72
21
-72
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4202
SELECT + col2 * CAST( NULL AS SIGNED ) * col2 + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT + col2 * CAST ( NULL AS INTEGER ) * col2 + + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( - + col2 ) + + col1 * - col1 FROM tab2
----
-2624
-4547
-5969

query I rowsort
SELECT col2 + - - 1 + + 46 AS col0 FROM tab0
----
146
57
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT CAST( NULL AS SIGNED ) + + 0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT CAST ( NULL AS INTEGER ) + + 0 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - + col0 AS col1, - col1 AS col1 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) = col0
----
0

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) = col0
----
0

query I rowsort
SELECT DISTINCT 67 * - 42 + + col2 FROM tab1 AS cor0
----
-2718
-2746
-2755

query I rowsort
SELECT ALL 28 + + - 76 FROM tab0 AS cor0
----
-48
-48
-48

query I rowsort
SELECT ALL + 2 + - 32 AS col0 FROM tab0 AS cor0
----
-30
-30
-30

query I rowsort
SELECT col2 * - ( - - 56 ) AS col2 FROM tab0
----
-2632
-5544
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT + COUNT( + + col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4212
SELECT + COUNT ( + + col1 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 3 + - col1 + + 32 AS col0 FROM tab2
----
-22
-38
-48

query I rowsort
SELECT ALL 87 AS col0 FROM tab2 WHERE - 25 IS NULL
----

query II rowsort
SELECT DISTINCT + col1 * - 46, col2 AS col2 FROM tab0
----
-3726
47
-46
99
-966
10

query II rowsort
SELECT - ( + col2 ) AS col0, - col2 AS col0 FROM tab2
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT col2 - - col1 * + col0 AS col1 FROM tab1
----
4345
484
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT ALL + + col0 + + - CAST( - - col1 AS SIGNED ) * - col1 AS col1 FROM tab2 AS cor0
----
2647
4564
5993

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL + + col0 + + - CAST ( - - col1 AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
2647
4564
5993

query I rowsort
SELECT DISTINCT + 6 FROM tab2 cor0 WHERE NOT 80 >= + - col0
----

query I rowsort
SELECT DISTINCT + 93 + + col1 FROM tab1
----
107
140
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL COUNT( * ) * MAX( DISTINCT 85 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
765

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL COUNT ( * ) * MAX ( DISTINCT 85 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL - + 13 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL - + 13 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-4223
SELECT DISTINCT - 6 DIV 12 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT - 6 / 12 AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL + - col2 AS col1, ( + ( - col2 ) ) FROM tab2 cor0
----
-23
-23
-40
-40
-58
-58

query II rowsort
SELECT + 43 AS col0, - 77 FROM tab1 AS cor0
----
43
-77
43
-77
43
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL + MAX( DISTINCT col0 ) + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL = ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL + MAX ( DISTINCT col0 ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL = ( - col1 )
----
NULL

query I rowsort
SELECT - col2 * + + 0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 >= - - col2
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT ALL + + MAX( - - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL + + MAX ( - - col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT DISTINCT + MAX( DISTINCT - 54 ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT + MAX ( DISTINCT - 54 ) FROM tab0
----
-54

query I rowsort
SELECT - 63 * - col1 AS col1 FROM tab2 AS cor0 WHERE + col0 = NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 37 + + + col0 FROM tab1 AS cor0
----
-100
-1648
-467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 62 - + 16 * 49 col1, - 46 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-722
-46
-722
-46
-722
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT + COUNT( ALL + + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4235
SELECT + COUNT ( ALL + + col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT DISTINCT - - col2 + + - 25 * CAST( NULL AS SIGNED ) * - col1 + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT - - col2 + + - 25 * CAST ( NULL AS INTEGER ) * - col1 + col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE col2 IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4237
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE col2 IN ( - col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT - - col1 + + - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-4238
SELECT - - col1 + + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT DISTINCT - - MIN( ALL col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4239
SELECT DISTINCT - - MIN ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT col2 + + - col2 + - 45 FROM tab0 AS cor0
----
-45
-45
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4241
SELECT 75 DIV + 40 + - ( + 16 ) + 70 FROM tab1
----
55
55
55

skipif mysql # not compatible
query I rowsort label-4241
SELECT 75 / + 40 + - ( + 16 ) + 70 FROM tab1
----
55
55
55

query I rowsort
SELECT ALL - col1 + - 74 + + col0 * + 26 FROM tab0
----
2167
235
2447

query I rowsort
SELECT DISTINCT col1 * + col1 AS col0 FROM tab0 WHERE - 54 IN ( + col1, - col1 + + 83 + + 35 * + - 66, + + 45 + + col1 + col2 + - 30 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT - col1 * - + col1 FROM tab2
----
2601
4489
5929

query II rowsort
SELECT 91 AS col1, col0 FROM tab0
----
91
15
91
87
91
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4247
SELECT ALL col0 DIV + col1 + + col2 FROM tab2 AS cor0
----
23
40
59

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL col0 / + col1 + + col2 FROM tab2 AS cor0
----
23
40
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4248
SELECT - - CAST( - + col0 AS SIGNED ) * + col1 + + col2 AS col0 FROM tab2 AS cor0
----
-2323
-4888
-4967

skipif mysql # not compatible
query I rowsort label-4248
SELECT - - CAST ( - + col0 AS INTEGER ) * + col1 + + col2 AS col0 FROM tab2 AS cor0
----
-2323
-4888
-4967

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT ALL + COUNT( * ) * + ( + 1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL + COUNT ( * ) * + ( + 1 ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 col2 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4251
SELECT ALL col1 + + - col1 DIV - + 76 * + 26 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL col1 + + - col1 / - + 76 * + 26 FROM tab1
----
14
47
5

query I rowsort
SELECT 51 * - + ( - + col2 ) AS col0 FROM tab2 cor0
----
1173
2040
2958

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4253
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + 62 + + - ( + col1 ) * - CAST( - col2 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4253
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + 62 + + - ( + col1 ) * - CAST ( - col2 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT - + SUM( ALL + 19 ) AS col2 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4254
SELECT - + SUM ( ALL + 19 ) AS col2 FROM tab2 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT SUM( + - 57 ) FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT SUM ( + - 57 ) FROM tab0 AS cor0
----
-171

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + - + 27 NOT IN ( + 70 / 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT - MAX( - - col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4257
SELECT - MAX ( - - col1 ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT ALL + + MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL + + MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL + 46 * + col0 * - 12 AS col1 FROM tab0 AS cor0
----
-48024
-53544
-8280

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 34 = + 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col0 * - 67 AND 5
----

query I rowsort
SELECT ALL - - col2 * col0 + - - 63 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT - - MIN( DISTINCT + 48 ) FROM tab2 WHERE NOT + + 14 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT - - MIN ( DISTINCT + 48 ) FROM tab2 WHERE NOT + + 14 = NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 BETWEEN + 17 AND + - col2
----

query I rowsort
SELECT DISTINCT - + col0 + + - col2 * col1 AS col0 FROM tab1 WHERE NOT col2 - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4266
SELECT DISTINCT + - col0 AS col2, CAST( NULL AS SIGNED ) * + 20 col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4266
SELECT DISTINCT + - col0 AS col2, CAST ( NULL AS INTEGER ) * + 20 col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT DISTINCT + col1 * col1 + - col0 + - - col2 FROM tab2 AS cor0
----
2578
4472
5905

query I rowsort
SELECT ALL + ( ( + col0 ) ) + + + col2 + - ( col0 ) * - col2 AS col0 FROM tab1 AS cor0
----
5043
5159
6347

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL + 47 + + COUNT( * ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL + 47 + + COUNT ( * ) FROM tab0
----
50

query III rowsort
SELECT ALL * FROM tab1 WHERE 25 * + col2 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - 16 + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 13 ) <= ( + col1 + ( col2 ) * + 29 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4273
SELECT DISTINCT + 11 * + ( - ( - col0 ) DIV + 44 ) FROM tab0
----
0
11
22

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT + 11 * + ( - ( - col0 ) / + 44 ) FROM tab0
----
0
11
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE ( col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE ( col1 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT COUNT( * ) + 5 * - COUNT( * ) col1 FROM tab2
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4275
SELECT COUNT ( * ) + 5 * - COUNT ( * ) col1 FROM tab2
----
-12

query I rowsort
SELECT col1 * - 6 FROM tab0
----
-126
-486
-6

query I rowsort
SELECT DISTINCT 10 * + col1 + + col0 AS col2 FROM tab1
----
135
191
561

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 ) NOT BETWEEN + ( - 7 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4279
SELECT DISTINCT col0 * - CAST( + col1 AS SIGNED ) FROM tab1 WHERE 54 NOT BETWEEN ( NULL ) AND + col1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT col0 * - CAST ( + col1 AS INTEGER ) FROM tab1 WHERE 54 NOT BETWEEN ( NULL ) AND + col1
----
-425
-4277
-714

query I rowsort
SELECT ALL + col2 + 94 FROM tab0
----
104
141
193

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 < 99 + - 9 * ( - 33 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4283
SELECT DISTINCT col1 + + col1 DIV CAST( col2 + - col0 * col0 AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT col1 + + col1 / CAST ( col2 + - col0 * col0 AS INTEGER ) FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT - 39 - col0 * col1 FROM tab1 WHERE NOT ( col2 / - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL COUNT( * ) * 21 AS col2 FROM tab1 WHERE NOT NULL = col1
----
0

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL COUNT ( * ) * 21 AS col2 FROM tab1 WHERE NOT NULL = col1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 81 ) <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 + - col1 ) = col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + col2 * col1 AS col1 FROM tab2
----
1196
3120
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT - MAX( - 37 ) + COUNT( * ) * + COUNT( * ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4289
SELECT - MAX ( - 37 ) + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2
----
46

query I rowsort
SELECT DISTINCT col0 * ( + col1 ) AS col2 FROM tab1
----
425
4277
714

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT COUNT( * ) - - 28 * - COUNT( * ) FROM tab0 WHERE NOT NULL IN ( 93 + - 54 )
----
0

skipif mysql # not compatible
query I rowsort label-4292
SELECT COUNT ( * ) - - 28 * - COUNT ( * ) FROM tab0 WHERE NOT NULL IN ( 93 + - 54 )
----
0

query I rowsort
SELECT + 39 + col1 * - col0 AS col2 FROM tab2 WHERE NOT col1 NOT IN ( col0 / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT - MAX( - ( - col0 ) ) + 89 AS col0 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-4294
SELECT - MAX ( - ( - col0 ) ) + 89 AS col0 FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT ALL COUNT( * ) + + 58 AS col1 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL COUNT ( * ) + + 58 AS col1 FROM tab0
----
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4296
SELECT ALL col2 DIV + CAST( + 54 * + 32 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL col2 / + CAST ( + 54 * + 32 AS INTEGER ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT - 89 * - ( + MAX( ( col0 ) ) * COUNT( DISTINCT col0 ) ) FROM tab2
----
20025

skipif mysql # not compatible
query I rowsort label-4297
SELECT - 89 * - ( + MAX ( ( col0 ) ) * COUNT ( DISTINCT col0 ) ) FROM tab2
----
20025

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 * + col1 = ( col1 + col0 * - 53 )
----
-3

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 * + col1 = ( col1 + col0 * - 53 )
----
-3

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL > ( 40 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col1 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT ( 12 ) FROM tab2 AS cor0
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4302
SELECT ALL 80 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL 80 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 NOT BETWEEN + 52 AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4304
SELECT 53 DIV col2 AS col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4304
SELECT 53 / col2 AS col2 FROM tab2
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 WHERE col1 BETWEEN ( NULL ) AND - col2 - col0
----

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 WHERE col1 BETWEEN ( NULL ) AND - col2 - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4306
SELECT DISTINCT 54 * CAST( col0 AS SIGNED ) FROM tab1
----
2754
4590
4914

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT 54 * CAST ( col0 AS INTEGER ) FROM tab1
----
2754
4590
4914

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT OUTER JOIN tab1 ON NULL IS NOT NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

query I rowsort
SELECT col0 * col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 * 32 IS NULL
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT + MIN( col2 ) AS col0 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-4309
SELECT + MIN ( col2 ) AS col0 FROM tab0 cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT + COUNT( + 40 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4310
SELECT + COUNT ( + 40 ) AS col1 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col0 FROM tab1 AS cor0 WHERE NOT NULL = 4 / + 42
----

query I rowsort
SELECT - - 8 * ( + col0 ) FROM tab1 AS cor0
----
408
680
728

query I rowsort
SELECT DISTINCT - + col0 * 58 AS col0 FROM tab2 cor0
----
-2668
-3712
-4350

query I rowsort
SELECT col1 * + 21 AS col1 FROM tab1 AS cor0
----
105
294
987

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE - col0 * col1 - - 17 IS NULL
----

query I rowsort
SELECT + + col1 * 54 AS col1 FROM tab2 AS cor0
----
2754
3618
4158

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) = col2 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <= ( ( + 20 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 16 ) col2 FROM tab0
----
16
16
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4320
SELECT SUM( ALL - - 87 ) DIV - COUNT( * ) AS col0 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-4320
SELECT SUM ( ALL - - 87 ) / - COUNT ( * ) AS col0 FROM tab2
----
-87

query I rowsort
SELECT - 72 + 46 AS col0 FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND 94
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN NULL AND col2 * - 9
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 + col0 * - col2 ) IS NOT NULL
----

query I rowsort
SELECT - col1 + - 28 * + 19 AS col0 FROM tab0 AS cor0
----
-533
-553
-613

query II rowsort
SELECT col0 AS col0, - 23 AS col2 FROM tab1
----
51
-23
85
-23
91
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4326
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-4326
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col1 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT - MIN( DISTINCT - 50 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
50

skipif mysql # not compatible
query I rowsort label-4327
SELECT - MIN ( DISTINCT - 50 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4328
SELECT DISTINCT 64 AS col0, - COUNT( * ) * - 18 AS col0 FROM tab1 cor0
----
64
54

skipif mysql # not compatible
query II rowsort label-4328
SELECT DISTINCT 64 AS col0, - COUNT ( * ) * - 18 AS col0 FROM tab1 cor0
----
64
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - col0 ) AND + 15 + - 97
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4330
SELECT - 78 DIV + - col1 + - col0 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-4330
SELECT - 78 / + - col1 + - col0 FROM tab2 AS cor0
----
-45
-63
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 85 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> 63
----

query I rowsort
SELECT ( - ( 34 ) ) + 27 AS col0 FROM tab0 AS cor0
----
-7
-7
-7

query I rowsort
SELECT - 49 + - - col2 FROM tab1 AS cor0
----
10
19
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 + + col2
----

query I rowsort
SELECT - ( col0 ) + - col0 * ( 45 + - col0 ) AS col2 FROM tab0 cor0
----
-465
3567
4947

query I rowsort
SELECT + 21 FROM tab2 WHERE NULL NOT BETWEEN - 61 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT + COUNT( * ) FROM tab0 WHERE ( col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4338
SELECT + COUNT ( * ) FROM tab0 WHERE ( col0 ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col1 - + col2 + - col0 + col0 + col2 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT - SUM( + - ( - - col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4340
SELECT - SUM ( + - ( - - col2 ) ) FROM tab1
----
223

query I rowsort
SELECT ALL 79 - + col0 * 61 - col1 * + col1 AS col2 FROM tab2
----
-5328
-8985
-9754

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - + col0 > ( col1 * + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT + SUM( 94 ) FROM tab0 WHERE NOT 75 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT + SUM ( 94 ) FROM tab0 WHERE NOT 75 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * - 84 AS col1 FROM tab0
----
756

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * - 84 AS col1 FROM tab0
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT - COUNT( + 47 ) * - COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4345
SELECT - COUNT ( + 47 ) * - COUNT ( * ) AS col1 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT DISTINCT - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 98 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 98 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4347
SELECT DISTINCT * FROM tab0 WHERE ( + - CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4347
SELECT DISTINCT * FROM tab0 WHERE ( + - CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE 43 >= ( + col1 )
----
2

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE 43 >= ( + col1 )
----
2

query II rowsort
SELECT 83 AS col2, col2 FROM tab0 AS cor0
----
83
10
83
47
83
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 63 * + 87 AS col1 FROM tab2 AS cor0
----
-5481
-5481
-5481

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL COUNT( * ) * + 79 col2 FROM tab2 AS cor0
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4352
SELECT ALL COUNT ( * ) * + 79 col2 FROM tab2 AS cor0
----
237

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( + col1 / + + col1 * + 18 ) NOT IN ( + 17 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4354
SELECT CAST( col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4354
SELECT CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT DISTINCT - 52 DIV - + col2 FROM tab0 cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT - 52 / - + col2 FROM tab0 cor0
----
0
1
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4356
SELECT ALL + 2 * - + col0 DIV ( - - col1 ) FROM tab0 AS cor0
----
-194
-8
0

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL + 2 * - + col0 / ( - - col1 ) FROM tab0 AS cor0
----
-194
-8
0

query I rowsort
SELECT DISTINCT col1 + - - ( + 23 ) FROM tab2
----
100
74
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT - COUNT( * ) col0 FROM tab0 WHERE NOT NULL IN ( - 2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4358
SELECT - COUNT ( * ) col0 FROM tab0 WHERE NOT NULL IN ( - 2 )
----
0

query I rowsort
SELECT ALL + 31 + col2 - - - 53 FROM tab1
----
37
46
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4360
SELECT DISTINCT - col2 AS col2, CAST( - col0 AS SIGNED ) + + 58 FROM tab0
----
-10
-29
-47
43
-99
-39

skipif mysql # not compatible
query II rowsort label-4360
SELECT DISTINCT - col2 AS col2, CAST ( - col0 AS INTEGER ) + + 58 FROM tab0
----
-10
-29
-47
43
-99
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4361
SELECT DISTINCT + 32 AS col0, CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - MIN( ALL 59 ) * - AVG ( DISTINCT 64 ) AS col2 FROM tab2
----
32
NULL

skipif mysql # not compatible
query II rowsort label-4361
SELECT DISTINCT + 32 AS col0, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - MIN ( ALL 59 ) * - AVG ( DISTINCT 64 ) AS col2 FROM tab2
----
32
NULL

query I rowsort
SELECT + col2 * - col2 * - col0 FROM tab2
----
102400
24334
252300

query II rowsort
SELECT + 94 AS col2, col1 FROM tab2 AS cor0
----
94
51
94
67
94
77

query III rowsort
SELECT * FROM tab1 WHERE ( + 46 ) IS NULL
----

query I rowsort
SELECT - 63 FROM tab1 WHERE - ( + col1 ) * col2 + + col0 IS NULL
----

query I rowsort
SELECT + - col0 + - 33 + col1 FROM tab0 WHERE + col0 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT DISTINCT + - COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4368
SELECT DISTINCT - 56 * COUNT( * ) * CAST( NULL AS SIGNED ) / + 86 - 75 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT - 56 * COUNT ( * ) * CAST ( NULL AS INTEGER ) / + 86 - 75 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * 14 AS col1 FROM tab1 AS cor0
----
-1344
-826
-952

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 * - - ( col1 ) + 99 NOT IN ( - + 85 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 22 - + - 9 FROM tab1 AS cor0
----
31
31
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + 59 + - + col2 * + col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - 51 - col1 * col1 FROM tab0 AS cor0
----
-5050
-8958
-951

query I rowsort
SELECT - col0 * col2 - - col2 AS col0 FROM tab2 AS cor0
----
-1035
-2520
-4292

onlyif mysql # DIV for integer division: 
query II rowsort label-4375
SELECT ALL + col0 DIV col2 + - 65, col0 + + - col2 AS col1 FROM tab1
----
-64
23
-64
26
-65
-45

skipif mysql # not compatible
query II rowsort label-4375
SELECT ALL + col0 / col2 + - 65, col0 + + - col2 AS col1 FROM tab1
----
-64
23
-64
26
-65
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT 75 + + COUNT( * ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT 75 + + COUNT ( * ) FROM tab1
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 + - col1 col0 FROM tab0
----
3
63
83

query I rowsort
SELECT 89 - col0 FROM tab0
----
-8
2
74

query I rowsort
SELECT + 24 - - - col2 FROM tab1
----
-35
-44
-72

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE + + col0 IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4381
SELECT ALL + col0 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-4381
SELECT ALL + col0 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT - SUM( ALL - 93 ) FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-4383
SELECT - SUM ( ALL - 93 ) FROM tab1
----
279

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col1, - col2 )
----

query I rowsort
SELECT 16 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
16
16
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4387
SELECT CAST( - COUNT( * ) AS SIGNED ) * - ( - 59 ) FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-4387
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - ( - 59 ) FROM tab2
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4390
SELECT - - col1 * CAST( NULL AS SIGNED ) + + + col0 + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL = 4 / - col0 + col1
----

skipif mysql # not compatible
query I rowsort label-4390
SELECT - - col1 * CAST ( NULL AS INTEGER ) + + + col0 + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL = 4 / - col0 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + 78 + 95 * + col0 col2 FROM tab2 WHERE NOT + + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT DISTINCT + COUNT( DISTINCT + col1 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT + COUNT ( DISTINCT + col1 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4393
SELECT DISTINCT - + col2 * - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT - + col2 * - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
100
2209
9801

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 75 IN ( - + ( + ( - 69 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 10 - - col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 14 col1 FROM tab2 cor0
----
-14
-14
-14

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4398
SELECT + col1 DIV 89 * - col0 + - + col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4398
SELECT + col1 / 89 * - col0 + - + col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT ALL + 98 + - COUNT( * ) * - COUNT( * ) AS col0 FROM tab0
----
107

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL + 98 + - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0
----
107

onlyif mysql # DIV for integer division: 
query II rowsort label-4400
SELECT 11 + - col0 * col0 AS col2, + 16 DIV + - 30 AS col2 FROM tab0
----
-214
0
-7558
0
-9398
0

skipif mysql # not compatible
query II rowsort label-4400
SELECT 11 + - col0 * col0 AS col2, + 16 / + - 30 AS col2 FROM tab0
----
-214
0
-7558
0
-9398
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE NOT 71 * - col1 BETWEEN + ( + col0 ) AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT 71 * - col1 BETWEEN + ( + col0 ) AND NULL
----
3

query I rowsort
SELECT + ( col2 ) + + + col2 FROM tab1
----
118
136
192

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 35 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 + - - 84 * - - col0 * + col2 AS col2 FROM tab2 AS cor0
----
215117
365467
88923

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4406
SELECT + 55 DIV - MIN( ALL - col1 ) - + COUNT( + + col2 ) AS col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4406
SELECT + 55 / - MIN ( ALL - col1 ) - + COUNT ( + + col2 ) AS col2 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4408
SELECT ALL CAST( NULL AS DECIMAL ) + + MIN( ALL + ( + col1 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL CAST ( NULL AS REAL ) + + MIN ( ALL + ( + col1 ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT ALL - col0 + - CAST( + + 49 AS SIGNED ) + + 72 FROM tab0
----
-64
-74
8

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL - col0 + - CAST ( + + 49 AS INTEGER ) + + 72 FROM tab0
----
-64
-74
8

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NOT - col2 + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4411
SELECT DISTINCT - col2 * - - col2 AS col2, col1 DIV col0 + - col0 + 40 AS col2 FROM tab0
----
-100
-47
-2209
30
-9801
-57

skipif mysql # not compatible
query II rowsort label-4411
SELECT DISTINCT - col2 * - - col2 AS col2, col1 / col0 + - col0 + 40 AS col2 FROM tab0
----
-100
-47
-2209
30
-9801
-57

query I rowsort
SELECT - - 49 + 87 AS col0 FROM tab2 AS cor0
----
136
136
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4413
SELECT ALL - 99 DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL - 99 / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT DISTINCT + + COUNT( * ) - + - MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT + + COUNT ( * ) - + - MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
102

query I rowsort
SELECT DISTINCT - 45 AS col1 FROM tab2 cor0 WHERE NOT col1 < - 6
----
-45

query I rowsort
SELECT DISTINCT + - 14 AS col0 FROM tab1 cor0
----
-14

query I rowsort
SELECT + 58 FROM tab1 WHERE NOT + + col1 > + col1
----
58
58
58

query I rowsort
SELECT - 74 AS col2 FROM tab0 WHERE NOT NULL >= col0
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT + - COUNT( * ) FROM tab1 WHERE NOT 20 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4420
SELECT + - COUNT ( * ) FROM tab1 WHERE NOT 20 IS NULL
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + ( col1 ) * + - 5 + - col1 * ( - - 96 ), + ( - col2 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 + - + col0 NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT DISTINCT 6 AS col2, col1 AS col1 FROM tab0 AS cor0
----
6
1
6
21
6
81

query II rowsort
SELECT DISTINCT + - 25 AS col2, 31 FROM tab2 AS cor0
----
-25
31

onlyif mysql # DIV for integer division: 
query II rowsort label-4425
SELECT DISTINCT + col0, + col2 DIV col0 * + 45 FROM tab1 AS cor0
----
51
45
85
0
91
0

skipif mysql # not compatible
query II rowsort label-4425
SELECT DISTINCT + col0, + col2 / col0 * + 45 FROM tab1 AS cor0
----
51
45
85
0
91
0

query I rowsort
SELECT 48 + + col2 AS col1 FROM tab2 AS cor0
----
106
71
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + 50 AND ( - 89 )
----
-3

skipif mysql # not compatible
query I rowsort label-4427
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + 50 AND ( - 89 )
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4428
SELECT DISTINCT - 56 + + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT - 56 + + - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 52 * col0 FROM tab1 cor0 WHERE - col1 IS NOT NULL
----
-2652
-4420
-4732

query I rowsort
SELECT ALL - col2 + + - col1 FROM tab0 AS cor0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + - + col1 IS NULL
----

query I rowsort
SELECT ALL - - col1 + - 70 AS col2 FROM tab2 AS cor0
----
-19
-3
7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * + col1 - + col0 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE ( + 78 ) > + 25 * - 84
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT ALL 86 + + col0 - - + col2 + + CAST( + - col2 AS SIGNED ) col2 FROM tab1
----
137
171
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4435
SELECT ALL 86 + + col0 - - + col2 + + CAST ( + - col2 AS INTEGER ) col2 FROM tab1
----
137
171
177

query I rowsort
SELECT DISTINCT col0 + - + 77 AS col0 FROM tab0
----
-62
10
20

query I rowsort
SELECT 80 * ( + col2 ) FROM tab0
----
3760
7920
800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4438
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4438
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4439
SELECT DISTINCT ( 88 ) * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT ( 88 ) * - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT DISTINCT + MIN( ALL + col1 ) * + COUNT( * ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT + MIN ( ALL + col1 ) * + COUNT ( * ) FROM tab2 AS cor0
----
153

query I rowsort
SELECT + + col2 + + + ( - 27 ) AS col1 FROM tab1 AS cor0
----
32
41
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 + - col2 - + - col2 col0 FROM tab0
----
87
87
87

query I rowsort
SELECT DISTINCT + col1 - col2 + - ( + + col1 ) FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4444
SELECT - + 20 AS col0, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-20
9

skipif mysql # not compatible
query II rowsort label-4444
SELECT - + 20 AS col0, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-20
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT ALL COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9

query I rowsort
SELECT ALL + - 48 - + - col2 AS col0 FROM tab1 cor0
----
11
20
48

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4448
SELECT ALL + - ( + SUM( - - 67 ) ) AS col2, - 88 AS col0 FROM tab2 cor0
----
-201
-88

skipif mysql # not compatible
query II rowsort label-4448
SELECT ALL + - ( + SUM ( - - 67 ) ) AS col2, - 88 AS col0 FROM tab2 cor0
----
-201
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT DISTINCT MAX( ALL - + 15 ) AS col2 FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT MAX ( ALL - + 15 ) AS col2 FROM tab2 cor0
----
-15

query I rowsort
SELECT - ( - - ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - ( + 3 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4452
SELECT col0 DIV + - col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4452
SELECT col0 / + - col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT ALL 77 * col2 AS col2 FROM tab0
----
3619
7623
770

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL BETWEEN - + col0 + 45 / - col0 AND - col0 + + 81
----

query I rowsort
SELECT DISTINCT col2 * + col1 * - col1 AS col2 FROM tab2
----
-237160
-260362
-59823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4457
SELECT ALL col0, + CAST( + - col1 AS SIGNED ) + - col2 AS col2 FROM tab1
----
51
-110
85
-64
91
-115

skipif mysql # not compatible
query II rowsort label-4457
SELECT ALL col0, + CAST ( + - col1 AS INTEGER ) + - col2 AS col2 FROM tab1
----
51
-110
85
-64
91
-115

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT DISTINCT 46 DIV - + 66 * - + col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT 46 / - + 66 * - + col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 25 * - + 3 FROM tab2
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4460
SELECT * FROM tab1 AS cor0 WHERE col2 * 41 * + CAST( NULL AS SIGNED ) * col0 * - 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4460
SELECT * FROM tab1 AS cor0 WHERE col2 * 41 * + CAST ( NULL AS INTEGER ) * col0 * - 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4461
SELECT - CAST( NULL AS SIGNED ) * - col0 * - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT - CAST ( NULL AS INTEGER ) * - col0 * - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 99 + 18 AS col1 FROM tab1 AS cor0
----
117
117
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT COUNT( * ) * + 20 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-4463
SELECT COUNT ( * ) * + 20 FROM tab2 AS cor0
----
60

query I rowsort
SELECT AVG ( ALL - 50 ) FROM tab1 cor0 WHERE + col2 * + col2 + - col2 = + col0 + - col0 + col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT DISTINCT - ( + col0 ) DIV - 35 + + col0 * col0 AS col2 FROM tab1 AS cor0
----
2602
7227
8283

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT - ( + col0 ) / - 35 + + col0 * col0 AS col2 FROM tab1 AS cor0
----
2602
7227
8283

query I rowsort
SELECT + + 80 + ( 19 ) FROM tab2 cor0
----
99
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4467
SELECT - col1 DIV - 89 + 73 FROM tab0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-4467
SELECT - col1 / - 89 + 73 FROM tab0
----
73
73
73

query I rowsort
SELECT DISTINCT - col1 * - - col2 + - col2 FROM tab2
----
-1196
-3120
-3944

query I rowsort
SELECT ALL col2 - + + 69 AS col0 FROM tab1
----
-1
-10
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT col1 = NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + + 62 + col2 AS col1 FROM tab2
----
131
166
195

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4473
SELECT + - 38 AS col1, - col2 FROM tab1 WHERE + 66 NOT BETWEEN NULL AND - + CAST( + - col2 AS SIGNED ) + - + col0 + - - col0
----
-38
-59

skipif mysql # not compatible
query II rowsort label-4473
SELECT + - 38 AS col1, - col2 FROM tab1 WHERE + 66 NOT BETWEEN NULL AND - + CAST ( + - col2 AS INTEGER ) + - + col0 + - - col0
----
-38
-59

query I rowsort
SELECT col2 * + 43 FROM tab0 AS cor0
----
2021
4257
430

query I rowsort
SELECT + 4 * + 16 AS col1 FROM tab2 AS cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT COUNT( * ) - + 37 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4476
SELECT COUNT ( * ) - + 37 FROM tab1 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT - + SUM( + - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4477
SELECT - + SUM ( + - col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL col2 * + col0 - + + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - col1 * - 53 FROM tab2 AS cor0
----
2703
3551
4081

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT NULL = + col1 + - col2 / + 26 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT - - MAX( + - col1 ) AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4481
SELECT - - MAX ( + - col1 ) AS col2 FROM tab0 cor0
----
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + - col1 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * + - 99 AS col2 FROM tab2
----
-2277
-3960
-5742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4484
SELECT DISTINCT 59 DIV + - COUNT( * ) AS col1 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT 59 / + - COUNT ( * ) AS col1 FROM tab1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4485
SELECT ALL CAST( NULL AS SIGNED ) * + + MIN( - 70 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL CAST ( NULL AS INTEGER ) * + + MIN ( - 70 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + ( + + col1 ) * - col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-4487
SELECT ALL col1 DIV - - ( - 46 ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL col1 / - - ( - 46 ) FROM tab0
----
-1
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - 36 * + - 65 * - col0 - + ( col1 ) IS NOT NULL
----

query I rowsort
SELECT + col0 * - + 5 * + col0 AS col1 FROM tab1
----
-13005
-36125
-41405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4490
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 82 + 61 + + col0 * col2 IS NOT NULL
----

query II rowsort
SELECT + col0, + 48 FROM tab0
----
15
48
87
48
97
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT - - MIN( - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4493
SELECT - - MIN ( - col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT - SUM( ALL - + col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4494
SELECT - SUM ( ALL - + col0 ) AS col2 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4495
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + 84 + - ( - col2 ) AS col1 FROM tab1 WHERE ( NOT col1 - + col2 BETWEEN + col0 * + col0 AND + 18 + + - col1 )
----
143
152
180

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT DISTINCT SUM( DISTINCT - 98 ) AS col2 FROM tab1 cor0
----
-98

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT SUM ( DISTINCT - 98 ) AS col2 FROM tab1 cor0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4498
SELECT ALL + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT CAST( - - col2 AS SIGNED ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( - - col2 AS INTEGER ) IS NULL
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - 30 AND 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT + - SUM( ALL - 54 ) * + 93 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT + - SUM ( ALL - 54 ) * + 93 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

query I rowsort
SELECT ALL + 27 AS col1 FROM tab2 cor0
----
27
27
27

query I rowsort
SELECT ALL + col2 + + 30 FROM tab1 AS cor0
----
126
89
98

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 / - + col0 BETWEEN NULL AND ( + col2 + + 1 )
----

query I rowsort
SELECT ALL + 62 * - + col1 + - col2 - - col2 FROM tab0
----
-1302
-5022
-62

query I rowsort
SELECT DISTINCT col1 - + - col1 + - col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT DISTINCT 96 + - COUNT( * ) AS col1 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT 96 + - COUNT ( * ) AS col1 FROM tab2
----
93

query I rowsort
SELECT ALL + col1 - - 63 + + + col1 AS col0 FROM tab1
----
157
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT DISTINCT - COUNT( - + col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT - COUNT ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <> - + col2 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT - COUNT( - - 26 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4510
SELECT - COUNT ( - - 26 ) AS col1 FROM tab0
----
-3

query II rowsort
SELECT DISTINCT 84, + col1 AS col0 FROM tab1 AS cor0
----
84
14
84
47
84
5

query I rowsort
SELECT DISTINCT - ( 45 ) * 30 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 50 <= + ( 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4514
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * + - CAST( NULL AS SIGNED ) <= + CAST( NULL AS SIGNED ) * + col2 + + 41
----

skipif mysql # not compatible
query III rowsort label-4514
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * + - CAST ( NULL AS INTEGER ) <= + CAST ( NULL AS INTEGER ) * + col2 + + 41
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 48 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0, - 88 col1 FROM tab2 AS cor0
----
-46
-88
-64
-88
-75
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4517
SELECT DISTINCT + 62 DIV + COUNT( DISTINCT + col1 ) AS col1 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT + 62 / + COUNT ( DISTINCT + col1 ) AS col1 FROM tab0
----
20

query I rowsort
SELECT col2 * - + 35 AS col0 FROM tab2
----
-1400
-2030
-805

query I rowsort
SELECT ALL - 34 * - - col0 FROM tab0
----
-2958
-3298
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT ALL - MAX( ALL - - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL - MAX ( ALL - - col1 ) FROM tab1
----
-47

query I rowsort
SELECT + 18 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * 26 FROM tab2
----
1326
1742
2002

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4523
SELECT DISTINCT + CAST( + 48 AS SIGNED ) col0, 61 DIV 65 * + col1 AS col1 FROM tab0
----
48
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4523
SELECT DISTINCT + CAST ( + 48 AS INTEGER ) col0, 61 / 65 * + col1 AS col1 FROM tab0
----
48
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT - MAX( + 97 ) FROM tab2 WHERE NOT - col0 + - 44 IS NULL
----
-97

skipif mysql # not compatible
query I rowsort label-4524
SELECT - MAX ( + 97 ) FROM tab2 WHERE NOT - col0 + - 44 IS NULL
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4525
SELECT DISTINCT 68 DIV + 94 FROM tab0, tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT 68 / + 94 FROM tab0, tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * - + col1 * col0 > NULL
----

query I rowsort
SELECT ALL - - 67 * col2 * + + ( + + ( + + 20 ) ) AS col0 FROM tab0 cor0
----
132660
13400
62980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 + + col2 col2 FROM tab2 AS cor0 WHERE NULL BETWEEN + col0 - - col0 AND col2 / - + 25 * - + col0 / col1
----

query I rowsort
SELECT 61 AS col0 FROM tab2 cor0 WHERE 26 IS NOT NULL
----
61
61
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4530
SELECT ALL - + col0 + + col1 + - + col0 DIV - col0 + - ( col0 ) AS col1 FROM tab1 AS cor0
----
-134
-164
-87

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - + col0 + + col1 + - + col0 / - col0 + - ( col0 ) AS col1 FROM tab1 AS cor0
----
-134
-164
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT + COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4531
SELECT DISTINCT + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT 17 * + col2 FROM tab2 AS cor0 WHERE NOT ( - - 13 IS NOT NULL )
----

query II rowsort
SELECT col0, col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT + COUNT( * ) + - - 71 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4534
SELECT + COUNT ( * ) + - - 71 FROM tab1 AS cor0
----
74

query I rowsort
SELECT ALL + 60 + + 10 FROM tab1 AS cor0
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - col1 col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4537
SELECT + + ( + col1 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 WHERE NULL NOT IN ( + col2, - col2 * - col0, col2 )
----

skipif mysql # not compatible
query I rowsort label-4537
SELECT + + ( + col1 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 WHERE NULL NOT IN ( + col2, - col2 * - col0, col2 )
----

query I rowsort
SELECT - col1 + - - 97 AS col2 FROM tab2 cor0
----
20
30
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 71 + - + col2 col0 FROM tab1 AS cor0
----
-130
-139
-167

onlyif mysql # DIV for integer division: 
query I rowsort label-4540
SELECT ALL col1 + - ( - - col2 ) + 76 DIV + col1 FROM tab0
----
-22
14
34

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL col1 + - ( - - col2 ) + 76 / + col1 FROM tab0
----
-22
14
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT DISTINCT + ( + + COUNT( ALL - col1 ) ) FROM tab2 WHERE + 61 >= - - ( + col0 )
----
1

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT + ( + + COUNT ( ALL - col1 ) ) FROM tab2 WHERE + 61 >= - - ( + col0 )
----
1

query I rowsort
SELECT DISTINCT col1 + - + col1 * + 51 - - - col2 FROM tab2
----
-2573
-3408
-3890

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT SUM( ALL - - col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4543
SELECT SUM ( ALL - - col2 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT DISTINCT + 33 - + + ( - 26 ) FROM tab2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL COUNT( - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL COUNT ( - col0 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + 93 AS col0 FROM tab2 cor0 WHERE + 33 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4547
SELECT 51 - col0 DIV + + col0 AS col0 FROM tab0 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-4547
SELECT 51 - col0 / + + col0 AS col0 FROM tab0 AS cor0
----
50
50
50

query I rowsort
SELECT 52 - + - col0 * col2 AS col2 FROM tab2 AS cor0
----
1110
2612
4402

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 44 * col2, 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4550
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-4550
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) >= NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 94 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 col1 FROM tab0
----
-38
-38
-38

query I rowsort
SELECT ( + ( + 99 ) ) AS col0 FROM tab1 AS cor0
----
99
99
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 83 * + 36 > - col1 + - ( + - col1 ) * - - col2 + col0
----

query I rowsort
SELECT DISTINCT col2 * + 25 AS col1 FROM tab0 AS cor0
----
1175
2475
250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + col0 ) col2, 35 col1 FROM tab1 AS cor0
----
-51
35
-85
35
-91
35

query I rowsort
SELECT 84 * - - col1 AS col2 FROM tab2
----
4284
5628
6468

onlyif mysql # DIV for integer division: 
query I rowsort label-4558
SELECT DISTINCT - + 71 DIV + col0 + - + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-19
-87
-97

skipif mysql # not compatible
query I rowsort label-4558
SELECT DISTINCT - + 71 / + col0 + - + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-19
-87
-97

query I rowsort
SELECT col2 * + - col2 * - - col2 AS col2 FROM tab0
----
-1000
-103823
-970299

query II rowsort
SELECT col0, 78 * - col1 AS col2 FROM tab2
----
46
-3978
64
-6006
75
-5226

query I rowsort
SELECT ALL + + 87 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + 67 AND 33 + + 52
----

query I rowsort
SELECT DISTINCT 99 * + - 75 AS col1 FROM tab0
----
-7425

query I rowsort
SELECT 73 * - + col1 * + col2 FROM tab0
----
-15330
-277911
-7227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4564
SELECT + ( SUM( ALL + CAST( + 72 AS SIGNED ) ) ) FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-4564
SELECT + ( SUM ( ALL + CAST ( + 72 AS INTEGER ) ) ) FROM tab0 AS cor0
----
216

query I rowsort
SELECT + + 23 AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT - - col0 + - 5 * + 32 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT DISTINCT + 53 * COUNT( * ) FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT + 53 * COUNT ( * ) FROM tab1 AS cor0
----
159

query II rowsort
SELECT ALL col0 * + col0, - 0 FROM tab1 WHERE + - 55 BETWEEN - + 80 + - ( - col0 ) * + + col2 AND NULL
----

query I rowsort
SELECT - col2 + + + col2 + col1 * + - col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT + 5 + + + 47 AS col0 FROM tab1
----
52
52
52

onlyif mysql # DIV for integer division: 
query II rowsort label-4571
SELECT ALL - 73 DIV + - 70 + col2 * - col1, col2 AS col0 FROM tab2
----
-1172
23
-3079
40
-3885
58

skipif mysql # not compatible
query II rowsort label-4571
SELECT ALL - 73 / + - 70 + col2 * - col1, col2 AS col0 FROM tab2
----
-1172
23
-3079
40
-3885
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + + col2 + 92 IN ( - 98 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4573
SELECT CAST( NULL AS DECIMAL ) FROM tab2 cor0 WHERE ( NULL ) NOT IN ( col2, 76 + 93, + col1 )
----

skipif mysql # not compatible
query I rowsort label-4573
SELECT CAST ( NULL AS REAL ) FROM tab2 cor0 WHERE ( NULL ) NOT IN ( col2, 76 + 93, + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4574
SELECT DISTINCT 5 DIV 92 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT 5 / 92 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 73 * col2 + - col0 FROM tab0 AS cor0
----
3416
643
7130

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT 18 * 53 FROM tab1 AS cor0
----
954
954
954

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT ALL SUM( col1 ) - + 94 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL SUM ( col1 ) - + 94 FROM tab1
----
-28

query I rowsort
SELECT ALL + 17 - col1 AS col2 FROM tab1
----
-30
12
3

query III rowsort
SELECT * FROM tab0 WHERE col0 > - col0 * + 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4581
SELECT ALL col0 * - col2 + - 88 DIV + - col0 AS col2 FROM tab1
----
-4895
-5014
-6188

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL col0 * - col2 + - 88 / + - col0 AS col2 FROM tab1
----
-4895
-5014
-6188

query I rowsort
SELECT + col2 + + - col0 AS col2 FROM tab0
----
-77
2
32

query I rowsort
SELECT ALL - 90 - + ( + col1 ) AS col2 FROM tab2
----
-141
-157
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT - COUNT( * ) * - 43 AS col1 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-4584
SELECT - COUNT ( * ) * - 43 AS col1 FROM tab1 AS cor0
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4585
SELECT COUNT( * ) DIV 24 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4585
SELECT COUNT ( * ) / 24 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4587
SELECT DISTINCT - 2 col1, COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4587
SELECT DISTINCT - 2 col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-2
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4588
SELECT ALL + + COUNT( DISTINCT - CAST( + 90 AS SIGNED ) ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL + + COUNT ( DISTINCT - CAST ( + 90 AS INTEGER ) ) FROM tab2 AS cor0
----
1

query II rowsort
SELECT DISTINCT - 94 AS col1, col2 FROM tab1 cor0
----
-94
59
-94
68
-94
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT - + MIN( ALL + 34 ) FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4590
SELECT - + MIN ( ALL + 34 ) FROM tab1 AS cor0
----
-34

query I rowsort
SELECT ALL col2 * + 7 * - + col0 FROM tab1 AS cor0 WHERE NULL > 35
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= - col1 + + 73 + + + col2 + - col0 * 20 / + col2 * - 57 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col0, + col1 + - + 33 AS col0 FROM tab1 AS cor0
----
-51
-19
-85
-28
-91
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4594
SELECT DISTINCT + CAST( + CAST( + col0 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT + CAST ( + CAST ( + col0 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4595
SELECT DISTINCT + + CAST( + + col1 AS SIGNED ) DIV col1 + - col2 DIV 40 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT + + CAST ( + + col1 AS INTEGER ) / col1 + - col2 / 40 AS col1 FROM tab2 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * col2 col1 FROM tab1
----
1298
1496
2112

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT + col1 IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL - 6 - col0 FROM tab2 WHERE NOT NULL BETWEEN ( - col1 ) AND 45 * + col1 * - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 <= - col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4600
SELECT CAST( + - 60 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-4600
SELECT CAST ( + - 60 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-60
-60
-60

query I rowsort
SELECT ALL + + 24 * + col2 * col2 + - col0 AS col0 FROM tab2 AS cor0
----
12650
38336
80661

query I rowsort
SELECT - - 63 * 35 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1fdbf28b4e95c3016bfcf5ce8052366c

query I rowsort
SELECT 53 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT + 2 + - + col1 FROM tab0
----
-19
-79
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT ALL col1 DIV + col0 + + col1 * + col1 * - col1 * - col1 - - col2 FROM tab0 AS cor0
----
100
194491
43046773

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL col1 / + col0 + + col1 * + col1 * - col1 * - col1 - - col2 FROM tab0 AS cor0
----
100
194491
43046773

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE + ( + 98 ) * + - col2 - col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT 8 + - - 47 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT col1 - - 95 FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT DISTINCT + - SUM( ALL - - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT + - SUM ( ALL - - col0 ) FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 74 col2 FROM tab0 AS cor0
----
-74
-74
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-4611
SELECT col1 DIV + + col1 + col1 + - col0 AS col0 FROM tab1 AS cor0
----
-36
-43
-79

skipif mysql # not compatible
query I rowsort label-4611
SELECT col1 / + + col1 + col1 + - col0 AS col0 FROM tab1 AS cor0
----
-36
-43
-79

query I rowsort
SELECT DISTINCT 82 + + + 69 FROM tab1
----
151

query I rowsort
SELECT DISTINCT - 56 + + + ( col1 ) FROM tab0
----
-35
-55
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 - 35 + + - col0 col2 FROM tab2
----
-30
-48
-59

query I rowsort
SELECT DISTINCT col2 * + + 14 FROM tab1
----
1344
826
952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col1 col1 FROM tab0 WHERE NOT ( + col1 * + col2 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4617
SELECT 87 DIV - - col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4617
SELECT 87 / - - col1 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL 40 * col0 AS col2 FROM tab0
----
3480
3880
600

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE + 65 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT + + col2 * col1 + - col2 FROM tab0 cor0
----
0
200
3760

onlyif mysql # aggregate syntax: 
query II rowsort label-4621
SELECT ALL - COUNT( * ) AS col0, 90 FROM tab0
----
-3
90

skipif mysql # not compatible
query II rowsort label-4621
SELECT ALL - COUNT ( * ) AS col0, 90 FROM tab0
----
-3
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT col0 DIV - + 19 AS col1 FROM tab1
----
-2
-4
-4

skipif mysql # not compatible
query I rowsort label-4622
SELECT col0 / - + 19 AS col1 FROM tab1
----
-2
-4
-4

query I rowsort
SELECT + AVG ( + + col0 ) * 75 + - + 45 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT CAST( - + ( + col2 ) AS SIGNED ) AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4624
SELECT CAST ( - + ( + col2 ) AS INTEGER ) AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query III rowsort label-4625
SELECT DISTINCT + + COUNT( * ), ( COUNT( ALL + col1 ) ), - MIN( DISTINCT + - col0 ) AS col0 FROM tab2 AS cor0
----
3
3
75

skipif mysql # not compatible
query III rowsort label-4625
SELECT DISTINCT + + COUNT ( * ), ( COUNT ( ALL + col1 ) ), - MIN ( DISTINCT + - col0 ) AS col0 FROM tab2 AS cor0
----
3
3
75

query II rowsort
SELECT DISTINCT + col2, col0 * + col1 AS col1 FROM tab2 AS cor0
----
23
2346
40
4928
58
5025

query II rowsort
SELECT ALL - - col1, + col1 FROM tab1 cor0
----
14
14
47
47
5
5

query III rowsort
SELECT * FROM tab2 WHERE col1 * col1 * - col0 >= + col0
----

query I rowsort
SELECT + + col1 * - - col1 - - + col0 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4630
SELECT ALL + col1 - + col2 + col2 DIV 61 * - col1 FROM tab1
----
-54
-68
-96

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL + col1 - + col2 + col2 / 61 * - col1 FROM tab1
----
-54
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4631
SELECT - 27 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * + - col1 IS NULL
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-4631
SELECT - 27 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + - col1 IS NULL
----
-27
-27
-27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4632
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + 29 * + - 2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4632
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + 29 * + - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT + 65 * - 15 + + + COUNT( - 49 ) AS col0 FROM tab1 AS cor0
----
-972

skipif mysql # not compatible
query I rowsort label-4633
SELECT + 65 * - 15 + + + COUNT ( - 49 ) AS col0 FROM tab1 AS cor0
----
-972

query I rowsort
SELECT DISTINCT - 44 AS col0 FROM tab1 cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL - - ( + MAX( - 31 ) ) AS col2 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL - - ( + MAX ( - 31 ) ) AS col2 FROM tab1 AS cor0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4636
SELECT ALL SUM( + col1 ) FROM tab0 AS cor0 WHERE NOT 40 * - CAST( NULL AS SIGNED ) * - 6 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL SUM ( + col1 ) FROM tab0 AS cor0 WHERE NOT 40 * - CAST ( NULL AS INTEGER ) * - 6 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4637
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4637
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT ( - ( + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT ( - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4639
SELECT ALL - 90 * + + CAST( col1 AS SIGNED ) * - col2 FROM tab2
----
105570
277200
349740

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL - 90 * + + CAST ( col1 AS INTEGER ) * - col2 FROM tab2
----
105570
277200
349740

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT DISTINCT - col2 DIV ( 65 ) * col2 AS col0 FROM tab1
----
-68
-96
0

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT - col2 / ( 65 ) * col2 AS col0 FROM tab1
----
-68
-96
0

query I rowsort
SELECT 15 * 59 FROM tab2 WHERE NOT NULL IS NOT NULL
----
885
885
885

query I rowsort
SELECT - + col1 + + 81 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL - 44 * col0 FROM tab0
----
-3828
-4268
-660

query I rowsort
SELECT col0 * - + 84 * + - col1 FROM tab1
----
35700
359268
59976

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4645
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) * - 10 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-4645
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) * - 10 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL COUNT( - + 10 ) * - 19 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL COUNT ( - + 10 ) * - 19 FROM tab2
----
-57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4647
SELECT DISTINCT col0 DIV + 12, + 2 * + + CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
3
92
5
128
6
150

skipif mysql # not compatible
query II rowsort label-4647
SELECT DISTINCT col0 / + 12, + 2 * + + CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
3
92
5
128
6
150

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 99 <> + - ( + col2 )
----
97
1
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 62 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + - 95 col2 FROM tab0 AS cor0
----
-116
-176
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT ALL + - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL + - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - + col0 AS col0 FROM tab1
----
-23
-26
45

query II rowsort
SELECT col1, col1 FROM tab1 WHERE col2 IN ( - + col0 )
----

query I rowsort
SELECT ALL + ( 11 ) + + - 55 * + 61 AS col0 FROM tab0
----
-3344
-3344
-3344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4655
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4656
SELECT ALL - COUNT( * ), + ( COUNT( * ) ) AS col1 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-4656
SELECT ALL - COUNT ( * ), + ( COUNT ( * ) ) AS col1 FROM tab1
----
-3
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 69 <= - ( + 12 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 + + - 75 FROM tab2
----
-17
-35
-52

query I rowsort
SELECT DISTINCT + 51 - + - 5 + + col2 * - + 58 * + - 67 AS col0 FROM tab2
----
155496
225444
89434

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT + COUNT( * ) * - 51 - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-4660
SELECT + COUNT ( * ) * - 51 - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-150

query I rowsort
SELECT col2 * ( + 19 ) FROM tab1 AS cor0
----
1121
1292
1824

query II rowsort
SELECT - col2 AS col2, col1 * - + col2 AS col2 FROM tab1 AS cor0
----
-59
-295
-68
-3196
-96
-1344

query II rowsort
SELECT DISTINCT + col0 * - + 13 AS col1, 88 FROM tab1 cor0
----
-1105
88
-1183
88
-663
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4664
SELECT ALL + COUNT( * ), + 36 AS col2 FROM tab0 AS cor0
----
3
36

skipif mysql # not compatible
query II rowsort label-4664
SELECT ALL + COUNT ( * ), + 36 AS col2 FROM tab0 AS cor0
----
3
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4665
SELECT CAST( - CAST( col0 AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4665
SELECT CAST ( - CAST ( col0 AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT MAX( DISTINCT - col0 ) FROM tab1 cor0 WHERE NOT col2 BETWEEN + + col0 AND NULL
----
-85

skipif mysql # not compatible
query I rowsort label-4666
SELECT MAX ( DISTINCT - col0 ) FROM tab1 cor0 WHERE NOT col2 BETWEEN + + col0 AND NULL
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * col0 * + + col1, col2 col0 FROM tab0 AS cor0
----
38367
10
97
99
98415
47

query I rowsort
SELECT - - 15 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT 69 + 31 AS col0 FROM tab2
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT - - COUNT( 26 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4670
SELECT - - COUNT ( 26 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT + col0 * + - ( - + col0 ) + + col2 FROM tab2
----
2139
4136
5683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT 92 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT 92 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + - col1 AS col1 FROM tab1 cor0
----
21
54
82

query I rowsort
SELECT + - 12 + - + 7 FROM tab0 AS cor0
----
-19
-19
-19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 95 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT - 44 DIV col2 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4676
SELECT - 44 / col2 FROM tab0 AS cor0
----
-4
0
0

query I rowsort
SELECT ALL - + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 + + 60 col2 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT ALL - - col1 + - - col2 AS col0 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 21 BETWEEN + col2 + + + 61 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT + + SUM( - 13 ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4681
SELECT + + SUM ( - 13 ) FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT DISTINCT + 61 + + COUNT( * ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT + 61 + + COUNT ( * ) FROM tab2
----
64

query I rowsort
SELECT ALL - 73 * + + 68 + - col0 + 46 FROM tab2
----
-4964
-4982
-4993

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT DISTINCT COUNT( * ) * COUNT( * ) + - MIN( DISTINCT + + col1 ) * - 77 FROM tab1
----
394

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + - MIN ( DISTINCT + + col1 ) * - 77 FROM tab1
----
394

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT + COUNT( - - 26 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4685
SELECT + COUNT ( - - 26 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT + COUNT( * ) - 63 AS col2 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-4686
SELECT + COUNT ( * ) - 63 AS col2 FROM tab1
----
-60

query I rowsort
SELECT ALL - col1 * + col1 + + - col1 FROM tab0
----
-2
-462
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT COUNT( * ) * - - COUNT( * ) - 3 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4688
SELECT COUNT ( * ) * - - COUNT ( * ) - 3 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL <> + col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4690
SELECT + CAST( NULL AS DECIMAL ) + - 94 * + 3 + + - 93 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT + CAST ( NULL AS REAL ) + - 94 * + 3 + + - 93 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * 91 + 75 FROM tab2 cor0
----
4716
6172
7082

query I rowsort
SELECT DISTINCT col2 + col2 * + + 68 FROM tab0
----
3243
6831
690

onlyif mysql # DIV for integer division: 
query I rowsort label-4693
SELECT ALL - col1 * col0 DIV + - 34 FROM tab0
----
2
35
53

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL - col1 * col0 / + - 34 FROM tab0
----
2
35
53

query II rowsort
SELECT - col2 AS col2, 79 FROM tab0 AS cor0
----
-10
79
-47
79
-99
79

query I rowsort
SELECT - col0 * 97 FROM tab0 AS cor0
----
-1455
-8439
-9409

query I rowsort
SELECT ALL - ( - - ( col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4697
SELECT - 66 + COUNT( - CAST( - ( - col1 ) AS SIGNED ) ) * COUNT( * ) FROM tab0 WHERE NOT - - col0 IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-4697
SELECT - 66 + COUNT ( - CAST ( - ( - col1 ) AS INTEGER ) ) * COUNT ( * ) FROM tab0 WHERE NOT - - col0 IS NOT NULL
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL - MIN( - col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL - MIN ( - col2 ) AS col0 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4699
SELECT + CAST( - col1 AS SIGNED ) AS col1, - col0 AS col2 FROM tab2
----
-51
-46
-67
-75
-77
-64

skipif mysql # not compatible
query II rowsort label-4699
SELECT + CAST ( - col1 AS INTEGER ) AS col1, - col0 AS col2 FROM tab2
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT ALL col0 * + + col2 * - 18 FROM tab1 AS cor0
----
-111384
-88128
-90270

query I rowsort
SELECT DISTINCT - col0 + - - 58 AS col0 FROM tab2
----
-17
-6
12

query I rowsort
SELECT DISTINCT col1 * - col1 * ( - 78 ) FROM tab2
----
202878
350142
462462

query II rowsort
SELECT - col1 * - 15, - col1 AS col0 FROM tab1 cor0
----
210
-14
705
-47
75
-5

query II rowsort
SELECT 15 + + + 88 AS col1, + col1 AS col0 FROM tab2 AS cor0
----
103
51
103
67
103
77

query I rowsort
SELECT col0 * col2 + - 68 FROM tab2 AS cor0
----
2492
4282
990

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT + + MIN( + 81 ) + + - 91 AS col0 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4706
SELECT + + MIN ( + 81 ) + + - 91 AS col0 FROM tab2 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT DISTINCT + col2 DIV + col1 + + 58 AS col2 FROM tab0 AS cor0
----
157
58

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT + col2 / + col1 + + 58 AS col2 FROM tab0 AS cor0
----
157
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4708
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4708
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL 89 * - col1 + 32 AS col1, - col1 AS col1 FROM tab2 AS cor0
----
-4507
-51
-5931
-67
-6821
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE + 41 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE + 41 IS NOT NULL
----
3

query I rowsort
SELECT - 75 + - 80 * - 45 AS col1 FROM tab2
----
3525
3525
3525

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - + 67 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4713
SELECT DISTINCT - col2 DIV - col1 - col0 * - col1 AS col2 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT - col2 / - col1 - col0 * - col1 AS col2 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL BETWEEN + col0 AND 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT SUM( ALL + + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4715
SELECT SUM ( ALL + + col0 ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-4716
SELECT + - COUNT( * ) AS col0, 3 + COUNT( * ) FROM tab2 AS cor0
----
-3
6

skipif mysql # not compatible
query II rowsort label-4716
SELECT + - COUNT ( * ) AS col0, 3 + COUNT ( * ) FROM tab2 AS cor0
----
-3
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4717
SELECT ALL + + COUNT( * ) DIV 91 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL + + COUNT ( * ) / 91 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL 33 + - COUNT( 55 ) AS col1 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL 33 + - COUNT ( 55 ) AS col1 FROM tab1
----
30

query I rowsort
SELECT ALL + 39 + col0 FROM tab2 WHERE col0 + + 61 / col0 > NULL
----

query I rowsort
SELECT DISTINCT col2 + 39 * - col0 AS col0 FROM tab2
----
-1771
-2456
-2867

query III rowsort
SELECT * FROM tab2 WHERE NULL <> 92 / + col1 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4722
SELECT * FROM tab1 WHERE + ( col2 ) <> ( CAST( 79 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4722
SELECT * FROM tab1 WHERE + ( col2 ) <> ( CAST ( 79 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4723
SELECT AVG ( CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT AVG ( CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 49 ) IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL - COUNT( DISTINCT - col0 ) + - 39 AS col1 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL - COUNT ( DISTINCT - col0 ) + - 39 AS col1 FROM tab2
----
-42

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN + col2 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT DISTINCT + MAX( - col2 ) col1 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4727
SELECT DISTINCT + MAX ( - col2 ) col1 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
NULL

query I rowsort
SELECT 28 AS col2 FROM tab0 WHERE col0 BETWEEN 79 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col0 * - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE col1 + 76 IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4731
SELECT * FROM tab2 WHERE col1 * ( + col0 ) NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4731
SELECT * FROM tab2 WHERE col1 * ( + col0 ) NOT IN ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 ) BETWEEN + 77 AND col2 * + col2
----
15
81
47
87
21
10

query I rowsort
SELECT + col2 + - 73 FROM tab2
----
-15
-33
-50

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 74 * + ( col2 ) BETWEEN ( + col0 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col0 * col2 col2 FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT DISTINCT 72 + col1 AS col0 FROM tab1
----
119
77
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4737
SELECT DISTINCT COUNT( * ) + + COUNT( * ) DIV + MAX( + ( col2 ) + + 68 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) / + MAX ( + ( col2 ) + + 68 ) FROM tab0
----
3

query I rowsort
SELECT - col0 * - col2 FROM tab0 WHERE NOT ( - col0 * ( + 8 * - col1 ) ) IS NULL
----
705
870
9603

query I rowsort
SELECT 47 * 40 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 18 + col0 FROM tab2
----
28
46
57

query I rowsort
SELECT DISTINCT + col1 + 72 FROM tab1
----
119
77
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT + COUNT( * ) * 97 + 5 AS col0 FROM tab0
----
296

skipif mysql # not compatible
query I rowsort label-4742
SELECT + COUNT ( * ) * 97 + 5 AS col0 FROM tab0
----
296

query I rowsort
SELECT ALL + col1 * col0 + 94 FROM tab1
----
4371
519
808

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4744
SELECT ALL * FROM tab0 WHERE ( - col2 ) BETWEEN col0 / 34 AND CAST( 53 AS SIGNED ) + CAST( col2 + CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4744
SELECT ALL * FROM tab0 WHERE ( - col2 ) BETWEEN col0 / 34 AND CAST ( 53 AS INTEGER ) + CAST ( col2 + CAST ( NULL AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT ALL - 33 + - col1 AS col1 FROM tab0
----
-114
-34
-54

query I rowsort
SELECT DISTINCT ( 37 ) + - col1 FROM tab2
----
-14
-30
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT COUNT( ALL col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4747
SELECT COUNT ( ALL col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( ( - col0 ) * col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NULL >= ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT DISTINCT MIN( ALL 3 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
3

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT MIN ( ALL 3 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
3

query I rowsort
SELECT - + ( ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4752
SELECT DISTINCT - - SUM( DISTINCT col2 ) * + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT - - SUM ( DISTINCT col2 ) * + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
468

onlyif mysql # DIV for integer division: 
query I rowsort label-4753
SELECT DISTINCT + col0 DIV + col1 AS col2 FROM tab2 cor0 WHERE NOT 15 IS NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT + col0 / + col1 AS col2 FROM tab2 cor0 WHERE NOT 15 IS NULL
----
0
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) > ( 99 * 98 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4755
SELECT ALL - CAST( MAX( DISTINCT col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL - CAST ( MAX ( DISTINCT col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 19 ) col0 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT ALL + col2 + + - 88 + + 54 FROM tab2
----
-11
24
6

query I rowsort
SELECT DISTINCT + col2 - - 98 AS col0 FROM tab1
----
157
166
194

query I rowsort
SELECT col2 - - 55 * - col1 FROM tab2
----
-2782
-3627
-4195

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE + 16 <= col2
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4761
SELECT col1 - - col1 DIV ( - 67 + + 5 ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4761
SELECT col1 - - col1 / ( - 67 + + 5 ) FROM tab1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 + 43 col2 FROM tab1
----
-3438
-4581
-9173

query I rowsort
SELECT col2 - + 6 AS col1 FROM tab0
----
4
41
93

query I rowsort
SELECT + 21 - + col2 FROM tab2
----
-19
-2
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT ALL COUNT( + col1 ) - - 77 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL COUNT ( + col1 ) - - 77 FROM tab0
----
80

query I rowsort
SELECT DISTINCT - col1 - col1 - col2 * + 41 AS col0 FROM tab2
----
-1045
-1794
-2512

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND col0 + col2
----

query I rowsort
SELECT - 87 - col1 + ( col2 ) AS col2 FROM tab0
----
-121
-98
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4769
SELECT + col1 + + CAST( col2 AS SIGNED ) FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-4769
SELECT + col1 + + CAST ( col2 AS INTEGER ) FROM tab1
----
110
115
64

query I rowsort
SELECT 55 + 84 + ( 0 ) * 39 FROM tab1
----
139
139
139

query III rowsort
SELECT * FROM tab2 WHERE - 54 * + 11 IS NULL
----

query I rowsort
SELECT 63 + - + col2 FROM tab0
----
-36
16
53

query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab2 cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT DISTINCT COUNT( * ) + + 82 FROM tab1 AS cor0 WHERE NOT NULL < col2 + - col2
----
82

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT COUNT ( * ) + + 82 FROM tab1 AS cor0 WHERE NOT NULL < col2 + - col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4775
SELECT + + COUNT( * ) DIV 15 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4775
SELECT + + COUNT ( * ) / 15 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4776
SELECT + MAX( DISTINCT ( - col0 ) ) DIV COUNT( * ) col0 FROM tab0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4776
SELECT + MAX ( DISTINCT ( - col0 ) ) / COUNT ( * ) col0 FROM tab0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL + COUNT( col2 ) AS col1 FROM tab1 WHERE NOT 93 IN ( - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL + COUNT ( col2 ) AS col1 FROM tab1 WHERE NOT 93 IN ( - col0 )
----
3

query I rowsort
SELECT col2 * - ( - - col1 ) * col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT - 45 - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 <> ( + + col1 )
----

query I rowsort
SELECT DISTINCT + 1 * col0 * - 75 AS col2 FROM tab1 AS cor0
----
-3825
-6375
-6825

query I rowsort
SELECT ( - col0 ) * - + 46 FROM tab2 AS cor0
----
2116
2944
3450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4782
SELECT ALL COUNT( * ) * - - COUNT( * ) + + 47 DIV + COUNT( * ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL COUNT ( * ) * - - COUNT ( * ) + + 47 / + COUNT ( * ) FROM tab2 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4783
SELECT * FROM tab2 AS cor0 WHERE NOT + 36 * ( + 62 ) NOT IN ( + ( - col0 ) + + CAST( - col2 AS SIGNED ) ) OR 5 / col1 + col0 * col1 IN ( 49 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-4783
SELECT * FROM tab2 AS cor0 WHERE NOT + 36 * ( + 62 ) NOT IN ( + ( - col0 ) + + CAST ( - col2 AS INTEGER ) ) OR 5 / col1 + col0 * col1 IN ( 49 + + col1 )
----

query I rowsort
SELECT col1 * + col0 * + 37 AS col1 FROM tab0
----
3589
44955
67599

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > ( - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * + 55 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4787
SELECT ( col1 ) * + + 63 + - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4787
SELECT ( col1 ) * + + 63 + - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 0 * - 51 / 49 NOT BETWEEN + col2 / col0 AND - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4789
SELECT - COUNT( * ) + - + COUNT( * ), - 43 * + - 20 AS col0 FROM tab0
----
-6
860

skipif mysql # not compatible
query II rowsort label-4789
SELECT - COUNT ( * ) + - + COUNT ( * ), - 43 * + - 20 AS col0 FROM tab0
----
-6
860

query I rowsort
SELECT + 39 * + 99 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col1 * - col0 * 76
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - ( + 35 ) * 53 ) < 30
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4792
SELECT 54 + col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
101
NULL
153
NULL
64
NULL

skipif mysql # not compatible
query II rowsort label-4792
SELECT 54 + col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
101
NULL
153
NULL
64
NULL

query I rowsort
SELECT + 58 + + col2 + col2 * - 87 FROM tab1
----
-5016
-5790
-8198

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE ( NOT ( - col0 * + col1 ) IS NULL )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT + - MAX( ALL + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4795
SELECT + - MAX ( ALL + col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ( + 37 ) + 71 * ( 33 - - COUNT( * ) ) FROM tab2 AS cor0 WHERE - col2 = ( NULL )
----
2380

skipif mysql # not compatible
query I rowsort label-4796
SELECT ( + 37 ) + 71 * ( 33 - - COUNT ( * ) ) FROM tab2 AS cor0 WHERE - col2 = ( NULL )
----
2380

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4797
SELECT + + 87 * - CAST( NULL AS SIGNED ) col1, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4797
SELECT + + 87 * - CAST ( NULL AS INTEGER ) col1, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT MAX( - + 1 ) col1 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4798
SELECT MAX ( - + 1 ) col1 FROM tab0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - col0 + + col1 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT DISTINCT - MAX( - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT - MAX ( - col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4801
SELECT DISTINCT 44 FROM tab2 AS cor0 WHERE ( - + CAST( - 5 AS SIGNED ) ) IS NOT NULL AND NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT 44 FROM tab2 AS cor0 WHERE ( - + CAST ( - 5 AS INTEGER ) ) IS NOT NULL AND NOT + col0 IS NOT NULL
----

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE NULL <> + col0
----

query I rowsort
SELECT col2 + - 74 AS col0 FROM tab0 AS cor0
----
-27
-64
25

query I rowsort
SELECT ALL ( + col0 ) + + col1 * - col1 FROM tab1 AS cor0
----
-145
-2118
60

query I rowsort
SELECT + 36 FROM tab1 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - col0 * 77 + + col1 / 30 FROM tab1 WHERE ( + col0 BETWEEN ( + + col0 ) AND + col1 )
----

query I rowsort
SELECT + col2 * + ( + col2 ) FROM tab0 WHERE ( col2 - col1 >= - - col0 )
----
9801

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 + - + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4809
SELECT DISTINCT SUM( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + - ( + + col2 ) ) col2 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4811
SELECT COUNT( * ) DIV 45 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4811
SELECT COUNT ( * ) / 45 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT ALL - ( - SUM( ALL 83 ) ) AS col1 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL - ( - SUM ( ALL 83 ) ) AS col1 FROM tab1
----
249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4813
SELECT CAST( + COUNT( ALL - CAST( NULL AS SIGNED ) ) AS SIGNED ) DIV - COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4813
SELECT CAST ( + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS INTEGER ) / - COUNT ( * ) AS col1 FROM tab1
----
0

query II rowsort
SELECT col1 * + col2, col0 FROM tab0
----
210
87
3807
15
99
97

query III rowsort
SELECT ALL * FROM tab0 WHERE - 73 IS NULL
----

query I rowsort
SELECT 29 * + + 49 AS col1 FROM tab0
----
1421
1421
1421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT + + CAST( + ( + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4817
SELECT + + CAST ( + ( + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + 6 FROM tab2 AS cor0 WHERE NOT ( ( - col2 ) >= + col0 )
----
6
6
6

query I rowsort
SELECT ALL col2 * + 89 * + col2 + - 45 + 80 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - col2 < - - col1
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT - col1 + ( 11 ) + + - ( + - 96 ) NOT BETWEEN - 30 AND ( col1 * - col1 )
----

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE NOT NULL < 40
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4823
SELECT ALL * FROM tab1 WHERE NOT 90 IN ( - - col2, ( CAST( NULL AS SIGNED ) ) - + + col0 )
----

skipif mysql # not compatible
query III rowsort label-4823
SELECT ALL * FROM tab1 WHERE NOT 90 IN ( - - col2, ( CAST ( NULL AS INTEGER ) ) - + + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + + col0 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT - MIN( col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4825
SELECT - MIN ( col1 ) AS col2 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT + 40 DIV + col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4826
SELECT + 40 / + col2 AS col1 FROM tab1
----
0
0
0

query II rowsort
SELECT col1, + 46 AS col1 FROM tab0
----
1
46
21
46
81
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 21 ) + - - col1 + col1 col1 FROM tab0 AS cor0 WHERE + ( + 59 ) <> + col0 + + - 82
----
183
23
63

query I rowsort
SELECT DISTINCT - ( + col2 ) * col0 + col2 AS col0 FROM tab2 cor0
----
-1035
-2520
-4292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + ( + ( - col2 ) ) + + col0 + col1 col1 FROM tab0 AS cor0
----
208
2305
9899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4831
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4832
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - 57 + + + 20 ) AND - col2 * + + 70 * - CAST( - col0 AS SIGNED ) * - + col2 * + col0 * - 22
----

skipif mysql # not compatible
query III rowsort label-4832
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - 57 + + + 20 ) AND - col2 * + + 70 * - CAST ( - col0 AS INTEGER ) * - + col2 * + col0 * - 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4833
SELECT - - CAST( NULL AS SIGNED ) - - col1 + + + col0 * col0 - - col2 * + + 33 / + + 58 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT - - CAST ( NULL AS INTEGER ) - - col1 + + + col0 * col0 - - col2 * + + 33 / + + 58 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + - col1 - + col2 FROM tab0 AS cor0
----
-198
-220
-3854

onlyif mysql # DIV for integer division: 
query I rowsort label-4835
SELECT + - 51 - + 98 DIV 97 FROM tab1 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-4835
SELECT + - 51 - + 98 / 97 FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT - ( - 93 ) * - 55 AS col0 FROM tab2 AS cor0
----
-5115

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - 47, - col0 - + col1 - + ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4838
SELECT DISTINCT + COUNT( * ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-4838
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab1
----
3
3

query II rowsort
SELECT - col0 AS col1, 77 * - - col0 FROM tab0
----
-15
1155
-87
6699
-97
7469

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT + - col1 IS NULL
----
46
64
75

query II rowsort
SELECT ALL col2 AS col1, - col1 + - col2 FROM tab1
----
59
-64
68
-115
96
-110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, 4 + - ( - - 58 ) + + - col2 AS col0 FROM tab1
----
-51
-150
-85
-113
-91
-122

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + 33
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND + - 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( + - col2 ) FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4846
SELECT 56 DIV + col1 + + - col0 DIV + 70 FROM tab2 AS cor0
----
-1
0
1

skipif mysql # not compatible
query I rowsort label-4846
SELECT 56 / + col1 + + - col0 / + 70 FROM tab2 AS cor0
----
-1
0
1

query I rowsort
SELECT - - 85 * 57 - ( + col0 ) FROM tab1 AS cor0
----
4754
4760
4794

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE - col1 NOT IN ( col0 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT DISTINCT + COUNT( ALL - + 51 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT + COUNT ( ALL - + 51 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL - COUNT( * ) * SUM( + col0 ) + 51 * 13 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL - COUNT ( * ) * SUM ( + col0 ) + 51 * 13 FROM tab0 AS cor0
----
66

query I rowsort
SELECT 72 + + col1 + 65 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4852
SELECT * FROM tab2 AS cor0 WHERE NOT + 32 BETWEEN ( CAST( NULL AS SIGNED ) + + - col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4852
SELECT * FROM tab2 AS cor0 WHERE NOT + 32 BETWEEN ( CAST ( NULL AS INTEGER ) + + - col2 ) AND NULL
----

query I rowsort
SELECT ALL - 97 + - col2 AS col2 FROM tab1 AS cor0
----
-156
-165
-193

query I rowsort
SELECT DISTINCT - 57 * + col1 FROM tab1 AS cor0
----
-2679
-285
-798

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 16 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4856
SELECT + + col1 * CAST( NULL AS DECIMAL ) * - col1 / 73 * + col0 * + 16 + + 91 + + col2 - 89 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4856
SELECT + + col1 * CAST ( NULL AS REAL ) * - col1 / 73 * + col0 * + 16 + + 91 + + col2 - 89 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT 29 DIV 56 + - col1 * - 53 FROM tab1
----
2491
265
742

skipif mysql # not compatible
query I rowsort label-4857
SELECT 29 / 56 + - col1 * - 53 FROM tab1
----
2491
265
742

query II rowsort
SELECT DISTINCT - - col1, col1 * 18 - ( - + col2 ) AS col1 FROM tab0 WHERE NOT ( col0 ) >= 60 * + col0 + + + col1
----
1
117
21
388
81
1505

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4859
SELECT 44 * + + COUNT( * ) DIV + COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4859
SELECT 44 * + + COUNT ( * ) / + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT DISTINCT - 33 DIV - ( - col1 ) * + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT - 33 / - ( - col1 ) * + col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT 96 * - COUNT( * ) FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-4861
SELECT 96 * - COUNT ( * ) FROM tab2 AS cor0
----
-288

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4862
SELECT - col1 AS col1, + CAST( NULL AS DECIMAL ) / - col1 AS col1 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-4862
SELECT - col1 AS col1, + CAST ( NULL AS REAL ) / - col1 AS col1 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

query I rowsort
SELECT ALL 62 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4864
SELECT DISTINCT + AVG ( - ( + - col2 ) ) + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT + AVG ( - ( + - col2 ) ) + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4865
SELECT + col1 * col2 DIV - + col2 + 49 DIV col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4865
SELECT + col1 * col2 / - + col2 + 49 / col2 FROM tab1
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4866
SELECT DISTINCT + - 92 DIV + col2 AS col0 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT + - 92 / + col2 AS col0 FROM tab2 AS cor0
----
-1
-2
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4867
SELECT ALL - COUNT( * ), - COUNT( * ) FROM tab2 cor0 WHERE NOT col0 * + 58 * + + col1 NOT IN ( - 73, + col1 + - col1 )
----
0
0

skipif mysql # not compatible
query II rowsort label-4867
SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab2 cor0 WHERE NOT col0 * + 58 * + + col1 NOT IN ( - 73, + col1 + - col1 )
----
0
0

query I rowsort
SELECT + - 42 + + 7 AS col2 FROM tab1 AS cor0
----
-35
-35
-35

query I rowsort
SELECT + - col2 + - + col0 FROM tab2 AS cor0
----
-104
-133
-69

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 * + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col1 + 94 AS col1 FROM tab1 AS cor0
----
47
80
89

query I rowsort
SELECT - - 3 + + col1 FROM tab2 cor0
----
54
70
80

query I rowsort
SELECT - 93 * 13 + + 55 FROM tab2 AS cor0
----
-1154
-1154
-1154

onlyif mysql # aggregate syntax: 
query II rowsort label-4874
SELECT ALL - ( + - COUNT( - col2 ) ), 41 * - COUNT( ALL col2 ) * + ( + - 59 ) AS col0 FROM tab2 AS cor0
----
3
7257

skipif mysql # not compatible
query II rowsort label-4874
SELECT ALL - ( + - COUNT ( - col2 ) ), 41 * - COUNT ( ALL col2 ) * + ( + - 59 ) AS col0 FROM tab2 AS cor0
----
3
7257

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4875
SELECT DISTINCT CAST( col1 AS SIGNED ), + 88 AS col0 FROM tab0
----
1
88
21
88
81
88

skipif mysql # not compatible
query II rowsort label-4875
SELECT DISTINCT CAST ( col1 AS INTEGER ), + 88 AS col0 FROM tab0
----
1
88
21
88
81
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT DISTINCT - MIN( - 15 ) col2 FROM tab2
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4876
SELECT DISTINCT - MIN ( - 15 ) col2 FROM tab2
----
15

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE col1 * + - col2 - + + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT - COUNT( ALL - 11 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4878
SELECT - COUNT ( ALL - 11 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT + MIN( 22 ) col0 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4879
SELECT + MIN ( 22 ) col0 FROM tab2 AS cor0
----
22

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL + 17 FROM tab2, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * - ( + col1 ) = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col0 * + + 44 IS NULL )
----

query I rowsort
SELECT ALL + 98 * + - col0 FROM tab2 AS cor0
----
-4508
-6272
-7350

query I rowsort
SELECT DISTINCT - 88 * + + 59 FROM tab2 AS cor0
----
-5192

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT + + COUNT( * ) + - 31 AS col2 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-4886
SELECT + + COUNT ( * ) + - 31 AS col2 FROM tab0 AS cor0
----
-28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + col2 / - + 39 AND NULL
----

query I rowsort
SELECT ALL - + 61 * 46 FROM tab2 AS cor0
----
-2806
-2806
-2806

query I rowsort
SELECT ALL - 58 * + col2 * - col2 + - col1 FROM tab0 AS cor0
----
128041
568457
5779

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT DISTINCT + ( - COUNT( * ) ) + + 77 FROM tab2 cor0
----
74

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT + ( - COUNT ( * ) ) + + 77 FROM tab2 cor0
----
74

query I rowsort
SELECT DISTINCT - - 20 * 7 + + 96 * + col1 - + + col2 AS col2 FROM tab1 cor0
----
1388
4584
561

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT DISTINCT + 85 + + MIN( col1 ) + + - 67 * - - COUNT( ALL - - col1 ) FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT + 85 + + MIN ( col1 ) + + - 67 * - - COUNT ( ALL - - col1 ) FROM tab2 AS cor0
----
-65

query I rowsort
SELECT DISTINCT col2 + + - col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT ALL CAST( NULL AS SIGNED ) * col0 + + 84 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL CAST ( NULL AS INTEGER ) * col0 + + 84 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 AS col0, 83 AS col0 FROM tab0
----
10
83
47
83
99
83

query III rowsort
SELECT * FROM tab0 WHERE - - col0 * - - col0 + col0 + + ( - col2 ) + + 51 < - 91 * - 53 + col1
----
15
81
47

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL - col0 * 71 * 40 AS col0 FROM tab2
----
-130640
-181760
-213000

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT - ( + + COUNT( ALL - - col0 ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4899
SELECT - ( + + COUNT ( ALL - - col0 ) ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - col2 * - 33 - col1 AS col1 FROM tab2 WHERE NOT + 98 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( 11 ) <= col1
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4902
SELECT ALL col2 + + col1 + - 29 + 5 + 82 + + + CAST( - col0 AS SIGNED ) FROM tab2
----
108
111
86

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL col2 + + col1 + - 29 + 5 + 82 + + + CAST ( - col0 AS INTEGER ) FROM tab2
----
108
111
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 * col1 col2 FROM tab0 AS cor0 WHERE NOT col0 + - col0 < NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 72 IS NULL
----

query I rowsort
SELECT ALL + col2 - - col2 AS col2 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT COUNT( ALL - - 35 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4906
SELECT COUNT ( ALL - - 35 ) FROM tab2
----
3

query I rowsort
SELECT - col1 - - 94 * - col1 AS col1 FROM tab1 AS cor0
----
-1330
-4465
-475

query I rowsort
SELECT ALL + col0 - 34 AS col2 FROM tab1 cor0
----
17
51
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4909
SELECT DISTINCT + CAST( + col0 AS SIGNED ) AS col0, 67 FROM tab0 AS cor0
----
15
67
87
67
97
67

skipif mysql # not compatible
query II rowsort label-4909
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) AS col0, 67 FROM tab0 AS cor0
----
15
67
87
67
97
67

query II rowsort
SELECT DISTINCT - 54, col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL 68 AS col2 FROM tab2 AS cor0 WHERE NOT 70 * col1 IN ( + col1 )
----
68
68
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( + - 71 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - + col1 ) * - + col2 > 36 + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 - col0 NOT BETWEEN NULL AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 44 col2, col1 FROM tab2
----
44
51
44
67
44
77

query II rowsort
SELECT DISTINCT col2, + col1 * + col1 + 52 FROM tab2
----
23
2653
40
5981
58
4541

query I rowsort
SELECT DISTINCT col2 * + - 22 FROM tab0
----
-1034
-2178
-220

query II rowsort
SELECT - 10 AS col2, - col2 + - - col2 + col1 * - col1 FROM tab0 AS cor0
----
-10
-1
-10
-441
-10
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, - 83 * + col2 FROM tab1 AS cor0
----
-51
-7968
-85
-4897
-91
-5644

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT ALL - - MAX( ALL 53 ) AS col2 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL - - MAX ( ALL 53 ) AS col2 FROM tab0 AS cor0
----
53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 31 * 56 < - + 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4922
SELECT - 6 DIV COUNT( * ) AS col2 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-4922
SELECT - 6 / COUNT ( * ) AS col2 FROM tab2
----
-2

query I rowsort
SELECT ALL col2 * 40 * col0 FROM tab1
----
195840
200600
247520

query I rowsort
SELECT ( + + 71 ) FROM tab2
----
71
71
71

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 BETWEEN + col2 AND NULL
----
51
14
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4926
SELECT DISTINCT * FROM tab0 WHERE + CAST( - + ( + 61 ) AS DECIMAL ) IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-4926
SELECT DISTINCT * FROM tab0 WHERE + CAST ( - + ( + 61 ) AS REAL ) IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * + col2 - - col0 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1219
3144
3961

query I rowsort
SELECT + + col0 * + col2 * + 67 + + - 19 FROM tab2 AS cor0
----
171501
291431
70867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4929
SELECT - col1 / - - 83 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT - col1 / - - 83 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( col1 ) + + + 27 * - col2 AS col2 FROM tab2 AS cor0
----
-1157
-1633
-672

onlyif mysql # DIV for integer division: 
query I rowsort label-4931
SELECT - col1 DIV - col2 + + + col2 AS col2 FROM tab2 AS cor0
----
25
41
59

skipif mysql # not compatible
query I rowsort label-4931
SELECT - col1 / - col2 + + + col2 AS col2 FROM tab2 AS cor0
----
25
41
59

query II rowsort
SELECT ALL col2, 64 + + - 61 AS col0 FROM tab0 AS cor0 WHERE - 89 * + col0 NOT IN ( - - 6 - - 86 * col0, col2 / - col0 )
----
10
3
47
3
99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT SUM( DISTINCT + - col1 ) + ( + COUNT( * ) ) AS col0 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-4933
SELECT SUM ( DISTINCT + - col1 ) + ( + COUNT ( * ) ) AS col0 FROM tab1
----
-63

query I rowsort
SELECT col2 + 3 AS col0 FROM tab2
----
26
43
61

query I rowsort
SELECT ALL col2 - - 95 AS col1 FROM tab0
----
105
142
194

query I rowsort
SELECT ALL - col2 + - col1 + + 61 FROM tab0
----
-39
-67
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 31 / + + col0 NOT BETWEEN - + col0 AND + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 39 / - col1 AS col2, + col2 FROM tab2 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 * + 50 * - col0 col2 FROM tab2
----
-179400
-249600
-292500

query I rowsort
SELECT DISTINCT + col1 * + 57 FROM tab1 AS cor0
----
2679
285
798

query I rowsort
SELECT + col1 * - 47 * col1 FROM tab1 AS cor0
----
-103823
-1175
-9212

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4943
SELECT ALL - 39, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-39
-3

skipif mysql # not compatible
query II rowsort label-4943
SELECT ALL - 39, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-39
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4944
SELECT DISTINCT + 81 * CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-243

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT + 81 * CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-243

query I rowsort
SELECT + 65 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT - - ( MAX( ALL + - 20 ) ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-4946
SELECT - - ( MAX ( ALL + - 20 ) ) FROM tab2 AS cor0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4947
SELECT + COUNT( * ), 7 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4947
SELECT + COUNT ( * ), 7 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4948
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 < - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4948
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 < - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT + - COUNT( DISTINCT + + col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4949
SELECT + - COUNT ( DISTINCT + + col0 ) FROM tab0 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 AS col2, + 62 * col2 col0 FROM tab0 AS cor0
----
-15
2914
-87
620
-97
6138

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT + MIN( col0 ) * 2 * MIN( ALL - - col0 ) FROM tab1 AS cor0
----
5202

skipif mysql # not compatible
query I rowsort label-4952
SELECT + MIN ( col0 ) * 2 * MIN ( ALL - - col0 ) FROM tab1 AS cor0
----
5202

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NOT - 52 + - - col1 * + 72 * col0 * + 80 + col1 * 21 <> + col2
----

query II rowsort
SELECT DISTINCT - col1 * - col1, + col1 AS col0 FROM tab2
----
2601
51
4489
67
5929
77

query I rowsort
SELECT col2 - col2 FROM tab2 AS cor0 WHERE NOT NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT - 88 + - COUNT( * ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4956
SELECT - 88 + - COUNT ( * ) AS col0 FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT + - 13 - - CAST( NULL AS SIGNED ) - + col2 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT + - 13 - - CAST ( NULL AS INTEGER ) - + col2 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT ALL - COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT + 24 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4958
SELECT ALL - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT + 24 IS NULL
----
-3

query I rowsort
SELECT ALL + col1 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1677
3431
580

query II rowsort
SELECT DISTINCT 72 AS col2, - col0 AS col2 FROM tab0 AS cor0
----
72
-15
72
-87
72
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 12 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 64 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 22 + - 28 * + 30 FROM tab2 cor0
----
-818

onlyif mysql # aggregate syntax: 
query II rowsort label-4964
SELECT - 29, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-29
3

skipif mysql # not compatible
query II rowsort label-4964
SELECT - 29, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-29
3

query I rowsort
SELECT DISTINCT - col0 - - col2 * - col1 AS col2 FROM tab1
----
-1395
-3287
-380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4966
SELECT 56 + - COUNT( - 67 ) DIV 66 * + MAX( DISTINCT + - col1 ) AS col0 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-4966
SELECT 56 + - COUNT ( - 67 ) / 66 * + MAX ( DISTINCT + - col1 ) AS col0 FROM tab0
----
56

query II rowsort
SELECT DISTINCT col0 AS col0, + 15 * + - col2 / - 27 FROM tab1 WHERE - - col2 + - ( - 5 ) * - col0 IN ( ( + 70 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT ALL + SUM( - + col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + SUM ( - + col2 ) AS col1 FROM tab2
----
-121

query I rowsort
SELECT - 73 * + + col2 * 77 FROM tab2 cor0
----
-129283
-224840
-326018

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT - - ( + - col2 ) + + col1 col0 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4970
SELECT - - ( + - col2 ) + + col1 col0 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL 94 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + 94 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT DISTINCT + 76 * - col1 FROM tab1 AS cor0
----
-1064
-3572
-380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4974
SELECT - 18 * - 51 + - + CAST( NULL AS SIGNED ) + + + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4974
SELECT - 18 * - 51 + - + CAST ( NULL AS INTEGER ) + + + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * col0 / + 46 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * col0 / + 46 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 92 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4977
SELECT DISTINCT + MAX( ALL 19 ) DIV ( - 3 ) AS col0 FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT + MAX ( ALL 19 ) / ( - 3 ) AS col0 FROM tab0 cor0
----
-6

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 79 / + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4979
SELECT ALL col1 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL col1 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4980
SELECT DISTINCT - 11, - ( CAST( - COUNT( * ) AS SIGNED ) ) DIV + ( COUNT( * ) ) AS col1 FROM tab1
----
-11
1

skipif mysql # not compatible
query II rowsort label-4980
SELECT DISTINCT - 11, - ( CAST ( - COUNT ( * ) AS INTEGER ) ) / + ( COUNT ( * ) ) AS col1 FROM tab1
----
-11
1

query I rowsort
SELECT DISTINCT 79 * + col1 * - - col0 FROM tab2
----
185334
389312
396975

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4982
SELECT MAX( - CAST( NULL AS DECIMAL ) ) AS col2, 92 AS col1 FROM tab1
----
NULL
92

skipif mysql # not compatible
query II rowsort label-4982
SELECT MAX ( - CAST ( NULL AS REAL ) ) AS col2, 92 AS col1 FROM tab1
----
NULL
92

query II rowsort
SELECT ALL + 52, col1 AS col2 FROM tab0
----
52
1
52
21
52
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 * - col2 col1 FROM tab0
----
4418
9306
940

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT + COUNT( * ) + - 83 * + - COUNT( * ) AS col1 FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-4985
SELECT + COUNT ( * ) + - 83 * + - COUNT ( * ) AS col1 FROM tab2
----
252

query I rowsort
SELECT ALL - 42 * ( - - col0 ) AS col0 FROM tab1
----
-2142
-3570
-3822

query I rowsort
SELECT ( + 81 ) AS col2 FROM tab2 AS cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT + MAX( ( - col1 ) ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4988
SELECT + MAX ( ( - col1 ) ) FROM tab2 cor0
----
-51

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE + + 83 + - col1 + + ( col2 ) * col1 * - - 21 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4991
SELECT DISTINCT + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + + col2 + + col2 * 91 + + - 13 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + + col2 + + col2 * 91 + + - 13 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT - ( - COUNT( * ) ) + - MIN( + 80 ) AS col2 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4992
SELECT - ( - COUNT ( * ) ) + - MIN ( + 80 ) AS col2 FROM tab0 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT - 9 + SUM( + col1 ) FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4993
SELECT - 9 + SUM ( + col1 ) FROM tab0 AS cor0
----
94

query I rowsort
SELECT + - col0 + ( + ( + col1 ) ) * + col1 * - 47 AS col2 FROM tab0 AS cor0
----
-144
-20814
-308382

query I rowsort
SELECT 1 AS col1 FROM tab1 AS cor0 WHERE 95 NOT BETWEEN - - col1 AND col0 + - 89
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4996
SELECT ALL - col1 + + - 35 DIV + + col2 FROM tab2 AS cor0
----
-52
-67
-77

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL - col1 + + - 35 / + + col2 FROM tab2 AS cor0
----
-52
-67
-77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4997
SELECT ALL - - CAST( - 98 AS SIGNED ) + + CAST( NULL AS DECIMAL ) / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL - - CAST ( - 98 AS INTEGER ) + + CAST ( NULL AS REAL ) / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4998
SELECT ALL - col2 + - col0 + + col2 * ( 25 ) DIV col2 - + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-156
-175
-95

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL - col2 + - col0 + + col2 * ( 25 ) / col2 - + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-156
-175
-95

query I rowsort
SELECT DISTINCT - col2 + - - col2 + + col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5000
SELECT DISTINCT - col0 FROM tab2 WHERE CAST( NULL AS SIGNED ) NOT IN ( - col0 * - ( + - col2 ) * 36 + - + 4, - col0 - + 21 )
----

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT - col0 FROM tab2 WHERE CAST ( NULL AS INTEGER ) NOT IN ( - col0 * - ( + - col2 ) * 36 + - + 4, - col0 - + 21 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 AS col2, col1 col1 FROM tab2 WHERE NULL IS NULL
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT COUNT( ALL + col2 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5002
SELECT COUNT ( ALL + col2 ) col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + 14 + + - col2 * ( col1 ) FROM tab2
----
-1159
-3066
-3872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - - + ( + col0 ) + - + 88 col0 FROM tab1 AS cor0
----
-133
-62
-65

query I rowsort
SELECT col0 - + + col2 - col2 AS col0 FROM tab2 AS cor0
----
-16
-41
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5006
SELECT - + CAST( NULL AS DECIMAL ) - - ( + - CAST( - - COUNT( * ) AS DECIMAL ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT - + CAST ( NULL AS REAL ) - - ( + - CAST ( - - COUNT ( * ) AS REAL ) ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5007
SELECT DISTINCT + + CAST( + ( - col0 ) AS SIGNED ) AS col2, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

skipif mysql # not compatible
query II rowsort label-5007
SELECT DISTINCT + + CAST ( + ( - col0 ) AS INTEGER ) AS col2, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 66 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - ( + col1 ) AS col0, + 42 FROM tab2
----
-51
42
-67
42
-77
42

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT - - ( 49 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5011
SELECT - ( col1 ) DIV + + 62 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5011
SELECT - ( col1 ) / + + 62 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5012
SELECT DISTINCT - - SUM( col2 ) AS col1, + COUNT( col0 ) FROM tab1 AS cor0
----
223
3

skipif mysql # not compatible
query II rowsort label-5012
SELECT DISTINCT - - SUM ( col2 ) AS col1, + COUNT ( col0 ) FROM tab1 AS cor0
----
223
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT DISTINCT 4 * - COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT 4 * - COUNT ( * ) FROM tab0 AS cor0
----
-12

query I rowsort
SELECT ALL - + col1 * - - 73 * - col1 AS col1 FROM tab2 AS cor0
----
189873
327697
432817

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL + MIN( - - col1 ) * + 2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL + MIN ( - - col1 ) * + 2 FROM tab0 AS cor0
----
2

query I rowsort
SELECT ALL + - 43 * - - 93 * - col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT DISTINCT COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5017
SELECT DISTINCT COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5018
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - 28 FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - ( col0 ) + + 15 AS col0 FROM tab2 WHERE NOT 98 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT - COUNT( + ( - col2 ) ) * + - COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5021
SELECT - COUNT ( + ( - col2 ) ) * + - COUNT ( * ) AS col2 FROM tab1
----
9

query I rowsort
SELECT ALL 91 * - col2 FROM tab0
----
-4277
-9009
-910

onlyif mysql # DIV for integer division: 
query I rowsort label-5023
SELECT 88 DIV + - col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5023
SELECT 88 / + - col2 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT + COUNT( * ) * 1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5024
SELECT + COUNT ( * ) * 1 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5025
SELECT - COUNT( * ) DIV - + ( - + 94 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5025
SELECT - COUNT ( * ) / - + ( - + 94 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT DISTINCT COUNT( DISTINCT col1 ) + + 32 col2 FROM tab2
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5027
SELECT DISTINCT COUNT ( DISTINCT col1 ) + + 32 col2 FROM tab2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5028
SELECT - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 54 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT ALL + 25 DIV col0 + - col0 + - col2 + - - col2 * - ( - - col0 ) AS col2 FROM tab0 AS cor0
----
-766
-967
-9799

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL + 25 / col0 + - col0 + - col2 + - - col2 * - ( - - col0 ) AS col2 FROM tab0 AS cor0
----
-766
-967
-9799

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5032
SELECT + - col1 * + - 67 AS col1, col0 + + + 32 * - CAST( NULL AS SIGNED ) * - 69 FROM tab0 AS cor0
----
1407
NULL
5427
NULL
67
NULL

skipif mysql # not compatible
query II rowsort label-5032
SELECT + - col1 * + - 67 AS col1, col0 + + + 32 * - CAST ( NULL AS INTEGER ) * - 69 FROM tab0 AS cor0
----
1407
NULL
5427
NULL
67
NULL

query II rowsort
SELECT ALL 38 AS col0, 49 AS col2 FROM tab0 AS cor0
----
38
49
38
49
38
49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NOT col0 - col1 + + + col2 * + col1 IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5035
SELECT ALL + col1 DIV + col2 + + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL + col1 / + col2 + + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT DISTINCT - + MIN( DISTINCT + col0 ) * - + 13 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-1989

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT - + MIN ( DISTINCT + col0 ) * - + 13 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-1989

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab2 AS cor0 WHERE 62 BETWEEN col2 + + 66 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT - 63 - COUNT( * ) col0 FROM tab2
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5038
SELECT - 63 - COUNT ( * ) col0 FROM tab2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT + col0 + CAST( - col2 AS SIGNED ) AS col1 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-5039
SELECT + col0 + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1
----
-45
23
26

query I rowsort
SELECT DISTINCT - col2 * + - col2 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT DISTINCT - ( + COUNT( * ) ) * 68 * COUNT( * ) FROM tab2
----
-612

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT - ( + COUNT ( * ) ) * 68 * COUNT ( * ) FROM tab2
----
-612

query I rowsort
SELECT DISTINCT - col0 * col2 * + + 32 * col0 FROM tab2
----
-10440000
-1557376
-5242880

query I rowsort
SELECT 26 FROM tab2 AS cor0 WHERE NOT NULL IN ( ( 94 ) + - + col2 + + col2, - col2 + + 44, - + col0 )
----

query II rowsort
SELECT ALL - ( - 35 ) AS col0, 3 FROM tab2 AS cor0
----
35
3
35
3
35
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col2, + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col2, + col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5047
SELECT * FROM tab1 AS cor0 WHERE NOT - 30 - - + CAST( + - 7 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5047
SELECT * FROM tab1 AS cor0 WHERE NOT - 30 - - + CAST ( + - 7 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT - + MIN( - + 29 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-5048
SELECT - + MIN ( - + 29 ) FROM tab0 AS cor0
----
29

query II rowsort
SELECT - + col2 AS col2, + col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT DISTINCT - + 37 + + 56 AS col1 FROM tab2 cor0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5051
SELECT SUM( + ( - - CAST( - CAST( + + col2 AS SIGNED ) AS SIGNED ) ) ) * + - COUNT( * ) / - 39 / - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT SUM ( + ( - - CAST ( - CAST ( + + col2 AS INTEGER ) AS INTEGER ) ) ) * + - COUNT ( * ) / - 39 / - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 + + 81 FROM tab1
----
140
149
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 col2 FROM tab0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT ALL + 15 * - - COUNT( * ) AS col1 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL + 15 * - - COUNT ( * ) AS col1 FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) < - col2
----
0

skipif mysql # not compatible
query I rowsort label-5055
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) < - col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 94 * col0 * - 73 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( col2 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT COUNT( * ) + + 71 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
80

skipif mysql # not compatible
query I rowsort label-5058
SELECT COUNT ( * ) + + 71 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
80

query I rowsort
SELECT - col2 + - - col1 AS col0 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5060
SELECT - col1 DIV col1 + + + col0 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-5060
SELECT - col1 / col1 + + + col0 FROM tab2 AS cor0
----
45
63
74

query II rowsort
SELECT - col0 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT ALL - col2 * - 39 + 32 AS col0 FROM tab1
----
2333
2684
3776

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 82 + - + col2 BETWEEN + col1 AND + - 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 93 * + col1 FROM tab0
----
1953
7533
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5065
SELECT col0 * + - col2 + + - ( + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT col0 * + - col2 + + - ( + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - + col2, - col0 * + col1 + 49 AS col1 FROM tab1 AS cor0
----
-59
-376
-68
-4228
-96
-665

query II rowsort
SELECT DISTINCT ( col1 ) AS col1, col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT col0 - + col2 AS col0 FROM tab2 cor0 WHERE NOT + 22 IS NULL
----
17
23
24

onlyif mysql # DIV for integer division: 
query II rowsort label-5069
SELECT - + col2 DIV - col2, + col1 FROM tab1 cor0
----
1
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-5069
SELECT - + col2 / - col2, + col1 FROM tab1 cor0
----
1
14
1
47
1
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5070
SELECT - CAST( - - 75 AS SIGNED ) FROM tab1 AS cor0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-5070
SELECT - CAST ( - - 75 AS INTEGER ) FROM tab1 AS cor0
----
-75
-75
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 27 col2 FROM tab2 WHERE NOT NULL NOT IN ( col2, + 65, - 39, - + 66 - - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT DISTINCT 98 + - COUNT( * ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT 98 + - COUNT ( * ) FROM tab0
----
95

query I rowsort
SELECT ALL - 13 + 15 AS col1 FROM tab1
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 47 col1 FROM tab1
----
-2397
-3995
-4277

query II rowsort
SELECT + 69, + 51 AS col0 FROM tab0
----
69
51
69
51
69
51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5076
SELECT 80 * CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5076
SELECT 80 * CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5077
SELECT COUNT( CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5077
SELECT COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col1 + col2 col1 FROM tab1 AS cor0
----
123
183
206

query I rowsort
SELECT - + col2 + + 16 + - + col0 FROM tab1 AS cor0
----
-128
-131
-143

query I rowsort
SELECT ALL + col0 * + + 70 - - 70 - col2 FROM tab2
----
3267
4510
5262

query I rowsort
SELECT DISTINCT col2 - - ( + - ( - + col2 ) ) FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT DISTINCT + 7 - + + MIN( DISTINCT + col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT + 7 - + + MIN ( DISTINCT + col2 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - - 13 - - col2 + - 57 FROM tab2 AS cor0
----
-21
-4
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT ALL - - COUNT( * ) * ( - SUM( ALL 3 ) ) * + - SUM( col1 ) - - 85 FROM tab0 AS cor0
----
2866

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL - - COUNT ( * ) * ( - SUM ( ALL 3 ) ) * + - SUM ( col1 ) - - 85 FROM tab0 AS cor0
----
2866

onlyif mysql # DIV for integer division: 
query I rowsort label-5085
SELECT col0 DIV 79 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5085
SELECT col0 / 79 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 89 * - 34 FROM tab2
----
-3026

query I rowsort
SELECT ALL - 80 * - col0 * + ( col0 ) AS col2 FROM tab1
----
208080
578000
662480

query I rowsort
SELECT col0 * 93 + - col1 AS col1 FROM tab0 WHERE NOT 3 - 84 IS NULL
----
1314
8070
9020

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + - - 57 BETWEEN col2 AND col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL - + 77 * + MAX( - 18 ) FROM tab1 AS cor0
----
1386

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL - + 77 * + MAX ( - 18 ) FROM tab1 AS cor0
----
1386

query I rowsort
SELECT DISTINCT - + 82 * + col1 AS col2 FROM tab0 AS cor0
----
-1722
-6642
-82

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + col0 + - - col2
----

query I rowsort
SELECT ALL + 83 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5094
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5095
SELECT ALL 15 + + ( + CAST( col1 AS SIGNED ) ) * + + col1 * - 34 FROM tab2 AS cor0
----
-152611
-201571
-88419

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL 15 + + ( + CAST ( col1 AS INTEGER ) ) * + + col1 * - 34 FROM tab2 AS cor0
----
-152611
-201571
-88419

query I rowsort
SELECT + col1 + + 99 FROM tab1 AS cor0
----
104
113
146

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT ( NOT ( NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT - - 59 + - - COUNT( - col2 ) FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5098
SELECT - - 59 + - - COUNT ( - col2 ) FROM tab2 AS cor0
----
62

query I rowsort
SELECT ALL 94 + + col0 FROM tab0
----
109
181
191

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + - col2 col2 FROM tab0
----
-29
23
60

query I rowsort
SELECT ALL col1 + - 57 FROM tab0
----
-36
-56
24

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 16 ) <> col2
----

query II rowsort
SELECT ALL + col2 * 49, col1 AS col2 FROM tab1 AS cor0
----
2891
5
3332
47
4704
14

query I rowsort
SELECT ALL + 39 + - - 92 FROM tab0 AS cor0
----
131
131
131

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 + - col1 + - - col1 + + 22 * col1 - col1 + - 75 NOT BETWEEN - col0 AND 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5106
SELECT + CAST( - col1 AS SIGNED ) - + col1 AS col1 FROM tab0
----
-162
-2
-42

skipif mysql # not compatible
query I rowsort label-5106
SELECT + CAST ( - col1 AS INTEGER ) - + col1 AS col1 FROM tab0
----
-162
-2
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-5107
SELECT ALL col2 + - col0 DIV col2 - + - col2 col1 FROM tab0
----
12
198
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5107
SELECT ALL col2 + - col0 / col2 - + - col2 col1 FROM tab0
----
12
198
94

query I rowsort
SELECT ALL + 41 - - + col0 AS col2 FROM tab1
----
126
132
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5109
SELECT DISTINCT - COUNT( * ) AS col0, + MIN( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-3
59

skipif mysql # not compatible
query II rowsort label-5109
SELECT DISTINCT - COUNT ( * ) AS col0, + MIN ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-3
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5110
SELECT - CAST( + - col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5110
SELECT - CAST ( + - col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT + COUNT( * ) * + 45 AS col2 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-5111
SELECT + COUNT ( * ) * + 45 AS col2 FROM tab1 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT DISTINCT + SUM( + 15 ) col1 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5112
SELECT DISTINCT + SUM ( + 15 ) col1 FROM tab2 AS cor0
----
45

query II rowsort
SELECT 34 AS col1, col0 AS col1 FROM tab2 AS cor0
----
34
46
34
64
34
75

query I rowsort
SELECT DISTINCT + + col1 * + - 36 + - col0 + + 88 FROM tab1 AS cor0
----
-1695
-177
-467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 56 * - + 89 col1 FROM tab1 AS cor0
----
-234248
-24920
-69776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT CAST( - 2 AS SIGNED ) FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5116
SELECT CAST ( - 2 AS INTEGER ) FROM tab2 AS cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5117
SELECT * FROM tab1 WHERE NOT CAST( col2 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5117
SELECT * FROM tab1 WHERE NOT CAST ( col2 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT + ( + + COUNT( * ) ) col1 FROM tab0 WHERE NOT + + col2 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5118
SELECT + ( + + COUNT ( * ) ) col1 FROM tab0 WHERE NOT + + col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT - SUM( ALL + col1 ) * - 13 AS col1 FROM tab1
----
858

skipif mysql # not compatible
query I rowsort label-5119
SELECT - SUM ( ALL + col1 ) * - 13 AS col1 FROM tab1
----
858

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5120
SELECT DISTINCT CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5121
SELECT ALL + 95 * - - CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
4465
9405
950

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL + 95 * - - CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
4465
9405
950

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 45 >= col0
----
15
81
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5124
SELECT CAST( NULL AS SIGNED ) + + - AVG ( ALL + + 97 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT CAST ( NULL AS INTEGER ) + + - AVG ( ALL + + 97 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - 15 * + + 29 + + + 91 + 9 FROM tab2 AS cor0
----
-335
-335
-335

query I rowsort
SELECT DISTINCT - ( col0 ) * - + 13 + - + col2 AS col0 FROM tab2 AS cor0
----
575
792
917

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NULL >= + col1 / col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 55 ) + - - col1 col0 FROM tab0 AS cor0
----
-34
-54
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT ALL + 16 + COUNT( * ) + + - ( - 76 ) AS col1 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL + 16 + COUNT ( * ) + + - ( - 76 ) AS col1 FROM tab1 AS cor0
----
95

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN + + col0 AND - + col2 * + col0 + col1
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT ALL + SUM( - col0 ) + COUNT( * ) FROM tab2 cor0
----
-182

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL + SUM ( - col0 ) + COUNT ( * ) FROM tab2 cor0
----
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-5132
SELECT ALL - 8 * col1 + col0 + 23 DIV + col1 AS col2 FROM tab0 cor0
----
-633
-80
112

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL - 8 * col1 + col0 + 23 / + col1 AS col2 FROM tab0 cor0
----
-633
-80
112

onlyif mysql # aggregate syntax: 
query II rowsort label-5133
SELECT ALL - 86 + - 87 AS col0, SUM( 3 ) AS col0 FROM tab2
----
-173
9

skipif mysql # not compatible
query II rowsort label-5133
SELECT ALL - 86 + - 87 AS col0, SUM ( 3 ) AS col0 FROM tab2
----
-173
9

query I rowsort
SELECT + - 19 FROM tab2 WHERE - - col0 BETWEEN 24 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5135
SELECT - CAST( + + 78 AS SIGNED ) * + col0 AS col1 FROM tab0
----
-1170
-6786
-7566

skipif mysql # not compatible
query I rowsort label-5135
SELECT - CAST ( + + 78 AS INTEGER ) * + col0 AS col1 FROM tab0
----
-1170
-6786
-7566

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT - 91 * col1 DIV - + 27 AS col0 FROM tab0
----
273
3
70

skipif mysql # not compatible
query I rowsort label-5136
SELECT - 91 * col1 / - + 27 AS col0 FROM tab0
----
273
3
70

query I rowsort
SELECT col0 - + 17 FROM tab2
----
29
47
58

query I rowsort
SELECT - 57 - + col1 FROM tab0
----
-138
-58
-78

query I rowsort
SELECT ALL - col1 + + + 42 * + col2 FROM tab0
----
1893
399
4157

onlyif mysql # DIV for integer division: 
query I rowsort label-5140
SELECT DISTINCT + col0 DIV + + col1 - + + 80 FROM tab2
----
-79
-80

skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT + col0 / + + col1 - + + 80 FROM tab2
----
-79
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT DISTINCT + ( + MIN( ALL 71 ) ) AS col0 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT + ( + MIN ( ALL 71 ) ) AS col0 FROM tab1
----
71

query II rowsort
SELECT - ( ( - + col1 ) ) * - col2 AS col1, + 6 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL col1 - + - 79 AS col2 FROM tab1 AS cor0
----
126
84
93

query I rowsort
SELECT DISTINCT + - 51 * + 59 - - col0 + + + 5 * 0 * - + col1 FROM tab0 AS cor0
----
-2912
-2922
-2994

query I rowsort
SELECT DISTINCT + 24 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND col1 * + col0 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL COUNT( + - col2 ) + + + 88 FROM tab2 AS cor0 WHERE NOT - col2 - + - col0 IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL COUNT ( + - col2 ) + + + 88 FROM tab2 AS cor0 WHERE NOT - col2 - + - col0 IS NULL
----
91

query II rowsort
SELECT col0 * + ( + + 73 ), + col1 AS col0 FROM tab0
----
1095
81
6351
21
7081
1

query II rowsort
SELECT - 19 AS col2, + 72 FROM tab1
----
-19
72
-19
72
-19
72

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 49 - - - 85 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - + 15 ) AS col2 FROM tab2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5152
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) + - col2 - - 0 + - col0 + 97 * - - col0 * - - col0 * + col2 - 57 * + 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5152
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) + - col2 - - 0 + - col0 + 97 * - - col0 * - - col0 * + col2 - 57 * + 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - + col1 AND + + 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT DISTINCT + SUM( ALL - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT + SUM ( ALL - col2 ) FROM tab0
----
-156

query II rowsort
SELECT DISTINCT col0 AS col2, col1 AS col0 FROM tab1
----
51
14
85
5
91
47

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 * - 10 = NULL
----

query I rowsort
SELECT DISTINCT + - col0 + + col0 * 28 AS col0 FROM tab1 AS cor0
----
1377
2295
2457

query I rowsort
SELECT DISTINCT - + 34 + col2 FROM tab2 AS cor0
----
-11
24
6

query I rowsort
SELECT - 75 - - col0 AS col2 FROM tab1
----
-24
10
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5160
SELECT - MIN( DISTINCT - CAST( ( + 89 ) AS SIGNED ) ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-5160
SELECT - MIN ( DISTINCT - CAST ( ( + 89 ) AS INTEGER ) ) FROM tab0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT COUNT( * ) + + SUM( DISTINCT col2 ) AS col1 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-5161
SELECT COUNT ( * ) + + SUM ( DISTINCT col2 ) AS col1 FROM tab0
----
159

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) > ( 74 + 38 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 - col1 * 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT ALL 54 * - 95 - COUNT( * ) FROM tab1
----
-5133

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL 54 * - 95 - COUNT ( * ) FROM tab1
----
-5133

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 28 ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5166
SELECT DISTINCT - CAST( col2 AS SIGNED ) DIV 26 + + col1 FROM tab0
----
-2
21
80

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT - CAST ( col2 AS INTEGER ) / 26 + + col1 FROM tab0
----
-2
21
80

query I rowsort
SELECT - ( + col2 ) + + 67 FROM tab0
----
-32
20
57

query I rowsort
SELECT ALL 26 FROM tab0 WHERE ( NULL ) IN ( ( col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab2 WHERE col0 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT ALL COUNT( * ) * - 73 AS col0 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL COUNT ( * ) * - 73 AS col0 FROM tab1
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT 56 + COUNT( * ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-5171
SELECT 56 + COUNT ( * ) FROM tab2
----
59

query I rowsort
SELECT col2 - col0 AS col2 FROM tab1 WHERE ( + col1 - col0 ) BETWEEN NULL AND ( - col1 )
----

query I rowsort
SELECT + 87 * 36 AS col1 FROM tab0
----
3132
3132
3132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5174
SELECT - col0 / col1 AS col1 FROM tab2 WHERE NOT ( + CAST( 46 AS SIGNED ) + 41 ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5174
SELECT - col0 / col1 AS col1 FROM tab2 WHERE NOT ( + CAST ( 46 AS INTEGER ) + 41 ) IN ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5176
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL 49 * col1 FROM tab0
----
1029
3969
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT + 38 + + COUNT( * ) AS col0 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-5178
SELECT + 38 + + COUNT ( * ) AS col0 FROM tab0
----
41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + col1 IN ( 69 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 66 * col0 AS col0 FROM tab2
----
3036
4224
4950

query I rowsort
SELECT ( + 82 ) AS col0 FROM tab1
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT - COUNT( * ) + 83 AS col2 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-5182
SELECT - COUNT ( * ) + 83 AS col2 FROM tab0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL COUNT( * ) * ( - COUNT( * ) ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL COUNT ( * ) * ( - COUNT ( * ) ) AS col2 FROM tab1
----
-9

query I rowsort
SELECT ALL - 81 FROM tab0 WHERE NOT - col0 * + col2 = + 34 + - col0 * - col1
----
-81
-81
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5185
SELECT ALL COUNT( * ) DIV - 71 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL COUNT ( * ) / - 71 FROM tab0
----
0

query I rowsort
SELECT - ( col1 ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( col1 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5188
SELECT DISTINCT col2 DIV 81 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT col2 / 81 AS col1 FROM tab1 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT - COUNT( * ) - SUM( 82 ) FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-5189
SELECT - COUNT ( * ) - SUM ( 82 ) FROM tab2 AS cor0
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT COUNT( + col1 ) AS col1 FROM tab2 AS cor0 WHERE 29 NOT IN ( 54 * col1 + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-5190
SELECT COUNT ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE 29 NOT IN ( 54 * col1 + col0 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 <= - col1
----
3

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 <= - col1
----
3

query I rowsort
SELECT DISTINCT + 41 * col1 AS col1 FROM tab1 AS cor0
----
1927
205
574

query I rowsort
SELECT DISTINCT 40 * 36 AS col0 FROM tab0
----
1440

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5194
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab0
----
NULL

query I rowsort
SELECT ALL - 14 * - col1 AS col1 FROM tab2
----
1078
714
938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5196
SELECT DISTINCT + col0 FROM tab0 WHERE 97 * - col0 NOT BETWEEN col1 + - col1 * col0 AND ( CAST( NULL AS SIGNED ) )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT + col0 FROM tab0 WHERE 97 * - col0 NOT BETWEEN col1 + - col1 * col0 AND ( CAST ( NULL AS INTEGER ) )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5197
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE - 15 <= 89 * CAST( col2 AS SIGNED )
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5197
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE - 15 <= 89 * CAST ( col2 AS INTEGER )
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 76 NOT BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT + COUNT( * ) * 66 AS col1 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-5200
SELECT + COUNT ( * ) * 66 AS col1 FROM tab2 AS cor0
----
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 * + col1 col1 FROM tab0 AS cor0
----
-1071
-4131
-51

query I rowsort
SELECT ALL 18 * + col1 + col0 * - col0 FROM tab2 AS cor0 WHERE NOT - col2 * 60 IN ( col2 )
----
-1198
-2710
-4419

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT - col2 <= - 92
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL + MIN( - ( 70 ) ) + - 57 FROM tab1 WHERE NOT ( col2 / col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL + MIN ( - ( 70 ) ) + - 57 FROM tab1 WHERE NOT ( col2 / col0 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 / col0 AS col0 FROM tab1 WHERE NOT + 91 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL + col1 + - + col2 AS col1 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5207
SELECT ALL CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) + col2 BETWEEN ( 65 + 29 * - col0 ) AND - 19 + 37
----

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) + col2 BETWEEN ( 65 + 29 * - col0 ) AND - 19 + 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT MAX( - col1 ) col2 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5208
SELECT MAX ( - col1 ) col2 FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5209
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( - col0 + - CAST( - 31 AS SIGNED ) * 39 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5209
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( - col0 + - CAST ( - 31 AS INTEGER ) * 39 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + - col1 = ( 67 * ( - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 32 * + + 74 FROM tab1
----
2368
2368
2368

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT DISTINCT MIN( ALL + 12 ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT MIN ( ALL + 12 ) FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT - SUM( ALL + 65 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5213
SELECT - SUM ( ALL + 65 ) FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5214
SELECT DISTINCT - CAST( AVG ( col2 ) AS SIGNED ) AS col0 FROM tab2 cor0
----
-40

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT - CAST ( AVG ( col2 ) AS INTEGER ) AS col0 FROM tab2 cor0
----
-40

query I rowsort
SELECT + col0 * col0 + ( - col1 ) FROM tab0 AS cor0
----
144
7548
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT - COUNT( * ) col0 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5216
SELECT - COUNT ( * ) col0 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query II rowsort
SELECT 22, + col2 FROM tab0
----
22
10
22
47
22
99

query I rowsort
SELECT - - ( - 78 ) * + + 91 + + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-7123
-7294
-9307

onlyif mysql # DIV for integer division: 
query I rowsort label-5220
SELECT + col2 DIV - + 95 - + - col1 FROM tab1 AS cor0
----
13
47
5

skipif mysql # not compatible
query I rowsort label-5220
SELECT + col2 / - + 95 - + - col1 FROM tab1 AS cor0
----
13
47
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> NULL OR NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE + col2 <= ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 + col2 AS col0 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT ALL 9 * - col2 * - col1 + - col0 FROM tab2 AS cor0
----
10511
27656
34899

query I rowsort
SELECT DISTINCT + 68 + - 73 + - + col1 FROM tab2 cor0
----
-56
-72
-82

query I rowsort
SELECT ALL 64 + - 85 AS col1 FROM tab1
----
-21
-21
-21

query II rowsort
SELECT ALL + col0 + + - 48 AS col1, col0 + 10 + col0 * col2 AS col1 FROM tab1
----
3
4957
37
5110
43
6289

query I rowsort
SELECT ALL + col0 - - + col1 AS col1 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT - MAX( 73 ) + COUNT( * ) + 93 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-5229
SELECT - MAX ( 73 ) + COUNT ( * ) + 93 FROM tab1
----
23

query I rowsort
SELECT DISTINCT + 8 + col2 + + col0 FROM tab0
----
105
204
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT + COUNT( * ) + - SUM( ALL + + col0 ) FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-5231
SELECT + COUNT ( * ) + - SUM ( ALL + + col0 ) FROM tab0
----
-196

query I rowsort
SELECT - 27 FROM tab0 WHERE - col0 * - col2 > + 43 - 74
----
-27
-27
-27

query I rowsort
SELECT 13 + + + col1 AS col1 FROM tab2
----
64
80
90

query I rowsort
SELECT DISTINCT 98 - - - 99 * - + 15 FROM tab1
----
1583

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5235
SELECT col2 + + - CAST( + col2 AS SIGNED ) DIV + col1 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5235
SELECT col2 + + - CAST ( + col2 AS INTEGER ) / + col1 AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT + - 12 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-12

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 < 84
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query II rowsort label-5238
SELECT + 66, - 41 DIV + col2 * + 91 col0 FROM tab1
----
66
0
66
0
66
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5238
SELECT + 66, - 41 / + col2 * + 91 col0 FROM tab1
----
66
0
66
0
66
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN + col0 AND ( NULL )
----
3

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN + col0 AND ( NULL )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + - col0 col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 col2 FROM tab0 AS cor0
----
94
94
94

query II rowsort
SELECT - 54 AS col0, + col1 AS col2 FROM tab2 AS cor0
----
-54
51
-54
67
-54
77

query I rowsort
SELECT ALL - 63 AS col0 FROM tab1 AS cor0
----
-63
-63
-63

query I rowsort
SELECT + ( 31 ) FROM tab0 AS cor0
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col1 ) col1 FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT ALL - 44, col1 AS col2 FROM tab1 AS cor0
----
-44
14
-44
47
-44
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, + 5 FROM tab1 AS cor0
----
59
5
68
5
96
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 53 col1, 96 FROM tab2
----
53
96
53
96
53
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL BETWEEN + ( + - 64 ) AND ( - col2 + 64 ) )
----

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL IN ( - - ( + + 10 ), col0 * + 8 )
----

query II rowsort
SELECT + - col1 AS col0, + col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 >= - 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 20 AS col0, col0 FROM tab2 cor0
----
20
46
20
64
20
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT - MAX( DISTINCT - 67 ) FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-5254
SELECT - MAX ( DISTINCT - 67 ) FROM tab1 AS cor0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5255
SELECT DISTINCT col0 DIV 86 + ( + + 38 ) AS col2 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT col0 / 86 + ( + + 38 ) AS col2 FROM tab2 AS cor0
----
38

query I rowsort
SELECT ALL col0 + col2 - 93 + col2 AS col2 FROM tab0 AS cor0
----
14
16
202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col0 + + + col1 - col0 col0 FROM tab1 WHERE NULL > - + 81 * - + 58
----

query I rowsort
SELECT - 66 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # DIV for integer division: 
query I rowsort label-5259
SELECT 64 * + 1 + col2 + + col2 DIV ( - + col2 ) + - 42 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
120
31
68

skipif mysql # not compatible
query I rowsort label-5259
SELECT 64 * + 1 + col2 + + col2 / ( - + col2 ) + - 42 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
120
31
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT + 16 * + SUM( col1 ) + + 23 AS col2 FROM tab0 AS cor0
----
1671

skipif mysql # not compatible
query I rowsort label-5260
SELECT + 16 * + SUM ( col1 ) + + 23 AS col2 FROM tab0 AS cor0
----
1671

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT 17 + - COUNT( * ) col0 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5261
SELECT 17 + - COUNT ( * ) col0 FROM tab2 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT + - COUNT( * ) + - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5262
SELECT + - COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT DISTINCT - - SUM( 53 ) FROM tab2 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT - - SUM ( 53 ) FROM tab2 AS cor0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT + 21 + COUNT( * ) AS col2 FROM tab1 cor0
----
24

skipif mysql # not compatible
query I rowsort label-5264
SELECT + 21 + COUNT ( * ) AS col2 FROM tab1 cor0
----
24

query II rowsort
SELECT DISTINCT + col0 * + col2 AS col1, - 45 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
705
-45
870
-45
9603
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - col0 col1 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT 67 * + COUNT( * ) FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-5267
SELECT 67 * + COUNT ( * ) FROM tab1
----
201

query III rowsort
SELECT * FROM tab1 WHERE - 64 IN ( - 23 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= - ( + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 + + 26 + + col0 + - ( - - col2 ) * + + col1 * col0 * col1 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT - ( + col1 ) * + 74 AS col0 FROM tab0 WHERE + ( + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 16 ) IS NOT NULL
----

query II rowsort
SELECT + col1 AS col2, + 94 FROM tab1 AS cor0
----
14
94
47
94
5
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5274
SELECT 14 + - 13 AS col2 FROM tab1 AS cor0 WHERE + 53 / - col0 * - ( col2 ) - - - 22 NOT BETWEEN ( NULL ) AND - col0 * + col2 + + ( + ( + 21 ) ) AND CAST( + col0 AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-5274
SELECT 14 + - 13 AS col2 FROM tab1 AS cor0 WHERE + 53 / - col0 * - ( col2 ) - - - 22 NOT BETWEEN ( NULL ) AND - col0 * + col2 + + ( + ( + 21 ) ) AND CAST ( + col0 AS REAL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT ALL + MAX( DISTINCT + - 36 ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL + MAX ( DISTINCT + - 36 ) FROM tab2 AS cor0
----
-36

query II rowsort
SELECT ALL 70, - 75 * + + col2 + col0 - + - 83 AS col0 FROM tab0 AS cor0
----
70
-3427
70
-580
70
-7245

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + 16 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + 76 / - 51, + col2 * col1 * - + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL < NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 58 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT ALL + COUNT( + + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL + COUNT ( + + col1 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT - ( col0 ) AS col2, + col2 AS col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL + 77 + - 49 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
224

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL + 77 + - 49 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
224

onlyif mysql # DIV for integer division: 
query II rowsort label-5286
SELECT ALL - - 50 * 56 AS col0, col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
2800
0
2800
0
2800
0

skipif mysql # not compatible
query II rowsort label-5286
SELECT ALL - - 50 * 56 AS col0, col2 / + col1 AS col1 FROM tab2 AS cor0
----
2800
0
2800
0
2800
0

query I rowsort
SELECT ALL + col1 * - + 34 AS col2 FROM tab1 cor0
----
-1598
-170
-476

onlyif mysql # DIV for integer division: 
query I rowsort label-5288
SELECT 73 DIV - + col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5288
SELECT 73 / - + col1 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT ALL col2 + - - 53 + - col2 / - - CAST( NULL AS SIGNED ) * - 95 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL col2 + - - 53 + - col2 / - - CAST ( NULL AS INTEGER ) * - 95 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 - ( - + col0 ) + - col0 + + col1 + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - - ( - ( - - 24 ) ) AS col0 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL col2 - + + 65 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5293
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) / 60 + + 91 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) / 60 + + 91 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT MIN( ALL - + 51 ) * + 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-2448

skipif mysql # not compatible
query I rowsort label-5294
SELECT MIN ( ALL - + 51 ) * + 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-2448

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL - COUNT( * ) + - + 72 AS col2 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL - COUNT ( * ) + - + 72 AS col2 FROM tab0
----
-75

query I rowsort
SELECT + ( - 78 ) AS col0 FROM tab0 AS cor0
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT DISTINCT + COUNT( * ) FROM tab1 cor0 WHERE 75 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT + COUNT ( * ) FROM tab1 cor0 WHERE 75 IS NOT NULL
----
3

query I rowsort
SELECT ALL ( - + 64 ) FROM tab2 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL + 28 + - + MIN( DISTINCT 87 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL + 28 + - + MIN ( DISTINCT 87 ) AS col0 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT + 94 - - - col1 AS col2 FROM tab1 cor0
----
47
80
89

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) IN ( + col2 / - col1 * - + col0, col2 * - 63 + - 97 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5302
SELECT 36 DIV + 85 * 32 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5302
SELECT 36 / + 85 * 32 FROM tab1
----
0
0
0

query II rowsort
SELECT - ( col0 ) AS col2, - col2 FROM tab1
----
-51
-96
-85
-59
-91
-68

query I rowsort
SELECT DISTINCT - - 20 * + col0 * + col0 AS col0 FROM tab2 AS cor0
----
112500
42320
81920

onlyif mysql # aggregate syntax: 
query II rowsort label-5305
SELECT ALL + 57 AS col2, + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
57
9

skipif mysql # not compatible
query II rowsort label-5305
SELECT ALL + 57 AS col2, + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
57
9

query I rowsort
SELECT + 58 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col1 * - + 59 AS col2 FROM tab0
----
-1239
-4779
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5308
SELECT ALL ( + col2 ) + - CAST( NULL AS SIGNED ) + + 54 + + col2 - - + col2 + - col2, col0 FROM tab0 AS cor0 WHERE col1 <> - col2 / - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-5308
SELECT ALL ( + col2 ) + - CAST ( NULL AS INTEGER ) + + 54 + + col2 - - + col2 + - col2, col0 FROM tab0 AS cor0 WHERE col1 <> - col2 / - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - + col0 * + 3 FROM tab0 AS cor0
----
-261
-291
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT ALL + COUNT( * ) * + 80 FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL + COUNT ( * ) * + 80 FROM tab2 AS cor0
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5311
SELECT MIN( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 + + col0 + + 70 * - 54 AS col0 FROM tab0 AS cor0
----
-3703
-3782
-3812

query I rowsort
SELECT + + ( - col2 ) * + 67 + - col1 AS col1 FROM tab2 AS cor0
----
-1592
-2757
-3953

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < - ( - ( + col1 ) ) - - 86
----

query III rowsort
SELECT * FROM tab1 WHERE + 15 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE + - col2 + + - col0 <= - col0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT - COUNT( * ) + + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5317
SELECT - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2
----
0

query I rowsort
SELECT - ( col2 ) * + col0 * + + 57 + col2 FROM tab0
----
-40138
-49580
-547272

query I rowsort
SELECT ALL + 44 + col0 FROM tab0
----
131
141
59

query I rowsort
SELECT DISTINCT + col1 * + - ( - + col1 ) FROM tab1 cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT ALL + COUNT( * ) * - + 39 AS col0 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL + COUNT ( * ) * - + 39 AS col0 FROM tab0 AS cor0
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5322
SELECT - COUNT( * ) DIV + 22 + - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5322
SELECT - COUNT ( * ) / + 22 + - COUNT ( * ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * + 44 col1, col0 col1 FROM tab0 AS cor0
----
2068
15
4356
97
440
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT ALL + COUNT( * ) * + 47 * COUNT( * ) FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
423

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL + COUNT ( * ) * + 47 * COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
423

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5325
SELECT * FROM tab0 AS cor0 WHERE col2 NOT IN ( + + col0 * - - CAST( NULL AS SIGNED ) + - ( + CAST( - ( + col0 ) AS DECIMAL ) ) - + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5325
SELECT * FROM tab0 AS cor0 WHERE col2 NOT IN ( + + col0 * - - CAST ( NULL AS INTEGER ) + - ( + CAST ( - ( + col0 ) AS REAL ) ) - + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT DISTINCT - COUNT( DISTINCT - 90 ) + + - ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
8

skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT - COUNT ( DISTINCT - 90 ) + + - ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT ALL MIN( ALL - 36 ) - + MIN( + col2 ) + - COUNT( DISTINCT col2 ) + + + COUNT( * ) AS col0 FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL MIN ( ALL - 36 ) - + MIN ( + col2 ) + - COUNT ( DISTINCT col2 ) + + + COUNT ( * ) AS col0 FROM tab1
----
-95

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE 24 IS NOT NULL
----
23
40
58

query I rowsort
SELECT - - 3 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5330
SELECT DISTINCT ( - CAST( col2 AS SIGNED ) ) - + col1 DIV - col1 FROM tab0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT ( - CAST ( col2 AS INTEGER ) ) - + col1 / - col1 FROM tab0
----
-46
-9
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-5331
SELECT ALL COUNT( * ), 63 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( col2 / + + 19 * - 7 )
----
0
63

skipif mysql # not compatible
query II rowsort label-5331
SELECT ALL COUNT ( * ), 63 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( col2 / + + 19 * - 7 )
----
0
63

query I rowsort
SELECT DISTINCT - col2 + - ( 29 ) + + 50 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5333
SELECT col1 / + col1 / - - CAST( NULL AS SIGNED ) / col1 col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5333
SELECT col1 / + col1 / - - CAST ( NULL AS INTEGER ) / col1 col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5334
SELECT DISTINCT + 10 DIV col0 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT + 10 / col0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 60 * + - col1 AS col2 FROM tab1 AS cor0
----
2820
300
840

query I rowsort
SELECT + 65 * + 84 * - col2 + + col1 AS col2 FROM tab1 AS cor0
----
-322135
-371233
-524146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col2 FROM tab1 AS cor0 WHERE NOT + 72 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab1 WHERE - col2 - - 92 + col0 + col0 BETWEEN col2 AND + 19
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5339
SELECT DISTINCT - col0 AS col2, 66 DIV col0 FROM tab0
----
-15
4
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-5339
SELECT DISTINCT - col0 AS col2, 66 / col0 FROM tab0
----
-15
4
-87
0
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE NULL < NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5341
SELECT DISTINCT col2 AS col2, col0 DIV 27 FROM tab1
----
59
3
68
3
96
1

skipif mysql # not compatible
query II rowsort label-5341
SELECT DISTINCT col2 AS col2, col0 / 27 FROM tab1
----
59
3
68
3
96
1

query II rowsort
SELECT 93, 86 * 64 AS col0 FROM tab1
----
93
5504
93
5504
93
5504

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5343
SELECT ALL col0 AS col0, - col2 + - + col0 * - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
15
658
87
860
97
9504

skipif mysql # not compatible
query II rowsort label-5343
SELECT ALL col0 AS col0, - col2 + - + col0 * - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
15
658
87
860
97
9504

onlyif mysql # DIV for integer division: 
query I rowsort label-5344
SELECT 2 DIV - 58 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5344
SELECT 2 / - 58 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5345
SELECT + 29 DIV 25 + - 38 FROM tab2
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-5345
SELECT + 29 / 25 + - 38 FROM tab2
----
-37
-37
-37

query I rowsort
SELECT ( - ( - ( - col0 ) ) ) AS col0 FROM tab0 AS cor0 WHERE - col1 + + col2 * - + ( - - 78 ) IS NULL
----

query I rowsort
SELECT ALL + 72 * - col0 AS col0 FROM tab2
----
-3312
-4608
-5400

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5348
SELECT CAST( - - col1 AS SIGNED ) DIV - 62 + - col1 * - 58 * - col1 * 66 AS col2 FROM tab2
----
-17183893
-22696213
-9956628

skipif mysql # not compatible
query I rowsort label-5348
SELECT CAST ( - - col1 AS INTEGER ) / - 62 + - col1 * - 58 * - col1 * 66 AS col2 FROM tab2
----
-17183893
-22696213
-9956628

query I rowsort
SELECT ALL col0 * ( - - 0 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 + + col1 - - col2 + + - col0 * - 0 * - + col2 + - col2 * col0 FROM tab1 AS cor0
----
-4800
-4956
-6120

query I rowsort
SELECT DISTINCT col0 * + 49 - + col0 FROM tab2
----
2208
3072
3600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5352
SELECT MAX( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5352
SELECT MAX ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL - MAX( + - col0 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL - MAX ( + - col0 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-153

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5355
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( 95 AS SIGNED ) + + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5355
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( 95 AS INTEGER ) + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5356
SELECT DISTINCT - - ( + 42 ) col0, - MIN( + 25 ) AS col1 FROM tab2 AS cor0
----
42
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5356
SELECT DISTINCT - - ( + 42 ) col0, - MIN ( + 25 ) AS col1 FROM tab2 AS cor0
----
42
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 27 * 48 col1 FROM tab0 AS cor0
----
128304
12960
60912

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * - col0 NOT IN ( col2 + col1 * - + col1, col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5359
SELECT + ( - 89 ) DIV + - col2 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5359
SELECT + ( - 89 ) / + - col2 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5360
SELECT - CAST( + 85 AS SIGNED ) col0, col0 FROM tab0 cor0
----
-85
15
-85
87
-85
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5360
SELECT - CAST ( + 85 AS INTEGER ) col0, col0 FROM tab0 cor0
----
-85
15
-85
87
-85
97

query II rowsort
SELECT ALL col0, - ( - col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5362
SELECT + CAST( NULL AS SIGNED ) * + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT + CAST ( NULL AS INTEGER ) * + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + ( ( col1 ) ) ) FROM tab0
----
1
21
81

query I rowsort
SELECT - col2 * + ( - col2 ) AS col1 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT ALL + COUNT( * ) * 79 AS col0 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL + COUNT ( * ) * 79 AS col0 FROM tab0
----
237

onlyif mysql # DIV for integer division: 
query I rowsort label-5366
SELECT ALL + col1 DIV ( ( - col0 ) ) col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5366
SELECT ALL + col1 / ( ( - col0 ) ) col1 FROM tab2
----
-1
-1
0

query I rowsort
SELECT - 91 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT - MIN( - - col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5368
SELECT - MIN ( - - col2 ) FROM tab1 cor0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5369
SELECT - + CAST( NULL AS DECIMAL ) AS col0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5369
SELECT - + CAST ( NULL AS REAL ) AS col0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL
3

query II rowsort
SELECT DISTINCT + col1 AS col1, col0 + - col1 * - col0 * - - 23 FROM tab0 AS cor0
----
1
2328
21
42108
81
27960

query I rowsort
SELECT - AVG ( ALL + col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - 15 * col1 + - + col0 AS col0 FROM tab0 AS cor0
----
-112
-1230
-402

query I rowsort
SELECT + col2 + + 28 AS col0 FROM tab2 AS cor0
----
51
68
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT SUM( - 6 ) * - 48 + + ( - + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
861

skipif mysql # not compatible
query I rowsort label-5374
SELECT SUM ( - 6 ) * - 48 + + ( - + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
861

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL + 11 + - MIN( - col2 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL + 11 + - MIN ( - col2 ) FROM tab2 AS cor0
----
69

query I rowsort
SELECT ALL - - col0 + - 19 - - - col2 + - + 71 FROM tab1 AS cor0
----
-135
-64
-67

query I rowsort
SELECT - col2 + + 31 FROM tab2
----
-27
-9
8

query I rowsort
SELECT DISTINCT col0 * + + col2 + + col2 + + col2 * 6 * - col0 FROM tab2
----
-12760
-21692
-5267

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5379
SELECT * FROM tab2 WHERE + col0 BETWEEN - + CAST( NULL AS SIGNED ) * 11 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5379
SELECT * FROM tab2 WHERE + col0 BETWEEN - + CAST ( NULL AS INTEGER ) * 11 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * + col0 - + + col1 FROM tab0
----
624
849
9602

query I rowsort
SELECT + 90 AS col1 FROM tab2 WHERE + + ( col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5382
SELECT ALL + col0 - col0 + + col2 DIV + + 14 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL + col0 - col0 + + col2 / + + 14 FROM tab2
----
1
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT MIN( DISTINCT + + ( - col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5383
SELECT MIN ( DISTINCT + + ( - col0 ) ) FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 + + + 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 13 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-13

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - - 99 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5388
SELECT - - CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5388
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, col1 + - 29 FROM tab1 cor0
----
59
-24
68
18
96
-15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 64 * col2 IS NOT NULL
----

query I rowsort
SELECT + - col1 * + 10 * col2 AS col0 FROM tab2 AS cor0
----
-11730
-30800
-38860

onlyif mysql # aggregate syntax: 
query II rowsort label-5392
SELECT - + SUM( DISTINCT + col2 ) * - + 54 AS col0, - COUNT( * ) FROM tab0 AS cor0
----
8424
-3

skipif mysql # not compatible
query II rowsort label-5392
SELECT - + SUM ( DISTINCT + col2 ) * - + 54 AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
8424
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > 80 * - 82
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + - col0 * 12 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col0 FROM tab1
----
23
23
23

query I rowsort
SELECT DISTINCT - col1 * + col1 * - + col1 * - col0 AS col0 FROM tab0
----
-7971615
-805707
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5397
SELECT DISTINCT col2 DIV - 76 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT col2 / - 76 AS col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 38 * - - col1 * + col1 col0 FROM tab0
----
-11717946
-167580
-3762

query I rowsort
SELECT 98 * - col0 AS col0 FROM tab1
----
-4998
-8330
-8918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 col1 FROM tab0 AS cor0
----
96

query I rowsort
SELECT ALL + 12 + + ( - 20 ) AS col0 FROM tab1 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT MAX( DISTINCT - 37 ) * - ( COUNT( * ) ) + + 67 FROM tab1 WHERE - 94 = - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5402
SELECT MAX ( DISTINCT - 37 ) * - ( COUNT ( * ) ) + + 67 FROM tab1 WHERE - 94 = - 64
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5403
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + COUNT( * ) + - 69 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - 69 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL 45 * + 71 - - - col1 AS col2 FROM tab1
----
3148
3181
3190

query I rowsort
SELECT ALL + 27 - 41 + + + col2 FROM tab0
----
-4
33
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5406
SELECT DISTINCT col2 + + CAST( + ( + + col2 ) AS SIGNED ) - + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT col2 + + CAST ( + ( + + col2 ) AS INTEGER ) - + + col2 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE - 91 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 58, col2 FROM tab0
----
58
10
58
47
58
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT 4 + - + COUNT( * ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5409
SELECT 4 + - + COUNT ( * ) AS col2 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - - 56 col2, col2 AS col0 FROM tab2
----
107
23
123
58
133
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT - MAX( ALL col0 ) FROM tab2 AS cor0 WHERE + 8 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT - MAX ( ALL col0 ) FROM tab2 AS cor0 WHERE + 8 > NULL
----
NULL

query I rowsort
SELECT ALL - 78 * 89 AS col1 FROM tab0
----
-6942
-6942
-6942

onlyif mysql # DIV for integer division: 
query I rowsort label-5413
SELECT - col2 DIV - 92 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5413
SELECT - col2 / - 92 FROM tab1
----
0
0
1

query I rowsort
SELECT 70 + - - col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT DISTINCT + col1 + col1 FROM tab2 AS cor0 WHERE - ( + - CAST( + 9 AS SIGNED ) ) IS NOT NULL
----
102
134
154

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT + col1 + col1 FROM tab2 AS cor0 WHERE - ( + - CAST ( + 9 AS INTEGER ) ) IS NOT NULL
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL + MIN( - 65 ) FROM tab2 AS cor0 WHERE 59 IS NOT NULL
----
-65

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL + MIN ( - 65 ) FROM tab2 AS cor0 WHERE 59 IS NOT NULL
----
-65

query I rowsort
SELECT ALL 9 AS col2 FROM tab2 cor0
----
9
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND ( + 31 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT ALL - - SUM( + col2 ) col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5419
SELECT ALL - - SUM ( + col2 ) col1 FROM tab1 AS cor0
----
223

query I rowsort
SELECT - + 26 FROM tab1 cor0 WHERE NOT - col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5421
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 30, + col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5421
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 30, + col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query II rowsort
SELECT 28 * - col0 * - col1 AS col1, - ( - + col1 ) + - 43 AS col2 FROM tab0 AS cor0
----
2716
-42
34020
38
51156
-22

query I rowsort
SELECT DISTINCT 99 * + col0 AS col2 FROM tab2 AS cor0
----
4554
6336
7425

query I rowsort
SELECT col2 * + col2 * + 58 AS col0 FROM tab1
----
201898
268192
534528

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT DISTINCT - COUNT( * ) * + COUNT( + col0 ) FROM tab1 WHERE NOT col0 BETWEEN - col1 * + 73 * - col1 AND ( - col0 * 71 )
----
-9

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT - COUNT ( * ) * + COUNT ( + col0 ) FROM tab1 WHERE NOT col0 BETWEEN - col1 * + 73 * - col1 AND ( - col0 * 71 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT SUM( ALL - 43 ) * - 57 * + + 84 FROM tab2
----
617652

skipif mysql # not compatible
query I rowsort label-5426
SELECT SUM ( ALL - 43 ) * - 57 * + + 84 FROM tab2
----
617652

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 43 col2, - col2 + - col1 FROM tab0
----
43
-100
43
-128
43
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT COUNT( * ) + + 37 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-5428
SELECT COUNT ( * ) + + 37 FROM tab2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5429
SELECT - + CAST( + 92 AS SIGNED ) col2 FROM tab0 cor0
----
-92
-92
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5429
SELECT - + CAST ( + 92 AS INTEGER ) col2 FROM tab0 cor0
----
-92
-92
-92

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL = - col2 + col2 * - 53
----

query I rowsort
SELECT ALL + 14 * ( - col1 ) + + col2 * + + 40 FROM tab0 AS cor0
----
106
3946
746

query I rowsort
SELECT ( + 1 ) FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5433
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + col2 >= NULL
----
0

query I rowsort
SELECT DISTINCT + - 59 * - col2 * + - col2 + col0 * + col1 FROM tab2 cor0
----
-193451
-28865
-89472

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT DISTINCT + SUM( 22 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
198

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT + SUM ( 22 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
198

query I rowsort
SELECT - ( - 77 ) * - + 71 FROM tab1
----
-5467
-5467
-5467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 * - + ( - col1 ) + + col1 col1 FROM tab0
----
3483
43
903

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 < col2
----

query I rowsort
SELECT ALL + + ( 61 ) AS col2 FROM tab1 AS cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT COUNT( * ) + 95 AS col0 FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN + + col0 + - 22 AND NULL
----
95

skipif mysql # not compatible
query I rowsort label-5440
SELECT COUNT ( * ) + 95 AS col0 FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN + + col0 + - 22 AND NULL
----
95

query I rowsort
SELECT col1 + 49 + - col1 * - col2 * + + 43 * - col0 AS col1 FROM tab2 AS cor0
----
-12532234
-2320094
-8476034

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT COUNT( * ) + - - COUNT( * ) * + 33 * - + 23 col2 FROM tab1 AS cor0
----
-2274

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5442
SELECT COUNT ( * ) + - - COUNT ( * ) * + 33 * - + 23 col2 FROM tab1 AS cor0
----
-2274

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT MIN( DISTINCT + + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5443
SELECT MIN ( DISTINCT + + col0 ) FROM tab0
----
15

query I rowsort
SELECT DISTINCT + col0 * col2 - + col1 * + + col2 + + + col1 + + - 27 FROM tab2
----
-470
-91
504

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE - 0 <= + col0 - - col0 + col1
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT - COUNT( * ) - 92 AS col1 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-5446
SELECT - COUNT ( * ) - 92 AS col1 FROM tab0 AS cor0
----
-95

query I rowsort
SELECT + col2 * + ( 92 ) FROM tab0 cor0
----
4324
9108
920

query I rowsort
SELECT ALL - 61 * col2 * - + col1 AS col1 FROM tab0 AS cor0
----
12810
232227
6039

query I rowsort
SELECT DISTINCT - + 15 * - + col0 FROM tab0 AS cor0
----
1305
1455
225

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 17 ) NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL + col2 * 96 * - col0 FROM tab0 AS cor0
----
-67680
-83520
-921888

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5452
SELECT DISTINCT + ( + + CAST( NULL AS DECIMAL ) ) / COUNT( DISTINCT - + col0 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5452
SELECT DISTINCT + ( + + CAST ( NULL AS REAL ) ) / COUNT ( DISTINCT - + col0 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT - COUNT( 82 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5453
SELECT - COUNT ( 82 ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5454
SELECT DISTINCT + ( - + 37 ) col2, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-37
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5454
SELECT DISTINCT + ( - + 37 ) col2, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-37
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5455
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * col1 + + 84 - - CAST( NULL AS SIGNED ) / col0 NOT BETWEEN ( - col2 ) AND - CAST( - 40 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5455
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * col1 + + 84 - - CAST ( NULL AS INTEGER ) / col0 NOT BETWEEN ( - col2 ) AND - CAST ( - 40 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5456
SELECT CAST( - - COUNT( col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5456
SELECT CAST ( - - COUNT ( col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT DISTINCT + MIN( DISTINCT - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT + MIN ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + col1 IS NOT NULL
----

query I rowsort
SELECT col2 * + + 38 FROM tab2
----
1520
2204
874

query I rowsort
SELECT ALL 95 + - col2 FROM tab2
----
37
55
72

query I rowsort
SELECT DISTINCT + col1 * 96 * + - col0 * + 50 FROM tab0
----
-465600
-5832000
-8769600

query I rowsort
SELECT col0 + + col1 + col2 AS col0 FROM tab1 WHERE NOT + 40 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 col0 FROM tab2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT + - MAX( DISTINCT - col2 ) + + 73 AS col0 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5464
SELECT + - MAX ( DISTINCT - col2 ) + + 73 AS col0 FROM tab2 AS cor0
----
96

query I rowsort
SELECT + col2 * - 19 * + 45 + ( + 39 ) + + + col0 * - col1 FROM tab0 AS cor0
----
-10338
-41361
-84703

query I rowsort
SELECT - 87 + col2 FROM tab1
----
-19
-28
9

query I rowsort
SELECT DISTINCT - 19 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-19

query I rowsort
SELECT DISTINCT - + 63 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-63

query I rowsort
SELECT col0 * - + 62 AS col1 FROM tab0
----
-5394
-6014
-930

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + col1 + + - 75 + col1 * + + col1
----

query I rowsort
SELECT ( - ( + 63 ) ) AS col2 FROM tab2
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT ALL - COUNT( * ) + + + 16 - 83 AS col1 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL - COUNT ( * ) + + + 16 - 83 AS col1 FROM tab1 AS cor0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5473
SELECT ALL - + 73 * - CAST( SUM( DISTINCT 19 ) AS SIGNED ) + COUNT( * ) col0 FROM tab0 AS cor0
----
1390

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5473
SELECT ALL - + 73 * - CAST ( SUM ( DISTINCT 19 ) AS INTEGER ) + COUNT ( * ) col0 FROM tab0 AS cor0
----
1390

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 70 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT - COUNT( * ) FROM tab1 cor0 WHERE ( NULL ) IN ( col2 * + - 96 )
----
0

skipif mysql # not compatible
query I rowsort label-5475
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE ( NULL ) IN ( col2 * + - 96 )
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT MAX( - col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-5477
SELECT MAX ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5478
SELECT * FROM tab0 WHERE - + 9 * CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) - col2 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5478
SELECT * FROM tab0 WHERE - + 9 * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) - col2 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 53 + col1 FROM tab2
----
104
120
130

query I rowsort
SELECT 78 + + col1 AS col1 FROM tab0
----
159
79
99

query I rowsort
SELECT ALL - 78 FROM tab2 WHERE ( - col1 ) IS NOT NULL
----
-78
-78
-78

query I rowsort
SELECT + col1 * + col1 * - + col0 AS col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5483
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5483
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = CAST ( col0 AS INTEGER )
----

query II rowsort
SELECT - - col2, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT - ( COUNT( ALL col2 ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5485
SELECT - ( COUNT ( ALL col2 ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 * - - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5486
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 * - - col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL + col0 * col0 * + + 21 FROM tab0 cor0
----
158949
197589
4725

query II rowsort
SELECT ALL - 22 AS col0, 40 FROM tab2 AS cor0
----
-22
40
-22
40
-22
40

query I rowsort
SELECT DISTINCT + + col0 + - - 14 FROM tab2 AS cor0
----
60
78
89

query I rowsort
SELECT - 65 + - col2 AS col0 FROM tab1 AS cor0
----
-124
-133
-161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5491
SELECT + CAST( - + col0 AS SIGNED ) FROM tab0 WHERE NOT col2 * - - col0 IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5491
SELECT + CAST ( - + col0 AS INTEGER ) FROM tab0 WHERE NOT col2 * - - col0 IS NULL
----
-15
-87
-97

query II rowsort
SELECT ALL 77 + - col0, + col2 * - 78 + - col1 AS col0 FROM tab1
----
-14
-5351
-8
-4607
26
-7502

query I rowsort
SELECT + col1 - col1 FROM tab2 WHERE NULL <> col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 54 col1 FROM tab0 WHERE NOT - ( - col2 ) + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 88 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 85 col2, 44 * col0 + + col2 AS col0 FROM tab2
----
85
2047
85
2856
85
3358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5497
SELECT - col0 + - CAST( 30 AS SIGNED ) col0 FROM tab0
----
-117
-127
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5497
SELECT - col0 + - CAST ( 30 AS INTEGER ) col0 FROM tab0
----
-117
-127
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT ALL - MAX( + col1 ) / - 90 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( - - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL - MAX ( + col1 ) / - 90 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( - - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT - COUNT( + col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5499
SELECT - COUNT ( + col0 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT - - ( - SUM( 42 ) ) FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-5501
SELECT - - ( - SUM ( 42 ) ) FROM tab2 AS cor0
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5502
SELECT CAST( NULL AS SIGNED ) - - + col1 / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT CAST ( NULL AS INTEGER ) - - + col1 / col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * + col2 + - 95 + - col2 * - - col2 - - col0 * 64 + + col2 col0 FROM tab2 AS cor0
----
-1965
1814
841

query I rowsort
SELECT DISTINCT - 25 - + + col2 * - 91 * col0 AS col2 FROM tab1 AS cor0
----
445511
456340
563083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5505
SELECT - 66 + - CAST( NULL AS SIGNED ) * + 78 * + SUM( ALL col0 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5505
SELECT - 66 + - CAST ( NULL AS INTEGER ) * + 78 * + SUM ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * 54 BETWEEN - 97 * ( + col0 ) AND NULL
----

query I rowsort
SELECT - col2 + ( 1 ) + - col2 * - col1 AS col0 FROM tab1 AS cor0
----
1249
237
3129

query I rowsort
SELECT - + ( + col0 ) + + col2 * + - col2 FROM tab2 AS cor0
----
-1664
-3439
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT + COUNT( * ) * + 95 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-5509
SELECT + COUNT ( * ) * + 95 FROM tab2 AS cor0
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5510
SELECT * FROM tab2 AS cor0 WHERE 70 - - CAST( - 44 AS SIGNED ) >= + col0
----

skipif mysql # not compatible
query III rowsort label-5510
SELECT * FROM tab2 AS cor0 WHERE 70 - - CAST ( - 44 AS INTEGER ) >= + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 <= ( + col0 )
----

query I rowsort
SELECT ALL + 65 * col0 AS col1 FROM tab1
----
3315
5525
5915

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT MAX( + ( + 21 ) ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-5513
SELECT MAX ( + ( + 21 ) ) FROM tab2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5514
SELECT DISTINCT + col2 DIV col1 * - 90 col2 FROM tab0
----
-8910
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5514
SELECT DISTINCT + col2 / col1 * - 90 col2 FROM tab0
----
-8910
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5515
SELECT ALL + 38 DIV + 26 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL + 38 / + 26 AS col1 FROM tab2
----
1
1
1

query II rowsort
SELECT ALL + 52, 55 AS col2 FROM tab2 AS cor0
----
52
55
52
55
52
55

query II rowsort
SELECT ALL - 55, + col0 AS col2 FROM tab1 AS cor0
----
-55
51
-55
85
-55
91

query I rowsort
SELECT DISTINCT - - 28 * - col0 AS col2 FROM tab1 AS cor0
----
-1428
-2380
-2548

query I rowsort
SELECT DISTINCT - - 75 AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT 53 * + COUNT( ALL + 57 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
477

skipif mysql # not compatible
query I rowsort label-5520
SELECT 53 * + COUNT ( ALL + 57 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
477

query I rowsort
SELECT col0 + col1 AS col1 FROM tab2 cor0 WHERE NOT - col2 IS NULL
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT + ( - + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5522
SELECT + ( - + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT - - ( - - MIN( + col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5523
SELECT - - ( - - MIN ( + col2 ) ) FROM tab0 AS cor0
----
10

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 <> + col2 * - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * + col0 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-158949
-18225
-9409

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5526
SELECT * FROM tab0 AS cor0 WHERE ( + col1 ) < - CAST( + col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5526
SELECT * FROM tab0 AS cor0 WHERE ( + col1 ) < - CAST ( + col0 AS REAL )
----

query I rowsort
SELECT ALL col0 + 31 FROM tab0
----
118
128
46

query I rowsort
SELECT DISTINCT - 71 + + col0 AS col1 FROM tab2
----
-25
-7
4

query II rowsort
SELECT DISTINCT col0, - col1 * + + 0 AS col2 FROM tab1
----
51
0
85
0
91
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5530
SELECT ALL COUNT( * ) * COUNT( * ) + + 14 col1, 25 AS col0 FROM tab2 WHERE + + 90 + col1 > - CAST( NULL AS SIGNED )
----
14
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5530
SELECT ALL COUNT ( * ) * COUNT ( * ) + + 14 col1, 25 AS col0 FROM tab2 WHERE + + 90 + col1 > - CAST ( NULL AS INTEGER )
----
14
25

query I rowsort
SELECT 81 FROM tab2 WHERE NULL BETWEEN + + col2 / - 80 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 65 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 44 + + + col1 FROM tab0
----
125
45
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + 11 col0 FROM tab1
----
102
62
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT col0 + col1 + + CAST( NULL AS SIGNED ) * col2 * col0 + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT col0 + col1 + + CAST ( NULL AS INTEGER ) * col2 * col0 + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5536
SELECT ALL col1 * - col0 * - - 96 * - CAST( ( - - 3 ) AS SIGNED ) FROM tab2
----
1419264
1447200
675648

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL col1 * - col0 * - - 96 * - CAST ( ( - - 3 ) AS INTEGER ) FROM tab2
----
1419264
1447200
675648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 56 col1 FROM tab2 AS cor0
----
102
120
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT + 73 * + + ( - CAST( NULL AS SIGNED ) ) + + + 89 + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5538
SELECT + 73 * + + ( - CAST ( NULL AS INTEGER ) ) + + + 89 + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - col1 ) * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + + 42 - - 64 col2 FROM tab0
----
59
7
96

query I rowsort
SELECT DISTINCT + + col2 - 52 + col0 AS col1 FROM tab2 AS cor0
----
17
52
81

query I rowsort
SELECT - col1 - - 66 AS col2 FROM tab1 AS cor0
----
19
52
61

query I rowsort
SELECT ALL col0 - - 50 FROM tab1 AS cor0
----
101
135
141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5544
SELECT DISTINCT col1, CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

skipif mysql # not compatible
query II rowsort label-5544
SELECT DISTINCT col1, CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < 52
----

query I rowsort
SELECT ALL - 56 AS col1 FROM tab2 cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT + 5 * + ( + col0 ) AS col1 FROM tab0
----
435
485
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT CAST( NULL AS SIGNED ) / + - ( - 97 ) * + col1 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5548
SELECT CAST ( NULL AS INTEGER ) / + - ( - 97 ) * + col1 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT ALL MAX( DISTINCT + + ( - col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL MAX ( DISTINCT + + ( - col1 ) ) FROM tab0
----
-1

query I rowsort
SELECT 57 * + - col0 FROM tab0 AS cor0
----
-4959
-5529
-855

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 68 <> ( + col0 )
----

query I rowsort
SELECT 87 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query II rowsort
SELECT DISTINCT + 57 AS col0, col0 AS col1 FROM tab0
----
57
15
57
87
57
97

query I rowsort
SELECT - - col2 / 54 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 56 >= - + col0
----
64
77
40
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5556
SELECT - - 90 + + col2 * + - col0 AS col0, CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-4806
-14
-4925
-5
-6098
-47

skipif mysql # not compatible
query II rowsort label-5556
SELECT - - 90 + + col2 * + - col0 AS col0, CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-4806
-14
-4925
-5
-6098
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-5557
SELECT 76 DIV col0 + + col1 + + - col0 AS col2, - col1 * - + col0 FROM tab0 AS cor0
----
-66
1827
-96
97
71
1215

skipif mysql # not compatible
query II rowsort label-5557
SELECT 76 / col0 + + col1 + + - col0 AS col2, - col1 * - + col0 FROM tab0 AS cor0
----
-66
1827
-96
97
71
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT ALL MAX( ALL + 25 ) + COUNT( + col1 ) FROM tab1 cor0
----
28

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL MAX ( ALL + 25 ) + COUNT ( + col1 ) FROM tab1 cor0
----
28

query I rowsort
SELECT DISTINCT + col1 + col0 - + col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - col1 + + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-102
-134
-154

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 96 AND col2
----

query I rowsort
SELECT 16 + + 24 AS col1 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT DISTINCT + col1 + 56 FROM tab1 AS cor0
----
103
61
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT DISTINCT 52 + + + 86 DIV + - col2 AS col1 FROM tab1
----
51
52

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT 52 + + + 86 / + - col2 AS col1 FROM tab1
----
51
52

query I rowsort
SELECT 41 * + ( + - 51 ) FROM tab2
----
-2091
-2091
-2091

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5566
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) IN ( col1 * - 1 - 3 )
----

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( col1 * - 1 - 3 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5567
SELECT MAX( + col2 ) AS col1, + COUNT( * ) FROM tab0 AS cor0
----
99
3

skipif mysql # not compatible
query II rowsort label-5567
SELECT MAX ( + col2 ) AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
99
3

query I rowsort
SELECT ALL + col0 + ( - - 31 ) AS col1 FROM tab2 AS cor0
----
106
77
95

query I rowsort
SELECT DISTINCT - 32 FROM tab0 AS cor0 WHERE ( NULL ) <= + col0 * - ( - col1 )
----

query II rowsort
SELECT - + 4, - 49 + - 73 + + + ( 56 ) AS col2 FROM tab1 AS cor0
----
-4
-66
-4
-66
-4
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT DISTINCT + + MIN( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5571
SELECT DISTINCT + + MIN ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT ALL - 42 FROM tab0 AS cor0 WHERE NOT col2 + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL - 42 FROM tab0 AS cor0 WHERE NOT col2 + - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5573
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND - - col0 / col2
----

skipif mysql # not compatible
query III rowsort label-5573
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND - - col0 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT MIN( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5574
SELECT MIN ( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT DISTINCT - - ( - + COUNT( * ) ) col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5575
SELECT DISTINCT - - ( - + COUNT ( * ) ) col0 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ALL 43 * SUM( - col2 ) AS col0 FROM tab0
----
-6708

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL 43 * SUM ( - col2 ) AS col0 FROM tab0
----
-6708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col2 + + col2 + ( + + col0 ) FROM tab2
----
23
92
40
144
58
191

query II rowsort
SELECT DISTINCT + col1 AS col0, 39 FROM tab0
----
1
39
21
39
81
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5579
SELECT - ( CAST( col0 AS SIGNED ) ) AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5579
SELECT - ( CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - 36 AS col1 FROM tab1 cor0 WHERE col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 76 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5582
SELECT col0 DIV - - ( - col1 ) + + 51 FROM tab2
----
50
51
51

skipif mysql # not compatible
query I rowsort label-5582
SELECT col0 / - - ( - col1 ) + + 51 FROM tab2
----
50
51
51

query I rowsort
SELECT col2 * 48 FROM tab1 AS cor0
----
2832
3264
4608

query II rowsort
SELECT DISTINCT + col1 * - col2 AS col0, col2 + + col0 AS col2 FROM tab1 AS cor0
----
-1344
147
-295
144
-3196
159

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5585
SELECT DISTINCT COUNT( CAST( NULL AS DECIMAL ) ) + + - COUNT( * ) * - - 74 AS col1 FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT COUNT ( CAST ( NULL AS REAL ) ) + + - COUNT ( * ) * - - 74 AS col1 FROM tab0 AS cor0
----
-222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5586
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + AVG ( + col2 ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + AVG ( + col2 ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5587
SELECT 10 * + - COUNT( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5587
SELECT 10 * + - COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT col2 * + 24 AS col1 FROM tab1
----
1416
163