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
1632
2304

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - - col1 + + - col0 * + - col1 col1 FROM tab1
----
4415
515
779

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 - + 32 + col2 col1 FROM tab1
----
-3
-31
-40

query II rowsort
SELECT ALL col1 - col2 + 85, - 83 * col1 AS col2 FROM tab2
----
113
-4233
122
-6391
94
-5561

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

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

query I rowsort
SELECT col2 + - - col1 AS col2 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT 95 * col2 FROM tab1
----
5605
6460
9120

query I rowsort
SELECT DISTINCT 34 - + ( - col2 ) AS col2 FROM tab2
----
57
74
92

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab1 WHERE NOT NULL = - + 82
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5599
SELECT DISTINCT + + ( col1 ) DIV - 75 AS col1, col2 * col2 FROM tab0 AS cor0
----
-1
2209
0
100
0
9801

skipif mysql # not compatible
query II rowsort label-5599
SELECT DISTINCT + + ( col1 ) / - 75 AS col1, col2 * col2 FROM tab0 AS cor0
----
-1
2209
0
100
0
9801

onlyif mysql # aggregate syntax: 
query II rowsort label-5600
SELECT ALL + + 24 AS col2, SUM( ALL col0 ) FROM tab2 AS cor0
----
24
185

skipif mysql # not compatible
query II rowsort label-5600
SELECT ALL + + 24 AS col2, SUM ( ALL col0 ) FROM tab2 AS cor0
----
24
185

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL SUM( 70 ) + 49 FROM tab2 WHERE NOT - 48 IS NULL
----
259

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL SUM ( 70 ) + 49 FROM tab2 WHERE NOT - 48 IS NULL
----
259

query I rowsort
SELECT DISTINCT 80 - 22 FROM tab1
----
58

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * - col1 + - 98 BETWEEN col0 AND ( NULL )
----

query I rowsort
SELECT ALL - 37 * 89 + - col2 FROM tab2
----
-3316
-3333
-3351

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

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

query I rowsort
SELECT DISTINCT col1 / + col1 FROM tab1 WHERE - col1 * col0 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - ( + col2 ) ) * + col1 + + 86 col2 FROM tab1
----
-1258
-209
-3110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 * col2 col2 FROM tab0
----
2162
90
9702

query I rowsort
SELECT col1 FROM tab1 WHERE NOT col0 IN ( 4 + - 12 )
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 WHERE NOT NULL >= col2
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 * col1 ) IS NOT NULL
----

query I rowsort
SELECT col2 * - col1 + 18 FROM tab1
----
-1326
-277
-3178

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

skipif mysql # not compatible
query I rowsort label-5616
SELECT + COUNT ( ALL col2 ) + COUNT ( * ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----
0

query I rowsort
SELECT + col0 * - ( + col2 ) + + 2 * col1 AS col2 FROM tab0
----
-543
-828
-9601

query I rowsort
SELECT ALL - 19 + - 98 AS col0 FROM tab1
----
-117
-117
-117

query I rowsort
SELECT DISTINCT - col1 + 62 FROM tab1
----
15
48
57

query I rowsort
SELECT col0 + - col2 FROM tab0 WHERE + 12 * col1 + - col0 <> + col2 + - col1 * col2
----
-2
-32
77

query III rowsort
SELECT * FROM tab2 WHERE col0 <= - 30 + - col1 * + col0
----

query I rowsort
SELECT DISTINCT + col1 * ( 52 * - col0 ) + col1 AS col1 FROM tab2
----
-121941
-256179
-261233

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT ALL SUM( ALL 30 ) AS col0 FROM tab2 AS cor0 WHERE 78 * + 28 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL SUM ( ALL 30 ) AS col0 FROM tab2 AS cor0 WHERE 78 * + 28 IS NULL
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 15 * - col1 + - col2 * + col0 FROM tab2 AS cor0
----
-1405
-293
-3345

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT DISTINCT SUM( DISTINCT ( + col2 ) ) + + MAX( col2 ) AS col1 FROM tab2
----
179

skipif mysql # not compatible
query I rowsort label-5630
SELECT DISTINCT SUM ( DISTINCT ( + col2 ) ) + + MAX ( col2 ) AS col1 FROM tab2
----
179

query I rowsort
SELECT ALL + ( - col0 ) FROM tab0 WHERE NOT - col0 IS NULL
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * - ( - 85 / 1 ) BETWEEN - col2 + - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5633
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-5633
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) AND CAST ( NULL AS INTEGER )
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col1 + + 69
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5636
SELECT - 43 * col0 + - 19 DIV + 95 AS col1 FROM tab1 AS cor0
----
-2193
-3655
-3913

skipif mysql # not compatible
query I rowsort label-5636
SELECT - 43 * col0 + - 19 / + 95 AS col1 FROM tab1 AS cor0
----
-2193
-3655
-3913

query I rowsort
SELECT + 47 + 74 AS col1 FROM tab0 AS cor0
----
121
121
121

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT ( - COUNT( * ) ) * 60 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-5640
SELECT ( - COUNT ( * ) ) * 60 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-177

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 NOT BETWEEN - col2 AND col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT COUNT( * ) * - - 7 AS col1 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-5642
SELECT COUNT ( * ) * - - 7 AS col1 FROM tab0
----
21

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

query I rowsort
SELECT DISTINCT + 32 + - col2 AS col2 FROM tab2
----
-26
-8
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5645
SELECT ALL + COUNT( * ) - + CAST( + 40 AS SIGNED ) AS col1 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL + COUNT ( * ) - + CAST ( + 40 AS INTEGER ) AS col1 FROM tab1
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - - col2 col2 FROM tab0
----
-2
-32
77

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

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

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

query I rowsort
SELECT - col2 FROM tab2 WHERE - col0 * + col2 > + 47 * + col1 + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT - 17 - - SUM( DISTINCT 53 ) * SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
3481

skipif mysql # not compatible
query I rowsort label-5651
SELECT - 17 - - SUM ( DISTINCT 53 ) * SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
3481

query I rowsort
SELECT + col2 + 94 * + 62 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
5851
5868
5886

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

skipif mysql # not compatible
query I rowsort label-5653
SELECT - + 3 / - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT DISTINCT - MIN( ALL + + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT - MIN ( ALL + + col2 ) FROM tab1
----
-59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IN ( - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + - + col1 <= col2
----
85
5
59

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5660
SELECT 95 / CAST( - col2 AS SIGNED ) + + 72 FROM tab2 AS cor0 WHERE NOT - 47 * + col0 NOT IN ( 87 )
----

skipif mysql # not compatible
query I rowsort label-5660
SELECT 95 / CAST ( - col2 AS INTEGER ) + + 72 FROM tab2 AS cor0 WHERE NOT - 47 * + col0 NOT IN ( 87 )
----

query I rowsort
SELECT DISTINCT + 63 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT - 52 * + COUNT( * ) + + 38 FROM tab2 cor0
----
-118

skipif mysql # not compatible
query I rowsort label-5662
SELECT - 52 * + COUNT ( * ) + + 38 FROM tab2 cor0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT ALL + COUNT( DISTINCT + ( + ( 43 ) ) ) + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL + COUNT ( DISTINCT + ( + ( 43 ) ) ) + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 )
----
0

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

skipif mysql # not compatible
query I rowsort label-5664
SELECT + col0 / col1 * col1 FROM tab2
----
0
0
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5665
SELECT CAST( - 30 AS SIGNED ) DIV - 92 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5665
SELECT CAST ( - 30 AS INTEGER ) / - 92 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT - 88 * - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT - 92 NOT IN ( - col0 - - 11 )
----
0

skipif mysql # not compatible
query I rowsort label-5666
SELECT - 88 * - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT - 92 NOT IN ( - col0 - - 11 )
----
0

query I rowsort
SELECT + + 99 + - col1 FROM tab1 AS cor0
----
52
85
94

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5669
SELECT - 98 DIV - + 9 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

skipif mysql # not compatible
query I rowsort label-5669
SELECT - 98 / - + 9 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query III rowsort
SELECT * FROM tab0 WHERE ( col1 / + col1 + - 42 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - 34 + - col1 FROM tab1
----
-39
-48
-81

query III rowsort
SELECT * FROM tab1 WHERE NULL <= col1 / - 36 / - col1
----

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

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

skipif mysql # not compatible
query I rowsort label-5674
SELECT - col2 * 23 * 0 / + ( + col1 ) * + ( + col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) * + 66 * + COUNT( * ) col0 FROM tab1 AS cor0
----
-1782

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

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

query I rowsort
SELECT DISTINCT 44 + + + col2 * + 91 AS col2 FROM tab2 AS cor0
----
2137
3684
5322

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

query I rowsort
SELECT DISTINCT + ( + 12 ) * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 = col1
----
-1044
-1164
-180

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

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

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

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

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

query I rowsort
SELECT + 35 + 41 FROM tab1
----
76
76
76

query I rowsort
SELECT - ( col2 ) + - ( col1 ) - - col2 AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL 74 - 99 AS col2 FROM tab1
----
-25
-25
-25

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

skipif mysql # not compatible
query III rowsort label-5688
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - - col2 AS INTEGER ) IS NOT NULL
----

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5693
SELECT * FROM tab2 WHERE NOT - - CAST( - col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5693
SELECT * FROM tab2 WHERE NOT - - CAST ( - col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query I rowsort
SELECT DISTINCT col1 + - col2 + - - ( + - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-13
-197
1

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

query II rowsort
SELECT - col2 + + ( ( + col0 ) ), col1 AS col2 FROM tab0
----
-2
1
-32
81
77
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 WHERE NOT col1 / + col2 > + ( 5 )
----
15
87
97

query I rowsort
SELECT DISTINCT 75 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT + 60 + - + COUNT( * ) - + COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-5701
SELECT + 60 + - + COUNT ( * ) - + COUNT ( * ) FROM tab2
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5702
SELECT DISTINCT + col1 + + 35 + - CAST( NULL AS DECIMAL ) * + 25 FROM tab1 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT + col1 + + 35 + - CAST ( NULL AS REAL ) * + 25 FROM tab1 WHERE NOT NULL < NULL
----

query II rowsort
SELECT DISTINCT col0 AS col1, + 43 AS col1 FROM tab1
----
51
43
85
43
91
43

query I rowsort
SELECT ALL - - 60 AS col0 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT + COUNT( * ) col2 FROM tab1 WHERE - + 68 - + 13 * + + col1 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5706
SELECT + COUNT ( * ) col2 FROM tab1 WHERE - + 68 - + 13 * + + col1 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + 80 - col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
59
79

query II rowsort
SELECT DISTINCT + + 67 AS col1, - 57 FROM tab0 AS cor0
----
67
-57

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

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

query I rowsort
SELECT col0 + + - 67 FROM tab2
----
-21
-3
8

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

query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL, tab1 AS cor2
----
243 values hashing to 30b311c8084fa5bde99a25f099be697f

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

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

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

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT - MIN ( DISTINCT - 44 ) FROM tab1 AS cor0
----
44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 = + 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT + - 63 * SUM( DISTINCT + col1 ) * + 38 FROM tab2 AS cor0
----
-466830

skipif mysql # not compatible
query I rowsort label-5716
SELECT + - 63 * SUM ( DISTINCT + col1 ) * + 38 FROM tab2 AS cor0
----
-466830

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

query I rowsort
SELECT - col0 * 78 FROM tab2 cor0
----
-3588
-4992
-5850

query I rowsort
SELECT - - 9 * - - 38 FROM tab0 AS cor0
----
342
342
342

query I rowsort
SELECT col2 FROM tab0 WHERE ( - - col1 ) NOT BETWEEN ( + col1 ) AND col0
----
47

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

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

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

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

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

query I rowsort
SELECT - 71 * + + col1 AS col2 FROM tab0
----
-1491
-5751
-71

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

query I rowsort
SELECT DISTINCT - - col2 - - col2 + + - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-5
3
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT DISTINCT MIN( + 53 ) AS col1 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT MIN ( + 53 ) AS col1 FROM tab0 AS cor0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5728
SELECT DISTINCT + col2 * - CAST( - - col2 AS SIGNED ) * 11 FROM tab0 AS cor0
----
-107811
-1100
-24299

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT + col2 * - CAST ( - - col2 AS INTEGER ) * 11 FROM tab0 AS cor0
----
-107811
-1100
-24299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5729
SELECT 6 DIV COUNT( * ) + - 62 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5729
SELECT 6 / COUNT ( * ) + - 62 FROM tab2 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5730
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 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-5730
SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * col0 + col1 + + col1 * + col2 * - col1 <> 42
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5733
SELECT ALL - COUNT( * ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5733
SELECT ALL - COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT ALL col1 * - - 39 FROM tab1 AS cor0
----
1833
195
546

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5735
SELECT + COUNT( * ), + 47 * + 72 / - CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5735
SELECT + COUNT ( * ), + 47 * + 72 / - CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5736
SELECT DISTINCT + col0 + col0 AS col2, CAST( - 52 AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
128
NULL
150
NULL
92
NULL

skipif mysql # not compatible
query II rowsort label-5736
SELECT DISTINCT + col0 + col0 AS col2, CAST ( - 52 AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
128
NULL
150
NULL
92
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = 19
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5738
SELECT DISTINCT + 35 DIV + SUM( - col1 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT + 35 / + SUM ( - col1 ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 + + col1 + + 8 AS col0 FROM tab1
----
118
123
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col2 col2 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT DISTINCT + SUM( - 46 ) AS col0 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT + SUM ( - 46 ) AS col0 FROM tab0 AS cor0
----
-138

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

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

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

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

query II rowsort
SELECT 53 + - col2 AS col2, col0 AS col2 FROM tab1 AS cor0
----
-15
91
-43
51
-6
85

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

query II rowsort
SELECT - col2 AS col1, + 79 + + col1 * - 95 AS col1 FROM tab0
----
-10
-1916
-47
-7616
-99
-16

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

skipif mysql # not compatible
query III rowsort label-5747
SELECT ALL * FROM tab2 WHERE NOT - CAST ( - 15 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 - + 7 AS col0 FROM tab2
----
16
33
51

query I rowsort
SELECT ALL + - col0 - - - col0 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT - col0 - - 74 AS col1 FROM tab2 AS cor0
----
-1
10
28

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT - col2 DIV col0 FROM tab1 AS cor0 WHERE ( + 33 ) + + 15 NOT BETWEEN + 84 + + col1 AND ( + 7 )
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5752
SELECT - col2 / col0 FROM tab1 AS cor0 WHERE ( + 33 ) + + 15 NOT BETWEEN + 84 + + col1 AND ( + 7 )
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + col1 + + - 6 * - + 27 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT - + COUNT( * ) - + 97 AS col2 FROM tab2 cor0
----
-100

skipif mysql # not compatible
query I rowsort label-5754
SELECT - + COUNT ( * ) - + 97 AS col2 FROM tab2 cor0
----
-100

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 19 >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT 5 * COUNT( ALL - 93 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-5758
SELECT 5 * COUNT ( ALL - 93 ) FROM tab1
----
15

query I rowsort
SELECT - col1 * - - 93 FROM tab0
----
-1953
-7533
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 * col2 * - col2 col2 FROM tab2
----
-15341
-46400
-97556

query I rowsort
SELECT ALL - ( + 11 ) FROM tab1
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 * + - ( col2 ) col1 FROM tab1
----
-1770
-2040
-2880

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT ALL + COUNT( * ) FROM tab0 WHERE - + 75 / 72 + col2 + + col2 - + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL + COUNT ( * ) FROM tab0 WHERE - + 75 / 72 + col2 + + col2 - + col0 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 59 BETWEEN NULL AND NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * 1 AS col0 FROM tab1
----
-51
-85
-91

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

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL - MIN ( DISTINCT - + col1 ) FROM tab0
----
81

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5775
SELECT 58 AS col0, - MAX( col0 ) * MIN( ALL 91 ) col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN + 75 AND ( + 78 )
----
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5775
SELECT 58 AS col0, - MAX ( col0 ) * MIN ( ALL 91 ) col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN + 75 AND ( + 78 )
----
58
NULL

query I rowsort
SELECT ALL + - 38 + 58 AS col1 FROM tab0 AS cor0
----
20
20
20

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > - col0 * + col0 + - col2 / col2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT ALL COUNT( * ) + 53 FROM tab0 cor0
----
56

skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL COUNT ( * ) + 53 FROM tab0 cor0
----
56

query I rowsort
SELECT + 66 + col2 AS col1 FROM tab0 AS cor0
----
113
165
76

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

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

query I rowsort
SELECT - 68 + - 34 + - 94 AS col2 FROM tab1
----
-196
-196
-196

query I rowsort
SELECT ALL 99 + 26 + col1 FROM tab1
----
130
139
172

query I rowsort
SELECT DISTINCT + col1 + + 4 AS col1 FROM tab0
----
25
5
85

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

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

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

query I rowsort
SELECT - col1 - ( - 15 ) AS col2 FROM tab0 AS cor0
----
-6
-66
14

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5790
SELECT col1 * - + col2 - + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-196
-297
-3822

skipif mysql # not compatible
query I rowsort label-5790
SELECT col1 * - + col2 - + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-196
-297
-3822

query II rowsort
SELECT + col0 * + + col2 AS col0, col1 * - ( + col1 ) * 26 + + - 69 FROM tab1 AS cor0
----
4896
-5165
5015
-719
6188
-57503

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 * - ( + col1 ) / + col2 + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND 94 * - 18
----

query I rowsort
SELECT + 60 * + col2 + - + 33 + + + col1 FROM tab0 AS cor0
----
2868
588
5908

onlyif mysql # DIV for integer division: 
query I rowsort label-5795
SELECT + + 69 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5795
SELECT + + 69 / - col0 AS col2 FROM tab1 AS cor0
----
-1
0
0

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

query I rowsort
SELECT 96 * - - col2 AS col2 FROM tab2 AS cor0
----
2208
3840
5568

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 40 - + + 50 + col2 col0 FROM tab2 AS cor0
----
-1610
-2312
-947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 96 col1 FROM tab2
----
4896
6432
7392

query I rowsort
SELECT ALL + ( + 2 ) / col1 + + 71 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5804
SELECT + + 33 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5804
SELECT + + 33 / - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5805
SELECT 16 / - col1 * - col0 FROM tab2 AS cor0 WHERE 19 + + CAST( - col0 AS SIGNED ) + - ( + col2 ) * - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5805
SELECT 16 / - col1 * - col0 FROM tab2 AS cor0 WHERE 19 + + CAST ( - col0 AS INTEGER ) + - ( + col2 ) * - col0 IS NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5810
SELECT ALL - 94 AS col2, 10 + MAX( + col1 ) FROM tab2 cor0 WHERE ( NULL > 62 / 75 + + + 68 / - ( + 75 ) )
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-5810
SELECT ALL - 94 AS col2, 10 + MAX ( + col1 ) FROM tab2 cor0 WHERE ( NULL > 62 / 75 + + + 68 / - ( + 75 ) )
----
-94
NULL

query I rowsort
SELECT DISTINCT col2 * - col1 + + 17 FROM tab1 cor0
----
-1327
-278
-3179

query I rowsort
SELECT DISTINCT - 97 * - - 10 FROM tab2
----
-970

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 * - col1 col2 FROM tab2
----
-2323
-4888
-4967

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT ALL SUM( 35 ) AS col2 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL SUM ( 35 ) AS col2 FROM tab1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT DISTINCT + 16 * + SUM( - col0 ) + - 58 AS col0 FROM tab2
----
-3018

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT + 16 * + SUM ( - col0 ) + - 58 AS col0 FROM tab2
----
-3018

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

query I rowsort
SELECT ALL col2 + + 63 AS col1 FROM tab1
----
122
131
159

query I rowsort
SELECT DISTINCT 49 * - 54 AS col1 FROM tab0
----
-2646

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * + col1 IS NOT NULL
----

query I rowsort
SELECT + col1 + + 99 FROM tab2
----
150
166
176

query I rowsort
SELECT 44 + + 56 * + + ( - 26 ) FROM tab0
----
-1412
-1412
-1412

query I rowsort
SELECT - 14 + - 38 + + - col1 FROM tab1 AS cor0
----
-57
-66
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + ( col1 ) + 76 col1 FROM tab1 cor0 WHERE NOT ( + 63 ) * - + col0 <= NULL
----

query I rowsort
SELECT ALL 88 + + col0 FROM tab0 AS cor0
----
103
175
185

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

query I rowsort
SELECT ALL + + 38 * + col1 + + col1 + - col0 AS col2 FROM tab1 AS cor0
----
110
1742
495

query II rowsort
SELECT 73 AS col0, - 29 FROM tab1
----
73
-29
73
-29
73
-29

query II rowsort
SELECT + col0, - col0 + - col2 * + 22 FROM tab1
----
51
-2163
85
-1383
91
-1587

query I rowsort
SELECT ALL - - col0 + - 81 FROM tab0 AS cor0 WHERE NOT NULL < 31
----

query I rowsort
SELECT + 73 * - ( + 89 ) FROM tab0 AS cor0 WHERE NOT - 14 IS NULL
----
-6497
-6497
-6497

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + + 53 AS col0 FROM tab1 cor0
----
53
53
53

query I rowsort
SELECT ( - + col2 ) * col0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL - 16 AS col0 FROM tab2 cor0
----
-16
-16
-16

query I rowsort
SELECT ALL 42 FROM tab2 WHERE NOT - + col2 * + col0 - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT COUNT( * ) * MAX( - col2 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-5837
SELECT COUNT ( * ) * MAX ( - col2 ) FROM tab0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5838
SELECT - 56 DIV + - COUNT( * ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-5838
SELECT - 56 / + - COUNT ( * ) FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT DISTINCT - 12 + + - MAX( ALL 66 ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT - 12 + + - MAX ( ALL 66 ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT DISTINCT - + 84 + + 32 + ( - - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT - + 84 + + 32 + ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT - col2 * - - col2 * - col1 FROM tab0 AS cor0
----
178929
2100
9801

query II rowsort
SELECT ALL + col2 + + 51 + col2 + - + col0, + col0 AS col0 FROM tab0
----
-16
87
130
15
152
97

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

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

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

query II rowsort
SELECT - 75 * col0 + - col0 AS col0, + col1 FROM tab1 AS cor0
----
-3876
14
-6460
5
-6916
47

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

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

query I rowsort
SELECT DISTINCT - 51 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT DISTINCT - col2 + - 65 FROM tab0 AS cor0
----
-112
-164
-75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5850
SELECT DISTINCT + 23 + - CAST( NULL AS DECIMAL ) - + + 67 * + + col2 col1, + col1 * + CAST( NULL AS SIGNED ) + + - col0 FROM tab0 AS cor0
----
NULL
NULL

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > ( 79 * + col1 + + col1 + col0 )
----

query I rowsort
SELECT - + 81 * col2 + col0 + 3 AS col0 FROM tab1 AS cor0
----
-4691
-5414
-7722

query I rowsort
SELECT col2 + - + col1 + - col1 * - - 58 FROM tab0 AS cor0
----
-1229
-4732
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5854
SELECT ALL 70 DIV + - 17 - - + col0 AS col2 FROM tab0
----
11
83
93

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL 70 / + - 17 - - + col0 AS col2 FROM tab0
----
11
83
93

query I rowsort
SELECT DISTINCT + 1 + col1 - - + col1 FROM tab1
----
11
29
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5856
SELECT * FROM tab0 WHERE + col2 + + - 98 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5856
SELECT * FROM tab0 WHERE + col2 + + - 98 >= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - - 53 AS col2 FROM tab1 WHERE 46 + - col1 + - 48 + + - col2 - col1 * - col1 IN ( 53 * ( + + col1 ) - 38 + + + col1, + col2, + col0 / - col2 )
----

query I rowsort
SELECT ALL 80 * 27 * - 1 AS col1 FROM tab2
----
-2160
-2160
-2160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * col1 * + - col2 - - + col1 col1 FROM tab1
----
-115570
-25365
-274809

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

query I rowsort
SELECT - ( + 73 ) - + col0 FROM tab0 AS cor0
----
-160
-170
-88

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 53 * + 74
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT DISTINCT + 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-5868
SELECT DISTINCT + COUNT ( ALL + col1 ) col0 FROM tab0 AS cor0
----
3

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 78 >= NULL
----

query II rowsort
SELECT + - 99 AS col1, col1 * - - 15 AS col0 FROM tab0 AS cor0
----
-99
1215
-99
15
-99
315

query I rowsort
SELECT - col1 * - col2 * + + 1 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5873
SELECT ALL - MAX ( ALL - col1 ) col0 FROM tab1 AS cor0
----
5

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

query I rowsort
SELECT ALL + col2 * 13 AS col0 FROM tab0
----
1287
130
611

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

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT - col1 / + - col2 AS col1 FROM tab2
----
1
2

query I rowsort
SELECT 81 * 1 FROM tab1
----
81
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5878
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 WHERE + - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 WHERE + - col0 IS NOT NULL
----
-3

query II rowsort
SELECT + 73 AS col0, - 88 FROM tab0
----
73
-88
73
-88
73
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, - col0 * + - col0 AS col1 FROM tab2
----
-51
2116
-67
5625
-77
4096

onlyif mysql # DIV for integer division: 
query I rowsort label-5881
SELECT ALL - + col2 DIV 45 * + col0 FROM tab2 AS cor0
----
-75
0
0

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL - + col2 / 45 * + col0 FROM tab2 AS cor0
----
-75
0
0

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

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

query I rowsort
SELECT - ( - - col1 ) AS col1 FROM tab0 cor0
----
-1
-21
-81

query II rowsort
SELECT - col0, - ( - col0 ) * + - col2 AS col2 FROM tab2 AS cor0
----
-46
-1058
-64
-2560
-75
-4350

query I rowsort
SELECT ALL - 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

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

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

query I rowsort
SELECT ALL - - 84 AS col0 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT ( - - col0 ) * + col2 - + - col1 * - + 69 + - col1 - - 99 FROM tab1 cor0
----
2997
4015
4764

query I rowsort
SELECT DISTINCT 89 / + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 72 + + col1 * + 47 AS col0 FROM tab1
----
2281
307
730

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL + MIN( + col2 ) * + 15 + - - COUNT( * ) FROM tab2
----
348

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL + MIN ( + col2 ) * + 15 + - - COUNT ( * ) FROM tab2
----
348

query II rowsort
SELECT + 23 + + - col2 - + + col1 AS col1, 75 AS col2 FROM tab0
----
-105
75
-77
75
-8
75

query III rowsort
SELECT * FROM tab2 WHERE + col2 / + 78 > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT ALL COUNT( * ) + + ( - MIN( ALL + 54 ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL COUNT ( * ) + + ( - MIN ( ALL + 54 ) ) FROM tab1
----
-51

query I rowsort
SELECT DISTINCT - col2 - + + 81 - col2 FROM tab0
----
-101
-175
-279

query I rowsort
SELECT 21 + - col1 AS col1 FROM tab2
----
-30
-46
-56

query I rowsort
SELECT DISTINCT + col1 - - 79 FROM tab2
----
130
146
156

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

query I rowsort
SELECT + 2 FROM tab2 AS cor0 WHERE NOT col2 IN ( - 7, col1, + 50 - - - col1 )
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 / - - 8 - - col2 <= NULL
----

query I rowsort
SELECT 33 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT DISTINCT COUNT( * ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

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

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

query I rowsort
SELECT + 95 * - col1 * - 60 - - - col1 * + + col1 * ( col1 ) FROM tab2 AS cor0
----
-17633
158049
81137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 82 ) * ( 93 ) col2 FROM tab2
----
-7626
-7626
-7626

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

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

query I rowsort
SELECT - col0 * - col0 + + col0 * + 30 AS col0 FROM tab0
----
10179
12319
675

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT - 76 + - 9 + + COUNT( * ) FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-5910
SELECT - 76 + - 9 + + COUNT ( * ) FROM tab1
----
-82

query I rowsort
SELECT ALL + ( + + col0 ) AS col2 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL col1 * - col1 * 24 FROM tab2
----
-107736
-142296
-62424

query I rowsort
SELECT ALL - 87 + col1 FROM tab2 AS cor0
----
-10
-20
-36

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, + col2 * col0 col0 FROM tab0
----
15
705
87
870
97
9603

query I rowsort
SELECT ALL - 73 + - 93 - col0 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-181
-253
-263

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5918
SELECT col0 + CAST( - 37 AS SIGNED ) + - - col0 * - - 98 FROM tab0 cor0
----
1448
8576
9566

skipif mysql # not compatible
query I rowsort label-5918
SELECT col0 + CAST ( - 37 AS INTEGER ) + - - col0 * - - 98 FROM tab0 cor0
----
1448
8576
9566

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 35 * - - 54 BETWEEN - col1 AND - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5920
SELECT DISTINCT + COUNT( * ) DIV + 25 + + MIN( DISTINCT 60 ) col2 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5920
SELECT DISTINCT + COUNT ( * ) / + 25 + + MIN ( DISTINCT 60 ) col2 FROM tab0 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5921
SELECT * FROM tab1 WHERE ( NULL ) IS NOT NULL OR NOT NULL NOT IN ( - ( + col0 ), + 94, - col0, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5921
SELECT * FROM tab1 WHERE ( NULL ) IS NOT NULL OR NOT NULL NOT IN ( - ( + col0 ), + 94, - col0, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col1 * 31 + + 10 + - col2 FROM tab2
----
1568
2029
2357

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT COUNT( * ) * - 21 - - - AVG ( DISTINCT + 91 ) + + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5923
SELECT COUNT ( * ) * - 21 - - - AVG ( DISTINCT + 91 ) + + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5925
SELECT ALL + ( - CAST( NULL AS SIGNED ) ), - 38 * + col2 AS col2 FROM tab2 AS cor0
----
NULL
-1520
NULL
-2204
NULL
-874

skipif mysql # not compatible
query II rowsort label-5925
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ), - 38 * + col2 AS col2 FROM tab2 AS cor0
----
NULL
-1520
NULL
-2204
NULL
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT - MAX( + 33 ) FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-5926
SELECT - MAX ( + 33 ) FROM tab1
----
-33

query II rowsort
SELECT col0, col1 * ( + col1 ) AS col0 FROM tab0 AS cor0
----
15
6561
87
441
97
1

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

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

query I rowsort
SELECT col1 * col2 * col2 * + col0 AS col0 FROM tab1 AS cor0
----
1479425
19776848
6580224

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT DISTINCT + MIN( ALL + + 8 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
8

skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT + MIN ( ALL + + 8 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
8

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 69 NOT BETWEEN NULL AND - - col2
----

query I rowsort
SELECT ( 48 ) AS col2 FROM tab1 cor0
----
48
48
48

query I rowsort
SELECT DISTINCT 98 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

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

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

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

query I rowsort
SELECT col2 - - col0 AS col1 FROM tab2 WHERE NOT + 77 * - - 41 / - + 57 IS NULL
----
104
133
69

query I rowsort
SELECT + col2 * - 97 AS col1 FROM tab1
----
-5723
-6596
-9312

query I rowsort
SELECT ALL - col2 * - 58 FROM tab1
----
3422
3944
5568

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5943
SELECT - MIN( col1 ) AS col0, 25 AS col0 FROM tab1
----
-5
25

skipif mysql # not compatible
query II rowsort label-5943
SELECT - MIN ( col1 ) AS col0, 25 AS col0 FROM tab1
----
-5
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5944
SELECT 57 DIV col0 + - 99 - col1 FROM tab2
----
-149
-166
-176

skipif mysql # not compatible
query I rowsort label-5944
SELECT 57 / col0 + - 99 - col1 FROM tab2
----
-149
-166
-176

query I rowsort
SELECT - - col2 + + + col0 * - - 20 AS col2 FROM tab0 AS cor0
----
1750
2039
347

query I rowsort
SELECT + 22 + 86 FROM tab2 AS cor0
----
108
108
108

query I rowsort
SELECT ALL + - col1 * + - col2 - col0 * col1 + col0 AS col0 FROM tab1 AS cor0
----
-45
-990
681

query I rowsort
SELECT ALL col0 * - col2 + - 14 * - - col2 AS col1 FROM tab2 AS cor0
----
-1380
-3120
-5162

query I rowsort
SELECT DISTINCT - 57 + + col1 FROM tab1 cor0
----
-10
-43
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5950
SELECT ALL col0 * + - CAST( + 36 AS SIGNED ) + + 98 + - 41 FROM tab0
----
-3075
-3435
-483

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL col0 * + - CAST ( + 36 AS INTEGER ) + + 98 + - 41 FROM tab0
----
-3075
-3435
-483

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

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

query I rowsort
SELECT ALL + 45 * - + col1 AS col2 FROM tab2 AS cor0
----
-2295
-3015
-3465

query I rowsort
SELECT + ( col2 ) * - 73 + + col2 FROM tab2 AS cor0
----
-1656
-2880
-4176

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5955
SELECT * FROM tab1 cor0 WHERE + col2 BETWEEN col0 * + + 58 - + CAST( NULL AS SIGNED ) + - - col1 * + col1 / col2 AND + - col1
----

skipif mysql # not compatible
query III rowsort label-5955
SELECT * FROM tab1 cor0 WHERE + col2 BETWEEN col0 * + + 58 - + CAST ( NULL AS INTEGER ) + - - col1 * + col1 / col2 AND + - col1
----

query II rowsort
SELECT ( + + col2 ) * col0 * - col2 * 83, + 15 FROM tab2 AS cor0 WHERE col1 * col0 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT COUNT( * ) + SUM( DISTINCT - 6 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5959
SELECT COUNT ( * ) + SUM ( DISTINCT - 6 ) AS col2 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT - 54 AS col2, - col0 AS col1 FROM tab0
----
-54
-15
-54
-87
-54
-97

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT MAX( - + col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5963
SELECT MAX ( - + col1 ) AS col2 FROM tab2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5964
SELECT - COUNT( * ) DIV - 91 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5964
SELECT - COUNT ( * ) / - 91 AS col0 FROM tab2
----
0

query I rowsort
SELECT + 94 * + - 19 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0ac455779da93eade3057cb89bb22305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5966
SELECT + SUM( ALL + CAST( col2 AS SIGNED ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5966
SELECT + SUM ( ALL + CAST ( col2 AS INTEGER ) ) FROM tab0
----
156

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 AND NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5969
SELECT DISTINCT - 23 * - - CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) * + COUNT( + col2 ) AS col0 FROM tab2 AS cor0
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-5969
SELECT DISTINCT - 23 * - - CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) * + COUNT ( + col2 ) AS col0 FROM tab2 AS cor0
----
NULL
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5970
SELECT ALL ( + + COUNT( * ) ) * CAST( - MIN( + ( ( + - col2 ) ) ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL ( + + COUNT ( * ) ) * CAST ( - MIN ( + ( ( + - col2 ) ) ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5971
SELECT + 79 * + COUNT( * ) + - 54 col0, CAST( NULL AS SIGNED ) FROM tab0 cor0
----
183
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5971
SELECT + 79 * + COUNT ( * ) + - 54 col0, CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
183
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5972
SELECT 34 DIV - col2 + - ( ( + col2 ) ) + - col2 col0 FROM tab2 AS cor0
----
-116
-47
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5972
SELECT 34 / - col2 + - ( ( + col2 ) ) + - col2 col0 FROM tab2 AS cor0
----
-116
-47
-80

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL CAST ( + + 39 AS INTEGER ) FROM tab1
----
39
39
39

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

query I rowsort
SELECT ALL + 9 AS col1 FROM tab1
----
9
9
9

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

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

query I rowsort
SELECT + 34 + ( + 89 ) FROM tab0
----
123
123
123

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT - MIN( ALL + 12 ) * - 72 AS col1 FROM tab0 AS cor0
----
864

skipif mysql # not compatible
query I rowsort label-5981
SELECT - MIN ( ALL + 12 ) * - 72 AS col1 FROM tab0 AS cor0
----
864

query I rowsort
SELECT + + col2 * - 57 * col2 FROM tab2 AS cor0
----
-191748
-30153
-91200

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT ALL ( 27 ) * + + COUNT( * ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL ( 27 ) * + + COUNT ( * ) FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT ALL + SUM( + col2 ) AS col2 FROM tab2 WHERE col2 NOT BETWEEN - col1 AND - + ( + col0 )
----
121

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL + SUM ( + col2 ) AS col2 FROM tab2 WHERE col2 NOT BETWEEN - col1 AND - + ( + col0 )
----
121

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

query II rowsort
SELECT + 78 AS col0, - col0 * col1 + + col0 AS col2 FROM tab1 cor0
----
78
-340
78
-4186
78
-663

query I rowsort
SELECT DISTINCT ( + 27 ) * + + 79 * + - col2 FROM tab2 AS cor0
----
-123714
-49059
-85320

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

query II rowsort
SELECT + + 47 AS col1, 59 FROM tab2 AS cor0
----
47
59
47
59
47
59

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 39 <= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col0, + col0 * col0 AS col0 FROM tab0 AS cor0
----
-15
225
-87
7569
-97
9409

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + col2 / - - col2 <> ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 5 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) > + - col2 + + col2
----

query I rowsort
SELECT ALL col1 + 20 FROM tab0 cor0
----
101
21
41

query I rowsort
SELECT 7 * - - col1 AS col0 FROM tab0
----
147
567
7

query I rowsort
SELECT ALL - 69 + - - col0 AS col0 FROM tab0
----
-54
18
28

query I rowsort
SELECT col2 + - 85 * + + 57 AS col1 FROM tab2
----
-4787
-4805
-4822

query I rowsort
SELECT DISTINCT 52 * + col1 AS col1 FROM tab2
----
2652
3484
4004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + col1 AS col0, col1 col2 FROM tab2
----
102
51
134
67
154
77

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

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

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

query I rowsort
SELECT DISTINCT col1 * - 90 + - col1 FROM tab1 AS cor0
----
-1274
-4277
-455

query I rowsort
SELECT ALL + + col1 + + + col1 * + col0 + - col0 AS col0 FROM tab0 cor0
----
1
1281
1761

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

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

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

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

query I rowsort
SELECT DISTINCT - + ( 88 ) AS col1 FROM tab1 AS cor0
----
-88

query II rowsort
SELECT DISTINCT col1 * col2, col2 AS col1 FROM tab0
----
210
10
3807
47
99
99

onlyif mysql # DIV for integer division: 
query II rowsort label-6011
SELECT DISTINCT - 80 DIV + - col1 AS col0, + col2 * + - 83 AS col1 FROM tab2
----
1
-1909
1
-3320
1
-4814

skipif mysql # not compatible
query II rowsort label-6011
SELECT DISTINCT - 80 / + - col1 AS col0, + col2 * + - 83 AS col1 FROM tab2
----
1
-1909
1
-3320
1
-4814

onlyif mysql # DIV for integer division: 
query I rowsort label-6012
SELECT - col2 DIV col2 * - 37 AS col2 FROM tab0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-6012
SELECT - col2 / col2 * - 37 AS col2 FROM tab0
----
37
37
37

query I rowsort
SELECT DISTINCT - 67 * - col0 * - col0 AS col1 FROM tab1
----
-174267
-484075
-554827

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= 85
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * + + 52 IS NOT NULL
----

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

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

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

query I rowsort
SELECT ALL + 80 + - 15 FROM tab2 AS cor0 WHERE NULL < 49
----

query I rowsort
SELECT ALL + 83 + + 45 FROM tab2 AS cor0
----
128
128
128

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

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

query I rowsort
SELECT DISTINCT - 94 + + col1 * + + 42 FROM tab1 AS cor0
----
116
1880
494

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT 95 + + SUM( ALL + 76 ) AS col0 FROM tab1 cor0
----
323

skipif mysql # not compatible
query I rowsort label-6023
SELECT 95 + + SUM ( ALL + 76 ) AS col0 FROM tab1 cor0
----
323

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT DISTINCT COUNT( * ) * - COUNT( ALL - ( col1 ) ) * COUNT( * ) * 46 + - COUNT( * ) col0 FROM tab2
----
-1245

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6025
SELECT DISTINCT COUNT ( * ) * - COUNT ( ALL - ( col1 ) ) * COUNT ( * ) * 46 + - COUNT ( * ) col0 FROM tab2
----
-1245

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * + + 40 * + + col1 col1 FROM tab0
----
376360
6357960
729000

query I rowsort
SELECT - + ( col0 ) FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6029
SELECT ALL + col0 * - CAST( + 98 AS SIGNED ) - col2 FROM tab0
----
-1517
-8536
-9605

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL + col0 * - CAST ( + 98 AS INTEGER ) - col2 FROM tab0
----
-1517
-8536
-9605

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT ALL MIN( - col2 ) AS col1 FROM tab2 WHERE + - col1 + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL MIN ( - col2 ) AS col1 FROM tab2 WHERE + - col1 + col2 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 93 + - 88 col2, col1 AS col2 FROM tab2
----
5
51
5
67
5
77

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 26 * - + col1 + + 54 / + - col0 < - 34
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - + col1 AS col1, col1 col1 FROM tab0 cor0
----
-210
21
-3807
81
-99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 * 90 col0 FROM tab1
----
7200
7200
7200

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6040
SELECT + - CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col0 FROM tab0 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----
NULL

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

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT ( NOT 81 * col2 >= 40 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6042
SELECT - COUNT( - col0 ) DIV - 63 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6042
SELECT - COUNT ( - col0 ) / - 63 AS col0 FROM tab0
----
0

query I rowsort
SELECT - ( col1 ) * - col0 - 71 FROM tab1
----
354
4206
643

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 76 / - 20 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT + - COUNT( DISTINCT - 32 ) AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6046
SELECT + - COUNT ( DISTINCT - 32 ) AS col0 FROM tab0 cor0
----
-1

query II rowsort
SELECT col1, ( - 54 ) AS col1 FROM tab1 AS cor0
----
14
-54
47
-54
5
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT MIN( + - ( + 77 ) ) * - 19 FROM tab0 AS cor0
----
1463

skipif mysql # not compatible
query I rowsort label-6048
SELECT MIN ( + - ( + 77 ) ) * - 19 FROM tab0 AS cor0
----
1463

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6050
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-6050
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT - 13 * col0 AS col1 FROM tab0
----
-1131
-1261
-195

query I rowsort
SELECT ALL ( - ( + 42 ) ) - 30 FROM tab2
----
-72
-72
-72

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 / col1 NOT BETWEEN + col0 AND NULL
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 15 * - col2 BETWEEN NULL AND - col2 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 * col2 col2 FROM tab1
----
-2301
-2652
-3744

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - col1 * + 17 )
----

query I rowsort
SELECT DISTINCT ( 73 ) + + col1 AS col2 FROM tab1
----
120
78
87

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 * 75 - + col1 IN ( - col0 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 78 * col0 NOT BETWEEN 24 AND NULL
----

query I rowsort
SELECT + 92 FROM tab0 WHERE NOT NULL <= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6062
SELECT DISTINCT - CAST( - 89 AS SIGNED ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT - CAST ( - 89 AS INTEGER ) FROM tab1
----
89

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 = - 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 32 * col2 AS col0 FROM tab2
----
1280
1856
736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 + + 22 * + col0 col2 FROM tab1
----
1188
1936
2068

query III rowsort
SELECT * FROM tab0 WHERE NOT + 27 * - 36 NOT IN ( - 93 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6068
SELECT 78 DIV + 80 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6068
SELECT 78 / + 80 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 89 - - col2 FROM tab1
----
-21
-30
7

query I rowsort
SELECT - col0 FROM tab1 WHERE + col0 > - 93 + + 27
----
-51
-85
-91

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

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

query I rowsort
SELECT - col1 + + 48 FROM tab0
----
-33
27
47

query I rowsort
SELECT + col2 + - 16 * col2 AS col1 FROM tab1
----
-1020
-1440
-885

query I rowsort
SELECT - 12 * + col1 FROM tab1
----
-168
-564
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-6075
SELECT DISTINCT + col1 DIV + 64 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT + col1 / + 64 FROM tab2
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6076
SELECT ALL - 89 + - 22 DIV + 88 AS col0 FROM tab1
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL - 89 + - 22 / + 88 AS col0 FROM tab1
----
-89
-89
-89

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6077
SELECT + 1 * COUNT ( * ) col1 FROM tab1
----
3

query I rowsort
SELECT ALL + col2 + + 85 * col2 AS col0 FROM tab1
----
5074
5848
8256

query I rowsort
SELECT + col1 + + 36 AS col1 FROM tab2
----
103
113
87

query I rowsort
SELECT ALL - ( 39 ) FROM tab1 WHERE + 89 * + col1 IS NOT NULL
----
-39
-39
-39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT DISTINCT 85 * - SUM( + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT - ( + 16 ) * - col2 >= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6082
SELECT DISTINCT 85 * - SUM ( + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT - ( + 16 ) * - col2 >= col0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( - 6 ) NOT IN ( 48 / col0 - ( + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT ALL COUNT( * ) + 67 AS col1 FROM tab1 cor0
----
70

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL COUNT ( * ) + 67 AS col1 FROM tab1 cor0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6085
SELECT MAX( DISTINCT 73 ) DIV 87 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6085
SELECT MAX ( DISTINCT 73 ) / 87 AS col2 FROM tab1 cor0
----
0

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

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

skipif mysql # not compatible
query I rowsort label-6087
SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE 3 IN ( col1 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6089
SELECT - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2
----
-9

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

skipif mysql # not compatible
query I rowsort label-6090
SELECT - COUNT ( - col0 ) AS col0 FROM tab2
----
-3

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

query I rowsort
SELECT - + 97 * + 10 AS col0 FROM tab0 AS cor0
----
-970
-970
-970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6093
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0 WHERE - col0 + ( col1 ) >= ( - col2 * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 + ( col1 ) >= ( - col2 * + col0 )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 2 < col1 * col1
----
97
1
99

query I rowsort
SELECT + 33 FROM tab2 AS cor0 WHERE NOT - 88 NOT IN ( col2 / - col1 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6097
SELECT + + CAST( - col0 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-6097
SELECT + + CAST ( - col0 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT MIN( DISTINCT - col1 ) * - MIN( 99 ) AS col2 FROM tab2
----
7623

skipif mysql # not compatible
query I rowsort label-6098
SELECT MIN ( DISTINCT - col1 ) * - MIN ( 99 ) AS col2 FROM tab2
----
7623

query I rowsort
SELECT col2 * + + col0 * col0 FROM tab2
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT DISTINCT - MIN( 96 ) AS col0 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT - MIN ( 96 ) AS col0 FROM tab2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6101
SELECT + CAST( col1 AS SIGNED ) * 51 FROM tab2 WHERE NOT - col0 IS NULL
----
2601
3417
3927

skipif mysql # not compatible
query I rowsort label-6101
SELECT + CAST ( col1 AS INTEGER ) * 51 FROM tab2 WHERE NOT - col0 IS NULL
----
2601
3417
3927

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

skipif mysql # not compatible
query I rowsort label-6102
SELECT + 43 / ( - col2 ) AS col0 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6103
SELECT - col2 * 12 + col0 FROM tab2 WHERE NOT ( CAST( NULL AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6103
SELECT - col2 * 12 + col0 FROM tab2 WHERE NOT ( CAST ( NULL AS REAL ) ) IS NULL
----

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

query I rowsort
SELECT ALL - 91 FROM tab1 WHERE NOT NULL < col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6106
SELECT * FROM tab1 WHERE NOT - col0 - - CAST( NULL AS SIGNED ) >= + ( - col0 ) + + CAST( - 21 AS SIGNED ) / 5
----

skipif mysql # not compatible
query III rowsort label-6106
SELECT * FROM tab1 WHERE NOT - col0 - - CAST ( NULL AS INTEGER ) >= + ( - col0 ) + + CAST ( - 21 AS INTEGER ) / 5
----

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

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

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

query I rowsort
SELECT DISTINCT - 50 + - 37 FROM tab1 AS cor0
----
-87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT MIN( ALL + col2 ) * - COUNT( * ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-6112
SELECT MIN ( ALL + col2 ) * - COUNT ( * ) FROM tab2
----
-69

query I rowsort
SELECT + 55 + 73 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 6a9ed45ca8e49cad3cefcf18e4d680fe

query I rowsort
SELECT ALL + 74 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

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

skipif mysql # not compatible
query I rowsort label-6115
SELECT + ( - COUNT ( * ) ) * - + 37 + SUM ( ( CAST ( NULL AS INTEGER ) ) ) * COUNT ( * ) FROM tab2
----
NULL

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( col2 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6121
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) * + 27 <> + col1 + - col2
----

skipif mysql # not compatible
query III rowsort label-6121
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) * + 27 <> + col1 + - col2
----

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

query I rowsort
SELECT ALL 54 * - col2 + - 2 FROM tab1 AS cor0 WHERE + 1 + + 88 = + col0 OR NOT ( col1 ) + 52 * col1 IS NULL
----
-3188
-3674
-5186

onlyif mysql # DIV for integer division: 
query I rowsort label-6124
SELECT DISTINCT - 79 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6124
SELECT DISTINCT - 79 / - col2 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + + col1 * + col2 + + + col1 + - 18 * + col1 AS col1 FROM tab1 AS cor0
----
1106
210
2397

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( col2 ) <> NULL
----

query I rowsort
SELECT col1 + col2 - + - col0 * + col2 FROM tab2 AS cor0
----
1132
2677
4475

query I rowsort
SELECT DISTINCT + 40 + col1 AS col1 FROM tab0 AS cor0
----
121
41
61

query II rowsort
SELECT + col2, 6 * + ( col1 ) FROM tab2 cor0
----
23
306
40
462
58
402

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

skipif mysql # not compatible
query I rowsort label-6131
SELECT COUNT ( - - 75 ) FROM tab1 AS cor0
----
3

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) = col2 + + 48 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab0 WHERE - - col0 * - col2 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT + 48 * - - COUNT( * ) AS col2 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-6135
SELECT + 48 * - - COUNT ( * ) AS col2 FROM tab0
----
144

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT ( - col2 - + + col2 ) IS NULL AND NOT + 94 <> NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6138
SELECT + col0 - CAST( - + 84 AS SIGNED ) - + col2 * - col2 AS col0 FROM tab0 cor0
----
2308
271
9982

skipif mysql # not compatible
query I rowsort label-6138
SELECT + col0 - CAST ( - + 84 AS INTEGER ) - + col2 * - col2 AS col0 FROM tab0 cor0
----
2308
271
9982

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6139
SELECT + - 35 * - ( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6139
SELECT + - 35 * - ( CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6140
SELECT col0 DIV - ( - - col0 ) - + - 46 * col2 FROM tab2 AS cor0
----
1057
1839
2667

skipif mysql # not compatible
query I rowsort label-6140
SELECT col0 / - ( - - col0 ) - + - 46 * col2 FROM tab2 AS cor0
----
1057
1839
2667

query I rowsort
SELECT - + col0 * - col2 + + + col1 AS col1 FROM tab1 cor0
----
4910
5020
6235

query II rowsort
SELECT + - col1, col2 AS col1 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 AS cor0 WHERE NOT col2 * - - col2 IS NULL
----
51
67
77

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

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( col2 ) * 97 + - col0 IS NOT NULL
----

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

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

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

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

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

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

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

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

query I rowsort
SELECT - col0 + - col2 * + - 44 FROM tab1 AS cor0
----
2511
2901
4173

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6157
SELECT ALL - 47 * + col1 / 59 * - + col0 / - 38 + col0 - + CAST( NULL AS SIGNED ) FROM tab2 WHERE - + 50 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL - 47 * + col1 / 59 * - + col0 / - 38 + col0 - + CAST ( NULL AS INTEGER ) FROM tab2 WHERE - + 50 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL col1 + + + col0 + + CAST ( NULL AS REAL ) + + - col1 * - 20 * - - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 5 ) * - ( - col0 ) AS col1 FROM tab2
----
-230
-320
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT + 35 + - COUNT( * ) * + - COUNT( * ) + 20 FROM tab1 cor0 WHERE ( NOT NULL = - col0 )
----
55

skipif mysql # not compatible
query I rowsort label-6160
SELECT + 35 + - COUNT ( * ) * + - COUNT ( * ) + 20 FROM tab1 cor0 WHERE ( NOT NULL = - col0 )
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 31 * - 57 col1, ( - - col2 ) AS col1 FROM tab1 AS cor0
----
-1767
59
-1767
68
-1767
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6162
SELECT + ( 31 ) DIV - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6162
SELECT + ( 31 ) / - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6164
SELECT 62 * 69 - - COUNT( * ) DIV + 34 AS col1 FROM tab1 AS cor0
----
4278

skipif mysql # not compatible
query I rowsort label-6164
SELECT 62 * 69 - - COUNT ( * ) / + 34 AS col1 FROM tab1 AS cor0
----
4278

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

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

query I rowsort
SELECT - - 68 - col1 + + col0 * + 22 * + ( - col2 ) AS col1 FROM tab1 cor0
----
-107658
-110267
-136115

query I rowsort
SELECT ALL col2 - + col0 * - ( - 66 ) AS col2 FROM tab2
----
-3013
-4184
-4892

query I rowsort
SELECT ALL - col1 * - col0 - - col2 * 38 * - col0 + - 78 * - 83 FROM tab1
----
-178860
-183671
-224393

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT DISTINCT 66 - - COUNT( * ) AS col0 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT 66 - - COUNT ( * ) AS col0 FROM tab1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT ( COUNT( * ) ) + + + 77 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-6170
SELECT ( COUNT ( * ) ) + + + 77 FROM tab2
----
80

query I rowsort
SELECT DISTINCT col2 * - - col2 - + ( + + 21 ) FROM tab0
----
2188
79
9780

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT 78 + - COUNT( * ) AS col0 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-6172
SELECT 78 + - COUNT ( * ) AS col0 FROM tab1
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = ( - + col0 )
----

query I rowsort
SELECT ALL 64 * - - 26 FROM tab0
----
1664
1664
1664

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6177
SELECT ALL - - CAST( 60 AS SIGNED ) FROM tab2 AS cor0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL - - CAST ( 60 AS INTEGER ) FROM tab2 AS cor0
----
60
60
60

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

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

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

skipif mysql # not compatible
query II rowsort label-6179
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col2, ( + col2 ) AS col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT - 32 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-32

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT - 83 - + SUM( ALL - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6183
SELECT - 83 - + SUM ( ALL - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 = NULL
----
NULL

query I rowsort
SELECT - col2 * 31 * 37 + ( col0 ) FROM tab2
----
-26335
-45816
-66451

query I rowsort
SELECT col2 + - 25 FROM tab1
----
34
43
71

onlyif mysql # DIV for integer division: 
query II rowsort label-6186
SELECT ALL + col1, + col0 DIV col2 FROM tab2
----
51
2
67
1
77
1

skipif mysql # not compatible
query II rowsort label-6186
SELECT ALL + col1, + col0 / col2 FROM tab2
----
51
2
67
1
77
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6187
SELECT - col0 DIV - - 73 + - 32 * - col0 col2 FROM tab2
----
1472
2048
2399

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6187
SELECT - col0 / - - 73 + - 32 * - col0 col2 FROM tab2
----
1472
2048
2399

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

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

query I rowsort
SELECT ALL - 54 * + col0 FROM tab0
----
-4698
-5238
-810

query III rowsort
SELECT * FROM tab1 WHERE - - 39 + + col0 - - col0 + - col1 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6192
SELECT * FROM tab2 WHERE + 10 / CAST( NULL AS SIGNED ) * - 82 / 33 * - 96 IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-6192
SELECT * FROM tab2 WHERE + 10 / CAST ( NULL AS INTEGER ) * - 82 / 33 * - 96 IN ( + col2 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6195
SELECT MAX( CAST( + col0 AS SIGNED ) ) FROM tab0 AS cor0 WHERE ( NOT col0 >= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6195
SELECT MAX ( CAST ( + col0 AS INTEGER ) ) FROM tab0 AS cor0 WHERE ( NOT col0 >= NULL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-6197
SELECT COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
9

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6199
SELECT DISTINCT ( ( - MIN( + - 67 ) ) ) AS col2, - 33 AS col2 FROM tab2 AS cor0
----
67
-33

skipif mysql # not compatible
query II rowsort label-6199
SELECT DISTINCT ( ( - MIN ( + - 67 ) ) ) AS col2, - 33 AS col2 FROM tab2 AS cor0
----
67
-33

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

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

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

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

query II rowsort
SELECT - - 77 AS col1, + col0 + 91 AS col0 FROM tab2 AS cor0
----
77
137
77
155
77
166

query I rowsort
SELECT ALL ( 96 ) AS col2 FROM tab0 AS cor0
----
96
96
96

query I rowsort
SELECT 92 * col2 * - col0 FROM tab2 AS cor0
----
-235520
-400200
-97336

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

query I rowsort
SELECT 62 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * 19 AS col0, 75 col1 FROM tab0
----
1881
75
190
75
893
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6208
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE ( NULL IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE ( NULL IS NULL )
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6209
SELECT ALL - CAST( NULL AS SIGNED ) * MAX( ALL - 47 ), - COUNT( * ) AS col2 FROM tab1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-6209
SELECT ALL - CAST ( NULL AS INTEGER ) * MAX ( ALL - 47 ), - COUNT ( * ) AS col2 FROM tab1
----
NULL
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT ALL COUNT( DISTINCT + 3 ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL COUNT ( DISTINCT + 3 ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
1

query II rowsort
SELECT + col2 AS col2, col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT - + col2, 3 AS col0 FROM tab1 AS cor0
----
-59
3
-68
3
-96
3

query I rowsort
SELECT ALL - col2 + - 67 FROM tab0 AS cor0
----
-114
-166
-77

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

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-6217
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IN ( + 46, col0 DIV + 50 )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-6217
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IN ( + 46, col0 / + 50 )
----
15
81
47
87
21
10

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

query I rowsort
SELECT + col0 * - - 99 AS col2 FROM tab0
----
1485
8613
9603

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6221
SELECT ALL 68 DIV + 48 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL 68 / + 48 FROM tab1
----
1
1
1

query I rowsort
SELECT 46 + - 92 FROM tab0
----
-46
-46
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-6223
SELECT + col0 DIV col2 + + + col0 AS col2 FROM tab2
----
48
65
76

skipif mysql # not compatible
query I rowsort label-6223
SELECT + col0 / col2 + + + col0 AS col2 FROM tab2
----
48
65
76

query I rowsort
SELECT + 48 + + ( + col1 ) * ( - - col0 ) FROM tab1
----
4325
473
762

onlyif mysql # DIV for integer division: 
query I rowsort label-6225
SELECT + col0 * + - col0 + + - col2 DIV 43 FROM tab2 AS cor0
----
-2116
-4096
-5626

skipif mysql # not compatible
query I rowsort label-6225
SELECT + col0 * + - col0 + + - col2 / 43 FROM tab2 AS cor0
----
-2116
-4096
-5626

query I rowsort
SELECT DISTINCT + 13 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT SUM( - col0 ) col2 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6227
SELECT SUM ( - col0 ) col2 FROM tab0
----
-199

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6230
SELECT COUNT ( * ) - COUNT ( * ) + - + 70 FROM tab0 cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT DISTINCT - + 35 + 32 * - + COUNT( * ) * - 72 + - + 94 AS col2 FROM tab2 AS cor0
----
6783

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT - + 35 + 32 * - + COUNT ( * ) * - 72 + - + 94 AS col2 FROM tab2 AS cor0
----
6783

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

query I rowsort
SELECT col2 * 82 + - 91 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1795
3189
4665

onlyif mysql # DIV for integer division: 
query I rowsort label-6234
SELECT col2 DIV + 60 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6234
SELECT col2 / + 60 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT - col2 * + 10 FROM tab1
----
-590
-680
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, + col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6237
SELECT col0 * ( + col2 ) DIV col1 + 88 - + col2 FROM tab0
----
119
49
9592

skipif mysql # not compatible
query I rowsort label-6237
SELECT col0 * ( + col2 ) / col1 + 88 - + col2 FROM tab0
----
119
49
9592

query I rowsort
SELECT ( - 76 ) * - + 10 AS col2 FROM tab0
----
760
760
760

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

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

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

query I rowsort
SELECT ALL - 99 * ( 28 ) AS col0 FROM tab1 AS cor0
----
-2772
-2772
-2772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
4

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

query I rowsort
SELECT DISTINCT + ( + + 39 ) + + 74 AS col1 FROM tab1 AS cor0
----
113

query I rowsort
SELECT ALL + + 96 * col2 * - + col0 FROM tab1 AS cor0
----
-470016
-481440
-594048

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

query I rowsort
SELECT ( + + col1 ) + - ( - col0 ) AS col1 FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT DISTINCT + 49 FROM tab1 AS cor0 WHERE 59 IS NOT NULL
----
49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 89 * + 25 + - - col2 IS NULL
----

query I rowsort
SELECT ALL + + col2 * + + 21 + + col2 AS col2 FROM tab2 AS cor0
----
1276
506
880

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT - COUNT( * ) + SUM( ALL + col0 ) FROM tab0 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-6252
SELECT - COUNT ( * ) + SUM ( ALL + col0 ) FROM tab0 AS cor0
----
196

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6254
SELECT COUNT ( * ) + + CAST ( - 67 AS INTEGER ) col2 FROM tab0
----
-64

query II rowsort
SELECT DISTINCT + ( col1 ) + col1 AS col0, col1 * + col1 FROM tab1
----
10
25
28
196
94
2209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 26, + col2 * - + 10 + col0 col0 FROM tab0
----
26
-13
26
-455
26
-893

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

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

skipif mysql # not compatible
query I rowsort label-6258
SELECT - ( + ( - - COUNT ( * ) ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT DISTINCT - 59 - - COUNT( * ) FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT - 59 - - COUNT ( * ) FROM tab2
----
-56

query I rowsort
SELECT DISTINCT col2 * - - col2 AS col2 FROM tab1
----
3481
4624
9216

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 87 = ( NULL )
----

query II rowsort
SELECT DISTINCT + 61, 12 AS col0 FROM tab1 cor0
----
61
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6263
SELECT ALL - 95 + CAST( + + col0 AS SIGNED ) * - + col2 AS col1 FROM tab1 AS cor0
----
-4991
-5110
-6283

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL - 95 + CAST ( + + col0 AS INTEGER ) * - + col2 AS col1 FROM tab1 AS cor0
----
-4991
-5110
-6283

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

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

query I rowsort
SELECT + 2 - 79 AS col1 FROM tab0 cor0
----
-77
-77
-77

query I rowsort
SELECT ALL 64 * - col0 + col2 + + col1 AS col2 FROM tab1 AS cor0
----
-3154
-5376
-5709

query I rowsort
SELECT - col1 - + + col0 * - 78 + + 32 AS col2 FROM tab2 AS cor0
----
3569
4947
5815

query I rowsort
SELECT DISTINCT + ( + 80 ) + + 0 AS col1 FROM tab0 AS cor0
----
80

query I rowsort
SELECT DISTINCT - 48 - - 36 FROM tab1
----
-12

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

query I rowsort
SELECT - 34 * col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 40 col1 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN col1 AND 53
----
23

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

skipif mysql # not compatible
query I rowsort label-6274
SELECT col1 / + - 99 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL - - ( - - COUNT ( * ) ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6278
SELECT - + 4 * - COUNT( * ) AS col1, + 75 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
12
75

skipif mysql # not compatible
query II rowsort label-6278
SELECT - + 4 * - COUNT ( * ) AS col1, + 75 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
12
75

query I rowsort
SELECT - col0 * + - 53 AS col2 FROM tab1
----
2703
4505
4823

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

query I rowsort
SELECT ALL - 89 + + 54 + + col1 + col2 * + - col1 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 6 col2 FROM tab1
----
-354
-408
-576

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

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

query II rowsort
SELECT col2 AS col0, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6285
SELECT CAST( NULL AS SIGNED ) AS col1, MIN( DISTINCT + - 24 ) - + 63 FROM tab2 cor0
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-6285
SELECT CAST ( NULL AS INTEGER ) AS col1, MIN ( DISTINCT + - 24 ) - + 63 FROM tab2 cor0
----
NULL
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT SUM( col2 ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-6286
SELECT SUM ( col2 ) AS col2 FROM tab0 cor0
----
156

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

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

query II rowsort
SELECT DISTINCT col0, 98 - + col0 FROM tab1
----
51
47
85
13
91
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 col2 FROM tab2, tab0 AS cor0 WHERE NULL IS NULL
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT 93 * - + col1 FROM tab1
----
-1302
-4371
-465

query I rowsort
SELECT 83 * + col2 AS col0 FROM tab1
----
4897
5644
7968

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

query I rowsort
SELECT + 30 * 47 FROM tab1 AS cor0
----
1410
1410
1410

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT ALL COUNT( * ) * 80 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL COUNT ( * ) * 80 FROM tab0 AS cor0
----
240

query II rowsort
SELECT - 99 AS col2, - col1 * + - col2 FROM tab1 cor0
----
-99
1344
-99
295
-99
3196

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 17 / - col0 NOT IN ( + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT ALL - 22 * - 73 - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
1603

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL - 22 * - 73 - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1603

query I rowsort
SELECT ALL 20 + + - col0 AS col0 FROM tab1 AS cor0
----
-31
-65
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 AS col0, col2 col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

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

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

query I rowsort
SELECT DISTINCT 87 + + col0 AS col1 FROM tab2
----
133
151
162

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

query I rowsort
SELECT DISTINCT - col2 + 68 AS col2 FROM tab2
----
10
28
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6307
SELECT ALL col1 * + col1 DIV + col1 AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL col1 * + col1 / + col1 AS col2 FROM tab0
----
1
21
81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6309
SELECT DISTINCT col2 + + CAST( 77 AS SIGNED ) AS col1 FROM tab1
----
136
145
173

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT col2 + + CAST ( 77 AS INTEGER ) AS col1 FROM tab1
----
136
145
173

onlyif mysql # aggregate syntax: 
query II rowsort label-6310
SELECT - COUNT( * ) - - - COUNT( - + col2 ) AS col0, COUNT( * ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN - col1 + - + 92 AND NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-6310
SELECT - COUNT ( * ) - - - COUNT ( - + col2 ) AS col0, COUNT ( * ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN - col1 + - + 92 AND NULL
----
0
0

query I rowsort
SELECT DISTINCT + 59 * col0 FROM tab2
----
2714
3776
4425

query I rowsort
SELECT ALL 74 - col2 FROM tab0
----
-25
27
64

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

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

query I rowsort
SELECT + + col2 + 64 FROM tab0 AS cor0
----
111
163
74

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6317
SELECT ALL - ( COUNT( * ) ) * MIN( ALL + + col0 ) DIV SUM( ALL - 34 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL - ( COUNT ( * ) ) * MIN ( ALL + + col0 ) / SUM ( ALL - 34 ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT MIN( 8 ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-6318
SELECT MIN ( 8 ) FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6319
SELECT ( + + col2 ), + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6319
SELECT ( + + col2 ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 16 col0, - col0 FROM tab1 AS cor0
----
16
-51
16
-85
16
-91

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6323
SELECT COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) DIV - 91 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6323
SELECT COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) / - 91 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6325
SELECT + ( col1 ) * - - 72 * + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1 WHERE NOT ( NULL = NULL )
----

skipif mysql # not compatible
query I rowsort label-6325
SELECT + ( col1 ) * - - 72 * + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1 WHERE NOT ( NULL = NULL )
----

query I rowsort
SELECT DISTINCT + 77 * - ( + + col2 ) AS col0 FROM tab1
----
-4543
-5236
-7392

query II rowsort
SELECT col2 + - + col0, col0 FROM tab1 AS cor0 WHERE NOT 84 IS NULL
----
-23
91
-26
85
45
51

query I rowsort
SELECT - - 80 FROM tab2 cor0
----
80
80
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT ALL - MIN( ALL + ( col0 ) ) * + ( - ( COUNT( * ) ) ) - - COUNT( * ) FROM tab2 cor0
----
141

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL - MIN ( ALL + ( col0 ) ) * + ( - ( COUNT ( * ) ) ) - - COUNT ( * ) FROM tab2 cor0
----
141

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6333
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT ALL + col2 + col2 + col2 AS col1 FROM tab0 AS cor0
----
141
297
30

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

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

query I rowsort
SELECT - 83 - + + col1 FROM tab2 cor0 WHERE ( NULL ) NOT IN ( 25 - - 55, - 56 )
----

query I rowsort
SELECT DISTINCT + + 2 + col2 FROM tab0 AS cor0
----
101
12
49

query I rowsort
SELECT - - 50 + + col0 AS col0 FROM tab1 AS cor0
----
101
135
141

query I rowsort
SELECT ALL - col2 * - 14 + + 61 + col0 + 17 + + + 96 + col1 * + + col2 AS col2 FROM tab2 AS cor0
----
1715
3878
4947

query III rowsort
SELECT * FROM tab1 WHERE + - 90 = NULL
----

query I rowsort
SELECT DISTINCT - ( + + 25 ) FROM tab1 WHERE 99 * + + col1 < - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6342
SELECT ALL + CAST( - col0 AS SIGNED ) + - + 1 AS col2, col0 AS col1 FROM tab0 WHERE - ( + - col1 ) = NULL
----

skipif mysql # not compatible
query II rowsort label-6342
SELECT ALL + CAST ( - col0 AS INTEGER ) + - + 1 AS col2, col0 AS col1 FROM tab0 WHERE - ( + - col1 ) = NULL
----

query I rowsort
SELECT DISTINCT ( - + 54 ) * - 61 AS col0 FROM tab2
----
3294

query I rowsort
SELECT DISTINCT + 32 + + - 62 FROM tab2
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-6345
SELECT col1, - col0 * + col0 + 76 + - col1 + - - col2 * - col1 DIV - col1 AS col2 FROM tab1
----
14
-2443
47
-8184
5
-7095

skipif mysql # not compatible
query II rowsort label-6345
SELECT col1, - col0 * + col0 + 76 + - col1 + - - col2 * - col1 / - col1 AS col2 FROM tab1
----
14
-2443
47
-8184
5
-7095

query I rowsort
SELECT ALL + 49 - - col0 * col1 * col2 AS col0 FROM tab1
----
25124
290885
68593

query II rowsort
SELECT DISTINCT col0 AS col2, col2 - + col0 FROM tab2
----
46
-23
64
-24
75
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT DISTINCT 54 * COUNT( * ) FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT 54 * COUNT ( * ) FROM tab2 AS cor0
----
162

query I rowsort
SELECT ALL + ( - 30 ) + col2 FROM tab2 AS cor0
----
-7
10
28

query I rowsort
SELECT - 49 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # DIV for integer division: 
query I rowsort label-6351
SELECT DISTINCT + ( 72 ) DIV 77 col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6351
SELECT DISTINCT + ( 72 ) / 77 col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6352
SELECT ALL - col1 * + CAST( 59 AS SIGNED ) FROM tab1 AS cor0
----
-2773
-295
-826

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL - col1 * + CAST ( 59 AS INTEGER ) FROM tab1 AS cor0
----
-2773
-295
-826

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

query II rowsort
SELECT + ( - col0 ) * + col0 AS col0, + col2 FROM tab2 AS cor0
----
-2116
23
-4096
40
-5625
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT - - SUM( ALL - 32 ) * + SUM( DISTINCT + 26 ) FROM tab0 cor0
----
-2496

skipif mysql # not compatible
query I rowsort label-6356
SELECT - - SUM ( ALL - 32 ) * + SUM ( DISTINCT + 26 ) FROM tab0 cor0
----
-2496

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

query I rowsort
SELECT ALL + ( - 46 ) AS col0 FROM tab1
----
-46
-46
-46

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < + ( - - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6360
SELECT DISTINCT + col2 DIV - 23 AS col0 FROM tab0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-6360
SELECT DISTINCT + col2 / - 23 AS col0 FROM tab0
----
-2
-4
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT - + MIN( ALL - 95 ) FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-6362
SELECT - + MIN ( ALL - 95 ) FROM tab1 AS cor0
----
95

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

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

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

query II rowsort
SELECT ALL - col0 AS col1, col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
-51
96
-85
59
-91
68

query II rowsort
SELECT DISTINCT - 93 * - col2, col1 FROM tab0
----
4371
81
9207
1
930
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6367
SELECT SUM( 86 ) DIV + MIN( + 79 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6367
SELECT SUM ( 86 ) / + MIN ( + 79 ) FROM tab0
----
3

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

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

query I rowsort
SELECT DISTINCT ( + + 17 ) AS col0 FROM tab1 WHERE + 63 < NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE col1 BETWEEN - + 43 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT 89 FROM tab2, tab0 cor0
----
89

query I rowsort
SELECT col0 + - + 0 * col0 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT - ( - 77 ) FROM tab1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT ALL - SUM( ALL 3 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL - SUM ( ALL 3 ) FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * 27 * - col2 * - col2 IS NOT NULL
----

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

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

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

query II rowsort
SELECT DISTINCT + col2, + ( col2 ) * + col1 AS col0 FROM tab2 cor0
----
23
1173
40
3080
58
3886

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT - 72 + COUNT( + col0 ) FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-6383
SELECT - 72 + COUNT ( + col0 ) FROM tab0
----
-69

query I rowsort
SELECT col1 * - + col1 AS col2 FROM tab2
----
-2601
-4489
-5929

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6386
SELECT DISTINCT ( 98 ) DIV - - ( col2 ) FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT ( 98 ) / - - ( col2 ) FROM tab2
----
1
2
4

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

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

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

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL - CAST ( + + ( + col0 ) AS INTEGER ) * - - col1 * + 34 + + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 9 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # DIV for integer division: 
query I rowsort label-6390
SELECT - ( - col1 ) + + 53 DIV col0 FROM tab1
----
15
47
5

skipif mysql # not compatible
query I rowsort label-6390
SELECT - ( - col1 ) + + 53 / col0 FROM tab1
----
15
47
5

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 53 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6392
SELECT - col1 DIV col0 + + col0 AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6392
SELECT - col1 / col0 + + col0 AS col1 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT ALL - - col0, - 58 AS col1 FROM tab0 AS cor0
----
15
-58
87
-58
97
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > 71
----

query II rowsort
SELECT 26, col2 AS col1 FROM tab0 AS cor0
----
26
10
26
47
26
99

query I rowsort
SELECT DISTINCT 56 * 26 + + 45 AS col0 FROM tab1 AS cor0
----
1501

query II rowsort
SELECT - ( - col2 ) * + - col2, 17 AS col1 FROM tab0 AS cor0
----
-100
17
-2209
17
-9801
17

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

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

query III rowsort
SELECT * FROM tab0 WHERE col2 * - - 15 IS NULL
----

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

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 55 < - - col2
----

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

skipif mysql # not compatible
query I rowsort label-6402
SELECT - - ( - ( + + MAX ( - CAST ( + 19 AS INTEGER ) ) ) ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( ( - col0 ) ) FROM tab2 AS cor0
----
46
64
75

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

skipif mysql # not compatible
query I rowsort label-6404
SELECT col0 / - 92 AS col1 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6405
SELECT 87 AS col1, - col2 + + CAST( + col0 AS SIGNED ) FROM tab0
----
87
-2
87
-32
87
77

skipif mysql # not compatible
query II rowsort label-6405
SELECT 87 AS col1, - col2 + + CAST ( + col0 AS INTEGER ) FROM tab0
----
87
-2
87
-32
87
77

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT - MIN( + 79 ) AS col1 FROM tab0 AS cor0 WHERE NOT 76 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6411
SELECT - MIN ( + 79 ) AS col1 FROM tab0 AS cor0 WHERE NOT 76 IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6412
SELECT - - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - - ( 51 ) IS NULL
----
3

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

query I rowsort
SELECT 99 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 28 ) + 54 col0 FROM tab0
----
82
82
82

query I rowsort
SELECT DISTINCT ( + - 85 ) FROM tab2
----
-85

query I rowsort
SELECT + + 12 + - col2 + - 63 FROM tab0 cor0
----
-150
-61
-98

query I rowsort
SELECT - 90 + + col2 + - 57 AS col2 FROM tab2 AS cor0
----
-107
-124
-89

query I rowsort
SELECT ALL - - 24 FROM tab1 AS cor0 WHERE - 0 IS NULL
----

query II rowsort
SELECT ALL + - col2 + - + 84, + col1 FROM tab1 AS cor0
----
-143
5
-152
47
-180
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT DISTINCT - ( MIN( col1 ) ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT - ( MIN ( col1 ) ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6422
SELECT DISTINCT + + col2 + + col2 + - - 97 DIV col0 * col2 col2 FROM tab0 AS cor0
----
297
30
376

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6422
SELECT DISTINCT + + col2 + + col2 + - - 97 / col0 * col2 col2 FROM tab0 AS cor0
----
297
30
376

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

query I rowsort
SELECT + ( + col2 ) FROM tab0 cor0 WHERE ( NULL IS NULL )
----
10
47
99

query I rowsort
SELECT col2 - col0 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT - col2 * - col2 + + col0 + 61 AS col1 FROM tab0 AS cor0
----
2285
248
9959

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT DISTINCT + - MIN( ALL - col1 ) + - - COUNT( + - 11 ) + + COUNT( * ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-6427
SELECT DISTINCT + - MIN ( ALL - col1 ) + - - COUNT ( + - 11 ) + + COUNT ( * ) FROM tab2 AS cor0
----
83

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 12 * - + col2 + + 53 IS NULL
----

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

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

query I rowsort
SELECT + 31 + + 19 FROM tab2 AS cor0
----
50
50
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6431
SELECT ALL - 53 DIV 77 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL - 53 / 77 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query IIII rowsort label-6432
SELECT ALL - col2 DIV + 52 + col2 col0, 83, - 62 DIV + 70 AS col1, + CAST( NULL AS SIGNED ) col2 FROM tab0
----
12 values hashing to 7dfb9a31cb166b029fbe2a29380ef339

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query IIII rowsort label-6432
SELECT ALL - col2 / + 52 + col2 col0, 83, - 62 / + 70 AS col1, + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
12 values hashing to 7dfb9a31cb166b029fbe2a29380ef339

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

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE - 61 IS NULL OR NULL IS NULL
----
51
67
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT DISTINCT MIN( + 31 ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-6436
SELECT DISTINCT MIN ( + 31 ) FROM tab1
----
31

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6438
SELECT - col1 FROM tab0 WHERE NOT ( ( ( ( col0 + - col0 / - CAST( - col2 AS DECIMAL ) * - ( ( col1 ) ) * - + col2 + + 42 ) IS NULL ) ) )
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6438
SELECT - col1 FROM tab0 WHERE NOT ( ( ( ( col0 + - col0 / - CAST ( - col2 AS REAL ) * - ( ( col1 ) ) * - + col2 + + 42 ) IS NULL ) ) )
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT DISTINCT - 55 * - 28 * - COUNT( * ) FROM tab0 AS cor0
----
-4620

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT - 55 * - 28 * - COUNT ( * ) FROM tab0 AS cor0
----
-4620

query I rowsort
SELECT ALL - + 35 * + col2 AS col2 FROM tab0 cor0
----
-1645
-3465
-350

query I rowsort
SELECT DISTINCT - col1 + + - 64 FROM tab2 AS cor0
----
-115
-131
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT ALL + 15 * COUNT( * ) col1 FROM tab2 AS cor0
----
45

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

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

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

query I rowsort
SELECT DISTINCT - col0 + - ( 23 ) FROM tab1 cor0
----
-108
-114
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT - 7 + COUNT( * ) col2 FROM tab2
----
-4

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 32 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * 16 AS col0 FROM tab1
----
1088
1536
944

query I rowsort
SELECT DISTINCT + 86 * + 30 FROM tab2
----
2580

query I rowsort
SELECT + - 32 AS col0 FROM tab1 AS cor0
----
-32
-32
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6451
SELECT DISTINCT + COUNT( DISTINCT - + 63 ) + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT + COUNT ( DISTINCT - + 63 ) + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT DISTINCT + COUNT( * ) * + + 18 AS col1 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT + COUNT ( * ) * + + 18 AS col1 FROM tab0 AS cor0
----
54

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6454
SELECT ALL - - col0 DIV + col1 + ( + col1 ) + + col2 FROM tab0 AS cor0
----
128
197
35

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL - - col0 / + col1 + ( + col1 ) + + col2 FROM tab0 AS cor0
----
128
197
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT DISTINCT + 32 + - COUNT( * ) col0 FROM tab1 AS cor0
----
29

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6456
SELECT COUNT( * ) DIV - MIN( + col2 ) + + 34 * - - COUNT( * ) AS col0 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-6456
SELECT COUNT ( * ) / - MIN ( + col2 ) + + 34 * - - COUNT ( * ) AS col0 FROM tab2
----
102

query I rowsort
SELECT col2 * - col1 * - - 27 + + col1 + - col0 AS col2 FROM tab0
----
-102723
-2769
-5736

query I rowsort
SELECT ALL + 9 * + col2 * - 96 AS col0 FROM tab1
----
-50976
-58752
-82944

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT + SUM( ALL + - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6459
SELECT + SUM ( ALL + - col2 ) AS col2 FROM tab0 AS cor0
----
-156

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6461
SELECT ALL - + 14 col1, - 83 * - - SUM( - + col2 ) AS col2 FROM tab1 AS cor0
----
-14
18509

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6461
SELECT ALL - + 14 col1, - 83 * - - SUM ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-14
18509

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT ALL - - MIN( ALL + 79 ) FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL - - MIN ( ALL + 79 ) FROM tab2 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT + SUM( 4 ) AS col0 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-6465
SELECT + SUM ( 4 ) AS col0 FROM tab2
----
12

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

query I rowsort
SELECT DISTINCT + 59 * - col1 AS col2 FROM tab2
----
-3009
-3953
-4543

query I rowsort
SELECT ALL + - 60 - + + col0 FROM tab1 WHERE ( NOT - col2 * - + col2 IN ( - 57, col2 * + + col1 * + col0 + + col1, - - col1 * + 62 + - col2, - col2 ) )
----
-111
-145
-151

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

skipif mysql # not compatible
query I rowsort label-6469
SELECT DISTINCT + 96 / + COUNT ( * ) FROM tab1 AS cor0
----
32

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 + 1 + - col0 FROM tab0
----
-65
-95
67

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 / - col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6474
SELECT col1 * + col0 DIV + col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6474
SELECT col1 * + col0 / + col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL + ( - - 79 ) * 92 AS col2 FROM tab2 AS cor0
----
7268
7268
7268

query II rowsort
SELECT + - 87 * - col0 * - + 94, + col0 AS col2 FROM tab1 AS cor0
----
-417078
51
-695130
85
-744198
91

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 > - col2 + + 23
----
15
81
47
97
1
99

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

query I rowsort
SELECT DISTINCT 89 + + col0 * 21 * + col0 * + col0 AS col2 FROM tab2
----
2044145
5505113
8859464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6481
SELECT DISTINCT col0 * + ( - col0 ) + 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-6481
SELECT DISTINCT col0 * + ( - col0 ) + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 + col2 * + col2 - col0 NOT BETWEEN - ( + ( - - col1 ) ) / - col1 AND - col0
----

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

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL - 73 / COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6484
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE + col2 < + + col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE + col2 < + + col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 70 * - ( - 93 ) * + + col1 AS col2 FROM tab2
----
332010
436170
501270

query I rowsort
SELECT - 76 + - - 85 + + col1 FROM tab2
----
60
76
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT 11 + + COUNT( * ) AS col0 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-6487
SELECT 11 + + COUNT ( * ) AS col0 FROM tab0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT + COUNT( DISTINCT + 91 ) col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6488
SELECT + COUNT ( DISTINCT + 91 ) col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
1

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

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

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

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

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

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

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

query II rowsort
SELECT ALL - + 82, col1 + + - col2 AS col1 FROM tab2 AS cor0
----
-82
28
-82
37
-82
9

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 = + - col2 / - 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 78 AS col2 FROM tab1 cor0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 * - 47 - + + 8 col2 FROM tab1 AS cor0
----
-525
-525
-525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6498
SELECT - CAST( NULL AS SIGNED ) + + 92 + ( 68 ) FROM tab1 AS cor0 WHERE NOT + col0 * col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-6498
SELECT - CAST ( NULL AS INTEGER ) + + 92 + ( 68 ) FROM tab1 AS cor0 WHERE NOT + col0 * col0 <> NULL
----

query I rowsort
SELECT + + 5 * - 49 + col2 AS col2 FROM tab1 WHERE NOT - 43 * - col0 NOT BETWEEN NULL AND - - col2 + - col1
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6501
SELECT DISTINCT MIN ( + + 78 ) AS col1 FROM tab2
----
78

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 < - col0
----
85
5
59
91
47
68

query I rowsort
SELECT col1 * 50 * col1 FROM tab2
----
130050
224450
296450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6504
SELECT DISTINCT - MAX( + CAST( + - 28 AS SIGNED ) ) FROM tab0 WHERE NULL IS NULL
----
28

skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT - MAX ( + CAST ( + - 28 AS INTEGER ) ) FROM tab0 WHERE NULL IS NULL
----
28

query II rowsort
SELECT ALL col2 AS col0, col2 + + + col2 - + - ( col1 ) FROM tab2
----
23
97
40
157
58
183

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6507
SELECT ALL + COUNT( * ) / - COUNT( * ) + - SUM( ALL - - CAST( NULL AS DECIMAL ) ) + + 99 col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6507
SELECT ALL + COUNT ( * ) / - COUNT ( * ) + - SUM ( ALL - - CAST ( NULL AS REAL ) ) + + 99 col1 FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT MIN( + 25 ) * + + 38 FROM tab0 AS cor0
----
950

skipif mysql # not compatible
query I rowsort label-6509
SELECT MIN ( + 25 ) * + + 38 FROM tab0 AS cor0
----
950

onlyif mysql # aggregate syntax: 
query II rowsort label-6510
SELECT + COUNT( ALL + col0 ), + 77 AS col2 FROM tab0
----
3
77

skipif mysql # not compatible
query II rowsort label-6510
SELECT + COUNT ( ALL + col0 ), + 77 AS col2 FROM tab0
----
3
77

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

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

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

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

query I rowsort
SELECT + - col1 + - 89 AS col1 FROM tab1 AS cor0
----
-103
-136
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6515
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( + 37 ) + 11 + - col2 + - col2 + + - col0 * - ( - col2 ) * - col2 * - CAST( NULL AS SIGNED ) - + col2 * - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6515
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( + 37 ) + 11 + - col2 + - col2 + + - col0 * - ( - col2 ) * - col2 * - CAST ( NULL AS INTEGER ) - + col2 * - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6516
SELECT + - ( col0 ) DIV + - 89 + - - col1 AS col2 FROM tab1 AS cor0
----
14
48
5

skipif mysql # not compatible
query I rowsort label-6516
SELECT + - ( col0 ) / + - 89 + - - col1 AS col2 FROM tab1 AS cor0
----
14
48
5

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6517
SELECT - COUNT ( * ) + + + COUNT ( * ) col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6518
SELECT - col1 DIV + 64 + + - col2 + col1 AS col2 FROM tab1 cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-6518
SELECT - col1 / + 64 + + - col2 + col1 AS col2 FROM tab1 cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT ALL 98 + + - ( - + MIN( - col1 ) ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL 98 + + - ( - + MIN ( - col1 ) ) FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT ALL + COUNT( ALL - col1 ) FROM tab0 WHERE NULL BETWEEN - - ( - col2 ) * - col0 + + + col2 * + + 39 + + col2 AND + - 56
----
0

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL + COUNT ( ALL - col1 ) FROM tab0 WHERE NULL BETWEEN - - ( - col2 ) * - col0 + + + col2 * + + 39 + + col2 AND + - 56
----
0

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

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT - 27 / 97 - + COUNT ( * ) + + - 83 FROM tab1
----
-86

query I rowsort
SELECT ALL 36 + - col1 AS col0 FROM tab1 WHERE + - col1 > - - col1
----

query II rowsort
SELECT DISTINCT - - col2, + col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 46 + + col0 FROM tab2 AS cor0
----
0
18
29

query I rowsort
SELECT - + col0 + - 46 + + 12 AS col0 FROM tab0 cor0
----
-121
-131
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6526
SELECT MIN( DISTINCT + - ( 73 ) ) + + + COUNT( * ) + + + CAST( - 79 AS SIGNED ) AS col1, MIN( - - 2 ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-149
-1

skipif mysql # not compatible
query II rowsort label-6526
SELECT MIN ( DISTINCT + - ( 73 ) ) + + + COUNT ( * ) + + + CAST ( - 79 AS INTEGER ) AS col1, MIN ( - - 2 ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-149
-1

query III rowsort
SELECT * FROM tab2 cor0 WHERE 6 > 22 / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT ALL 69 + - COUNT( * ) FROM tab1 WHERE NULL NOT IN ( 89 / + col1 )
----
69

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL 69 + - COUNT ( * ) FROM tab1 WHERE NULL NOT IN ( 89 / + col1 )
----
69

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= ( - 33 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT MIN( - col0 ) * 75 FROM tab1
----
-6825

skipif mysql # not compatible
query I rowsort label-6530
SELECT MIN ( - col0 ) * 75 FROM tab1
----
-6825

query I rowsort
SELECT + 26 * col2 AS col2 FROM tab1
----
1534
1768
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT SUM( col1 ) AS col1 FROM tab0 WHERE NOT ( + 85 ) IN ( - 98 + + 62 * col1 )
----
103

skipif mysql # not compatible
query I rowsort label-6532
SELECT SUM ( col1 ) AS col1 FROM tab0 WHERE NOT ( + 85 ) IN ( - 98 + + 62 * col1 )
----
103

query I rowsort
SELECT 94 AS col2 FROM tab0 WHERE NULL BETWEEN ( - col2 ) AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6535
SELECT + 6 * CAST( 26 AS SIGNED ) AS col2 FROM tab2 WHERE - 68 IS NOT NULL
----
156
156
156

skipif mysql # not compatible
query I rowsort label-6535
SELECT + 6 * CAST ( 26 AS INTEGER ) AS col2 FROM tab2 WHERE - 68 IS NOT NULL
----
156
156
156

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE + col2 * - col1 NOT IN ( col1 / - ( col1 ) )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT DISTINCT + MIN( + col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT + MIN ( + col2 ) AS col2 FROM tab1
----
59

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 25 <> ( NULL )
----

query I rowsort
SELECT DISTINCT 99 + col0 AS col1 FROM tab0
----
114
186
196

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 79 IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 58 - + col2 NOT BETWEEN NULL AND 52
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

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

query I rowsort
SELECT DISTINCT col1 * 20 FROM tab0 AS cor0
----
1620
20
420

query I rowsort
SELECT - ( 68 ) FROM tab1 AS cor0 WHERE NOT col1 BETWEEN col0 - col2 AND 32
----
-68
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 68 col1 FROM tab0 AS cor0
----
-31
21
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6550
SELECT - CAST( NULL AS SIGNED ) + - MAX( DISTINCT + 36 ) * + 85 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6550
SELECT - CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT + 36 ) * + 85 AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6551
SELECT ALL - col1 DIV col2 + - col2 FROM tab2
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL - col1 / col2 + - col2 FROM tab2
----
-25
-41
-59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 71 = col2 / + 95 + + 26 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 81 * + col2 + col2 FROM tab1
----
4838
5576
7872

query I rowsort
SELECT DISTINCT + 39 FROM tab2 AS cor0 CROSS JOIN tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT + MIN( 52 ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-6555
SELECT + MIN ( 52 ) FROM tab0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT DISTINCT - MIN( DISTINCT 93 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 )
----
-93

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT - MIN ( DISTINCT 93 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 )
----
-93

query I rowsort
SELECT 8 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6558
SELECT - + 48 DIV COUNT( * ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-6558
SELECT - + 48 / COUNT ( * ) FROM tab2 AS cor0
----
-16

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

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT - + ( SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ) + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 + 96 col2 FROM tab2 AS cor0
----
2697
4585
6025

query I rowsort
SELECT ALL - 70 + 92 FROM tab1 AS cor0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 AS cor0 WHERE col1 * 71 BETWEEN + col1 AND + ( + col1 ) * col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 17 + + 55 <= - col0
----

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

query I rowsort
SELECT ( + col2 ) * ( + 24 ) + col2 * + 59 FROM tab1
----
4897
5644
7968

query I rowsort
SELECT DISTINCT - col1 + - - col1 FROM tab0
----
0

query I rowsort
SELECT + 12 + col2 * - col0 AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
-4884
-5003
-6176

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6569
SELECT MIN( CAST( NULL AS DECIMAL ) ) + + 48 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6569
SELECT MIN ( CAST ( NULL AS REAL ) ) + + 48 AS col0 FROM tab2
----
NULL

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

query I rowsort
SELECT col0 * col1 + 56 AS col1 FROM tab1
----
4333
481
770

query I rowsort
SELECT 62 + - 25 FROM tab0
----
37
37
37

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

skipif mysql # not compatible
query I rowsort label-6573
SELECT 2 * - 21 / + COUNT ( * ) + - 79 FROM tab1
----
-93

query I rowsort
SELECT DISTINCT 61 * col0 * 33 - + col1 AS col0 FROM tab1
----
102649
171100
183136

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6576
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 + - CAST( NULL AS SIGNED ) ) <> col0
----

skipif mysql # not compatible
query III rowsort label-6576
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 + - CAST ( NULL AS INTEGER ) ) <> col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( 72 ) * + 94 NOT IN ( + col2 + col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT - + ( COUNT( ALL + col2 ) ) * + 98 FROM tab0 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-6579
SELECT - + ( COUNT ( ALL + col2 ) ) * + 98 FROM tab0 AS cor0
----
-294

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6581
SELECT ALL + 52 AS col1, + 32 - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
52
35

skipif mysql # not compatible
query II rowsort label-6581
SELECT ALL + 52 AS col1, + 32 - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
52
35

query I rowsort
SELECT - ( col2 ) / col0 - col0 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND + col1 * col0 + - 16
----

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 6 = ( - 7 * ( + col0 ) )
----

query I rowsort
SELECT DISTINCT - - 31 * col1 FROM tab0 AS cor0
----
2511
31
651

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6587
SELECT + col0, - CAST( - col1 AS SIGNED ) DIV col1 FROM tab2 cor0
----
46
1
64
1
75
1

skipif mysql # not compatible
query II rowsort label-6587
SELECT + col0, - CAST ( - col1 AS INTEGER ) / col1 FROM tab2 cor0
----
46
1
64
1
75
1

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

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

query II rowsort
SELECT ALL col0 AS col2, - col1 FROM tab2 cor0
----
46
-51
64
-77
75
-67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 51 + + 81 IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE - 41 + col2 IS NULL AND - 46 IS NULL
----

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

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

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

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

query I rowsort
SELECT ALL ( + 79 ) * - - col1 + col2 FROM tab1
----
1202
3781
454

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

query I rowsort
SELECT DISTINCT + col1 * col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
2601
4489
5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6600
SELECT + - CAST( + 9 AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - 67
----
0

skipif mysql # not compatible
query I rowsort label-6600
SELECT + - CAST ( + 9 AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - 67
----
0

query I rowsort
SELECT ALL - - col2 * - 58 AS col2 FROM tab2 AS cor0
----
-1334
-2320
-3364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6602
SELECT DISTINCT + CAST( - - col1 AS SIGNED ) * - 70 + + - col2 FROM tab2 AS cor0
----
-3593
-4748
-5430

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT + CAST ( - - col1 AS INTEGER ) * - 70 + + - col2 FROM tab2 AS cor0
----
-3593
-4748
-5430

query I rowsort
SELECT DISTINCT col0 + - + 96 FROM tab0
----
-81
-9
1

query I rowsort
SELECT + 22 + 85 AS col2 FROM tab2
----
107
107
107

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

query I rowsort
SELECT ( - col2 ) FROM tab1 WHERE NULL < ( + col1 + + col1 + - + 12 / + 6 )
----

query I rowsort
SELECT DISTINCT - col1 + col0 AS col1 FROM tab0 WHERE NOT 57 * + 11 NOT IN ( + + 58 )
----

query I rowsort
SELECT ALL - col2 * - 49 FROM tab0
----
2303
4851
490

query I rowsort
SELECT ( - ( col2 ) ) + col0 FROM tab0 AS cor0
----
-2
-32
77

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT DISTINCT - 97 * COUNT( * ) * 1 + + 6 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT - 97 * COUNT ( * ) * 1 + + 6 FROM tab1 AS cor0
----
-285

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

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

query I rowsort
SELECT ALL 50 * + + col1 + - 69 FROM tab2 AS cor0
----
2481
3281
3781

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT 24 * - - COUNT( * ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-6617
SELECT 24 * - - COUNT ( * ) FROM tab0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6618
SELECT ALL + + COUNT( * ) * - CAST( MIN( ALL 99 ) AS SIGNED ) AS col2 FROM tab0 WHERE + + col2 * + + CAST( NULL AS SIGNED ) / - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL + + COUNT ( * ) * - CAST ( MIN ( ALL 99 ) AS INTEGER ) AS col2 FROM tab0 WHERE + + col2 * + + CAST ( NULL AS INTEGER ) / - col1 IS NOT NULL
----
NULL

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

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE NULL NOT BETWEEN ( - + col2 * 35 / - + col2 ) AND ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + col2, 93 )
----

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

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

query II rowsort
SELECT 14, col2 + - col0 + + - col1 * - col2 AS col2 FROM tab2 AS cor0
----
14
1150
14
3056
14
3869

query I rowsort
SELECT ALL col0 * - 34 AS col2 FROM tab1
----
-1734
-2890
-3094

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ALL + + SUM( DISTINCT - 80 ) + COUNT( ALL - - 26 ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6626
SELECT ALL + + SUM ( DISTINCT - 80 ) + COUNT ( ALL - - 26 ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6627
SELECT COUNT( * ) FROM tab2 WHERE NOT ( - - CAST( - col0 AS SIGNED ) ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6627
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( - - CAST ( - col0 AS INTEGER ) ) < NULL
----
0

query II rowsort
SELECT col1, 32 FROM tab1 WHERE NOT NULL BETWEEN - 80 AND ( - col1 )
----

query I rowsort
SELECT DISTINCT + 48 * + 18 * - col1 AS col0 FROM tab1 AS cor0
----
-12096
-40608
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT DISTINCT + - SUM( + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT + - SUM ( + col2 ) FROM tab0 AS cor0
----
-156

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6632
SELECT ALL - COUNT( col0 ), 59 col1 FROM tab2 AS cor0
----
-3
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6632
SELECT ALL - COUNT ( col0 ), 59 col1 FROM tab2 AS cor0
----
-3
59

query I rowsort
SELECT 17 + + ( - 62 ) * + col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

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

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

query I rowsort
SELECT - col2 * + 15 FROM tab0
----
-1485
-150
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT DISTINCT + MAX( ALL 48 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT + MAX ( ALL 48 ) FROM tab0
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6638
SELECT + 31 + MAX( DISTINCT + - 80 ) + + 74 * - 87 / CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6638
SELECT + 31 + MAX ( DISTINCT + - 80 ) + + 74 * - 87 / CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE - 25 * - - col0 <= - - col0 * + col1 - - - 87
----
14
47
5

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

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

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

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT - - 98 / col1 FROM tab0 AS cor0
----
1
4
98

query I rowsort
SELECT - 33 AS col2 FROM tab1 AS cor0 WHERE 99 IS NULL
----

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

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

query I rowsort
SELECT + col2 - + 64 + + - 52 AS col1 FROM tab0 AS cor0
----
-106
-17
-69

query I rowsort
SELECT DISTINCT + col2 + + + col0 AS col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6646
SELECT DISTINCT - ( col1 ) DIV + col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT - ( col1 ) / + col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + 56 * - 90 + - col0 + - col0 * - 58 FROM tab0 AS cor0
----
-4185
-81
489

query I rowsort
SELECT ALL col2 - - ( col2 ) FROM tab1
----
118
136
192

onlyif mysql # DIV for integer division: 
query I rowsort label-6649
SELECT DISTINCT - col1 + + + 70 - + col1 + + - col1 DIV col0 DIV col2 AS col1 FROM tab1
----
-24
42
60

skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT - col1 + + + 70 - + col1 + + - col1 / col0 / col2 AS col1 FROM tab1
----
-24
42
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 - - col2 + + + 70, 23 col2 FROM tab0
----
70
23

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6652
SELECT ( - + MIN( DISTINCT + + col0 ) ), - ( - 26 ) AS col1 FROM tab0
----
-15
26

skipif mysql # not compatible
query II rowsort label-6652
SELECT ( - + MIN ( DISTINCT + + col0 ) ), - ( - 26 ) AS col1 FROM tab0
----
-15
26

query I rowsort
SELECT + 22 * + - col2 AS col1 FROM tab2
----
-1276
-506
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT + MIN( ALL - + 65 ) FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-6654
SELECT + MIN ( ALL - + 65 ) FROM tab2 AS cor0
----
-65

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 51 AND ( - + 29 * + - col1 * + col0 + col1 )
----

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

query I rowsort
SELECT + col0 * 13 * + col0 * 38 FROM tab2
----
1045304
2023424
2778750

onlyif mysql # DIV for integer division: 
query I rowsort label-6659
SELECT ALL - - col0 DIV + 47 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL - - col0 / + 47 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT - col1 * 40 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col0 ) + + ( - + col0 ) IN ( + + ( - - col2 ) )
----
-2040
-2680
-3080

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

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

query I rowsort
SELECT - 30 AS col2 FROM tab0 AS cor0 WHERE NOT col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT 33 * - COUNT( * ) + - - 57 FROM tab0
----
-42

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - 61 + - + 74 AS col2, col1 col0, + + col1 AS col2 FROM tab1
----
9 values hashing to 6499cc82ab59d0e85b8829ee9435d2ef

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6666
SELECT + col1 DIV + - 52 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6666
SELECT + col1 / + - 52 AS col2 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT ( MIN( + 85 ) ) FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-6667
SELECT ( MIN ( + 85 ) ) FROM tab0
----
85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL MIN( DISTINCT 90 ) AS col1 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL MIN ( DISTINCT 90 ) AS col1 FROM tab1
----
90

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

query I rowsort
SELECT ALL - col0 * + - 25 + - col1 FROM tab0 AS cor0
----
2154
2424
294

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE + + 33 < NULL OR NOT 32 + 79 IN ( - col1 / 52 + - - 84 + - - 58 + - - col0 * - - 99 )
----
10
47
99

query II rowsort
SELECT - 10 * - col0 AS col1, + 72 AS col2 FROM tab1 AS cor0
----
510
72
850
72
910
72

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + 19 AND + col1 * 32
----

query I rowsort
SELECT ALL col2 - - col2 * - 34 - - + col2 AS col1 FROM tab0
----
-1504
-3168
-320

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

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

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

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

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

query II rowsort
SELECT - col1 * + 94 - + col0, - col1 AS col2 FROM tab2 AS cor0
----
-4840
-51
-6373
-67
-7302
-77

query II rowsort
SELECT ALL + col2, + col2 * + - ( - col1 ) * + col2 FROM tab2 AS cor0
----
23
26979
40
123200
58
225388

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

skipif mysql # not compatible
query I rowsort label-6682
SELECT + - COUNT ( ALL + 78 ) * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + - + 54 AS col0 FROM tab1 AS cor0
----
-3
31
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6684
SELECT col0, CAST( col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
15
47
87
10
97
99

skipif mysql # not compatible
query II rowsort label-6684
SELECT col0, CAST ( col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL + col2 + - col2 * 31 AS col2 FROM tab1 AS cor0
----
-1770
-2040
-2880

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6687
SELECT ALL - col1 DIV - + ( - 31 ) FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL - col1 / - + ( - 31 ) FROM tab2
----
-1
-2
-2

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = 86 + - - 7
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6691
SELECT ALL + col0 * col1 DIV + + ( + col2 ) AS col1 FROM tab2
----
102
123
86

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL + col0 * col1 / + + ( + col2 ) AS col1 FROM tab2
----
102
123
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT - SUM( ALL col0 ) * - - 68 AS col2 FROM tab0
----
-13532

skipif mysql # not compatible
query I rowsort label-6692
SELECT - SUM ( ALL col0 ) * - - 68 AS col2 FROM tab0
----
-13532

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6693
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 58 <> col0 * CAST( NULL AS SIGNED ) * - col0 + - - col1 + - col0 + - 80
----

skipif mysql # not compatible
query III rowsort label-6693
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 58 <> col0 * CAST ( NULL AS INTEGER ) * - col0 + - - col1 + - col0 + - 80
----

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

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

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

query I rowsort
SELECT ALL - col2 * - - 46 FROM tab2 AS cor0
----
-1058
-1840
-2668

query I rowsort
SELECT DISTINCT 86 * - - 44 * - col0 FROM tab1
----
-192984
-321640
-344344

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT + MIN( 88 ) AS col1 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-6698
SELECT + MIN ( 88 ) AS col1 FROM tab0
----
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 99 IS NOT NULL
----

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

query II rowsort
SELECT + 35 AS col1, - col1 FROM tab1 AS cor0
----
35
-14
35
-47
35
-5

query III rowsort
SELECT * FROM tab2 WHERE + 40 * + - 35 IN ( + col2, + 4, + - 91 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT ALL ( - COUNT( * ) ) + - MAX( + col0 ) AS col1 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL ( - COUNT ( * ) ) + - MAX ( + col0 ) AS col1 FROM tab2
----
-78

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6706
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) * + + COUNT( ALL - col1 ) + 13 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6706
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) * + + COUNT ( ALL - col1 ) + 13 AS col2 FROM tab2
----
NULL

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

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

query I rowsort
SELECT DISTINCT - ( - - ( - 11 ) ) AS col2 FROM tab2
----
11

query II rowsort
SELECT ALL - col2 AS col2, col2 * + col1 FROM tab0
----
-10
210
-47
3807
-99
99

query I rowsort
SELECT - + col0 * + 87 + + col0 + col2 AS col2 FROM tab2 AS cor0
----
-3933
-5464
-6392

query I rowsort
SELECT + 29 + + - col0 - 65 FROM tab1 cor0
----
-121
-127
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 + + col2 col2 FROM tab1
----
37
46
74

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6714
SELECT + COUNT( * ) AS col0, - ( - 21 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6714
SELECT + COUNT ( * ) AS col0, - ( - 21 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
21

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

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

query I rowsort
SELECT + col1 * - 89 - + col1 FROM tab1
----
-1260
-4230
-450

query I rowsort
SELECT + col1 * + + col2 + col0 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT ALL col2 - - ( + ( + col0 ) ) FROM tab2 AS cor0
----
104
133
69

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

query I rowsort
SELECT + col2 * - - 40 + + col1 AS col1 FROM tab0 AS cor0
----
1961
3961
421

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT COUNT( * ) * SUM( DISTINCT 98 ) FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-6721
SELECT COUNT ( * ) * SUM ( DISTINCT 98 ) FROM tab1
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT + COUNT( DISTINCT - ( + 14 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6722
SELECT + COUNT ( DISTINCT - ( + 14 ) ) FROM tab0
----
1

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 82 * + 57 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT DISTINCT + 17 * - COUNT( * ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT + 17 * - COUNT ( * ) AS col1 FROM tab2
----
-51

query I rowsort
SELECT ALL col0 * + col2 - - col2 FROM tab1 AS cor0
----
4992
5074
6256

query III rowsort
SELECT * FROM tab1 WHERE NOT + 68 * 34 * 12 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT - 97 * col1 NOT IN ( + - col0, - col0 / - col1 * + ( + 58 ), 20 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT + + col2 + + col2 + - + 32 AS col0 FROM tab0 cor0
----
-12
166
62

query I rowsort
SELECT DISTINCT 47 * + - col2 AS col2 FROM tab1 AS cor0
----
-2773
-3196
-4512

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT ALL - - COUNT( * ) FROM tab1 AS cor0 WHERE ( + + 12 >= - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL - - COUNT ( * ) FROM tab1 AS cor0 WHERE ( + + 12 >= - col2 )
----
3

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

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

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

query I rowsort
SELECT + 38 + 58 + - - col2 FROM tab0 AS cor0
----
106
143
195

query I rowsort
SELECT ALL + 10 + col1 FROM tab0
----
11
31
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6739
SELECT DISTINCT + 17 + ( + 19 ) DIV - 75 AS col0 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-6739
SELECT DISTINCT + 17 + ( + 19 ) / - 75 AS col0 FROM tab2
----
17

query I rowsort
SELECT + col1 * - col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - 70 <= - col1
----

query I rowsort
SELECT ALL + col2 * 33 FROM tab0 cor0
----
1551
3267
330

query I rowsort
SELECT + + col2 + + - 9 FROM tab0 AS cor0
----
1
38
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT + + 84 + - 27 * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-6744
SELECT + + 84 + - 27 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
165

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

query II rowsort
SELECT DISTINCT col2 + + 50, col2 FROM tab1
----
109
59
118
68
146
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + col1 < - 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 58 * - 98 = 92
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT DISTINCT ( + MIN( + col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT ( + MIN ( + col2 ) ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT + 32 * + col1 AS col2 FROM tab0 AS cor0
----
2592
32
672

query I rowsort
SELECT + 0 * - - col0 FROM tab1 cor0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT DISTINCT MAX( ( - 27 ) ) AS col2 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT MAX ( ( - 27 ) ) AS col2 FROM tab2
----
-27

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6758
SELECT CAST( + col1 AS SIGNED ) FROM tab1 WHERE NOT - col2 + col0 IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6758
SELECT CAST ( + col1 AS INTEGER ) FROM tab1 WHERE NOT - col2 + col0 IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6759
SELECT - - ( col2 ) DIV + 6 + + 26 + + 79 FROM tab0 AS cor0 WHERE NOT ( 45 + - col0 ) NOT BETWEEN + col0 DIV col2 AND + + col1
----
112

skipif mysql # not compatible
query I rowsort label-6759
SELECT - - ( col2 ) / + 6 + + 26 + + 79 FROM tab0 AS cor0 WHERE NOT ( 45 + - col0 ) NOT BETWEEN + col0 / col2 AND + + col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6760
SELECT + 80 col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to f9d2eb3fa35c65efe9aa9dae501772f0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6760
SELECT + 80 col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to f9d2eb3fa35c65efe9aa9dae501772f0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6762
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 > - - col1 + + CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6762
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 > - - col1 + + CAST ( col2 AS INTEGER )
----

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

query II rowsort
SELECT ALL + 50 - + col1 AS col0, - col2 AS col1 FROM tab1
----
3
-68
36
-96
45
-59

query I rowsort
SELECT + col1 + 53 FROM tab1
----
100
58
67

query I rowsort
SELECT + col0 + - + ( - col2 ) * col2 FROM tab1
----
3566
4715
9267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6767
SELECT + 45 + - 27 + CAST( + 15 AS SIGNED ) AS col1 FROM tab0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-6767
SELECT + 45 + - 27 + CAST ( + 15 AS INTEGER ) AS col1 FROM tab0
----
33
33
33

query I rowsort
SELECT - col2 + + - ( + + col2 ) FROM tab1
----
-118
-136
-192

query I rowsort
SELECT - - 96 AS col0 FROM tab2 AS cor0 WHERE - col0 <> - col1
----
96
96
96

query I rowsort
SELECT + + col2 * + 12 + + - col1 + - col0 AS col2 FROM tab2 AS cor0
----
179
339
554

onlyif mysql # DIV for integer division: 
query I rowsort label-6771
SELECT ALL - + col1 DIV - col0 FROM tab0 cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL - + col1 / - col0 FROM tab0 cor0
----
0
0
5

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6772
SELECT DISTINCT COUNT ( + + col0 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ( ( 97 ) ) - + col1 FROM tab2
----
20
30
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT DISTINCT - 72 * COUNT( * ) * 22 FROM tab1
----
-4752

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT - 72 * COUNT ( * ) * 22 FROM tab1
----
-4752

query II rowsort
SELECT ALL col1, - col1 * + 83 AS col0 FROM tab0
----
1
-83
21
-1743
81
-6723

query I rowsort
SELECT DISTINCT ( + + col1 ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT - - col0 * + 94 AS col0 FROM tab0 AS cor0
----
1410
8178
9118

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT + 12 IS NULL
----
15
87
97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6780
SELECT 59 DIV + ( - 52 ) AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6780
SELECT 59 / + ( - 52 ) AS col0 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT DISTINCT 1 AS col2, ( + col2 ) AS col0 FROM tab2
----
1
23
1
40
1
58

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

query II rowsort
SELECT col2 * + - col0, - 1 AS col2 FROM tab1
----
-4896
-1
-5015
-1
-6188
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 29, col0 * - 61 col1 FROM tab2
----
29
-2806
29
-3904
29
-4575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 12 ) col0 FROM tab0 WHERE NULL <> + 98
----

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

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

query II rowsort
SELECT ALL col2, + col2 * + col2 AS col0 FROM tab2 AS cor0
----
23
529
40
1600
58
3364

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - + col1 col1 FROM tab1 cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT DISTINCT + 17 * + - COUNT( * ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-6791
SELECT DISTINCT + 17 * + - COUNT ( * ) FROM tab0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT 46 + + + SUM( ALL + 19 ) FROM tab1 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6793
SELECT 46 + + + SUM ( ALL + 19 ) FROM tab1 AS cor0
----
103

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

query I rowsort
SELECT ALL col2 * + - col2 * 25 AS col1 FROM tab0 AS cor0
----
-245025
-2500
-55225

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

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

skipif mysql # not compatible
query I rowsort label-6797
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-6800
SELECT - COUNT ( - col0 ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * 54 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE 80 NOT IN ( - + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-6803
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE 80 NOT IN ( - + col0 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6804
SELECT col2 * - - 24 + + + col1 - - + col2 DIV + col1 FROM tab1 AS cor0
----
1432
1680
2324

skipif mysql # not compatible
query I rowsort label-6804
SELECT col2 * - - 24 + + + col1 - - + col2 / + col1 FROM tab1 AS cor0
----
1432
1680
2324

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT DISTINCT 94 * + - COUNT( * ) FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT 94 * + - COUNT ( * ) FROM tab0
----
-282

query I rowsort
SELECT + 15 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT - 79 * - COUNT( * ) * ( - ( - - 52 ) ) FROM tab1 AS cor0
----
-12324

skipif mysql # not compatible
query I rowsort label-6809
SELECT - 79 * - COUNT ( * ) * ( - ( - - 52 ) ) FROM tab1 AS cor0
----
-12324

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT - + COUNT( DISTINCT + 29 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6810
SELECT - + COUNT ( DISTINCT + 29 ) FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) col1 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 31 AND ( 24 / - + col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT DISTINCT COUNT( * ) + ( - 94 ) FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
-94

skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT COUNT ( * ) + ( - 94 ) FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
-94

query I rowsort
SELECT - + 65 * - col0 FROM tab2 AS cor0
----
2990
4160
4875

query I rowsort
SELECT + ( + + col1 ) * - 18 FROM tab0
----
-1458
-18
-378

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

query II rowsort
SELECT ALL + col2 * col2 * col0 AS col2, - col0 AS col0 FROM tab1
----
295885
-85
420784
-91
470016
-51

query II rowsort
SELECT 26, col0 FROM tab0
----
26
15
26
87
26
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6820
SELECT + + col2 AS col2 FROM tab1 WHERE NOT - - CAST( + - col1 AS DECIMAL ) * - 12 IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6820
SELECT + + col2 AS col2 FROM tab1 WHERE NOT - - CAST ( + - col1 AS REAL ) * - 12 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT DISTINCT SUM( + ( 70 ) ) AS col0 FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT SUM ( + ( 70 ) ) AS col0 FROM tab2 AS cor0
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6822
SELECT DISTINCT - CAST( - + ( col0 ) AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT - CAST ( - + ( col0 ) AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT + 19 + - 28 FROM tab1 cor0
----
-9
-9
-9

query I rowsort
SELECT ALL + 66 + col0 FROM tab1 AS cor0
----
117
151
157

query I rowsort
SELECT ALL col1 * - 69 FROM tab1
----
-3243
-345
-966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6826
SELECT CAST( NULL AS SIGNED ) * - 32 AS col1 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 91 * - 11 * col2 * + col0 - - ( + 46 ) AS col2 FROM tab0 AS cor0
----
705751
870916
9612649

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6828
SELECT DISTINCT + col0, 66 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-6828
SELECT DISTINCT + col0, 66 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

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

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

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

query I rowsort
SELECT + + 61 - - col1 AS col0 FROM tab2 AS cor0
----
112
128
138

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

query I rowsort
SELECT + + col2 + - - col2 + - 2 + - col2 AS col0 FROM tab1 cor0
----
57
66
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + + 97 AS col0, col0 * - - col0 + col2 col2 FROM tab1
----
102
7284
111
2697
144
8349

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT - 70 + + ( - ( - COUNT( * ) ) ) AS col2 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-6835
SELECT - 70 + + ( - ( - COUNT ( * ) ) ) AS col2 FROM tab1
----
-67

query I rowsort
SELECT 28 * + col1 * + col2 * - + col0 + + col2 FROM tab2
----
-1510801
-5519320
-8160542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6837
SELECT SUM( col2 ) AS col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
156
NULL

skipif mysql # not compatible
query II rowsort label-6837
SELECT SUM ( col2 ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
156
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT COUNT( * ) * - 52 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-6838
SELECT COUNT ( * ) * - 52 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT ALL col1 * - 8 FROM tab1 WHERE ( ( NULL ) NOT BETWEEN NULL AND - CAST( + - 65 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL col1 * - 8 FROM tab1 WHERE ( ( NULL ) NOT BETWEEN NULL AND - CAST ( + - 65 AS INTEGER ) )
----

query I rowsort
SELECT - col0 - col1 / - col1 FROM tab1 WHERE NOT NULL IN ( + + 78, col1 + + col0 * ( - col2 ) + - 91 + + 25 / - col2 + - col2 )
----

query II rowsort
SELECT DISTINCT col2, col2 + - + col2 FROM tab1 AS cor0
----
59
0
68
0
96
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6842
SELECT ALL + - 53 * - COUNT( col0 ) + + 79 AS col0, + 39 col2 FROM tab0 AS cor0
----
238
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6842
SELECT ALL + - 53 * - COUNT ( col0 ) + + 79 AS col0, + 39 col2 FROM tab0 AS cor0
----
238
39

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

skipif mysql # not compatible
query II rowsort label-6843
SELECT DISTINCT + - COUNT ( * ) AS col1, - 89 * + + COUNT ( * ) FROM tab1 cor0
----
-3
-267

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 61 >= - + col1
----
46
51
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + 91 < NULL
----

query I rowsort
SELECT ALL - 63 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - 66
----

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

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

query I rowsort
SELECT - + col0 + + + col0 * + col1 AS col1 FROM tab2 cor0
----
2300
4864
4950

query II rowsort
SELECT - 77 * - col2, + col1 * + 93 AS col2 FROM tab0
----
3619
7533
7623
93
770
1953

query I rowsort
SELECT DISTINCT + 72 * 53 FROM tab0
----
3816

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6852
SELECT + CAST( NULL AS DECIMAL ) * AVG ( ALL - - 86 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT + CAST ( NULL AS REAL ) * AVG ( ALL - - 86 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + col2 * + ( - 7 ) AS col2 FROM tab2
----
-161
-280
-406

onlyif mysql # DIV for integer division: 
query I rowsort label-6854
SELECT ALL col2 DIV - 63 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL col2 / - 63 FROM tab2
----
0
0
0

query I rowsort
SELECT + 43 * 95 AS col2 FROM tab0
----
4085
4085
4085

query I rowsort
SELECT - col1 * 42 AS col1 FROM tab0
----
-3402
-42
-882

query I rowsort
SELECT - col1 + col1 - + 7 * col2 AS col1 FROM tab0
----
-329
-693
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6858
SELECT ALL 49 + + col2 + + CAST( + + col2 AS SIGNED ) FROM tab1
----
167
185
241

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL 49 + + col2 + + CAST ( + + col2 AS INTEGER ) FROM tab1
----
167
185
241

onlyif mysql # aggregate syntax: 
query II rowsort label-6859
SELECT ALL COUNT( * ) AS col0, MAX( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
3
81

skipif mysql # not compatible
query II rowsort label-6859
SELECT ALL COUNT ( * ) AS col0, MAX ( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
3
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6860
SELECT ALL COUNT( * ) * - MAX( col1 ) AS col2, COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 + - 80 + - col2 BETWEEN + ( + + col1 ) AND ( + 40 )
----
-231
3

skipif mysql # not compatible
query II rowsort label-6860
SELECT ALL COUNT ( * ) * - MAX ( col1 ) AS col2, COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 + - 80 + - col2 BETWEEN + ( + + col1 ) AND ( + 40 )
----
-231
3

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

skipif mysql # not compatible
query I rowsort label-6861
SELECT - + MIN ( - - 57 ) FROM tab2 AS cor0
----
-57

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

query I rowsort
SELECT - 1 AS col0 FROM tab2 AS cor0 WHERE NULL > + col0
----

query I rowsort
SELECT - ( - ( - - 74 ) ) FROM tab0 cor0
----
74
74
74

query I rowsort
SELECT col1 * + 72 AS col2 FROM tab1 AS cor0
----
1008
3384
360

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

query I rowsort
SELECT ALL col0 - - ( + col0 ) + + ( + + 0 ) AS col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT DISTINCT - 85 + - col0 * + col1 + - col0 AS col2 FROM tab0 AS cor0
----
-1315
-1999
-279

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 55 ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 40 >= + col1 / - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT DISTINCT COUNT( + 91 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT COUNT ( + 91 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6873
SELECT ALL - SUM( - - col1 ) * MAX( DISTINCT + + col1 ) * - 46 + 25 DIV - 72 FROM tab1 AS cor0
----
142692

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL - SUM ( - - col1 ) * MAX ( DISTINCT + + col1 ) * - 46 + 25 / - 72 FROM tab1 AS cor0
----
142692

onlyif mysql # aggregate syntax: 
query II rowsort label-6874
SELECT 31 * - - 94 AS col1, + SUM( 7 ) FROM tab1 AS cor0
----
2914
21

skipif mysql # not compatible
query II rowsort label-6874
SELECT 31 * - - 94 AS col1, + SUM ( 7 ) FROM tab1 AS cor0
----
2914
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 / col0 col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

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

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

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT + 90 IS NULL
----
14
47
5

query II rowsort
SELECT ALL 27 AS col0, col0 * 32 * col1 FROM tab0
----
27
3104
27
38880
27
58464

query I rowsort
SELECT + + AVG ( ALL - col2 ) FROM tab2 WHERE col2 * + col2 IS NULL
----
NULL

query I rowsort
SELECT 21 + + col2 AS col1 FROM tab2
----
44
61
79

query I rowsort
SELECT - col2 * + + col1 + + col0 + - 42 * ( + - 52 ) AS col2 FROM tab0
----
-1608
2061
2182

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

skipif mysql # not compatible
query I rowsort label-6883
SELECT - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + + - 77 col0 FROM tab0 AS cor0
----
-56
-76
4

query I rowsort
SELECT - col1 * - col2 * + col0 AS col2 FROM tab1
----
25075
290836
68544

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6888
SELECT DISTINCT + 46 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT + 46 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT - MIN( ALL 73 ) - 91 AS col1 FROM tab2
----
-164

skipif mysql # not compatible
query I rowsort label-6889
SELECT - MIN ( ALL 73 ) - 91 AS col1 FROM tab2
----
-164

query I rowsort
SELECT - col0 - + 74 AS col2 FROM tab2 cor0
----
-120
-138
-149

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT + MIN( 75 ) + - COUNT( * ) col2 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6892
SELECT + MIN ( 75 ) + - COUNT ( * ) col2 FROM tab1 AS cor0
----
72

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + col2 ) BETWEEN 92 - - col0 AND + 94 + + 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 94 * - 28 AS col1 FROM tab0 AS cor0
----
-2632
-2632
-2632

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT DISTINCT - 32 + - + COUNT( DISTINCT ( + col0 ) ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 45 AND + ( + - col0 )
----
-32

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT - 32 + - + COUNT ( DISTINCT ( + col0 ) ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 45 AND + ( + - col0 )
----
-32

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT ALL - MAX( ALL 50 ) FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL - MAX ( ALL 50 ) FROM tab0
----
-50

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

query II rowsort
SELECT ALL - + col2 + col2 * col0 AS col0, - 90 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

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

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

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

query I rowsort
SELECT col1 * - 68 FROM tab0
----
-1428
-5508
-68

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 54 > NULL
----

query I rowsort
SELECT ALL + + 1 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT col0 * + ( + 60 ) FROM tab0
----
5220
5820
900

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

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

query I rowsort
SELECT DISTINCT 99 * + col1 FROM tab1 AS cor0
----
1386
4653
495

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6911
SELECT DISTINCT col2 + + 39 DIV + col2 - - col0 + + col1 + - col0 AS col1, + col1 DIV + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
100
NULL
128
NULL
34
NULL

skipif mysql # not compatible
query II rowsort label-6911
SELECT DISTINCT col2 + + 39 / + col2 - - col0 + + col1 + - col0 AS col1, + col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
100
NULL
128
NULL
34
NULL

query I rowsort
SELECT ALL + + col2 * - - 80 FROM tab0 AS cor0
----
3760
7920
800

query I rowsort
SELECT DISTINCT + col0 + - 73 AS col2 FROM tab2 cor0
----
-27
-9
2

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

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

query I rowsort
SELECT DISTINCT + - col2 + - - col1 + 10 * - col0 * + col2 FROM tab0 AS cor0
----
-7016
-8689
-96128

query I rowsort
SELECT + col0 + - - 44 FROM tab1 AS cor0
----
129
135
95

query I rowsort
SELECT 10 * - + 34 AS col1 FROM tab0
----
-340
-340
-340

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 97 col0 FROM tab0
----
4559
9603
970

query I rowsort
SELECT 95 + - col1 * + col2 FROM tab2 WHERE ( NOT NULL IS NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT ALL + MAX( - col1 ) * - - COUNT( * ) AS col2 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL + MAX ( - col1 ) * - - COUNT ( * ) AS col2 FROM tab1
----
-15

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

skipif mysql # not compatible
query I rowsort label-6922
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
3

query I rowsort
SELECT ALL - col1 + col2 + - 24 / + - col0 + - - col1 * ( - col2 ) * + + ( - col2 ) FROM tab1 AS cor0 WHERE NOT - col2 + - 24 IS NOT NULL
----

query I rowsort
SELECT - col2 - + - 39 * - col2 + - col0 FROM tab2 AS cor0
----
-1664
-2395
-966

query I rowsort
SELECT 91 + - + col0 AS col0 FROM tab2 AS cor0
----
16
27
45

query II rowsort
SELECT DISTINCT 14, + col1 AS col1 FROM tab1 AS cor0
----
14
14
14
47
14
5

query I rowsort
SELECT ALL 13 * 92 FROM tab2 AS cor0
----
1196
1196
1196

query I rowsort
SELECT - 86 * 49 FROM tab1 AS cor0
----
-4214
-4214
-4214

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6929
SELECT ALL + MAX ( ALL - - col1 ) col2 FROM tab0 AS cor0
----
81

query II rowsort
SELECT + 70, 61 AS col2 FROM tab1 AS cor0
----
70
61
70
61
70
61

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6932
SELECT ALL CAST( - 16 AS SIGNED ) col0 FROM tab0
----
-16
-16
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6932
SELECT ALL CAST ( - 16 AS INTEGER ) col0 FROM tab0
----
-16
-16
-16

query I rowsort
SELECT 65 AS col0 FROM tab0 WHERE NOT - col2 + - 35 * - col1 <> NULL
----

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

query I rowsort
SELECT DISTINCT + + 50 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
50

query I rowsort
SELECT DISTINCT 62 * + col2 FROM tab0
----
2914
6138
620

query I rowsort
SELECT + 0 * - + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6938
SELECT col0 * col0 DIV ( - ( + 42 ) ) AS col1 FROM tab2 AS cor0
----
-133
-50
-97

skipif mysql # not compatible
query I rowsort label-6938
SELECT col0 * col0 / ( - ( + 42 ) ) AS col1 FROM tab2 AS cor0
----
-133
-50
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6939
SELECT ALL + + ( + col1 ) DIV + + col0 + - 53 FROM tab0 AS cor0
----
-48
-53
-53

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL + + ( + col1 ) / + + col0 + - 53 FROM tab0 AS cor0
----
-48
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT ALL + 86 * - + SUM( ALL - - col0 ) FROM tab0 AS cor0
----
-17114

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL + 86 * - + SUM ( ALL - - col0 ) FROM tab0 AS cor0
----
-17114

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

query I rowsort
SELECT DISTINCT - 83 - 78 FROM tab2
----
-161

query I rowsort
SELECT + col0 + 45 FROM tab0
----
132
142
60

query I rowsort
SELECT + col1 + col0 + - col1 * + col0 AS col1 FROM tab2
----
-2249
-4787
-4883

query II rowsort
SELECT DISTINCT 27 * + - col1 AS col1, + 62 * - + 66 AS col0 FROM tab1
----
-1269
-4092
-135
-4092
-378
-4092

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT DISTINCT - 72 + + COUNT( * ) col0 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6948
SELECT DISTINCT - 72 + + COUNT ( * ) col0 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT DISTINCT - - col1 + + 4 FROM tab2 AS cor0
----
55
71
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT ALL + 51 * + COUNT( * ) * 65 AS col0 FROM tab0 AS cor0
----
9945

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL + 51 * + COUNT ( * ) * 65 AS col0 FROM tab0 AS cor0
----
9945

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT 38 * SUM( col2 ) * ( + 73 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
432741

skipif mysql # not compatible
query I rowsort label-6952
SELECT 38 * SUM ( col2 ) * ( + 73 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
432741

query III rowsort
SELECT * 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 DISTINCT 25 col1 FROM tab0 cor0
----
25

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT 19 * + - col0 < 4
----

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6958
SELECT + - 79, COUNT( ALL CAST( NULL AS SIGNED ) ) + + 25 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
-79
25

skipif mysql # not compatible
query II rowsort label-6958
SELECT + - 79, COUNT ( ALL CAST ( NULL AS INTEGER ) ) + + 25 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
-79
25

query I rowsort
SELECT ALL - + 63 AS col2 FROM tab1 AS cor0 WHERE NOT 51 IS NULL
----
-63
-63
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6960
SELECT + 18 DIV col0 DIV - + col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6960
SELECT + 18 / col0 / - + col1 AS col2 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT col2 * + col1 * + col2 AS col2, 80 AS col0 FROM tab2
----
123200
80
225388
80
26979
80

query I rowsort
SELECT + 67 * - 97 AS col0 FROM tab0
----
-6499
-6499
-6499

query II rowsort
SELECT + col1 AS col1, - 74 FROM tab1
----
14
-74
47
-74
5
-74

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

query I rowsort
SELECT DISTINCT - 68 * + - col1 AS col1 FROM tab2 cor0
----
3468
4556
5236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT + 13 * 28 * + COUNT( * ) * + 76 AS col2 FROM tab0 cor0
----
82992

skipif mysql # not compatible
query I rowsort label-6968
SELECT + 13 * 28 * + COUNT ( * ) * + 76 AS col2 FROM tab0 cor0
----
82992

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT + + MIN( DISTINCT + 44 ) AS col2 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-6969
SELECT + + MIN ( DISTINCT + 44 ) AS col2 FROM tab1 AS cor0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6970
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT col1 + - CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----
3

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

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

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

query I rowsort
SELECT ALL 58 - + col1 FROM tab1
----
11
44
53

query III rowsort
SELECT * FROM tab2 WHERE ( + 92 ) < 68
----

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

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

query I rowsort
SELECT ALL - ( ( col2 ) ) AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6977
SELECT + col0 * + 69 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6977
SELECT + col0 * + 69 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 27 * col0 FROM tab1
----
-1377
-2295
-2457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6979
SELECT + col1 * + CAST( + 45 * col0 AS SIGNED ) AS col1 FROM tab2
----
105570
221760
226125

skipif mysql # not compatible
query I rowsort label-6979
SELECT + col1 * + CAST ( + 45 * col0 AS INTEGER ) AS col1 FROM tab2
----
105570
221760
226125

query I rowsort
SELECT DISTINCT + 18 + - col0 AS col0 FROM tab2
----
-28
-46
-57

query I rowsort
SELECT DISTINCT col0 * - 95 FROM tab1
----
-4845
-8075
-8645

query I rowsort
SELECT DISTINCT 72 * 96 AS col2 FROM tab1
----
6912

query III rowsort
SELECT * FROM tab1 WHERE col2 * 73 - + 90 BETWEEN ( - col2 / - 97 + col0 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IN ( + col2 )
----

query I rowsort
SELECT DISTINCT 79 * + col1 AS col0 FROM tab1
----
1106
3713
395

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

query I rowsort
SELECT ALL - col0 * - 98 FROM tab1
----
4998
8330
8918

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT + 49 + COUNT( * ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-6991
SELECT + 49 + COUNT ( * ) FROM tab1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT ALL + MIN( ALL + ( + col0 ) ) + - 9 * - ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT ( - col0 + col0 ) BETWEEN ( - 39 ) AND ( - 92 )
----
78

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL + MIN ( ALL + ( + col0 ) ) + - 9 * - ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT ( - col0 + col0 ) BETWEEN ( - 39 ) AND ( - 92 )
----
78

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

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

query I rowsort
SELECT DISTINCT 47 FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
47

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6997
SELECT CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-6997
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 * - 97 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col0 + - col0 FROM tab1 AS cor0 WHERE NOT col0 * col2 + - ( col1 + col0 ) IS NULL
----
-102
-170
-182

query I rowsort
SELECT col0 * 74 FROM tab0 cor0
----
1110
6438
7178

query I rowsort
SELECT + 46 * 89 AS col1 FROM tab2 AS cor0
----
4094
4094
4094

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL + 45 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL + 45 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT DISTINCT 21 * COUNT( * ) col0 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7004
SELECT DISTINCT 21 * COUNT ( * ) col0 FROM tab2 AS cor0
----
63

query I rowsort
SELECT DISTINCT + col0 * + 57 FROM tab0 AS cor0 WHERE NULL IS NULL
----
4959
5529
855

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7006
SELECT ALL + 6 DIV - ( MIN( col0 ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL + 6 / - ( MIN ( col0 ) ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7007
SELECT + MIN( col2 ) col1 FROM tab2 AS cor0 WHERE NOT - col2 * 61 + CAST( 83 AS SIGNED ) * - col1 <= col1 + - col1 / col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7007
SELECT + MIN ( col2 ) col1 FROM tab2 AS cor0 WHERE NOT - col2 * 61 + CAST ( 83 AS INTEGER ) * - col1 <= col1 + - col1 / col0
----
NULL

query I rowsort
SELECT DISTINCT 33 FROM tab1 cor0 WHERE NOT + 58 + ( col1 ) IN ( 37 )
----
33

query I rowsort
SELECT ( + ( 84 ) ) * - col2 FROM tab1 AS cor0
----
-4956
-5712
-8064

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT + MIN( + 11 ) AS col0 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-7010
SELECT + MIN ( + 11 ) AS col0 FROM tab0 AS cor0
----
11

query I rowsort
SELECT ALL AVG ( ALL col1 ) FROM tab0 WHERE NOT col0 + - col0 NOT IN ( + 56 * - 54 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT + COUNT( * ) * 3 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-7013
SELECT + COUNT ( * ) * 3 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9

query I rowsort
SELECT col1 * - - 41 + 59 AS col2 FROM tab0 AS cor0
----
100
3380
920

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

query I rowsort
SELECT - 76 + - col0 AS col1 FROM tab1 AS cor0
----
-127
-161
-167

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( col0 ) + 80 col2 FROM tab2 AS cor0 WHERE NULL <= NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT ALL - 14 * - + MIN( ALL + col1 ) + 99 AS col2 FROM tab1 AS cor0
----
169

skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL - 14 * - + MIN ( ALL + col1 ) + 99 AS col2 FROM tab1 AS cor0
----
169

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 BETWEEN ( NULL ) AND - 40 + 49
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT + COUNT( * ) + + + 58 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-7027
SELECT + COUNT ( * ) + + + 58 FROM tab0
----
61

query II rowsort
SELECT DISTINCT col1 - 88 AS col2, 45 AS col1 FROM tab1
----
-41
45
-74
45
-83
45

query I rowsort
SELECT col0 * + col0 + + - col0 FROM tab0
----
210
7482
9312

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7030
SELECT ALL 73 - - - CAST( NULL AS DECIMAL ) * COUNT( ALL - 41 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL 73 - - - CAST ( NULL AS REAL ) * COUNT ( ALL - 41 ) FROM tab1
----
NULL

query I rowsort
SELECT + col0 + + col0 FROM tab0 WHERE + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + - - 33 FROM tab1
----
-14
19
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT col1 + + - ( ( + 32 ) ) DIV + 93 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7033
SELECT col1 + + - ( ( + 32 ) ) / + 93 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 82 + - + 75 ) NOT IN ( - 93 )
----

query I rowsort
SELECT + 6 * + col0 FROM tab2
----
276
384
450

query I rowsort
SELECT + ( - col0 ) * col0 AS col2 FROM tab2 AS cor0 WHERE - 85 = ( - col1 )
----

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

query I rowsort
SELECT - 69 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 * - col1 )
----

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

query II rowsort
SELECT - 72, col1 AS col0 FROM tab0
----
-72
1
-72
21
-72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT - COUNT( + col0 ) * + - SUM( col1 ) AS col0 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-7041
SELECT - COUNT ( + col0 ) * + - SUM ( col1 ) AS col0 FROM tab1
----
198

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

query I rowsort
SELECT ALL - col1 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( - - col0 ) NOT BETWEEN + 3 AND ( NULL )
----

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

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

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

query I rowsort
SELECT ALL - + col0 FROM tab0 AS cor0 WHERE col2 BETWEEN ( - col2 ) AND col0
----
-87

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

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

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

query I rowsort
SELECT ALL + col2 * - + 97 FROM tab2 AS cor0
----
-2231
-3880
-5626

query I rowsort
SELECT - 62 FROM tab0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT DISTINCT SUM( - - col2 ) * + 64 FROM tab2
----
7744

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT SUM ( - - col2 ) * + 64 FROM tab2
----
7744

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT MAX( DISTINCT + col1 ) * 76 FROM tab0
----
6156

skipif mysql # not compatible
query I rowsort label-7053
SELECT MAX ( DISTINCT + col1 ) * 76 FROM tab0
----
6156

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7055
SELECT DISTINCT - ( + - 75 ) * + + 94 * - 98 * + ( - AVG ( CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT - ( + - 75 ) * + + 94 * - 98 * + ( - AVG ( CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + + 62 FROM tab0 WHERE NOT NULL <> col2
----

query I rowsort
SELECT 42 * + 73 * - ( - - col2 ) FROM tab0
----
-144102
-303534
-30660

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT ALL + MIN( 30 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL + MIN ( 30 ) FROM tab2
----
30

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

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT 60 * - - ( COUNT ( * ) ) FROM tab0 cor0
----
180

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

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

query I rowsort
SELECT ALL - col0 + - - col1 FROM tab2 AS cor0
----
-8
13
5

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

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

query II rowsort
SELECT - 11 + col0, - 19 AS col2 FROM tab2
----
35
-19
53
-19
64
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT DISTINCT + 69 * + COUNT( * ) + + 50 FROM tab1 AS cor0
----
257

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT + 69 * + COUNT ( * ) + + 50 FROM tab1 AS cor0
----
257

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT + - 29 + + COUNT( * ) + - 73 * 28 FROM tab2 cor0
----
-2070

skipif mysql # not compatible
query I rowsort label-7066
SELECT + - 29 + + COUNT ( * ) + - 73 * 28 FROM tab2 cor0
----
-2070

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

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

query I rowsort
SELECT - - col2 * 38 FROM tab0 cor0
----
1786
3762
380

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

query I rowsort
SELECT DISTINCT col1 + + + 51 + + col2 FROM tab2 AS cor0
----
125
168
176

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

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

query I rowsort
SELECT DISTINCT - 93 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( 5 * - ( - col0 ) IS NOT NULL ) )
----
-93

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

query II rowsort
SELECT DISTINCT col2 + - col1 + + col2 + + col1 * - 92, + col0 AS col0 FROM tab2 AS cor0
----
-4697
46
-6115
75
-7081
64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT - SUM( DISTINCT + - 83 ) * ( - - SUM( ALL + - 38 ) ) + - ( + SUM( ALL - col0 ) ) FROM tab1 AS cor0
----
-9235

skipif mysql # not compatible
query I rowsort label-7076
SELECT - SUM ( DISTINCT + - 83 ) * ( - - SUM ( ALL + - 38 ) ) + - ( + SUM ( ALL - col0 ) ) FROM tab1 AS cor0
----
-9235

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

query II rowsort
SELECT + col2, col0 * + 1 * col1 * col0 + - col0 AS col0 FROM tab2
----
23
107870
40
315328
58
376800

onlyif mysql # DIV for integer division: 
query II rowsort label-7079
SELECT col0 DIV - - col1 - + col2, + col2 FROM tab2
----
-23
23
-40
40
-57
58

skipif mysql # not compatible
query II rowsort label-7079
SELECT col0 / - - col1 - + col2, + col2 FROM tab2
----
-23
23
-40
40
-57
58

query I rowsort
SELECT ALL col2 + + 32 FROM tab0
----
131
42
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7081
SELECT ALL + col0 - + ( - CAST( - col2 AS SIGNED ) ) AS col2 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL + col0 - + ( - CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab1
----
-45
23
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL AND NOT - 69 <> + 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----
0

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----
0

query I rowsort
SELECT - 39 * + - 6 AS col0 FROM tab1 AS cor0
----
234
234
234

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT - COUNT( * ) * 42 FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-7085
SELECT - COUNT ( * ) * 42 FROM tab2 AS cor0
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-7086
SELECT + 49 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
2
49

skipif mysql # not compatible
query I rowsort label-7086
SELECT + 49 / + col1 AS col2 FROM tab0 AS cor0
----
0
2
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7087
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7088
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - col0 >= - 17
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7088
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col0 >= - 17
----
NULL
NULL

query I rowsort
SELECT ALL + 24 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + 0 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 50 <= NULL
----

query I rowsort
SELECT 99 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

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

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

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

query I rowsort
SELECT - - ( + - 58 ) * + col2 AS col1 FROM tab0 AS cor0
----
-2726
-5742
-580

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7098
SELECT DISTINCT - - col2 + col0 + col0 DIV col1 col1 FROM tab0 cor0
----
101
293
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7098
SELECT DISTINCT - - col2 + col0 + col0 / col1 col1 FROM tab0 cor0
----
101
293
62

onlyif mysql # DIV for integer division: 
query II rowsort label-7099
SELECT ALL col2 col1, + 32 DIV + col2 - + col1 FROM tab2
----
23
-50
40
-77
58
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7099
SELECT ALL col2 col1, + 32 / + col2 - + col1 FROM tab2
----
23
-50
40
-77
58
-67

query I rowsort
SELECT ALL - col1 + 65 AS col0 FROM tab0
----
-16
44
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT ALL COUNT( 5 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL COUNT ( 5 ) FROM tab2
----
3

query I rowsort
SELECT col0 * + + ( + + col2 ) FROM tab0
----
705
870
9603

query I rowsort
SELECT + 23 + + + col0 FROM tab2
----
69
87
98

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

query I rowsort
SELECT ALL + col2 * - + col1 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7107
SELECT DISTINCT - 38 * + col1 + + col1 DIV - col1 + - ( col0 ) * - col0 FROM tab0 AS cor0
----
-2854
6770
9370

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT - 38 * + col1 + + col1 / - col1 + - ( col0 ) * - col0 FROM tab0 AS cor0
----
-2854
6770
9370

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT DISTINCT 33 * + 47 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
1548

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT 33 * + 47 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1548

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + + 93 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7111
SELECT ( - 2 ) / + CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) / + 6 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7111
SELECT ( - 2 ) / + CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) / + 6 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 86 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT 72 * - col1 - + 83 FROM tab1
----
-1091
-3467
-443

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - + col2 + + - col1 * - - col0 - 5 * + col0 col0 FROM tab0 AS cor0
----
-1352
-2359
-778

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT + MIN( - 39 ) * - + 44 - 38 FROM tab0 AS cor0
----
1678

skipif mysql # not compatible
query I rowsort label-7115
SELECT + MIN ( - 39 ) * - + 44 - 38 FROM tab0 AS cor0
----
1678

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT - COUNT( * ) - MAX( DISTINCT col2 ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-7116
SELECT - COUNT ( * ) - MAX ( DISTINCT col2 ) FROM tab2 AS cor0
----
-61

query I rowsort
SELECT DISTINCT - 59 * - + col1 + + 28 AS col0 FROM tab1 AS cor0
----
2801
323
854

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7120
SELECT ALL MIN( col1 ) DIV 13 DIV - - ( + 6 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL MIN ( col1 ) / 13 / - - ( + 6 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 + - 21 FROM tab0 AS cor0
----
-6
66
76

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7123
SELECT DISTINCT - COUNT( * ) DIV 92 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT - COUNT ( * ) / 92 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col0 + - col1 * - 48 FROM tab0 cor0
----
-49
3873
921

query I rowsort
SELECT DISTINCT - - ( col0 ) + + col1 FROM tab0 AS cor0
----
108
96
98

query II rowsort
SELECT DISTINCT col2 - - + col0, col0 FROM tab1
----
144
85
147
51
159
91

query I rowsort
SELECT ALL + col1 + - - 41 * + 4 FROM tab1
----
169
178
211

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

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

query I rowsort
SELECT ALL - col0 * + + 12 FROM tab0
----
-1044
-1164
-180

query I rowsort
SELECT col1 * + 1 AS col2 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7131
SELECT col2 FROM tab2 cor0 WHERE NOT 48 <> - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7131
SELECT col2 FROM tab2 cor0 WHERE NOT 48 <> - + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT - col0 AS col2, col0 * + - ( 86 ) AS col2 FROM tab0
----
-15
-1290
-87
-7482
-97
-8342

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7136
SELECT ALL ( SUM( col0 ) ) AS col0, - COUNT( * ) + - - COUNT( * ) FROM tab0 AS cor0
----
199
0

skipif mysql # not compatible
query II rowsort label-7136
SELECT ALL ( SUM ( col0 ) ) AS col0, - COUNT ( * ) + - - COUNT ( * ) FROM tab0 AS cor0
----
199
0

query II rowsort
SELECT DISTINCT + col1, + col2 AS col0 FROM tab1 cor0
----
14
96
47
68
5
59

query I rowsort
SELECT - 64 + + - 69 FROM tab2 AS cor0
----
-133
-133
-133

query I rowsort
SELECT DISTINCT + 47 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
47

query I rowsort
SELECT ALL + col1 + col2 + + 10 FROM tab1
----
120
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT MIN( DISTINCT + 40 ) AS col2 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-7141
SELECT MIN ( DISTINCT + 40 ) AS col2 FROM tab1
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 * - col0 col0 FROM tab0
----
-5568
-6208
-960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7143
SELECT 32 DIV - - COUNT( * ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-7143
SELECT 32 / - - COUNT ( * ) FROM tab2
----
10

query I rowsort
SELECT - col0 * + ( - + col2 ) AS col2 FROM tab0
----
705
870
9603

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - ( + - 34 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7147
SELECT ALL - col1 + col0, - col0 DIV + 54 AS col2 FROM tab1 AS cor0
----
37
0
44
-1
80
-1

skipif mysql # not compatible
query II rowsort label-7147
SELECT ALL - col1 + col0, - col0 / + 54 AS col2 FROM tab1 AS cor0
----
37
0
44
-1
80
-1

query I rowsort
SELECT - - ( - + col0 ) - - col1 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT ALL - ( + 36 ) AS col0 FROM tab1 cor0
----
-36
-36
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7150
SELECT + MIN( + + col0 ) / - 88 + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT 94 * - + 57 + + - COUNT( * ) AS col2 FROM tab2
----
-5361

skipif mysql # not compatible
query I rowsort label-7152
SELECT 94 * - + 57 + + - COUNT ( * ) AS col2 FROM tab2
----
-5361

query I rowsort
SELECT 70 + - - col1 FROM tab1
----
117
75
84

query I rowsort
SELECT + col1 + - 2 - + - ( - - 95 ) FROM tab0
----
114
174
94

query II rowsort
SELECT + col1, col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT DISTINCT + ( 32 ) * - COUNT( * ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7156
SELECT DISTINCT + ( 32 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT + 55 * + + col0 AS col2 FROM tab0 AS cor0
----
4785
5335
825

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT + MAX( - col2 ) * - - 89 AS col0 FROM tab2
----
-2047

skipif mysql # not compatible
query I rowsort label-7158
SELECT + MAX ( - col2 ) * - - 89 AS col0 FROM tab2
----
-2047

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

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

query II rowsort
SELECT 58 AS col0, 56 FROM tab0
----
58
56
58
56
58
56

query III rowsort
SELECT ALL * FROM tab0 WHERE 10 * col1 * col2 IS NULL
----

query I rowsort
SELECT + col1 * col0 * 86 FROM tab0 AS cor0
----
104490
157122
8342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 30 ) * + ( col2 ) col0 FROM tab2 cor0
----
-1200
-1740
-690

query I rowsort
SELECT 62 * + 85 + 4 - + + 11 AS col0 FROM tab2 AS cor0
----
5263
5263
5263

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT + MIN( + 76 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 * - + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT + MIN ( + 76 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 * - + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT + - ( + 50 ) AS col1 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT ALL - col2 + col0 * - - 42 FROM tab0 AS cor0
----
3644
3975
583

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

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

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

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

query I rowsort
SELECT ALL ( 63 ) AS col1 FROM tab0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT ALL MIN( ALL - - col1 ) * - 64 AS col1 FROM tab2
----
-3264

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL MIN ( ALL - - col1 ) * - 64 AS col1 FROM tab2
----
-3264

query I rowsort
SELECT - col1 + + + col0 * - ( + col2 ) AS col0 FROM tab1
----
-4910
-5020
-6235

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT + SUM( + col2 ) + 58 * - 80 AS col2 FROM tab0 AS cor0
----
-4484

skipif mysql # not compatible
query I rowsort label-7175
SELECT + SUM ( + col2 ) + 58 * - 80 AS col2 FROM tab0 AS cor0
----
-4484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7176
SELECT + - COUNT( * ) + ( - CAST( + + SUM( + col0 ) AS SIGNED ) ) AS col2 FROM tab2 cor0
----
-188

skipif mysql # not compatible
query I rowsort label-7176
SELECT + - COUNT ( * ) + ( - CAST ( + + SUM ( + col0 ) AS INTEGER ) ) AS col2 FROM tab2 cor0
----
-188

query I rowsort
SELECT DISTINCT - col2 + - 12 FROM tab2 AS cor0
----
-35
-52
-70

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

query I rowsort
SELECT ALL 78 + + - col1 - col0 * - col2 * + + col1 AS col0 FROM tab1 AS cor0
----
25148
290867
68608

query I rowsort
SELECT ALL col1 * - col2 * + col0 + - col0 FROM tab0
----
-18357
-57120
-9700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7181
SELECT + CAST( + col0 AS SIGNED ) * - col0 - col0 * + col0 * - col1 AS col0 FROM tab1
----
28900
33813
380926

skipif mysql # not compatible
query I rowsort label-7181
SELECT + CAST ( + col0 AS INTEGER ) * - col0 - col0 * + col0 * - col1 AS col0 FROM tab1
----
28900
33813
380926

query I rowsort
SELECT 87 - + 89 * - col0 FROM tab0
----
1422
7830
8720

onlyif mysql # DIV for integer division: 
query I rowsort label-7183
SELECT - 17 DIV - 78 + col2 - + 13 FROM tab0 AS cor0
----
-3
34
86

skipif mysql # not compatible
query I rowsort label-7183
SELECT - 17 / - 78 + col2 - + 13 FROM tab0 AS cor0
----
-3
34
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT - + COUNT( * ) + + MIN( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-7185
SELECT - + COUNT ( * ) + + MIN ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
56

query I rowsort
SELECT DISTINCT - + col2 * + - 31 * - 72 + - + col1 FROM tab1 AS cor0
----
-131693
-151823
-214286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7187
SELECT ALL - ( + col1 ) FROM tab1 AS cor0 WHERE NOT CAST( + 30 AS SIGNED ) IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL - ( + col1 ) FROM tab1 AS cor0 WHERE NOT CAST ( + 30 AS INTEGER ) IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-7188
SELECT - + 72 + + + COUNT( * ), 13 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * col2 <= NULL
----
-72
13

skipif mysql # not compatible
query II rowsort label-7188
SELECT - + 72 + + + COUNT ( * ), 13 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * col2 <= NULL
----
-72
13

query I rowsort
SELECT - 38 * - ( - ( - - col0 ) ) + - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-1840
-2560
-3000

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

query I rowsort
SELECT col0 * - 95 * - - col0 FROM tab2
----
-201020
-389120
-534375

query II rowsort
SELECT ALL + 8 * + col2 * - 38 AS col1, col2 FROM tab1
----
-17936
59
-20672
68
-29184
96

query I rowsort
SELECT DISTINCT - 75 * - col2 FROM tab0
----
3525
7425
750

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT + SUM( ALL - + 75 ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-7194
SELECT + SUM ( ALL - + 75 ) FROM tab2
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-7195
SELECT ALL 54 DIV col1 * - 70 FROM tab2
----
-70
0
0

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL 54 / col1 * - 70 FROM tab2
----
-70
0
0

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

skipif mysql # not compatible
query I rowsort label-7196
SELECT - CAST ( - - 64 AS INTEGER ) AS col0 FROM tab2
----
-64
-64
-64

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7199
SELECT + MAX ( DISTINCT - + col0 ) col2 FROM tab0 AS cor0
----
-15

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

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

query II rowsort
SELECT col0 AS col2, - col0 + - col1 AS col2 FROM tab2
----
46
-97
64
-141
75
-142

query I rowsort
SELECT col2 * col1 * - col2 FROM tab0
----
-178929
-2100
-9801

query II rowsort
SELECT DISTINCT - 83, - 28 + + col2 AS col0 FROM tab1 AS cor0
----
-83
31
-83
40
-83
68

query I rowsort
SELECT DISTINCT - 43 * + - 44 + + + col2 AS col1 FROM tab0 cor0
----
1902
1939
1991

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

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

query I rowsort
SELECT col0 + 43 AS col0 FROM tab1 AS cor0
----
128
134
94

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE - 19 + - - col0 IS NULL
----

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

query I rowsort
SELECT ALL col1 * - ( + + col2 ) + + - col2 FROM tab0
----
-198
-220
-3854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 + - col1 col1 FROM tab2
----
-109
-119
-93

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7212
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) * - CAST( - CAST( col1 AS SIGNED ) AS SIGNED ) * + col0
----

skipif mysql # not compatible
query III rowsort label-7212
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) * - CAST ( - CAST ( col1 AS INTEGER ) AS INTEGER ) * + col0
----

query I rowsort
SELECT + - col0 - - 9 + - - col2 * - - col0 FROM tab2 AS cor0
----
1021
2505
4284

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

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

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

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

query II rowsort
SELECT + + col0 + - 58 AS col2, - col2 FROM tab1 AS cor0
----
-7
-96
27
-59
33
-68

query I rowsort
SELECT DISTINCT - col0 * 86 * 15 + - col0 FROM tab0
----
-112317
-125227
-19365

query I rowsort
SELECT ALL + 63 - 50 FROM tab2
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7220
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7220
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT + col2 + ( - col1 ) + + 4 * + 93 FROM tab1 AS cor0 WHERE NOT col2 < 22 * + - col0 * - ( - col1 )
----
393
426
454

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

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

query I rowsort
SELECT - ( + ( + - col1 ) ) AS col2 FROM tab0 AS cor0
----
1
21
81

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7226
SELECT col0 DIV + 90 * + + col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7226
SELECT col0 / + 90 * + + col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7227
SELECT - 0 * 53 DIV + 12, - ( - col2 ) + col2 AS col2 FROM tab0 AS cor0
----
0
198
0
20
0
94

skipif mysql # not compatible
query II rowsort label-7227
SELECT - 0 * 53 / + 12, - ( - col2 ) + col2 AS col2 FROM tab0 AS cor0
----
0
198
0
20
0
94

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

query II rowsort
SELECT - col0 * - - col0, + col0 - - col2 + col2 AS col2 FROM tab1
----
-2601
243
-7225
203
-8281
227

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

query I rowsort
SELECT ALL - col1 + - 18 AS col1 FROM tab2 WHERE NOT ( ( NULL >= - + 20 * + col1 ) )
----

query I rowsort
SELECT + col1 * + - col1 AS col1 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT - col2 * + 60 * - 92 AS col2 FROM tab2
----
126960
220800
320160

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

query I rowsort
SELECT + 66 + - 50 FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT + col2 + - - 88 - 30 - - + 24 * + - 9 AS col1 FROM tab0 AS cor0
----
-111
-148
-59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 22 + - - 39 IS NOT NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7239
SELECT DISTINCT + + COUNT( col0 ) AS col0 FROM tab2 AS cor0 WHERE col2 NOT IN ( + col2 * 59 + col0 - + col1 + + - 17, col1, + col2 / + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT + + COUNT ( col0 ) AS col0 FROM tab2 AS cor0 WHERE col2 NOT IN ( + col2 * 59 + col0 - + col1 + + - 17, col1, + col2 / + CAST ( NULL AS INTEGER ) )
----
0

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7242
SELECT DISTINCT CAST ( NULL AS REAL ) * - + col0 + - 62 col0 FROM tab1 AS cor0
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + 81 col1 FROM tab2 AS cor0
----
23
41
58

query I rowsort
SELECT ALL + 81 + + + col0 + col1 FROM tab1
----
146
171
219

query I rowsort
SELECT DISTINCT col2 + + col0 - col2 + col1 * + ( + - col1 ) AS col0 FROM tab0
----
-354
-6546
96

query II rowsort
SELECT 44 + - 80 AS col1, col1 FROM tab1
----
-36
14
-36
47
-36
5

query I rowsort
SELECT DISTINCT - col2 * + - col2 AS col0 FROM tab1 AS cor0
----
3481
4624
9216

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

query I rowsort
SELECT DISTINCT - col1 + col1 - - - col0 + - 49 + + - col0 AS col2 FROM tab0 AS cor0
----
-223
-243
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-7251
SELECT ALL + - col2 + ( - + col1 ) DIV - ( + - 16 ) AS col1 FROM tab0 cor0
----
-11
-52
-99

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL + - col2 + ( - + col1 ) / - ( + - 16 ) AS col1 FROM tab0 cor0
----
-11
-52
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 + - - col0 - - - col1 * - col2 * ( - col0 ) AND ( - 18 * 14 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7253
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + col0 ) + - 30 IN ( + col2 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7253
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + col0 ) + - 30 IN ( + col2 * + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 * + 76 * + + 25 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7255
SELECT ALL + 10, + COUNT( + - 67 ) * MIN( 56 ) AS col2 FROM tab1
----
10
168

skipif mysql # not compatible
query II rowsort label-7255
SELECT ALL + 10, + COUNT ( + - 67 ) * MIN ( 56 ) AS col2 FROM tab1
----
10
168

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT COUNT( * ) * + SUM( 51 ) FROM tab2
----
459

skipif mysql # not compatible
query I rowsort label-7256
SELECT COUNT ( * ) * + SUM ( 51 ) FROM tab2
----
459

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT DISTINCT + MAX( - 66 ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-7257
SELECT DISTINCT + MAX ( - 66 ) FROM tab0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT - MAX( ALL 25 ) * - 57 FROM tab2
----
1425

skipif mysql # not compatible
query I rowsort label-7258
SELECT - MAX ( ALL 25 ) * - 57 FROM tab2
----
1425

query II rowsort
SELECT col0 * col1 * - col2, col0 * + col2 AS col0 FROM tab0
----
-18270
870
-57105
705
-9603
9603

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 >= + col0
----
15
81
47
97
1
99

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

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

skipif mysql # not compatible
query I rowsort label-7264
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 * + 29 col0 FROM tab1
----
-12325
-124033
-20706

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT COUNT( ALL col1 ) + + 70 AS col1 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-7267
SELECT COUNT ( ALL col1 ) + + 70 AS col1 FROM tab0
----
73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + - + col1 = - - 98
----
15
81
47
87
21
10

query II rowsort
SELECT ALL + 75 * - col0 AS col1, col0 FROM tab0 AS cor0
----
-1125
15
-6525
87
-7275
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7270
SELECT ALL + - 41 + + + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
23
34
5

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL + - 41 + + + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
23
34
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT DISTINCT - MIN( col2 ) + - 80 * + 61 FROM tab0 AS cor0
----
-4890

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT - MIN ( col2 ) + - 80 * + 61 FROM tab0 AS cor0
----
-4890

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT - SUM( - 4 ) FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-7272
SELECT - SUM ( - 4 ) FROM tab2 cor0
----
12

query I rowsort
SELECT DISTINCT col2 + - - col2 + - 39 AS col1 FROM tab1 AS cor0
----
153
79
97

query I rowsort
SELECT DISTINCT + col0 + - + col0 AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT - col0 AS col2, col2 AS col0 FROM tab2
----
-46
23
-64
40
-75
58

query I rowsort
SELECT DISTINCT + col2 + 24 * + 30 AS col1 FROM tab2
----
743
760
778

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT ALL - MAX( col1 ) - - 90 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL - MAX ( col1 ) - - 90 FROM tab0
----
9

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 64 * col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7282
SELECT ALL + - col1 AS col1, col2 * + CAST( NULL AS DECIMAL ) * + 46 * + 85 AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-7282
SELECT ALL + - col1 AS col1, col2 * + CAST ( NULL AS REAL ) * + 46 * + 85 AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-59

query II rowsort
SELECT DISTINCT col2, col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 64 * + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 <= ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * 3 * - col2 + - + 10 * - col1 + + + 6 * - col0 FROM tab2 AS cor0 WHERE NOT col2 / + 74 NOT IN ( ( - col1 ) * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT - 36 * - COUNT( * ) + - 75 AS col1 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7291
SELECT - 36 * - COUNT ( * ) + - 75 AS col1 FROM tab1 AS cor0
----
33

query I rowsort
SELECT ALL + 90 * - col0 FROM tab1
----
-4590
-7650
-8190

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 < + - ( + + 22 ) * - col2 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col2 ) col2 FROM tab1
----
59
68
96

query I rowsort
SELECT + ( + 54 ) + - col2 * + - col2 FROM tab0 AS cor0
----
154
2263
9855

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 * - 43 col1 FROM tab2
----
-344
-344
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT SUM( DISTINCT col1 ) * + + COUNT( * ) * + - COUNT( * ) - - COUNT( * ) - COUNT( * ) AS col1 FROM tab1 cor0
----
-594

skipif mysql # not compatible
query I rowsort label-7297
SELECT SUM ( DISTINCT col1 ) * + + COUNT ( * ) * + - COUNT ( * ) - - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1 cor0
----
-594

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

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

query II rowsort
SELECT + ( col0 ) + 72 AS col2, - 3 + - col1 AS col1 FROM tab2 AS cor0
----
118
-54
136
-80
147
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7300
SELECT + CAST( NULL AS DECIMAL ) * col2 + + 43 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT + CAST ( NULL AS REAL ) * col2 + + 43 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 44 + - col2 FROM tab2 AS cor0
----
-102
-67
-84

query II rowsort
SELECT DISTINCT col1, - col2 * - 82 AS col1 FROM tab2 AS cor0
----
51
1886
67
4756
77
3280

query I rowsort
SELECT col1 + 56 AS col2 FROM tab0
----
137
57
77

query I rowsort
SELECT ALL col2 * + 68 - + + 78 + - - col2 FROM tab2
----
1509
2682
3924

onlyif mysql # aggregate syntax: 
query II rowsort label-7305
SELECT SUM( ALL - 63 ), 9 * - COUNT( * ) AS col2 FROM tab0
----
-189
-27

skipif mysql # not compatible
query II rowsort label-7305
SELECT SUM ( ALL - 63 ), 9 * - COUNT ( * ) AS col2 FROM tab0
----
-189
-27

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

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

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

query II rowsort
SELECT col1, + col0 + 14 FROM tab2
----
51
60
67
89
77
78

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

query I rowsort
SELECT ALL - col2 * - - 66 FROM tab0 AS cor0
----
-3102
-6534
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT + ( COUNT( * ) ) * - + 36 + + 37 FROM tab1 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-7311
SELECT + ( COUNT ( * ) ) * - + 36 + + 37 FROM tab1 cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT 66 * SUM( + + col1 ) AS col1 FROM tab1
----
4356

skipif mysql # not compatible
query I rowsort label-7312
SELECT 66 * SUM ( + + col1 ) AS col1 FROM tab1
----
4356

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT SUM( 48 ) AS col1 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-7313
SELECT SUM ( 48 ) AS col1 FROM tab0
----
144

query I rowsort
SELECT ALL col0 * + col2 + - 53 AS col1 FROM tab2
----
1005
2507
4297

query II rowsort
SELECT DISTINCT + col1 AS col0, 27 AS col2 FROM tab2
----
51
27
67
27
77
27

query I rowsort
SELECT + col1 FROM tab0 WHERE + ( - + col1 ) IS NULL
----

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

query II rowsort
SELECT ALL - 27, col0 AS col2 FROM tab0 cor0
----
-27
15
-27
87
-27
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * col2 >= col1 - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 4 ) * 35 < col2
----

query I rowsort
SELECT ALL - + ( - - col1 ) + + col0 + + col2 FROM tab2 WHERE + col2 <= - col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7323
SELECT - CAST( - + col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7323
SELECT - CAST ( - + col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
14
47
5

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7325
SELECT - col2 DIV 69 DIV - col0 AS col0, + col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-7325
SELECT - col2 / 69 / - col0 AS col0, + col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

query I rowsort
SELECT ALL - col0 + - 87 + + col2 FROM tab1
----
-110
-113
-42

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE - + col0 < - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT ALL - MAX( 65 ) FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL - MAX ( 65 ) FROM tab2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT ALL - - MIN( - + 92 ) AS col2 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL - - MIN ( - + 92 ) AS col2 FROM tab1 AS cor0
----
-92

query I rowsort
SELECT + ( 14 ) * + 62 FROM tab0 AS cor0
----
868
868
868

query III rowsort
SELECT DISTINCT ( - 15 ) AS col0, + col1, - col2 FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( - 61, - col2, col0 * + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT - COUNT( * ) * + + 74 AS col1 FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-7332
SELECT - COUNT ( * ) * + + 74 AS col1 FROM tab0 AS cor0
----
-222

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

query I rowsort
SELECT ALL 89 FROM tab0 AS cor0 WHERE NULL IS NULL
----
89
89
89

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

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

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

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

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

query I rowsort
SELECT ALL - col1 + + 51 AS col2 FROM tab1 AS cor0
----
37
4
46

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

query I rowsort
SELECT - 65 + + - col2 FROM tab1
----
-124
-133
-161

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

query I rowsort
SELECT - 57 + col1 AS col1 FROM tab0 AS cor0
----
-36
-56
24

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

query I rowsort
SELECT + 49 - 92 FROM tab1
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NULL BETWEEN + + col2 + col0 AND ( - col2 * col0 / - - 18 )
----
0

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NULL BETWEEN + + col2 + col0 AND ( - col2 * col0 / - - 18 )
----
0

query I rowsort
SELECT 53 - - col2 AS col0 FROM tab0 cor0
----
100
152
63

query I rowsort
SELECT + - 53 - + - col2 AS col2 FROM tab2 cor0
----
-13
-30
5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - - col1 col0, 91 FROM tab2
----
1173
91
3080
91
3886
91

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

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

skipif mysql # not compatible
query I rowsort label-7352
SELECT + MIN ( - ( + + col2 ) ) AS col2 FROM tab1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7353
SELECT DISTINCT - COUNT( DISTINCT - CAST( + col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7354
SELECT ALL + - 73 * + CAST( NULL AS SIGNED ) AS col0, - col0 - - + col2 FROM tab0 AS cor0
----
NULL
-77
NULL
2
NULL
32

skipif mysql # not compatible
query II rowsort label-7354
SELECT ALL + - 73 * + CAST ( NULL AS INTEGER ) AS col0, - col0 - - + col2 FROM tab0 AS cor0
----
NULL
-77
NULL
2
NULL
32

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7356
SELECT - + col0 * + col0, - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
-2601
NULL
-7225
NULL
-8281
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7359
SELECT ALL - + col0 * - - col2 + - 39 DIV - + col1 col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7359
SELECT ALL - + col0 * - - col2 + - 39 / - + col1 col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-7360
SELECT ALL 34 * - 96 + col2 + col0 DIV - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-3068
-3175
-3202

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL 34 * - 96 + col2 + col0 / - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-3068
-3175
-3202

query I rowsort
SELECT ALL - - 40 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
140
2249
9841

query I rowsort
SELECT - 75 * - col2 FROM tab1
----
4425
5100
7200

query I rowsort
SELECT - 93 * - 90 AS col0 FROM tab1
----
8370
8370
8370

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT - COUNT( 17 ) AS col1 FROM tab1 WHERE - 79 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7364
SELECT - COUNT ( 17 ) AS col1 FROM tab1 WHERE - 79 IS NULL
----
0

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

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

query II rowsort
SELECT + col0 * col1 AS col0, col2 + - col2 AS col2 FROM tab2
----
2346
0
4928
0
5025
0

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE col2 NOT BETWEEN - - col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 NOT BETWEEN - col0 AND - + col1 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7370
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + CAST( + 1 AS SIGNED ) / + - 74 AND 38
----

skipif mysql # not compatible
query III rowsort label-7370
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + CAST ( + 1 AS INTEGER ) / + - 74 AND 38
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + col2 AS col0, col0 col1 FROM tab2 AS cor0
----
117
64
125
75
74
46

query I rowsort
SELECT + 14 * - col1 + - 23 FROM tab2
----
-1101
-737
-961

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

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT + + 77 / COUNT ( * ) FROM tab2 AS cor0
----
25

query I rowsort
SELECT ALL + col0 - - col1 - 6 * + col0 AS col2 FROM tab2 cor0
----
-179
-243
-308

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

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

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

query I rowsort
SELECT 14 * + - 62 FROM tab0 AS cor0
----
-868
-868
-868

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7380
SELECT + 46 / col2 col0 FROM tab2
----
0
1
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7381
SELECT ALL 9 AS col2, 84 * - - COUNT( * ) AS col2 FROM tab0
----
9
252

skipif mysql # not compatible
query II rowsort label-7381
SELECT ALL 9 AS col2, 84 * - - COUNT ( * ) AS col2 FROM tab0
----
9
252

query II rowsort
SELECT 2 AS col0, - 23 FROM tab0 AS cor0
----
2
-23
2
-23
2
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7383
SELECT CAST( NULL AS SIGNED ), + col1 * + ( + + 3 ) AS col2 FROM tab1 AS cor0
----
NULL
141
NULL
15
NULL
42

skipif mysql # not compatible
query II rowsort label-7383
SELECT CAST ( NULL AS INTEGER ), + col1 * + ( + + 3 ) AS col2 FROM tab1 AS cor0
----
NULL
141
NULL
15
NULL
42

query I rowsort
SELECT 71 * + col0 * + + 22 AS col1 FROM tab0 AS cor0
----
135894
151514
23430

query I rowsort
SELECT ALL 5 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT + SUM( - + col2 ) AS col2 FROM tab0 AS cor0 WHERE 59 * 32 * col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7387
SELECT + SUM ( - + col2 ) AS col2 FROM tab0 AS cor0 WHERE 59 * 32 * col2 IS NULL
----
NULL

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

query I rowsort
SELECT DISTINCT 82 * + col2 AS col1 FROM tab0 AS cor0
----
3854
8118
820

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

query I rowsort
SELECT + 57 * + col0 * 86 + 19 + + ( + - col1 ) + + 98 * 87 + - 18 FROM tab2 AS cor0
----
233968
322178
376110

query I rowsort
SELECT ALL - 59 + - + col1 * - col0 + 99 * + + 55 FROM tab2 AS cor0
----
10314
10411
7732

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

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

query I rowsort
SELECT - col2 + - + col2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT DISTINCT col1 + - 79 + + col1 FROM tab1 AS cor0
----
-51
-69
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT ALL COUNT( * ) + + + 52 FROM tab0 cor0
----
55

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL COUNT ( * ) + + + 52 FROM tab0 cor0
----
55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7399
SELECT ALL col2 * - col2 * col2 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-1000
NULL
-103823
NULL
-970299
NULL

skipif mysql # not compatible
query II rowsort label-7399
SELECT ALL col2 * - col2 * col2 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-1000
NULL
-103823
NULL
-970299
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7400
SELECT col2 + - + CAST( + 27 AS SIGNED ) FROM tab1
----
32
41
69

skipif mysql # not compatible
query I rowsort label-7400
SELECT col2 + - + CAST ( + 27 AS INTEGER ) FROM tab1
----
32
41
69

query II rowsort
SELECT col2 * + col0 + - - col0, col0 AS col0 FROM tab2
----
1104
46
2624
64
4425
75

query I rowsort
SELECT + 24 + - ( - col1 ) AS col2 FROM tab0
----
105
25
45

query I rowsort
SELECT - 13 + + col1 FROM tab1 AS cor0 WHERE 76 * col1 IS NOT NULL
----
-8
1
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7404
SELECT ALL CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT DISTINCT - + COUNT( * ) * + 34 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT - + COUNT ( * ) * + 34 FROM tab1 AS cor0
----
-102

query II rowsort
SELECT + col1 AS col1, 28 + - col2 AS col0 FROM tab2 AS cor0
----
51
5
67
-30
77
-12

query I rowsort
SELECT DISTINCT - + col2 * - 53 * col1 - col1 - 39 + - 52 * - col2 * - + col2 FROM tab1 cor0
----
-165421
-408053
-71146

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT DISTINCT + COUNT( col1 ) * MIN( - 99 ) AS col0 FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT + COUNT ( col1 ) * MIN ( - 99 ) AS col0 FROM tab2
----
-297

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE 22 - col1 BETWEEN NULL AND + 61
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7412
SELECT + CAST( NULL AS SIGNED ) / 13 AS col2 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT 41 AS col0 FROM tab1 WHERE + col2 NOT IN ( - col2 )
----
41

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

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE col1 < + 24 * col0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 + ( - col2 ) = + col1 - 27 * 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT DISTINCT ( + COUNT( * ) ) FROM tab2 WHERE + 36 >= - col0 + ( - col2 - col0 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7417
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab2 WHERE + 36 >= - col0 + ( - col2 - col0 * - col0 )
----
0

query I rowsort
SELECT 84 + col0 AS col1 FROM tab0
----
171
181
99

query III rowsort
SELECT ALL * FROM tab2 WHERE 78 / + col0 = NULL
----

query I rowsort
SELECT + col2 FROM tab2 WHERE col1 + + ( ( 31 ) - col1 * 38 ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT ALL 52 + - COUNT( * ) AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL 52 + - COUNT ( * ) AS col1 FROM tab2
----
49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 78 + + 8 * 4 col1 FROM tab0 WHERE + col2 NOT IN ( ( + 15 ) )
----
-3634
-748
-7690

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 40 + 77 IS NOT NULL
----

query I rowsort
SELECT ( col1 ) * col1 AS col1 FROM tab1 WHERE NOT + 26 IS NULL
----
196
2209
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7426
SELECT DISTINCT - CAST( SUM( DISTINCT 76 ) AS SIGNED ) AS col1 FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT - CAST ( SUM ( DISTINCT 76 ) AS INTEGER ) AS col1 FROM tab0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT + 38 + COUNT( * ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-7427
SELECT + 38 + COUNT ( * ) FROM tab0
----
41

query I rowsort
SELECT col1 + col1 * - col2 AS col1 FROM tab1
----
-1330
-290
-3149

query III rowsort
SELECT * FROM tab2 WHERE 84 + - col2 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 23 * - col0 <> 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT 4 + col1 FROM tab0
----
25
5
85

query I rowsort
SELECT 41 + ( 15 + col1 ) FROM tab2
----
107
123
133

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7435
SELECT DISTINCT - col2 DIV 22 col1 FROM tab1 AS cor0
----
-2
-3
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7435
SELECT DISTINCT - col2 / 22 col1 FROM tab1 AS cor0
----
-2
-3
-4

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7436
SELECT ALL MAX ( + 9 ) col2 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN col0 AND 80
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT ALL + 35 + - COUNT( * ) col1 FROM tab0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7438
SELECT ALL + 35 + - COUNT ( * ) col1 FROM tab0
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7439
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT IN ( + col0 * - CAST( NULL AS DECIMAL ) + + 19 )
----

skipif mysql # not compatible
query III rowsort label-7439
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT IN ( + col0 * - CAST ( NULL AS REAL ) + + 19 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * + 14 NOT BETWEEN NULL AND + 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7441
SELECT * FROM tab1 WHERE ( - 60 * CAST( NULL AS SIGNED ) ) <= - 78
----

skipif mysql # not compatible
query III rowsort label-7441
SELECT * FROM tab1 WHERE ( - 60 * CAST ( NULL AS INTEGER ) ) <= - 78
----

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

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

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

query I rowsort
SELECT - + col0 * - 66 + col2 FROM tab2 AS cor0
----
3059
4264
5008

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7446
SELECT DISTINCT - - col0 DIV col2 + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-202
-3807
-99

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT - - col0 / col2 + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-202
-3807
-99

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

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

query I rowsort
SELECT ALL - 87 + + ( col2 ) AS col0 FROM tab2 AS cor0
----
-29
-47
-64

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

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

query I rowsort
SELECT ALL - 58 + - 26 AS col0 FROM tab1 AS cor0
----
-84
-84
-84

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

query I rowsort
SELECT col1 + + col0 AS col2 FROM tab1 WHERE - col0 + ( 15 ) * ( col1 * 9 ) <= 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT DISTINCT + COUNT( * ) + - MAX( DISTINCT + 40 ) FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT + COUNT ( * ) + - MAX ( DISTINCT + 40 ) FROM tab0
----
-37

query III rowsort
SELECT * FROM tab2 WHERE ( 51 ) NOT BETWEEN NULL AND - 19 - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= ( col0 )
----

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

query I rowsort
SELECT DISTINCT 0 - - + col2 FROM tab2
----
23
40
58

query I rowsort
SELECT 4 * 83 FROM tab1 WHERE col2 - col0 * col2 NOT BETWEEN NULL AND 50
----

query I rowsort
SELECT 10 * + col2 - col2 FROM tab0
----
423
891
90

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

query I rowsort
SELECT DISTINCT col0 + - 32 + 7 AS col1 FROM tab1 AS cor0
----
26
60
66

query I rowsort
SELECT - 75 + + 83 + col1 FROM tab2 cor0
----
59
75
85

query I rowsort
SELECT + col2 + - col1 * - col1 AS col2 FROM tab0 AS cor0
----
100
451
6608

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - col1 + - col2 BETWEEN 93 * col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 47 col1 FROM tab1 AS cor0
----
132
138
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT + SUM( col2 ) FROM tab0 WHERE NOT NULL <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7466
SELECT + SUM ( col2 ) FROM tab0 WHERE NOT NULL <> ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7467
SELECT ALL 0 DIV - col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL 0 / - col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7468
SELECT DISTINCT col2 FROM tab2 WHERE ( NULL ) BETWEEN col2 + 65 / - CAST( col1 AS DECIMAL ) AND ( - col0 + CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT col2 FROM tab2 WHERE ( NULL ) BETWEEN col2 + 65 / - CAST ( col1 AS REAL ) AND ( - col0 + CAST ( - col1 AS INTEGER ) )
----

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

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

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

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

query II rowsort
SELECT - col2 AS col2, - 6 FROM tab0 AS cor0
----
-10
-6
-47
-6
-99
-6

query I rowsort
SELECT - col1 * - 5 + + + col0 + col1 * - 51 AS col0 FROM tab2 AS cor0
----
-2300
-3007
-3478

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT + SUM( DISTINCT 50 ) AS col0 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-7473
SELECT + SUM ( DISTINCT 50 ) AS col0 FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT - - COUNT( * ) * - 7 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-7474
SELECT - - COUNT ( * ) * - 7 FROM tab2 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT + ( + SUM( ALL + 66 ) ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7475
SELECT + ( + SUM ( ALL + 66 ) ) FROM tab2 AS cor0
----
198

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

skipif mysql # not compatible
query I rowsort label-7476
SELECT + ( - + MIN ( + col2 ) ) FROM tab1 AS cor0
----
-59

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

skipif mysql # not compatible
query II rowsort label-7477
SELECT - 15 AS col1, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-15
3

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

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

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

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL CAST ( NULL AS INTEGER ) / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT ( + 30 ) >= + col0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * - + col2 AS col2, + col1 * + col1 + col1 col0 FROM tab0
----
705
6642
870
462
9603
2

query III rowsort
SELECT * FROM tab1 WHERE NOT + 59 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 + col1 * col0 ) IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * - col2 * + col2 * + 49 FROM tab2 AS cor0
----
-11044012
-1321971
-6036800

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ALL + 23 + + MAX( + 19 ) AS col1 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL + 23 + + MAX ( + 19 ) AS col1 FROM tab1 AS cor0
----
42

query I rowsort
SELECT + ( col0 ) * col1 + 0 + col2 * - 52 AS col0 FROM tab0 AS cor0
----
-1229
-5051
1307

query I rowsort
SELECT + + col0 + + 45 AS col1 FROM tab2 AS cor0
----
109
120
91

query I rowsort
SELECT - + 54 + + col1 AS col1 FROM tab2 AS cor0
----
-3
13
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT + MAX( DISTINCT col0 ) FROM tab2 WHERE + + 14 + col1 + - col0 - ( col1 ) * col2 IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-7489
SELECT + MAX ( DISTINCT col0 ) FROM tab2 WHERE + + 14 + col1 + - col0 - ( col1 ) * col2 IS NOT NULL
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7490
SELECT ALL col1 DIV + 3 AS col1 FROM tab0
----
0
27
7

skipif mysql # not compatible
query I rowsort label-7490
SELECT ALL col1 / + 3 AS col1 FROM tab0
----
0
27
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL + - COUNT( * ) FROM tab1 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL + - COUNT ( * ) FROM tab1 WHERE col2 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7492
SELECT COUNT( * ) AS col1, 16 FROM tab0
----
3
16

skipif mysql # not compatible
query II rowsort label-7492
SELECT COUNT ( * ) AS col1, 16 FROM tab0
----
3
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7493
SELECT ALL 91 DIV 62 * 89 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL 91 / 62 * 89 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT DISTINCT + col1 * + 92 FROM tab2 WHERE NOT NULL NOT IN ( + ( + - 85 ) )
----

query I rowsort
SELECT + 11 AS col1 FROM tab1 WHERE 39 NOT IN ( + 72 )
----
11
11
11

query II rowsort
SELECT ALL col2, + ( - + col2 ) * - - 75 - + col2 + col0 AS col2 FROM tab1
----
59
-4399
68
-5077
96
-7245

onlyif mysql # aggregate syntax: 
query II rowsort label-7497
SELECT ALL + 81 col0, + ( - COUNT( * ) ) FROM tab0 AS cor0
----
81
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7497
SELECT ALL + 81 col0, + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
81
-3

query I rowsort
SELECT ALL - 13 + + col2 * - + 75 AS col0 FROM tab2 AS cor0
----
-1738
-3013
-4363

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT + 7 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7499
SELECT + 7 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7500
SELECT - - col2 DIV - - col1 - ( + + col2 ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7500
SELECT - - col2 / - - col1 - ( + + col2 ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL + 49 AS col1 FROM tab0 AS cor0
----
49
49
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 5 col1 FROM tab1 AS cor0
----
-42
-9
0

query I rowsort
SELECT DISTINCT + + col2 * + 80 + - col1 + - + ( + + col1 ) FROM tab0 cor0
----
3598
758
7918

query I rowsort
SELECT DISTINCT - col2 + 95 FROM tab2
----
37
55
72

query I rowsort
SELECT col2 + + + col1 AS col0 FROM tab2
----
117
125
74

query I rowsort
SELECT ALL + col0 + + 14 AS col2 FROM tab1
----
105
65
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7507
SELECT ALL 10, + COUNT( * ) AS col1 FROM tab0
----
10
3

skipif mysql # not compatible
query II rowsort label-7507
SELECT ALL 10, + COUNT ( * ) AS col1 FROM tab0
----
10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT - MAX( DISTINCT 46 ) + 40 AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7508
SELECT - MAX ( DISTINCT 46 ) + 40 AS col0 FROM tab0
----
-6

query I rowsort
SELECT ALL - col2 * + + col1 * col2 FROM tab1 WHERE NULL < + col2 / 29
----

query I rowsort
SELECT - col1 * 91 FROM tab1 WHERE - + col0 * - + col1 NOT IN ( - - 28 )
----
-1274
-4277
-455

onlyif mysql # DIV for integer division: 
query I rowsort label-7511
SELECT DISTINCT - col2 DIV - 89 - + 41 * + - col2 + col2 AS col1 FROM tab0
----
1974
4159
420

skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT - col2 / - 89 - + 41 * + - col2 + col2 AS col1 FROM tab0
----
1974
4159
420

onlyif mysql # aggregate syntax: 
query II rowsort label-7512
SELECT ALL 18 col2, COUNT( * ) AS col0 FROM tab1
----
18
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7512
SELECT ALL 18 col2, COUNT ( * ) AS col0 FROM tab1
----
18
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7513
SELECT + MIN( DISTINCT col1 ) AS col0, SUM( - col0 ) AS col0 FROM tab2
----
51
-185

skipif mysql # not compatible
query II rowsort label-7513
SELECT + MIN ( DISTINCT col1 ) AS col0, SUM ( - col0 ) AS col0 FROM tab2
----
51
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7514
SELECT + - CAST( col0 AS SIGNED ) FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7514
SELECT + - CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT ALL - MIN( - ( + 63 ) ) AS col2 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL - MIN ( - ( + 63 ) ) AS col2 FROM tab1 AS cor0
----
63

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 + ( - - col2 ) FROM tab0 AS cor0 WHERE NOT 72 IS NULL
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT DISTINCT - SUM( DISTINCT - 37 ) AS col1 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT - SUM ( DISTINCT - 37 ) AS col1 FROM tab2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT DISTINCT MIN( 33 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
33

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT MIN ( 33 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 5 * col2 + col2 - 16 * + col0 / - col0 < ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7521
SELECT ALL - + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7521
SELECT ALL - + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7522
SELECT ALL - - CAST( NULL AS SIGNED ) * + ( - col1 ) + + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL - - CAST ( NULL AS INTEGER ) * + ( - col1 ) + + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE NOT - col1 + - col0 IN ( - 89 )
----
14
47
5

query I rowsort
SELECT + 16 * - 6 FROM tab1
----
-96
-96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7525
SELECT ALL col2 DIV - 24 FROM tab1
----
-2
-2
-4

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL col2 / - 24 FROM tab1
----
-2
-2
-4

query I rowsort
SELECT 79 FROM tab2 WHERE NOT ( ( - - col0 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7527
SELECT + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7527
SELECT + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0
----
1

query I rowsort
SELECT - 83 * - col0 FROM tab1
----
4233
7055
7553

onlyif mysql # DIV for integer division: 
query I rowsort label-7529
SELECT 8 DIV - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7529
SELECT 8 / - col0 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> ( - col1 * - ( - - 83 ) / - - 58 + - + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT DISTINCT - MIN( - - col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT - MIN ( - - col2 ) AS col1 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT - COUNT( DISTINCT 21 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7533
SELECT - COUNT ( DISTINCT 21 ) FROM tab1
----
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 + + ( - - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7535
SELECT - col2 * col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT - col2 * col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT - + COUNT( * ) + - 95 + - 21 AS col0 FROM tab1 WHERE NOT - col1 <> - col1 - 33
----
-116

skipif mysql # not compatible
query I rowsort label-7536
SELECT - + COUNT ( * ) + - 95 + - 21 AS col0 FROM tab1 WHERE NOT - col1 <> - col1 - 33
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT DISTINCT + + 9 * + COUNT( * ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT + + 9 * + COUNT ( * ) FROM tab0 AS cor0
----
27

query I rowsort
SELECT DISTINCT - ( + 9 ) AS col2 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT + - ( + 24 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT ALL - + MAX( ALL - 6 ) AS col0 FROM tab1 AS cor0 WHERE NOT 35 < col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL - + MAX ( ALL - 6 ) AS col0 FROM tab1 AS cor0 WHERE NOT 35 < col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7541
SELECT DISTINCT + + col2 * CAST( - ( - col0 ) AS SIGNED ) * + + 8 * - CAST( - col1 AS SIGNED ) + + 92 FROM tab1 AS cor0
----
200692
2326780
548444

skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT + + col2 * CAST ( - ( - col0 ) AS INTEGER ) * + + 8 * - CAST ( - col1 AS INTEGER ) + + 92 FROM tab1 AS cor0
----
200692
2326780
548444

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT + MAX( ALL col0 ) col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7542
SELECT + MAX ( ALL col0 ) col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NULL IS NULL OR ( + 64 ) * + 96 + + + col0 * 73 + + - 91 + - col0 * col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT 84 * 16 FROM tab2 AS cor0
----
1344
1344
1344

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7545
SELECT ALL - COUNT( * ) + - - 82 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL - COUNT ( * ) + - - 82 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7546
SELECT DISTINCT + col1 + col0 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT + col1 + col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col2 * + col1 - - col2 AS col2, + col2 + - 56 * col0 + - col2 AS col0 FROM tab0
----
198
-5432
220
-4872
3854
-840

onlyif mysql # DIV for integer division: 
query I rowsort label-7548
SELECT + col2 DIV 48 DIV + - col2 - + - 11 * col0 FROM tab2
----
506
704
825

skipif mysql # not compatible
query I rowsort label-7548
SELECT + col2 / 48 / + - col2 - + - 11 * col0 FROM tab2
----
506
704
825

query I rowsort
SELECT DISTINCT - col1 - col2 * col1 FROM tab2
----
-1224
-3157
-3953

query II rowsort
SELECT DISTINCT col1, + col2 FROM tab0 WHERE + col0 * + col0 < - - col0 AND NOT + col1 < - - col1
----

query I rowsort
SELECT - 87 - col1 AS col2 FROM tab2
----
-138
-154
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT - COUNT( * ) - + + 82 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-7552
SELECT - COUNT ( * ) - + + 82 FROM tab1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7553
SELECT DISTINCT 75 + COUNT( * ) + + 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-7553
SELECT DISTINCT 75 + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT + MAX( ALL - - ( - ( + - col2 ) ) ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7554
SELECT + MAX ( ALL - - ( - ( + - col2 ) ) ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT ALL + ( - + COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL + ( - + COUNT ( * ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT ALL COUNT( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7556
SELECT ALL COUNT ( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7557
SELECT 78 DIV COUNT( * ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-7557
SELECT 78 / COUNT ( * ) FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT + COUNT( * ) FROM tab2 WHERE NOT + - 23 BETWEEN NULL AND - 68
----
3

skipif mysql # not compatible
query I rowsort label-7558
SELECT + COUNT ( * ) FROM tab2 WHERE NOT + - 23 BETWEEN NULL AND - 68
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT - COUNT( * ) + + 41 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7559
SELECT - COUNT ( * ) + + 41 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT + - MIN( ALL - 72 ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7560
SELECT + - MIN ( ALL - 72 ) FROM tab0 AS cor0
----
72

query II rowsort
SELECT 91, 25 + + 51 + - - 9 AS col0 FROM tab0 AS cor0
----
91
85
91
85
91
85

query II rowsort
SELECT ALL + col2 AS col0, - col0 AS col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7563
SELECT DISTINCT CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-3

query I rowsort
SELECT DISTINCT - col1 + ( 17 ) AS col2 FROM tab2
----
-34
-50
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND - - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) = col1
----

query I rowsort
SELECT + col2 + - - 38 FROM tab0
----
137
48
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT ALL - COUNT( * ) * - COUNT( * ) + ( 88 ) AS col1 FROM tab1 WHERE ( col1 < NULL )
----
88

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + ( 88 ) AS col1 FROM tab1 WHERE ( col1 < NULL )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT ALL + col0 + - CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7570
SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = ( - 14 + - - 47 )
----

query I rowsort
SELECT + col1 + + 53 * - + 32 FROM tab1 AS cor0
----
-1649
-1682
-1691

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT DISTINCT + COUNT( * ) + - + SUM( 89 ) * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
804

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT + COUNT ( * ) + - + SUM ( 89 ) * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
804

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT - SUM( - col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT - SUM ( - col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 72 - - + 26 + col2 + + col0 IS NULL
----

query II rowsort
SELECT - 26 AS col1, col1 AS col0 FROM tab2
----
-26
51
-26
67
-26
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT DISTINCT ( + 97 ) - - + SUM( 57 ) - + + MIN( col1 ) + 95 FROM tab2
----
312

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT ( + 97 ) - - + SUM ( 57 ) - + + MIN ( col1 ) + 95 FROM tab2
----
312

query I rowsort
SELECT ALL 86 * col2 AS col0 FROM tab1
----
5074
5848
8256

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT col1 + - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT - + COUNT( * ) + - 91 AS col1 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7581
SELECT - + COUNT ( * ) + - 91 AS col1 FROM tab1 AS cor0
----
-94

query I rowsort
SELECT ALL + 85 + + 79 AS col1 FROM tab1 AS cor0 WHERE NOT + 38 = NULL
----

query I rowsort
SELECT - col1 + - 90 + + + 4 FROM tab0 AS cor0
----
-107
-167
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-7584
SELECT ALL + col1 * + + col1 + - 55 + + 52 col2, - col1 DIV col1 AS col1 FROM tab2 AS cor0
----
2598
-1
4486
-1
5926
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7584
SELECT ALL + col1 * + + col1 + - 55 + + 52 col2, - col1 / col1 AS col1 FROM tab2 AS cor0
----
2598
-1
4486
-1
5926
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 > - col1 )
----

query I rowsort
SELECT DISTINCT + + col1 + - - 92 AS col0 FROM tab2 AS cor0
----
143
159
169

query I rowsort
SELECT + col2 FROM tab1 WHERE ( - - col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 81 * - - ( + + col2 ) IS NULL
----

query I rowsort
SELECT ALL 84 * - - col0 AS col2 FROM tab2
----
3864
5376
6300

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7590
SELECT ALL + col2 * + col2, - CAST( - + col2 AS SIGNED ) * + + col0 * + ( + - ( - col2 ) ) + col1 DIV - 90 AS col2 FROM tab0
----
100
8700
2209
33135
9801
950697

skipif mysql # not compatible
query II rowsort label-7590
SELECT ALL + col2 * + col2, - CAST ( - + col2 AS INTEGER ) * + + col0 * + ( + - ( - col2 ) ) + col1 / - 90 AS col2 FROM tab0
----
100
8700
2209
33135
9801
950697

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 36 * - 45 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7592
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN col0 + col0 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7592
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN col0 + col0 AND + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 col2 FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col1 FROM tab1
----
13
13
13

query III rowsort
SELECT * FROM tab2 WHERE NOT - 11 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + AVG ( ALL + col1 ) FROM tab0 WHERE NOT 82 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7597
SELECT DISTINCT + CAST( CAST( + ( col1 ) AS SIGNED ) AS SIGNED ) AS col2, 53 * col1 - - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
152
21
1123
81
4340

skipif mysql # not compatible
query II rowsort label-7597
SELECT DISTINCT + CAST ( CAST ( + ( col1 ) AS INTEGER ) AS INTEGER ) AS col2, 53 * col1 - - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
152
21
1123
81
4340

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT - MIN( DISTINCT - + 36 ) AS col2 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7598
SELECT - MIN ( DISTINCT - + 36 ) AS col2 FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT DISTINCT - MAX( ALL + - col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT - MAX ( ALL + - col2 ) AS col1 FROM tab2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7600
SELECT COUNT( * ) DIV 99 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7600
SELECT COUNT ( * ) / 99 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 >= + col1
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - col0 * + 53 * 2 FROM tab0 AS cor0
----
-10282
-1590
-9222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7603
SELECT ALL + 35 + + 2 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + - col0 <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL + 35 + + 2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + - col0 <> ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7604
SELECT ALL - 21 DIV + 47 + - COUNT( * ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7604
SELECT ALL - 21 / + 47 + - COUNT ( * ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 + col2 IS NULL
----
51
85
91

query II rowsort
SELECT DISTINCT - col2, 34 AS col1 FROM tab0
----
-10
34
-47
34
-99
34

query II rowsort
SELECT DISTINCT col0 AS col0, + 93 * col1 AS col2 FROM tab2
----
46
4743
64
7161
75
6231

query I rowsort
SELECT ALL + 93 * - 91 FROM tab1
----
-8463
-8463
-8463

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL 8 * COUNT( - 63 ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL 8 * COUNT ( - 63 ) FROM tab1
----
24

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE - col2 * + ( - - col2 ) BETWEEN NULL AND - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7611
SELECT ALL + ( + - col2 ) AS col2, col0 FROM tab2 AS cor0 WHERE + 0 + - + CAST( NULL AS SIGNED ) + + + col2 IS NULL
----
-23
46
-40
64
-58
75

skipif mysql # not compatible
query II rowsort label-7611
SELECT ALL + ( + - col2 ) AS col2, col0 FROM tab2 AS cor0 WHERE + 0 + - + CAST ( NULL AS INTEGER ) + + + col2 IS NULL
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT + + COUNT( * ) + - + 0 AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7612
SELECT + + COUNT ( * ) + - + 0 AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + col1 + - - col1 AS col1 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7614
SELECT + col2 col0 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7614
SELECT + col2 col0 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT + 43 + col2 AS col2 FROM tab0
----
142
53
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7616
SELECT DISTINCT - col1 - + col0 - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT - col1 - + col0 - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + + 85 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( 51 * col0 * - - 43 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7619
SELECT DISTINCT + ( - COUNT( * ) ) DIV + - MIN( + - 84 ) + - 95 AS col1 FROM tab0 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT + ( - COUNT ( * ) ) / + - MIN ( + - 84 ) + - 95 AS col1 FROM tab0 cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT DISTINCT - COUNT( * ) + + ( - COUNT( + col2 ) ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT - COUNT ( * ) + + ( - COUNT ( + col2 ) ) FROM tab2 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7621
SELECT 28 DIV col2 * - - 53 - 92 AS col2 FROM tab0 AS cor0
----
-92
-92
14

skipif mysql # not compatible
query I rowsort label-7621
SELECT 28 / col2 * - - 53 - 92 AS col2 FROM tab0 AS cor0
----
-92
-92
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 93 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 27 * - 44 + + 99 FROM tab2 cor0
----
1287
1287
1287

query II rowsort
SELECT - ( col2 ), - 67 AS col2 FROM tab1 AS cor0
----
-59
-67
-68
-67
-96
-67

query I rowsort
SELECT - ( + + col2 ) * - col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7626
SELECT ALL - 81 AS col2, - 13 * - CAST( col2 AS SIGNED ) * + col0 FROM tab0
----
-81
11310
-81
124839
-81
9165

skipif mysql # not compatible
query II rowsort label-7626
SELECT ALL - 81 AS col2, - 13 * - CAST ( col2 AS INTEGER ) * + col0 FROM tab0
----
-81
11310
-81
124839
-81
9165

query II rowsort
SELECT col0, 50 FROM tab1
----
51
50
85
50
91
50

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 6 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7629
SELECT CAST( - + 15 AS SIGNED ) AS col2 FROM tab0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-7629
SELECT CAST ( - + 15 AS INTEGER ) AS col2 FROM tab0
----
-15
-15
-15

query I rowsort
SELECT ALL col2 * ( - - col0 ) AS col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL + col1 * - 12 FROM tab1
----
-168
-564
-60

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE - col0 * + - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE - col0 * + - col0 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 47 * 43 NOT IN ( - 55 )
----

query II rowsort
SELECT ALL - 15, + col1 AS col1 FROM tab2 AS cor0
----
-15
51
-15
67
-15
77

query I rowsort
SELECT ALL col2 * + - col2 AS col0 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT + 84 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT DISTINCT + - 34 AS col2 FROM tab0 AS cor0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7639
SELECT - - col2 * - - CAST( 85 AS SIGNED ) + + + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-408
0
3264

skipif mysql # not compatible
query I rowsort label-7639
SELECT - - col2 * - - CAST ( 85 AS INTEGER ) + + + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-408
0
3264

query I rowsort
SELECT - + ( 55 ) * + + 44 FROM tab1 AS cor0
----
-2420
-2420
-2420

query III rowsort
SELECT * FROM tab1 WHERE + 34 * col1 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + 33 + - 26 + + 32 AS col2 FROM tab0
----
39

query I rowsort
SELECT ALL 72 * - 41 * + ( - 83 ) AS col2 FROM tab0
----
245016
245016
245016

query II rowsort
SELECT col1 + + 50 * + + col2 AS col1, - col1 AS col0 FROM tab0
----
2431
-81
4951
-1
521
-21

query I rowsort
SELECT ALL + col1 - + 26 AS col0 FROM tab2
----
25
41
51

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + col2 * - - col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - ( + 47 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7648
SELECT DISTINCT 62 AS col2, COUNT( * ) FROM tab1
----
62
3

skipif mysql # not compatible
query II rowsort label-7648
SELECT DISTINCT 62 AS col2, COUNT ( * ) FROM tab1
----
62
3

query I rowsort
SELECT ALL col2 * - col2 + - + col0 AS col1 FROM tab2
----
-1664
-3439
-575

query I rowsort
SELECT DISTINCT - 60 - + - col1 FROM tab0
----
-39
-59
21

query I rowsort
SELECT DISTINCT 14 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT + - SUM( - 62 ) FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-7652
SELECT + - SUM ( - 62 ) FROM tab2 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 34 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 34 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 col1 FROM tab2
----
49
49
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - 49, - col2 * - + col2 col2 FROM tab1
----
-2303
4624
-245
3481
-686
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-7656
SELECT DISTINCT 79 DIV + 59 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT 79 / + 59 AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7657
SELECT ALL + 33 * MAX( - - 8 ) AS col1, 19 FROM tab0
----
264
19

skipif mysql # not compatible
query II rowsort label-7657
SELECT ALL + 33 * MAX ( - - 8 ) AS col1, 19 FROM tab0
----
264
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7658
SELECT DISTINCT + 0 DIV - - col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT + 0 / - - col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 64 * - col0 * - + 66 * - col1 AS col1 FROM tab2
----
20815872
21225600
9909504

query I rowsort
SELECT - - ( + + 33 ) FROM tab1 AS cor0
----
33
33
33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 <> NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT COUNT( ALL 44 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7663
SELECT COUNT ( ALL 44 ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7664
SELECT - MIN( - 69 ) DIV + 42 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7664
SELECT - MIN ( - 69 ) / + 42 FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7665
SELECT + COUNT( CAST( + 37 AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7665
SELECT + COUNT ( CAST ( + 37 AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT ALL + + SUM( DISTINCT col0 ) AS col2 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL + + SUM ( DISTINCT col0 ) AS col2 FROM tab1 cor0
----
227

query I rowsort
SELECT + - col0 + col0 * - ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND 34 - + - 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7668
SELECT ALL - + 6, SUM( col2 ) AS col2 FROM tab1 AS cor0
----
-6
223

skipif mysql # not compatible
query II rowsort label-7668
SELECT ALL - + 6, SUM ( col2 ) AS col2 FROM tab1 AS cor0
----
-6
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 2 col2 FROM tab0 AS cor0
----
45
8
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7670
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN col1 AND + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 AND + col0 * col1 / + + col0
----

query I rowsort
SELECT DISTINCT - 33 + - - col1 AS col1 FROM tab1 AS cor0
----
-19
-28
14

query I rowsort
SELECT DISTINCT 87 + + - col2 FROM tab1 AS cor0 WHERE ( + 62 ) IS NOT NULL
----
-9
19
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7675
SELECT DISTINCT SUM( DISTINCT - col2 ) + + + 19 DIV - COUNT( * ) col2 FROM tab1 AS cor0
----
-229

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7675
SELECT DISTINCT SUM ( DISTINCT - col2 ) + + + 19 / - COUNT ( * ) col2 FROM tab1 AS cor0
----
-229

query II rowsort
SELECT DISTINCT + col1, - col0 + col0 FROM tab0 AS cor0
----
1
0
21
0
81
0

query I rowsort
SELECT DISTINCT + 0 + - col2 * - + 95 AS col1 FROM tab2
----
2185
3800
5510

query I rowsort
SELECT - 97 AS col1 FROM tab0 WHERE + - col0 IS NOT NULL
----
-97
-97
-97

query I rowsort
SELECT ALL - col0 - 65 AS col2 FROM tab1
----
-116
-150
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-7680
SELECT + col0 DIV - col1 - + col1 + 7 AS col2 FROM tab0 AS cor0
----
-18
-74
-91

skipif mysql # not compatible
query I rowsort label-7680
SELECT + col0 / - col1 - + col1 + 7 AS col2 FROM tab0 AS cor0
----
-18
-74
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT - MAX( ALL + ( col0 ) ) AS col2 FROM tab2 AS cor0 WHERE NULL >= 88 * - col1 * + col2 + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT - MAX ( ALL + ( col0 ) ) AS col2 FROM tab2 AS cor0 WHERE NULL >= 88 * - col1 * + col2 + - 57
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7682
SELECT - col2 + col2 AS col1, + col0 - + 83 * - + CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-7682
SELECT - col2 + col2 AS col1, + col0 - + 83 * - + CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE + col0 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7685
SELECT - col2 / + + CAST( - - col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col1 - + - col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-7685
SELECT - col2 / + + CAST ( - - col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col1 - + - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL + SUM( - + col1 ) AS col2 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL + SUM ( - + col1 ) AS col2 FROM tab2 cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col0 * + col1 + + col2 col2 FROM tab2 AS cor0
----
107939
315432
376933

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT DISTINCT COUNT( - 89 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7688
SELECT DISTINCT COUNT ( - 89 ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7689
SELECT DISTINCT - CAST( - + ( + + 40 ) AS SIGNED ) * + col2 + - col1 * + - 74 + col0 + - col2 * col0 FROM tab0 AS cor0
----
-5472
1171
7184

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT - CAST ( - + ( + + 40 ) AS INTEGER ) * + col2 + - col1 * + - 74 + col0 + - col2 * col0 FROM tab0 AS cor0
----
-5472
1171
7184

query I rowsort
SELECT 72 * + - col0 FROM tab2 AS cor0
----
-3312
-4608
-5400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 cor0 WHERE NOT - 32 <> - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 21 col1 FROM tab2 AS cor0
----
1344
1575
966

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT - SUM( ALL + col2 ) FROM tab0 WHERE NOT + - col1 IS NULL
----
-156

skipif mysql # not compatible
query I rowsort label-7693
SELECT - SUM ( ALL + col2 ) FROM tab0 WHERE NOT + - col1 IS NULL
----
-156

query I rowsort
SELECT col2 * - 88 FROM tab2
----
-2024
-3520
-5104

query I rowsort
SELECT ALL col1 * col2 * - - 12 AS col2 FROM tab2
----
14076
36960
46632

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE + 38 + - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE + 38 + - col1 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT ALL - SUM( ALL + 45 ) FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL - SUM ( ALL + 45 ) FROM tab1
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT DISTINCT + MAX( DISTINCT - + col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT + MAX ( DISTINCT - + col0 ) AS col1 FROM tab2
----
-46

query I rowsort
SELECT DISTINCT + 5 AS col0 FROM tab1 WHERE 90 - 15 IS NOT NULL
----
5

query I rowsort
SELECT DISTINCT - 19 * 28 FROM tab0 AS cor0
----
-532

query I rowsort
SELECT + 33 + + + col2 FROM tab2 AS cor0
----
56
73
91

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT 13 * + - ( col1 ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7703
SELECT ALL 14 + col2 + - - CAST( NULL AS SIGNED ) * ( - col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL 14 + col2 + - - CAST ( NULL AS INTEGER ) * ( - col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - 26 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-16
21
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7705
SELECT ALL + MAX( DISTINCT 80 ), + COUNT( * ) AS col1 FROM tab2
----
80
3

skipif mysql # not compatible
query II rowsort label-7705
SELECT ALL + MAX ( DISTINCT 80 ), + COUNT ( * ) AS col1 FROM tab2
----
80
3

query II rowsort
SELECT + 13 * col0, col1 FROM tab1
----
1105
5
1183
47
663
14

query I rowsort
SELECT ALL - 61 * + 52 FROM tab0
----
-3172
-3172
-3172

query I rowsort
SELECT + col0 * col1 * 61 AS col0 FROM tab2
----
143106
300608
306525

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 IN ( col0, 18 - + - 40, - 95 / 93 - ( + 92 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7710
SELECT + col0 + + 7 DIV + - 83 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7710
SELECT + col0 + + 7 / + - 83 AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7711
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ) - 76 / - + 94 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) - 76 / - + 94 AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT 51 + - ( + ( COUNT( * ) ) ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7712
SELECT 51 + - ( + ( COUNT ( * ) ) ) FROM tab2 AS cor0
----
48

query I rowsort
SELECT DISTINCT - col1 + + - 72 * - + col1 + col2 + + col2 + - col2 * - col1 AS col2 FROM tab1
----
2530
6669
768

query I rowsort
SELECT ALL - col1 - - 99 FROM tab0
----
18
78
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT COUNT( * ) + 46 + COUNT( * ) * + COUNT( * ) FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-7715
SELECT COUNT ( * ) + 46 + COUNT ( * ) * + COUNT ( * ) FROM tab0
----
58

query I rowsort
SELECT - col2 + + - 38 AS col2 FROM tab2
----
-61
-78
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7717
SELECT MAX( CAST( - ( - col2 ) AS SIGNED ) ) * + + 10 * - ( - 59 ) AS col1 FROM tab0
----
58410

skipif mysql # not compatible
query I rowsort label-7717
SELECT MAX ( CAST ( - ( - col2 ) AS INTEGER ) ) * + + 10 * - ( - 59 ) AS col1 FROM tab0
----
58410

query I rowsort
SELECT ALL + - 24 AS col1 FROM tab2 AS cor0
----
-24
-24
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7719
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL = + CAST( NULL AS SIGNED ) / 4
----
0

skipif mysql # not compatible
query I rowsort label-7719
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL = + CAST ( NULL AS INTEGER ) / 4
----
0

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE ( NOT - col0 IS NOT NULL )
----

query I rowsort
SELECT ALL + 57 * col0 + + 38 * + - col0 + - + col1 - - col2 FROM tab1 AS cor0
----
1051
1669
1750

query II rowsort
SELECT - col1 * col2 * - col2 AS col0, col1 * + + col0 FROM tab0 AS cor0
----
178929
1215
2100
1827
9801
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT DISTINCT MIN( DISTINCT + 7 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT MIN ( DISTINCT + 7 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT - + 58 AS col2, + 36 + col2 AS col2 FROM tab1 AS cor0
----
-58
104
-58
132
-58
95

query I rowsort
SELECT ( ( - + 92 ) ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7726
SELECT + CAST( 59 AS SIGNED ) col2 FROM tab2
----
59
59
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7726
SELECT + CAST ( 59 AS INTEGER ) col2 FROM tab2
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 * ( col1 ) * - - col1 col1 FROM tab2
----
137853
237917
314237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7728
SELECT - 20 col2 FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) >= + + 25
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7728
SELECT - 20 col2 FROM tab0 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) >= + + 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7730
SELECT AVG ( + + CAST( NULL AS SIGNED ) ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7730
SELECT AVG ( + + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT DISTINCT MIN( DISTINCT + - col0 ) * - + 64 FROM tab2 AS cor0
----
4800

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT MIN ( DISTINCT + - col0 ) * - + 64 FROM tab2 AS cor0
----
4800

query I rowsort
SELECT ALL - + 59 FROM tab1 cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT DISTINCT + MIN( + col1 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT + MIN ( + col1 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-153

query I rowsort
SELECT - 41 * - 0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT CAST( col0 AS SIGNED ) * - col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-7735
SELECT CAST ( col0 AS INTEGER ) * - col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT + + col1 + + col2 AS col2 FROM tab2 WHERE NOT + ( + + 4 ) IS NULL
----
117
125
74

query I rowsort
SELECT 91 * + col2 * 2 FROM tab0
----
18018
1820
8554

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT DISTINCT COUNT( - 67 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7738
SELECT DISTINCT COUNT ( - 67 ) col1 FROM tab2
----
3

query I rowsort
SELECT + 63 FROM tab2 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT NULL BETWEEN col1 * + - col2 AND - 83
----

query II rowsort
SELECT col1 * + - col1 * - col1 AS col2, col1 * - col2 FROM tab1
----
103823
-3196
125
-295
2744
-1344

onlyif mysql # DIV for integer division: 
query I rowsort label-7742
SELECT 24 DIV 73 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7742
SELECT 24 / 73 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 * + 52 + col1 + - 80 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 20 * - col1 FROM tab2 AS cor0
----
-1020
-1340
-1540

query I rowsort
SELECT DISTINCT + + col0 + ( + col1 ) + col0 - - - col1 * + - col0 * - col2 AS col0 FROM tab0 cor0
----
-18075
-56994
-9408

onlyif mysql # DIV for integer division: 
query I rowsort label-7746
SELECT + col1 DIV + - col1 + + col1 AS col1 FROM tab0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-7746
SELECT + col1 / + - col1 + + col1 AS col1 FROM tab0
----
0
20
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT DISTINCT 4 + + COUNT( * ) AS col1 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT 4 + + COUNT ( * ) AS col1 FROM tab1
----
7

query I rowsort
SELECT DISTINCT + 55 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
55

query I rowsort
SELECT - 76 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7750
SELECT DISTINCT - + col0 * - CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-7750
SELECT DISTINCT - + col0 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL <= + 77 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7752
SELECT COUNT( * ) col1, 30 AS col0 FROM tab2 AS cor0
----
3
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7752
SELECT COUNT ( * ) col1, 30 AS col0 FROM tab2 AS cor0
----
3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT DISTINCT - COUNT( * ) + + 36 AS col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT - COUNT ( * ) + + 36 AS col2 FROM tab1 AS cor0
----
33

query I rowsort
SELECT DISTINCT + + 16 + - 42 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT ALL + col2 * col0 FROM tab1 AS cor0 WHERE NOT NULL >= ( + col0 )
----

query I rowsort
SELECT DISTINCT - - col0 * - col0 + + ( + 59 ) + + col1 FROM tab0 AS cor0
----
-7489
-85
-9349

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab0 cor0 WHERE - ( + 33 ) < + col2
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7758
SELECT ALL - + col2 + - 35 * 7 + + + col2 * + col0 - - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL - + col2 + - 35 * 7 + + + col2 * + col0 - - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( - col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NULL = - - col2
----

query I rowsort
SELECT DISTINCT col2 - - ( col1 ) AS col2 FROM tab1
----
110
115
64

query I rowsort
SELECT ( + col1 ) * - col2 - + 15 FROM tab2
----
-1188
-3095
-3901

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 93 + col1 * - ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7764
SELECT DISTINCT + 23 DIV + COUNT( * ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT + 23 / + COUNT ( * ) FROM tab0 AS cor0
----
7

query I rowsort
SELECT ALL 61 * + + col2 - 99 AS col2 FROM tab1 AS cor0
----
3500
4049
5757

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 <= - 31 + - ( - - 94 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 26 * - 79 FROM tab2
----
-2054

query I rowsort
SELECT - - ( + + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT MAX( ALL + 20 ) AS col2 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-7769
SELECT MAX ( ALL + 20 ) AS col2 FROM tab0 AS cor0
----
20

query I rowsort
SELECT DISTINCT ( 11 ) AS col0 FROM tab2 AS cor0
----
11

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 24 + + col0 IS NOT NULL
----

query I rowsort
SELECT 97 + - col1 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 56 * - - col0 AS col1 FROM tab1 AS cor0
----
2856
4760
5096

onlyif mysql # DIV for integer division: 
query I rowsort label-7774
SELECT ( + + col2 ) DIV col0 * + 71 * - 66 FROM tab0 AS cor0
----
-14058
-4686
0

skipif mysql # not compatible
query I rowsort label-7774
SELECT ( + + col2 ) / col0 * + 71 * - 66 FROM tab0 AS cor0
----
-14058
-4686
0

query I rowsort
SELECT ALL - + 29 AS col2 FROM tab2 AS cor0
----
-29
-29
-29

query II rowsort
SELECT - col2 * + 10 * col2, col1 FROM tab1 AS cor0
----
-34810
5
-46240
47
-92160
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7777
SELECT ALL COUNT( * ) AS col1, 22 AS col0 FROM tab1 AS cor0
----
3
22

skipif mysql # not compatible
query II rowsort label-7777
SELECT ALL COUNT ( * ) AS col1, 22 AS col0 FROM tab1 AS cor0
----
3
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT ALL - COUNT( * ) + + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL - COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT DISTINCT SUM( DISTINCT + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT SUM ( DISTINCT + col1 ) FROM tab1
----
66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 / - 84 <= - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - col0 + - - 21 FROM tab0 AS cor0
----
108
118
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7783
SELECT - col0 + + col2 DIV + 58 - - ( + col0 ) DIV 18 + + col1 FROM tab2 AS cor0
----
-3
16
7

skipif mysql # not compatible
query I rowsort label-7783
SELECT - col0 + + col2 / + 58 - - ( + col0 ) / 18 + + col1 FROM tab2 AS cor0
----
-3
16
7

query I rowsort
SELECT ALL - ( - + 68 ) + 12 AS col0 FROM tab2
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7785
SELECT CAST( NULL AS SIGNED ) AS col2, 23 FROM tab1
----
NULL
23
NULL
23
NULL
23

skipif mysql # not compatible
query II rowsort label-7785
SELECT CAST ( NULL AS INTEGER ) AS col2, 23 FROM tab1
----
NULL
23
NULL
23
NULL
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7786
SELECT ALL - 30 * col0 DIV - 99 col2 FROM tab2 AS cor0
----
13
19
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7786
SELECT ALL - 30 * col0 / - 99 col2 FROM tab2 AS cor0
----
13
19
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT + COUNT( * ) FROM tab1 cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7787
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - col2 * + + 3 + - col1 - 83 * col1 FROM tab0 AS cor0
----
-1794
-381
-6945

onlyif mysql # DIV for integer division: 
query I rowsort label-7789
SELECT + col1 + - - col1 DIV - 58 * - col2 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7789
SELECT + col1 + - - col1 / - 58 * - col2 AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT col2 + - 34 - + + col1 FROM tab2
----
-43
-62
-71

query I rowsort
SELECT ALL - 57 FROM tab2 WHERE NULL <= + col1
----

query III rowsort
SELECT * FROM tab0 WHERE ( - - 30 ) NOT IN ( 24, 81 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 - - + col1 AS col2 FROM tab2
----
117
125
74

query III rowsort
SELECT * FROM tab0 WHERE + 20 + - col2 + col1 / 55 >= col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7795
SELECT ALL + COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-7795
SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab1
----
3
3

query I rowsort
SELECT DISTINCT 93 - - + 36 FROM tab2 cor0 WHERE NULL IS NULL
----
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * + 90 + + + 17 col1 FROM tab0 cor0
----
-8353
-8353
-8353

query I rowsort
SELECT col0 * col1 + - 18 FROM tab0 AS cor0
----
1197
1809
79

query II rowsort
SELECT col1, + 21 FROM tab1 AS cor0
----
14
21
47
21
5
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT ALL + ( + MAX( - 37 ) ) AS col0 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL + ( + MAX ( - 37 ) ) AS col0 FROM tab2
----
-37

query I rowsort
SELECT + 62 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7803
SELECT ALL CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7803
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 88 + + 36 BETWEEN + col0 + - col0 + col1 AND col0 * + - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL AVG ( DISTINCT + 74 ) FROM tab1 AS cor0 WHERE NULL <> col1 * - - 88 * - col2 * - 45
----
NULL

query I rowsort
SELECT - + 93 * + 50 FROM tab1 AS cor0
----
-4650
-4650
-4650

onlyif mysql # DIV for integer division: 
query II rowsort label-7808
SELECT DISTINCT + - col1 * col0 AS col1, 28 + - - col0 DIV - col0 - - 26 + - col0 * + - 11 * ( + col1 ) FROM tab0 cor0
----
-1215
13418
-1827
20150
-97
1120

skipif mysql # not compatible
query II rowsort label-7808
SELECT DISTINCT + - col1 * col0 AS col1, 28 + - - col0 / - col0 - - 26 + - col0 * + - 11 * ( + col1 ) FROM tab0 cor0
----
-1215
13418
-1827
20150
-97
1120

query I rowsort
SELECT + + 53 FROM tab2 AS cor0 WHERE NOT + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT ALL - MIN( ALL - - col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL - MIN ( ALL - - col2 ) AS col1 FROM tab2
----
-23

query I rowsort
SELECT ( + + 12 ) AS col0 FROM tab2
----
12
12
12

query I rowsort
SELECT ALL 67 * - col1 + - col0 * + col0 AS col2 FROM tab1
----
-11430
-3539
-7560

onlyif mysql # DIV for integer division: 
query I rowsort label-7813
SELECT ALL + 59 DIV 69 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL + 59 / 69 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + + 34 ) FROM tab2
----
34

query I rowsort
SELECT DISTINCT 75 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + - ( - col0 ) + ( - + ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT ALL - 79 + SUM( ALL col0 ) FROM tab1 AS cor0
----
148

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL - 79 + SUM ( ALL col0 ) FROM tab1 AS cor0
----
148

query I rowsort
SELECT ALL - col2 * + 77 + col1 FROM tab2
----
-1720
-3003
-4399

query I rowsort
SELECT - 77 + col0 FROM tab1
----
-26
14
8

query I rowsort
SELECT DISTINCT - col1 * + col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT + - col0 - + + 32, 13 AS col0 FROM tab1 AS cor0
----
-117
13
-123
13
-83
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7822
SELECT + SUM( DISTINCT col0 ) AS col0, - 86 FROM tab2 AS cor0 WHERE + + col1 * - ( + + col0 ) - + + 86 - 24 - + col2 + + col2 * + + col1 <= col1 * + 29 - + col1 OR + 9 - - col2 > + CAST( NULL AS DECIMAL ) * - col2 * - col2 + - col2
----
185
-86

skipif mysql # not compatible
query II rowsort label-7822
SELECT + SUM ( DISTINCT col0 ) AS col0, - 86 FROM tab2 AS cor0 WHERE + + col1 * - ( + + col0 ) - + + 86 - 24 - + col2 + + col2 * + + col1 <= col1 * + 29 - + col1 OR + 9 - - col2 > + CAST ( NULL AS REAL ) * - col2 * - col2 + - col2
----
185
-86

query I rowsort
SELECT 56 - - 86 + - + col2 FROM tab1
----
46
74
83

query I rowsort
SELECT ALL 51 * + col2 FROM tab1
----
3009
3468
4896

query I rowsort
SELECT DISTINCT ( - + col2 ) * + col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE - - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE - - col2 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, ( - + 83 ) * col1 + - + 1 FROM tab1
----
51
-1163
85
-416
91
-3902

query I rowsort
SELECT - + ( - + col0 ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL col0 * - - col0 AS col0 FROM tab2 cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT ALL + COUNT( * ) * + 70 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL + COUNT ( * ) * + 70 FROM tab2
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL - MIN( - 85 ) AS col0 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL - MIN ( - 85 ) AS col0 FROM tab0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-7832
SELECT ALL - 58, - COUNT( * ) + + - 4 AS col2 FROM tab0
----
-58
-7

skipif mysql # not compatible
query II rowsort label-7832
SELECT ALL - 58, - COUNT ( * ) + + - 4 AS col2 FROM tab0
----
-58
-7

query I rowsort
SELECT col2 * + - col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-7834
SELECT - col2 AS col0, col2 DIV + col1 FROM tab0 AS cor0
----
-10
0
-47
0
-99
99

skipif mysql # not compatible
query II rowsort label-7834
SELECT - col2 AS col0, col2 / + col1 FROM tab0 AS cor0
----
-10
0
-47
0
-99
99

query I rowsort
SELECT DISTINCT - col1 + - - ( + 45 ) + - - col2 FROM tab2 AS cor0
----
17
36
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7836
SELECT ALL + CAST( NULL AS SIGNED ) * - + 98 + + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 98 + + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7837
SELECT ALL + + col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL + + col2 / - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 97 * col2 AS col0 FROM tab1 AS cor0
----
-5723
-6596
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7839
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - col2 * + - col1 + + - ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - col2 * + - col1 + + - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col0 * + - 14 AS col1 FROM tab1 AS cor0
----
1190
1274
714

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 + + col1 FROM tab0 WHERE NOT ( NOT - 64 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7843
SELECT + + MIN( - col0 ) FROM tab2 WHERE ( col1 * + CAST( NULL AS SIGNED ) + + col0 + + col1 * - 10 NOT BETWEEN NULL AND - 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT + + MIN ( - col0 ) FROM tab2 WHERE ( col1 * + CAST ( NULL AS INTEGER ) + + col0 + + col1 * - 10 NOT BETWEEN NULL AND - 4 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7844
SELECT col1 + + - col0 - + 99 + - CAST( + + col2 AS SIGNED ) AS col1 FROM tab2
----
-117
-126
-165

skipif mysql # not compatible
query I rowsort label-7844
SELECT col1 + + - col0 - + 99 + - CAST ( + + col2 AS INTEGER ) AS col1 FROM tab2
----
-117
-126
-165

query I rowsort
SELECT DISTINCT - col2 + 17 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT DISTINCT MIN( - 60 ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT MIN ( - 60 ) FROM tab1
----
-60

query I rowsort
SELECT 75 + 59 + col0 FROM tab2
----
180
198
209

query I rowsort
SELECT - - 30 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 53 + 29 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
82
-51
82
-67
82
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT - 24 + + - 62 + + - MAX( 5 ) - - + ( + 93 ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7850
SELECT - 24 + + - 62 + + - MAX ( 5 ) - - + ( + 93 ) FROM tab2 AS cor0
----
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 35 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7852
SELECT + COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7852
SELECT + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 - - 91 col2 FROM tab0
----
185
185
185

onlyif mysql # DIV for integer division: 
query I rowsort label-7854
SELECT + col0 DIV - col2 - col1 - ( 68 ) + - + col2 * + col0 AS col2 FROM tab0
----
-854
-967
-9672

skipif mysql # not compatible
query I rowsort label-7854
SELECT + col0 / - col2 - col1 - ( 68 ) + - + col2 * + col0 AS col2 FROM tab0
----
-854
-967
-9672

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 + - 78 > + + 27 - + 41 * col1 * 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7856
SELECT DISTINCT CAST( NULL AS SIGNED ) - + col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col2 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 32 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT - COUNT( * ) + 38 * 96 * ( - 43 ) AS col2 FROM tab2 AS cor0
----
-156867

skipif mysql # not compatible
query I rowsort label-7858
SELECT - COUNT ( * ) + 38 * 96 * ( - 43 ) AS col2 FROM tab2 AS cor0
----
-156867

query I rowsort
SELECT - - col0 + - 31 FROM tab1 AS cor0
----
20
54
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT DISTINCT + MAX( ALL + col2 ) col0 FROM tab1 cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7860
SELECT DISTINCT + MAX ( ALL + col2 ) col0 FROM tab1 cor0
----
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - col2 < 94 * col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7862
SELECT - col1 + - - col2 * 64 col0 FROM tab0 AS cor0 WHERE NOT ( + ( + CAST( NULL AS SIGNED ) ) IN ( 34 ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7862
SELECT - col1 + - - col2 * 64 col0 FROM tab0 AS cor0 WHERE NOT ( + ( + CAST ( NULL AS INTEGER ) ) IN ( 34 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT DISTINCT - COUNT( * ) * - MAX( col0 ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT - COUNT ( * ) * - MAX ( col0 ) FROM tab0 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT + SUM( + - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7864
SELECT + SUM ( + - col1 ) FROM tab2
----
-195

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE NOT - + 94 < + col1
----

query II rowsort
SELECT + ( - 12 ), 38 AS col1 FROM tab2
----
-12
38
-12
38
-12
38

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 <> + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 59 * - - 59 FROM tab2
----
3481
3481
3481

query I rowsort
SELECT ALL + - col0 FROM tab0 AS cor0 WHERE NOT col0 + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + + - 80 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 33 FROM tab1 WHERE NOT ( col1 IS NULL )
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT + MIN( - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7872
SELECT + MIN ( - col1 ) AS col2 FROM tab1
----
-47

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL = col2 )
----

query I rowsort
SELECT + ( 27 ) * 13 + - col2 AS col0 FROM tab0
----
252
304
341

query I rowsort
SELECT + + 29 + + - 71 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + 62
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN col1 / - + 89 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7877
SELECT 95, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
95
-3

skipif mysql # not compatible
query II rowsort label-7877
SELECT 95, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
95
-3

query I rowsort
SELECT DISTINCT + 39 + - + 8 FROM tab0 AS cor0
----
31

query I rowsort
SELECT ALL col1 + 26 + - - 91 + + col2 AS col0 FROM tab0 AS cor0
----
148
217
245

query I rowsort
SELECT ALL + - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, - ( - - 21 ) AS col0 FROM tab1
----
-59
-21
-68
-21
-96
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + ( + 7 ) ) col1 FROM tab0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT + MAX( - col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7883
SELECT + MAX ( - col1 ) AS col2 FROM tab2
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 BETWEEN - col1 - - ( col0 ) AND - col0 + + 85
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT MIN( DISTINCT col1 ) * + COUNT( * ) AS col1 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-7885
SELECT MIN ( DISTINCT col1 ) * + COUNT ( * ) AS col1 FROM tab1
----
15

query III rowsort
SELECT * FROM tab2 WHERE - - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7887
SELECT - 74 col1, - COUNT( * ) AS col2 FROM tab2
----
-74
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7887
SELECT - 74 col1, - COUNT ( * ) AS col2 FROM tab2
----
-74
-3

query I rowsort
SELECT ALL - - 90 + + 72 AS col2 FROM tab0 AS cor0
----
162
162
162

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT ALL 5 * COUNT( * ) col1 FROM tab2 cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7889
SELECT ALL 5 * COUNT ( * ) col1 FROM tab2 cor0
----
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL < - - col2 )
----

query I rowsort
SELECT DISTINCT - col1 - - + col0 FROM tab1
----
37
44
80

query III rowsort
SELECT * FROM tab2 WHERE col1 * + col1 * + col2 = - - 21
----

query II rowsort
SELECT DISTINCT - col2 + + col1, + col0 FROM tab1
----
-21
91
-54
85
-82
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT COUNT( * ) * + SUM( 93 ) AS col1 FROM tab1
----
837

skipif mysql # not compatible
query I rowsort label-7894
SELECT COUNT ( * ) * + SUM ( 93 ) AS col1 FROM tab1
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT SUM( DISTINCT - + col2 ) * + + 28 FROM tab1 AS cor0
----
-6244

skipif mysql # not compatible
query I rowsort label-7895
SELECT SUM ( DISTINCT - + col2 ) * + + 28 FROM tab1 AS cor0
----
-6244

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT ALL - SUM( DISTINCT col2 ) col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7896
SELECT ALL - SUM ( DISTINCT col2 ) col1 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT - 79 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7898
SELECT - CAST( 33 AS SIGNED ) DIV + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-7898
SELECT - CAST ( 33 AS INTEGER ) / + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7899
SELECT ALL 38 DIV + COUNT( * ), 20 col1 FROM tab2 AS cor0
----
12
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7899
SELECT ALL 38 / + COUNT ( * ), 20 col1 FROM tab2 AS cor0
----
12
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT + COUNT( - 97 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7900
SELECT + COUNT ( - 97 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( 80, + col0, 72, + 44, - - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7902
SELECT ALL col0 / - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL col0 / - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 cor0 WHERE + ( + 60 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT DISTINCT + - MIN( - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT + - MIN ( - col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL - 78 AS col1 FROM tab2 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7906
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( col1 ) * col1 FROM tab0 WHERE - col2 NOT BETWEEN col2 AND NULL
----
-1
-441
-6561

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 26 + 7 / - col2 NOT BETWEEN ( + col1 ) AND NULL
----

query I rowsort
SELECT - col0 * + 56 + + col2 FROM tab0
----
-4862
-5333
-793

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <> - 50
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT SUM( 28 ) FROM tab2 WHERE NOT + 80 = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT SUM ( 28 ) FROM tab2 WHERE NOT + 80 = ( NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 88 * col1 < 78
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7914
SELECT 78 DIV - 36 + col2 col1 FROM tab2
----
21
38
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7914
SELECT 78 / - 36 + col2 col1 FROM tab2
----
21
38
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT COUNT( DISTINCT 22 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7915
SELECT COUNT ( DISTINCT 22 ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT ALL COUNT( 36 ) + - 38 AS col0 FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL COUNT ( 36 ) + - 38 AS col0 FROM tab1
----
-35

query I rowsort
SELECT 49 * - 44 AS col2 FROM tab1
----
-2156
-2156
-2156

query I rowsort
SELECT + col2 FROM tab2 WHERE col2 IN ( 40 - col1 )
----

query I rowsort
SELECT ALL col0 + + col0 FROM tab1 WHERE NULL BETWEEN col2 AND ( col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE + col1 NOT BETWEEN NULL AND ( + col0 * 17 )
----

query I rowsort
SELECT 54 + - col2 FROM tab1
----
-14
-42
-5

query I rowsort
SELECT col0 * 72 AS col1 FROM tab1
----
3672
6120
6552

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE col2 * 18 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT 60 * + COUNT( DISTINCT 65 * col1 ) FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-7925
SELECT 60 * + COUNT ( DISTINCT 65 * col1 ) FROM tab2
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT - 98 + + MAX( + col0 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7926
SELECT - 98 + + MAX ( + col0 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT DISTINCT ( + COUNT( * ) ) * - MIN( - 71 * col1 ) FROM tab2
----
16401

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT ( + COUNT ( * ) ) * - MIN ( - 71 * col1 ) FROM tab2
----
16401

query I rowsort
SELECT ALL col1 + - 47 * col2 FROM tab1
----
-2768
-3149
-4498

query I rowsort
SELECT col0 * - 39 AS col0 FROM tab2
----
-1794
-2496
-2925

query I rowsort
SELECT DISTINCT + col0 + ( col1 ) AS col1 FROM tab1
----
138
65
90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 83 + ( ( - col1 ) ) * col1 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT - COUNT( * ) * + 78 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-7932
SELECT - COUNT ( * ) * + 78 FROM tab1
----
-234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7933
SELECT + ( 0 ) - - col2 AS col0 FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) ) IN ( + ( col0 ) )
----

skipif mysql # not compatible
query I rowsort label-7933
SELECT + ( 0 ) - - col2 AS col0 FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IN ( + ( col0 ) )
----

query I rowsort
SELECT 15 + + col1 FROM tab2
----
66
82
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7935
SELECT 84 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7935
SELECT 84 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT - COUNT( - 59 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7937
SELECT - COUNT ( - 59 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT + 25 * - col2 + col2 FROM tab2 WHERE NULL IS NULL
----
-1392
-552
-960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7939
SELECT CAST( - col1 AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7939
SELECT CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ( - ( MAX( DISTINCT col0 ) ) ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7940
SELECT ( - ( MAX ( DISTINCT col0 ) ) ) FROM tab1 cor0
----
-91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + col0 * + col0 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 AND col1
----

query I rowsort
SELECT + 39 * col2 AS col1 FROM tab0 AS cor0
----
1833
3861
390

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT DISTINCT - - COUNT( * ) * + MAX( ALL col2 ) AS col1 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT - - COUNT ( * ) * + MAX ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-7947
SELECT ALL + 63 DIV col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL + 63 / col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7948
SELECT DISTINCT + + ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7948
SELECT DISTINCT + + ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 1 < + 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT - SUM( DISTINCT - + col0 ) * + 60 AS col1 FROM tab0
----
11940

skipif mysql # not compatible
query I rowsort label-7950
SELECT - SUM ( DISTINCT - + col0 ) * + 60 AS col1 FROM tab0
----
11940

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7951
SELECT * FROM tab0 WHERE NOT + col1 * - 97 BETWEEN - col1 AND - CAST( NULL AS SIGNED ) + + col0 / - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7951
SELECT * FROM tab0 WHERE NOT + col1 * - 97 BETWEEN - col1 AND - CAST ( NULL AS INTEGER ) + + col0 / - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE col2 BETWEEN + col2 * - col1 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT COUNT( + col0 ) * - SUM( ALL - col1 ) AS col0 FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-7953
SELECT COUNT ( + col0 ) * - SUM ( ALL - col1 ) AS col0 FROM tab2
----
585

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * 7 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( - col0 ) + + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 66 - 13 FROM tab0 AS cor0 WHERE NOT ( 53 + + col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 / 74 ) < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 3 IS NOT NULL
----

query I rowsort
SELECT col2 + - col2 + + col2 * 62 * - col2 FROM tab0
----
-136958
-607662
-6200

query III rowsort
SELECT * FROM tab1 WHERE - - 99 + 64 * - 86 NOT BETWEEN NULL AND + col2
----

query II rowsort
SELECT + 13 AS col1, ( - col0 ) AS col2 FROM tab0 AS cor0
----
13
-15
13
-87
13
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7962
SELECT DISTINCT + - col0 DIV col1 AS col2 FROM tab1 AS cor0 WHERE NOT 43 IS NULL
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT + - col0 / col1 AS col2 FROM tab1 AS cor0 WHERE NOT 43 IS NULL
----
-1
-17
-3

query I rowsort
SELECT DISTINCT + 89 + + col2 FROM tab2 cor0
----
112
129
147

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <= + col1 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7966
SELECT ALL CAST( NULL AS SIGNED ) + - col2 + - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 + - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7967
SELECT ALL col2 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-7967
SELECT ALL col2 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT DISTINCT - 20 + + col0 + col2 AS col1 FROM tab2 AS cor0
----
113
49
84

query I rowsort
SELECT DISTINCT 6 * + - col0 + + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-306
-510
-546

query I rowsort
SELECT + - ( + ( + - 39 ) ) FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT ALL + + col0 + - - 30 - col2 * 56 AS col1 FROM tab2 AS cor0
----
-1212
-2146
-3143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7972
SELECT ALL MIN( ALL 15 ) * - - ( + 99 ) + COUNT( * ) - + COUNT( ALL CAST( - col1 AS SIGNED ) ) * 9 FROM tab1
----
1461

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL MIN ( ALL 15 ) * - - ( + 99 ) + COUNT ( * ) - + COUNT ( ALL CAST ( - col1 AS INTEGER ) ) * 9 FROM tab1
----
1461

query III rowsort
SELECT * FROM tab0 WHERE + 11 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 42 AS col0 FROM tab0 cor0
----
-42
-42
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 * - - col2 * 21 + - col2 col2 FROM tab2 AS cor0
----
-1256306
-4980400
-5467660

query I rowsort
SELECT ( ( 7 ) ) + - col2 * col2 FROM tab1 AS cor0
----
-3474
-4617
-9209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7977
SELECT COUNT( DISTINCT + + col2 ), CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7977
SELECT COUNT ( DISTINCT + + col2 ), CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT 10 * COUNT( * ) AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-7978
SELECT 10 * COUNT ( * ) AS col0 FROM tab2
----
30

query I rowsort
SELECT DISTINCT 90 * + - col0 FROM tab1
----
-4590
-7650
-8190

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT ( + - col0 / + col1 ) IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7981
SELECT ALL * FROM tab0 AS cor0 WHERE ( 11 * CAST( 15 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7981
SELECT ALL * FROM tab0 AS cor0 WHERE ( 11 * CAST ( 15 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 IN ( col0 / - col1 + + col1 / + ( col1 ) ) AND NOT col1 + + 35 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT DISTINCT + ( + 76 ) * - - SUM( 35 ) AS col0 FROM tab2 AS cor0
----
7980

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT + ( + 76 ) * - - SUM ( 35 ) AS col0 FROM tab2 AS cor0
----
7980

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT 67 < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7985
SELECT - 73 DIV col1 - - col0 * col2 - 88 FROM tab0 AS cor0
----
617
779
9442

skipif mysql # not compatible
query I rowsort label-7985
SELECT - 73 / col1 - - col0 * col2 - 88 FROM tab0 AS cor0
----
617
779
9442

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT - col2 <= + - 6 / - ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, col0 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT 11 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 37 + + - col2 AS col1 FROM tab2 AS cor0
----
-21
-3
14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - + 17 ) < - col0 * - ( + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT COUNT( - 69 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7993
SELECT COUNT ( - 69 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - col1 + - + col1 + + 74 FROM tab0 AS cor0
----
-88
32
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT DISTINCT - - MAX( DISTINCT + - 17 ) + + 3 - - 54 * + - 54 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-2930

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT - - MAX ( DISTINCT + - 17 ) + + 3 - - 54 * + - 54 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-2930

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT ALL - MAX( ALL - + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL - MAX ( ALL - + col2 ) FROM tab0 AS cor0
----
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT ALL SUM( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL SUM ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL - 22 + - + 25 FROM tab1 AS cor0
----
-47
-47
-47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col1 ) col1 FROM tab2 cor0 WHERE NULL <> + 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL 94 + SUM( ( - + col0 ) ) + - + ( 47 ) - - MIN( DISTINCT - 18 ) FROM tab0 AS cor0
----
-170

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL 94 + SUM ( ( - + col0 ) ) + - + ( 47 ) - - MIN ( DISTINCT - 18 ) FROM tab0 AS cor0
----
-170

query I rowsort
SELECT + - col2 + + - col1 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT + 48 AS col1 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8005
SELECT col1 FROM tab1 WHERE CAST( NULL AS SIGNED ) + - col0 < + + col1 * col1 * - 70 - - col0
----

skipif mysql # not compatible
query I rowsort label-8005
SELECT col1 FROM tab1 WHERE CAST ( NULL AS INTEGER ) + - col0 < + + col1 * col1 * - 70 - - col0
----

query I rowsort
SELECT ALL + col1 - - + ( + col2 ) AS col1 FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8007
SELECT ALL + CAST( - + 14 AS SIGNED ) FROM tab2
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL + CAST ( - + 14 AS INTEGER ) FROM tab2
----
-14
-14
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8008
SELECT - COUNT( * ) DIV 80 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8008
SELECT - COUNT ( * ) / 80 AS col0 FROM tab1
----
0

query I rowsort
SELECT ( + + 84 ) * - col1 + - 22 AS col0 FROM tab2
----
-4306
-5650
-6490

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 82 BETWEEN NULL AND - + col0
----
-51
-85
-91

query I rowsort
SELECT + col0 * - 32 AS col2 FROM tab2
----
-1472
-2048
-2400

query I rowsort
SELECT ALL + - 49 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT ALL COUNT( DISTINCT - 6 ) * + - 37 AS col1 FROM tab0 cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL COUNT ( DISTINCT - 6 ) * + - 37 AS col1 FROM tab0 cor0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8014
SELECT col0 - col0 * - col1 DIV col1 FROM tab1 cor0 WHERE NOT 47 IN ( + + 75 )
----
102
170
182

skipif mysql # not compatible
query I rowsort label-8014
SELECT col0 - col0 * - col1 / col1 FROM tab1 cor0 WHERE NOT 47 IN ( + + 75 )
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8015
SELECT 39 DIV - 18 + - CAST( + col1 AS SIGNED ) - col2 * + - col1 FROM tab1 AS cor0
----
1328
288
3147

skipif mysql # not compatible
query I rowsort label-8015
SELECT 39 / - 18 + - CAST ( + col1 AS INTEGER ) - col2 * + - col1 FROM tab1 AS cor0
----
1328
288
3147

query I rowsort
SELECT ALL - col1 * + 44 FROM tab1
----
-2068
-220
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( - col2 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( - col2 IS NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8018
SELECT ALL + col2 AS col1 FROM tab2 WHERE NOT NULL < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL + col2 AS col1 FROM tab2 WHERE NOT NULL < - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <= + col0
----
85
5
59
91
47
68

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= + - 31 / 56
----

query II rowsort
SELECT col0 * - col1 AS col1, col0 FROM tab1 AS cor0
----
-425
85
-4277
91
-714
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 69 ) col0 FROM tab1 cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT + col0 - - ( + + col0 ) AS col0 FROM tab0 cor0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8024
SELECT * FROM tab2 WHERE 39 IN ( CAST( + col0 AS SIGNED ) * - ( col2 ), + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8024
SELECT * FROM tab2 WHERE 39 IN ( CAST ( + col0 AS INTEGER ) * - ( col2 ), + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col0 * + col2 - - 94 FROM tab0
----
-611
-776
-9509

query I rowsort
SELECT ( + col0 ) - ( + col0 ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * col1 - - + col0 AS col1 FROM tab1
----
4368
510
765

query I rowsort
SELECT ALL 51 + + col1 AS col0 FROM tab2
----
102
118
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ALL + ( MIN( ALL 28 ) ) AS col2 FROM tab1 cor0
----
28

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL + ( MIN ( ALL 28 ) ) AS col2 FROM tab1 cor0
----
28

query I rowsort
SELECT + col0 * + col0 * + + col2 AS col1 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT DISTINCT MAX( DISTINCT col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8031
SELECT DISTINCT MAX ( DISTINCT col2 ) AS col1 FROM tab1
----
96

query I rowsort
SELECT DISTINCT 74 * col2 AS col0 FROM tab2 AS cor0
----
1702
2960
4292

query I rowsort
SELECT ALL - ( 85 ) FROM tab0 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT + col2 * 74 AS col2 FROM tab2 AS cor0
----
1702
2960
4292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8035
SELECT + CAST( - col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8035
SELECT + CAST ( - col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT MIN( DISTINCT col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-8036
SELECT MIN ( DISTINCT col1 ) FROM tab1 cor0
----
5

query I rowsort
SELECT ALL + + col0 * - ( col1 ) * - 86 AS col1 FROM tab1 AS cor0
----
36550
367822
61404

onlyif mysql # DIV for integer division: 
query I rowsort label-8038
SELECT ALL + + col0 DIV + 38 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL + + col0 / + 38 FROM tab0 AS cor0
----
0
2
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8039
SELECT ALL - CAST( NULL AS SIGNED ) col1, - MIN( ALL + col2 ) + 60 AS col2 FROM tab2 AS cor0
----
NULL
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8039
SELECT ALL - CAST ( NULL AS INTEGER ) col1, - MIN ( ALL + col2 ) + 60 AS col2 FROM tab2 AS cor0
----
NULL
37

query II rowsort
SELECT DISTINCT + 58, col1 FROM tab2 AS cor0
----
58
51
58
67
58
77

query I rowsort
SELECT + - AVG ( - col1 ) + 75 + 68 FROM tab1 AS cor0 WHERE NOT col1 + - + col1 * + col0 + - 50 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT + COUNT( * ) + - MAX( DISTINCT - + col1 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-8042
SELECT + COUNT ( * ) + - MAX ( DISTINCT - + col1 ) FROM tab2
----
54

query II rowsort
SELECT - col0 + + 27 + col0 * col1 * - col2 + + col2 * + 32 AS col2, + col2 AS col0 FROM tab2 AS cor0
----
-195877
40
-289642
58
-53241
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8044
SELECT DISTINCT - ( + col0 ), CAST( + + col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8044
SELECT DISTINCT - ( + col0 ), CAST ( + + col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 AS cor0 WHERE ( - ( + - col2 ) * + col1 - - 65 ) <= col1
----

query I rowsort
SELECT ALL + 58 * + col0 AS col1 FROM tab2 AS cor0
----
2668
3712
4350

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8048
SELECT DISTINCT * FROM tab2 WHERE ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8048
SELECT DISTINCT * FROM tab2 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL 76 * - col0 AS col2 FROM tab0
----
-1140
-6612
-7372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 * + 82 col1 FROM tab2 AS cor0
----
5658

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 99 * col2 * + 1 / + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT COUNT( * ) + + + 10 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8052
SELECT COUNT ( * ) + + + 10 FROM tab1 AS cor0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8053
SELECT ALL + + CAST( + MAX( DISTINCT - 47 ) AS SIGNED ) FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL + + CAST ( + MAX ( DISTINCT - 47 ) AS INTEGER ) FROM tab2 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT + COUNT( * ) + MIN( ALL 16 ) + MIN( DISTINCT + - 46 ) * + COUNT( * ) AS col1 FROM tab0 cor0
----
-119

skipif mysql # not compatible
query I rowsort label-8054
SELECT + COUNT ( * ) + MIN ( ALL 16 ) + MIN ( DISTINCT + - 46 ) * + COUNT ( * ) AS col1 FROM tab0 cor0
----
-119

query I rowsort
SELECT - col2 + col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col0 AND 72
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 - 22 + - 91 col2 FROM tab0 cor0
----
-113
-113
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT COUNT( * ) + + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8057
SELECT COUNT ( * ) + + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8058
SELECT ALL COUNT( * ) DIV + 11 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL COUNT ( * ) / + 11 AS col2 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8059
SELECT * FROM tab0 cor0 WHERE col0 + 87 - + col1 * - col0 + - 79 IN ( - + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8059
SELECT * FROM tab0 cor0 WHERE col0 + 87 - + col1 * - col0 + - 79 IN ( - + CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT ALL + - COUNT( * ) + - COUNT( col2 ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL + - COUNT ( * ) + - COUNT ( col2 ) AS col1 FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8061
SELECT - col2 col1 FROM tab1 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-8061
SELECT - col2 col1 FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

query II rowsort
SELECT ALL + col1 AS col2, - col0 FROM tab2
----
51
-46
67
-75
77
-64

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8064
SELECT ALL COUNT( * ), + 16 AS col1 FROM tab2
----
3
16

skipif mysql # not compatible
query II rowsort label-8064
SELECT ALL COUNT ( * ), + 16 AS col1 FROM tab2
----
3
16

query II rowsort
SELECT + 22 AS col1, - col1 AS col2 FROM tab0
----
22
-1
22
-21
22
-81

query II rowsort
SELECT col1 AS col0, + col2 AS col0 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8067
SELECT ALL CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + + 14 * + 59 FROM tab0 AS cor0
----
826

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + 67 )
----

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 20 + + - col0 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8071
SELECT ALL - 99 + + CAST( NULL AS DECIMAL ) AS col1, col1 col2 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8071
SELECT ALL - 99 + + CAST ( NULL AS REAL ) AS col1, col1 col2 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8073
SELECT * FROM tab1 AS cor0 WHERE + CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8073
SELECT * FROM tab1 AS cor0 WHERE + CAST ( + col1 AS INTEGER ) IS NULL
----

query II rowsort
SELECT + ( + + 45 ), col0 * + + col2 AS col2 FROM tab1 cor0
----
45
4896
45
5015
45
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT ALL 81 * - COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
-729

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL 81 * - COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
-729

query II rowsort
SELECT col1 AS col0, 96 FROM tab1
----
14
96
47
96
5
96

query II rowsort
SELECT DISTINCT col1 * - col0 * col1 AS col0, + ( + col2 ) * + 3 * - col1 - - - col2 FROM tab1
----
-201019
-9656
-2125
-944
-9996
-4128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8078
SELECT DISTINCT - - CAST( + ( - COUNT( * ) ) AS SIGNED ) FROM tab1 WHERE NOT ( ( NULL ) BETWEEN 33 AND - 22 * + col2 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT - - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) FROM tab1 WHERE NOT ( ( NULL ) BETWEEN 33 AND - 22 * + col2 + col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8079
SELECT - 66 DIV - col0 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8079
SELECT - 66 / - col0 AS col0 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8080
SELECT - COUNT( * ) DIV - CAST( - 73 AS SIGNED ) AS col0 FROM tab2 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8080
SELECT - COUNT ( * ) / - CAST ( - 73 AS INTEGER ) AS col0 FROM tab2 WHERE NULL IS NULL
----
0

query II rowsort
SELECT + col1, + col2 AS col2 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT 14 AS col2 FROM tab1 cor0 WHERE + 35 + + + ( col1 ) IS NOT NULL
----
14
14
14

query I rowsort
SELECT ALL 95 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8084
SELECT + CAST( NULL AS SIGNED ) + - 76 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8084
SELECT + CAST ( NULL AS INTEGER ) + - 76 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + 66 * + col2 FROM tab2
----
1495
2600
3770

query I rowsort
SELECT col0 + + - 17 AS col2 FROM tab1
----
34
68
74

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - 41 ) * + col2 * col0 NOT BETWEEN col1 + + col1 AND - col1 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - 41 ) * + col2 * col0 NOT BETWEEN col1 + + col1 AND - col1 + - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8089
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 + - + CAST( - - col1 AS SIGNED ) + + + col1 * - - 35 / - col2 * col0 / - 80 ) <> + 14 - - ( + - col0 ) + - col2
----

skipif mysql # not compatible
query III rowsort label-8089
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 + - + CAST ( - - col1 AS INTEGER ) + + + col1 * - - 35 / - col2 * col0 / - 80 ) <> + 14 - - ( + - col0 ) + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8090
SELECT DISTINCT 41 DIV + CAST( 70 AS SIGNED ) - + COUNT( ALL - 96 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT 41 / + CAST ( 70 AS INTEGER ) - + COUNT ( ALL - 96 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 8 + ( + - col1 ) FROM tab2 cor0
----
-43
-59
-69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8092
SELECT - col2 DIV + CAST( - 58 AS SIGNED ) col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8092
SELECT - col2 / + CAST ( - 58 AS INTEGER ) col2 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + + 82 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT DISTINCT + COUNT( * ) * - + 58 FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT + COUNT ( * ) * - + 58 FROM tab0 AS cor0
----
-174

query I rowsort
SELECT ALL + - 2 AS col1 FROM tab0 AS cor0
----
-2
-2
-2

query II rowsort
SELECT ALL + col2 * + - col1, + col0 AS col0 FROM tab2 AS cor0
----
-1173
46
-3080
64
-3886
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT COUNT( * ) * + SUM( DISTINCT - 17 ) AS col1 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8097
SELECT COUNT ( * ) * + SUM ( DISTINCT - 17 ) AS col1 FROM tab0 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8098
SELECT + CAST( - - col1 AS SIGNED ) * - 86 col2 FROM tab2
----
-4386
-5762
-6622

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8098
SELECT + CAST ( - - col1 AS INTEGER ) * - 86 col2 FROM tab2
----
-4386
-5762
-6622

query II rowsort
SELECT 20 AS col2, - 54 - - col2 FROM tab0
----
20
-44
20
-7
20
45

query III rowsort
SELECT * FROM tab1 WHERE NOT 82 + - 45 + + - col1 = NULL
----

query I rowsort
SELECT ALL - - ( 36 ) FROM tab2 WHERE + - 66 > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT ALL SUM( ( col0 ) ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL SUM ( ( col0 ) ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT 28 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 20 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8106
SELECT MIN( ALL + + col1 ) + - COUNT( * ) DIV 47 FROM tab0 AS cor0 WHERE ( + col0 ) NOT IN ( + col1, - col2 )
----
1

skipif mysql # not compatible
query I rowsort label-8106
SELECT MIN ( ALL + + col1 ) + - COUNT ( * ) / 47 FROM tab0 AS cor0 WHERE ( + col0 ) NOT IN ( + col1, - col2 )
----
1

query I rowsort
SELECT ALL + col1 * - 65 + col1 AS col2 FROM tab0 AS cor0
----
-1344
-5184
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT + 99 + - - ( COUNT( * ) ) * + MAX( - col0 ) AS col0 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8108
SELECT + 99 + - - ( COUNT ( * ) ) * + MAX ( - col0 ) AS col0 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT col0 + - - col1 - - col1 AS col0 FROM tab2 AS cor0
----
148
209
218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8110
SELECT - col0 + + col2 * + col2 + + CAST( + col0 AS SIGNED ) / col0 FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8110
SELECT - col0 + + col2 * + col2 + + CAST ( + col0 AS INTEGER ) / col0 FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 24 + - - 3 AS col1 FROM tab2
----
27

query I rowsort
SELECT ALL - 91 + - col2 AS col0 FROM tab1
----
-150
-159
-187

query I rowsort
SELECT DISTINCT - 85 * ( - 3 ) FROM tab0
----
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 + col2 col0 FROM tab2
----
45
62
80

query I rowsort
SELECT + 83 + + - 83 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - 97 + col2 * - + col1 * + + 17 FROM tab1
----
-22945
-5112
-54429

query I rowsort
SELECT - col1 * + col1 + + col2 FROM tab0
----
-431
-6514
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col1 FROM tab0 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT - MIN( 57 ) AS col2 FROM tab1 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8119
SELECT - MIN ( 57 ) AS col2 FROM tab1 cor0
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT ALL + 92 * ( + 96 ) * + col0 - + 91 FROM tab0
----
132389
768293
856613

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN col2 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - + col2 - col0 col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

query II rowsort
SELECT DISTINCT + ( + col0 ) AS col1, 78 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + 7 + + 10 AND - - 37 + + 79
----
15
78
97
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT - - ( + COUNT( * ) ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8125
SELECT - - ( + COUNT ( * ) ) AS col0 FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 66, col0 col1 FROM tab2 cor0
----
-66
46
-66
64
-66
75

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 58 - col1 + - 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 77 + col1 * - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 47 * + col0 FROM tab0
----
33135
40890
451341

query I rowsort
SELECT ALL + 89 * col2 FROM tab2
----
2047
3560
5162

query I rowsort
SELECT + 11 + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8132
SELECT ALL CAST( - AVG ( DISTINCT + ( col2 ) ) AS SIGNED ) + - + 75 + - 73 * - COUNT( * ) + + 92 AS col2 FROM tab0 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL CAST ( - AVG ( DISTINCT + ( col2 ) ) AS INTEGER ) + - + 75 + - 73 * - COUNT ( * ) + + 92 AS col2 FROM tab0 AS cor0
----
184

query I rowsort
SELECT DISTINCT - col1 * - 23 * ( - + col1 ) AS col0 FROM tab2 AS cor0
----
-103247
-136367
-59823

onlyif mysql # DIV for integer division: 
query I rowsort label-8134
SELECT ALL + 79 DIV + + col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL + 79 / + + col2 FROM tab0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT 54 + - + SUM( DISTINCT - ( - col2 ) ) FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-8135
SELECT 54 + - + SUM ( DISTINCT - ( - col2 ) ) FROM tab2
----
-67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 70 FROM tab0 AS cor0 WHERE NULL > ( col1 )
----

query I rowsort
SELECT DISTINCT - 26 FROM tab2 AS cor0 WHERE + 32 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT DISTINCT + MAX( ALL col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT + MAX ( ALL col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE - 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT - + ( - MIN( col0 ) ) FROM tab2 cor0 WHERE col2 / + 21 <= - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT - + ( - MIN ( col0 ) ) FROM tab2 cor0 WHERE col2 / + 21 <= - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT - MIN( ALL - + 45 ) * 81 - + 62 col2 FROM tab2 AS cor0 WHERE - ( col2 ) + col2 <= - 79
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8142
SELECT - MIN ( ALL - + 45 ) * 81 - + 62 col2 FROM tab2 AS cor0 WHERE - ( col2 ) + col2 <= - 79
----
NULL

query I rowsort
SELECT ALL - + 44 + - col1 FROM tab0 AS cor0
----
-125
-45
-65

query III rowsort
SELECT * FROM tab0 WHERE - ( + col0 ) * col2 + col1 * + col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8145
SELECT DISTINCT 53 * - CAST( NULL AS DECIMAL ) - - col1 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8145
SELECT DISTINCT 53 * - CAST ( NULL AS REAL ) - - col1 col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - - 7 + - 3 / + col1 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT 40 - - - 41 + - - SUM( ALL + 42 ) + - + 61 AS col1 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-8147
SELECT 40 - - - 41 + - - SUM ( ALL + 42 ) + - + 61 AS col1 FROM tab0
----
64

query I rowsort
SELECT DISTINCT - col1 - - 59 * - ( 94 ) - col0 * + + col1 + + 95 AS col1 FROM tab0
----
-5549
-6747
-7299

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 + - 55 AS col2 FROM tab2 AS cor0
----
-15
-32
3

query I rowsort
SELECT + + col2 + + 45 AS col1 FROM tab0 AS cor0
----
144
55
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT MAX( DISTINCT 95 ) AS col2 FROM tab0 cor0
----
95

skipif mysql # not compatible
query I rowsort label-8152
SELECT MAX ( DISTINCT 95 ) AS col2 FROM tab0 cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE - 69 >= ( + + 20 )
----
0

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE - 69 >= ( + + 20 )
----
0

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT - 15 * - 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT + 88 + COUNT( * ) * 20 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
268

skipif mysql # not compatible
query I rowsort label-8155
SELECT + 88 + COUNT ( * ) * 20 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 78 col0 FROM tab2 cor0
----
78

query I rowsort
SELECT DISTINCT + - col2 * - 8 AS col1 FROM tab0 AS cor0
----
376
792
80

query I rowsort
SELECT - col0 * 90 FROM tab0 cor0
----
-1350
-7830
-8730

query I rowsort
SELECT DISTINCT + 32 * + col2 + + 10 FROM tab0 AS cor0
----
1514
3178
330

query I rowsort
SELECT ALL col2 * 47 AS col1 FROM tab0 AS cor0
----
2209
4653
470

query I rowsort
SELECT - 73 / + - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND - - col0
----

query I rowsort
SELECT ALL 1 FROM tab0 WHERE NULL IS NULL
----
1
1
1

query I rowsort
SELECT - col0 * - + ( + col1 ) * - col1 FROM tab2
----
-119646
-336675
-379456

query I rowsort
SELECT DISTINCT col2 * - - ( - - col1 ) FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT - 78 * COUNT( * ) AS col2 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-8165
SELECT - 78 * COUNT ( * ) AS col2 FROM tab2
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT ALL + MIN( ALL 36 ) AS col1 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL + MIN ( ALL 36 ) AS col1 FROM tab2
----
36

query I rowsort
SELECT + 52 + - col2 * + 68 AS col2 FROM tab1 AS cor0
----
-3960
-4572
-6476

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 10 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> 36 + - + col1
----

query I rowsort
SELECT col0 + - + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 82 < + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 + + col0 col2 FROM tab0 AS cor0
----
-3
69
79

query I rowsort
SELECT col1 * - col0 * col1 FROM tab0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT DISTINCT - COUNT( + 3 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT - COUNT ( + 3 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ( MIN( ( col2 ) ) ) * 50 AS col0 FROM tab0
----
500

skipif mysql # not compatible
query I rowsort label-8175
SELECT ( MIN ( ( col2 ) ) ) * 50 AS col0 FROM tab0
----
500

onlyif mysql # DIV for integer division: 
query I rowsort label-8176
SELECT - col0 * + col1 + + col0 DIV - col1 FROM tab0 AS cor0 WHERE ( 96 ) >= + col1
----
-1215
-1831
-194

skipif mysql # not compatible
query I rowsort label-8176
SELECT - col0 * + col1 + + col0 / - col1 FROM tab0 AS cor0 WHERE ( 96 ) >= + col1
----
-1215
-1831
-194

query I rowsort
SELECT DISTINCT + + col1 * + 33 FROM tab1 AS cor0
----
1551
165
462

query II rowsort
SELECT 26 + + + col2 AS col2, col1 FROM tab1 AS cor0
----
122
14
85
5
94
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8179
SELECT ALL - COUNT( - col0 ) col0, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8179
SELECT ALL - COUNT ( - col0 ) col0, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-8180
SELECT DISTINCT + col0 + - col0 + - col2 + - 13, 36 DIV 81 - - ( col1 ) AS col0 FROM tab2 cor0
----
-36
51
-53
77
-71
67

skipif mysql # not compatible
query II rowsort label-8180
SELECT DISTINCT + col0 + - col0 + - col2 + - 13, 36 / 81 - - ( col1 ) AS col0 FROM tab2 cor0
----
-36
51
-53
77
-71
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT DISTINCT + - 16 - - col0 * - col1 / - - col0 / + + CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT + - 16 - - col0 * - col1 / - - col0 / + + CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT 44 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT DISTINCT - 95 + + + 29 FROM tab0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8184
SELECT COUNT( * ) * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT 47 * + - col2 FROM tab2 AS cor0
----
-1081
-1880
-2726

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT DISTINCT - SUM( - 28 ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT - SUM ( - 28 ) FROM tab1 AS cor0
----
84

query II rowsort
SELECT DISTINCT 37 AS col0, 42 FROM tab1
----
37
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, col2 FROM tab1
----
14
96
47
68
5
59

query III rowsort
SELECT * FROM tab0 WHERE NOT + 65 * - col2 <> NULL
----

query I rowsort
SELECT + + 4 AS col0 FROM tab2 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query II rowsort label-8191
SELECT ALL - - COUNT( * ) AS col2, COUNT( col2 ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8191
SELECT ALL - - COUNT ( * ) AS col2, COUNT ( col2 ) FROM tab0 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 83 col2, + col0 * - + 72 + + + 90 AS col1 FROM tab1 AS cor0
----
-83
-3582
-83
-6030
-83
-6462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8193
SELECT ALL - CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 col2, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT 15 FROM tab0 WHERE NOT - + col0 + 73 + - + col2 >= - + col2
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 col1 FROM tab1
----
5

query I rowsort
SELECT col0 * + 82 * - col2 FROM tab0
----
-57810
-71340
-787446

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 = + 63
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - ( - 56 ) AS col1 FROM tab2
----
2856
3752
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT DISTINCT MIN( ALL + - col1 ) * + - MIN( DISTINCT + 44 ) AS col1 FROM tab0
----
3564

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT MIN ( ALL + - col1 ) * + - MIN ( DISTINCT + 44 ) AS col1 FROM tab0
----
3564

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8201
SELECT ALL + CAST( NULL AS DECIMAL ) col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8201
SELECT ALL + CAST ( NULL AS REAL ) col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col0 + col0 * - + col0 FROM tab2 AS cor0
----
-2162
-4160
-5700

query I rowsort
SELECT + - ( - 28 ) AS col0 FROM tab0 AS cor0
----
28
28
28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 43 * + ( 23 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 15 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
15

query I rowsort
SELECT ALL col1 * + 32 AS col2 FROM tab0
----
2592
32
672

query I rowsort
SELECT DISTINCT + col2 * + 68 * - + 93 FROM tab2 cor0
----
-145452
-252960
-366792

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL COUNT( * ) * - + 68 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL COUNT ( * ) * - + 68 FROM tab1 AS cor0
----
-204

onlyif mysql # aggregate syntax: 
query II rowsort label-8209
SELECT DISTINCT ( + 12 ) * - - 22 AS col0, + COUNT( * ) + - 11 + - + 53 * - COUNT( DISTINCT + ( + 8 ) ) AS col0 FROM tab0 AS cor0
----
264
45

skipif mysql # not compatible
query II rowsort label-8209
SELECT DISTINCT ( + 12 ) * - - 22 AS col0, + COUNT ( * ) + - 11 + - + 53 * - COUNT ( DISTINCT + ( + 8 ) ) AS col0 FROM tab0 AS cor0
----
264
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT ALL + 87 + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL + 87 + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8211
SELECT ALL + - 12 * - + col1 + + CAST( - CAST( - - 81 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-69
171
891

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL + - 12 * - + col1 + + CAST ( - CAST ( - - 81 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-69
171
891

query I rowsort
SELECT DISTINCT - + 44 - col0 AS col0 FROM tab1 AS cor0
----
-129
-135
-95

query I rowsort
SELECT col2 * col0 - 75 AS col0 FROM tab2 AS cor0
----
2485
4275
983

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8214
SELECT 81 - col1 * CAST( - col2 AS SIGNED ) AS col1 FROM tab0
----
180
291
3888

skipif mysql # not compatible
query I rowsort label-8214
SELECT 81 - col1 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab0
----
180
291
3888

onlyif mysql # DIV for integer division: 
query I rowsort label-8215
SELECT + col2 - 44 DIV col0 col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8215
SELECT + col2 - 44 / col0 col1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8216
SELECT ALL - SUM( 18 ) - COUNT( * ) + + COUNT( * ) DIV - + 49 AS col0 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL - SUM ( 18 ) - COUNT ( * ) + + COUNT ( * ) / - + 49 AS col0 FROM tab0
----
-57

query I rowsort
SELECT DISTINCT ( 86 ) + - 3 AS col2 FROM tab1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT DISTINCT MIN( + - 59 ) - - 32 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT MIN ( + - 59 ) - - 32 FROM tab0
----
-27

query II rowsort
SELECT ALL 14 + + - 28, + col2 FROM tab0
----
-14
10
-14
47
-14
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT DISTINCT + 11 - COUNT( * ) AS col2 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT + 11 - COUNT ( * ) AS col2 FROM tab2
----
8

query I rowsort
SELECT 48 + + + col2 FROM tab2
----
106
71
88

onlyif mysql # DIV for integer division: 
query II rowsort label-8222
SELECT ALL col2 DIV 96 AS col0, + 98 - + col1 FROM tab0 cor0
----
0
17
0
77
1
97

skipif mysql # not compatible
query II rowsort label-8222
SELECT ALL col2 / 96 AS col0, + 98 - + col1 FROM tab0 cor0
----
0
17
0
77
1
97

query I rowsort
SELECT + - ( + col2 ) * - 8 FROM tab2 AS cor0
----
184
320
464

query I rowsort
SELECT DISTINCT + 51 * - + col1 AS col0 FROM tab2
----
-2601
-3417
-3927

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT ALL col1 * col2 DIV - col2 AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL col1 * col2 / - col2 AS col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT - - col1 * - - col0 FROM tab2 WHERE NOT NULL > + - 70
----

query II rowsort
SELECT col1, - 52 FROM tab1
----
14
-52
47
-52
5
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT ALL + COUNT( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL + COUNT ( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT + - MIN( - 19 ) FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-8229
SELECT + - MIN ( - 19 ) FROM tab2 AS cor0
----
19

query II rowsort
SELECT DISTINCT col2, + col0 AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT ALL + 13 + - col2 + col1 * - col0 FROM tab2 AS cor0
----
-2356
-4955
-5070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8232
SELECT + MIN( ALL - col1 ) * + - CAST( - COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
-243

skipif mysql # not compatible
query I rowsort label-8232
SELECT + MIN ( ALL - col1 ) * + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8233
SELECT ALL + CAST( - + col2 AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL + CAST ( - + col2 AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - 3 AS col1, col1 FROM tab0
----
-3
1
-3
21
-3
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8235
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) * + col2 * + col2 * + col2 BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8235
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) * + col2 * + col2 * + col2 BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8236
SELECT + 57 * - col0 + + col2 + + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8236
SELECT + 57 * - col0 + + col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - ( + + col1 ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL - 41 FROM tab1 AS cor0 WHERE col0 * - col0 BETWEEN NULL AND - 89
----

query I rowsort
SELECT DISTINCT - col1 + - 30 AS col1 FROM tab2 AS cor0
----
-107
-81
-97

query I rowsort
SELECT DISTINCT col0 * - 73 * - 41 AS col1 FROM tab0
----
260391
290321
44895

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8242
SELECT col2 + - col1 + - + col2 / + - CAST( NULL AS SIGNED ) + 84, - 59 col2 FROM tab1
----
NULL
-59
NULL
-59
NULL
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8242
SELECT col2 + - col1 + - + col2 / + - CAST ( NULL AS INTEGER ) + 84, - 59 col2 FROM tab1
----
NULL
-59
NULL
-59
NULL
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8243
SELECT - + ( + - col2 ) * 47 DIV + + 82 - 3 DIV - - 93 * + + col1 + - - col0 AS col0 FROM tab0 AS cor0
----
153
41
92

skipif mysql # not compatible
query I rowsort label-8243
SELECT - + ( + - col2 ) * 47 / + + 82 - 3 / - - 93 * + + col1 + - - col0 AS col0 FROM tab0 AS cor0
----
153
41
92

query I rowsort
SELECT DISTINCT - col1 * - ( - - col1 ) AS col0 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT ( - col2 ) + + + 59 + col2 AS col0 FROM tab2 AS cor0
----
59

query I rowsort
SELECT ALL + + 52 * - col2 AS col0 FROM tab0 AS cor0
----
-2444
-5148
-520

query I rowsort
SELECT ALL + col1 + + - col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE ( - + 57 ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 / 85 >= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - col0 * + 98 col1 FROM tab2
----
-4559
-6349
-7417

query III rowsort
SELECT * FROM tab1 WHERE + 21 NOT BETWEEN NULL AND - col1 * - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8252
SELECT ALL ( + - col1 ) DIV 51 * 36 + - col0 + + col0 DIV - col1 AS col1 FROM tab2
----
-100
-112
-82

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL ( + - col1 ) / 51 * 36 + - col0 + + col0 / - col1 AS col1 FROM tab2
----
-100
-112
-82

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT COUNT( * ) FROM tab0 WHERE - col1 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8254
SELECT COUNT ( * ) FROM tab0 WHERE - col1 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT MIN( ALL - + col2 ) col0 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8255
SELECT MIN ( ALL - + col2 ) col0 FROM tab1
----
-96

query I rowsort
SELECT DISTINCT 10 - col0 FROM tab1
----
-41
-75
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT SUM( DISTINCT + col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8257
SELECT SUM ( DISTINCT + col1 ) AS col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT COUNT( 73 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8258
SELECT COUNT ( 73 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * - col1 BETWEEN ( col2 ) AND 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT + 43 * - ( - COUNT( * ) ) AS col1 FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-8260
SELECT + 43 * - ( - COUNT ( * ) ) AS col1 FROM tab1
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-8261
SELECT DISTINCT - col1 DIV col1 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT - col1 / col1 AS col0 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT col1 + + + col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
141
142
97

query II rowsort
SELECT col1 AS col0, col1 AS col2 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT + col1 * 34 FROM tab1
----
1598
170
476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8265
SELECT + + CAST( - + ( + 26 ) AS SIGNED ) * + SUM( ALL col0 ) FROM tab1 AS cor0
----
-5902

skipif mysql # not compatible
query I rowsort label-8265
SELECT + + CAST ( - + ( + 26 ) AS INTEGER ) * + SUM ( ALL col0 ) FROM tab1 AS cor0
----
-5902

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8266
SELECT ALL - COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL - COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT DISTINCT + COUNT( - + col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT + COUNT ( - + col1 ) FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT DISTINCT - MAX( ALL + - 70 ) FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT - MAX ( ALL + - 70 ) FROM tab2 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT ALL COUNT( * ) * + SUM( ALL + + col0 ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL COUNT ( * ) * + SUM ( ALL + + col0 ) FROM tab1
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT 22 + + COUNT( * ) AS col2 FROM tab2, tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-8272
SELECT 22 + + COUNT ( * ) AS col2 FROM tab2, tab0 AS cor0
----
31

query I rowsort
SELECT - col2 + + 1 FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8274
SELECT ALL CAST( NULL AS SIGNED ) / - 85 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL CAST ( NULL AS INTEGER ) / - 85 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 97 FROM tab0 AS cor0 WHERE col1 BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8276
SELECT + ( 96 ) AS col2, - ( - MIN( DISTINCT + + col1 ) ) AS col0 FROM tab0 AS cor0
----
96
1

skipif mysql # not compatible
query II rowsort label-8276
SELECT + ( 96 ) AS col2, - ( - MIN ( DISTINCT + + col1 ) ) AS col0 FROM tab0 AS cor0
----
96
1

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE NOT + col2 - - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT DISTINCT + MIN( ALL - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT + MIN ( ALL - col1 ) FROM tab2
----
-77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 / + - col0 <= 47 * - 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 NOT BETWEEN - col2 AND + 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8281
SELECT DISTINCT COUNT( * ) DIV + 23 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT COUNT ( * ) / + 23 AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8282
SELECT col2 DIV - + 41 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8282
SELECT col2 / - + 41 FROM tab1
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT ALL - 18 DIV - col0 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL - 18 / - col0 AS col1 FROM tab0
----
0
0
1

query II rowsort
SELECT + 85, + col1 FROM tab1
----
85
14
85
47
85
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8285
SELECT DISTINCT 52 DIV + - col2 + + 93 AS col1 FROM tab0
----
88
92
93

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT 52 / + - col2 + + 93 AS col1 FROM tab0
----
88
92
93

query I rowsort
SELECT 14 FROM tab1 AS cor0 WHERE ( NULL > NULL )
----

query I rowsort
SELECT - - col0 * - 78 + + col2 + col1 + + col1 * - 75 FROM tab2 AS cor0
----
-10650
-10750
-7339

query I rowsort
SELECT DISTINCT 39 FROM tab1 AS cor0 WHERE NULL IS NULL
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT + - ( ( + COUNT( * ) ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8289
SELECT + - ( ( + COUNT ( * ) ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT 85 * 56 + - col0 * - 60 FROM tab0 AS cor0 WHERE + 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT - COUNT( - col2 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8291
SELECT - COUNT ( - col2 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT ALL - MIN( DISTINCT + 13 ) FROM tab1 cor0
----
-13

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL - MIN ( DISTINCT + 13 ) FROM tab1 cor0
----
-13

query I rowsort
SELECT ALL - col0 * + col0 + - 57 + col1 FROM tab0 cor0
----
-201
-7605
-9465

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT 71 * - - 7 * + COUNT( * ) * - 48 - + - 97 + COUNT( * ) * - COUNT( - 92 ) FROM tab0 AS cor0
----
-71480

skipif mysql # not compatible
query I rowsort label-8294
SELECT 71 * - - 7 * + COUNT ( * ) * - 48 - + - 97 + COUNT ( * ) * - COUNT ( - 92 ) FROM tab0 AS cor0
----
-71480

query I rowsort
SELECT DISTINCT - col1 + - col2 * + + col0 * + col0 AS col2 FROM tab2 AS cor0
----
-163917
-326317
-48719

query I rowsort
SELECT + - col1 - + - col0 * + col2 + + - col2 FROM tab2 AS cor0
----
2443
4225
984

query I rowsort
SELECT DISTINCT - - ( + col1 ) + + - 20 FROM tab2 AS cor0
----
31
47
57

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 52 + - col0 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8299
SELECT - 88 DIV + col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-8299
SELECT - 88 / + col2 FROM tab0
----
-1
-8
0

query I rowsort
SELECT ALL col1 * - + col1 AS col0 FROM tab2
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ( - col1 ), ( + - ( - col0 ) ) col0, + + col1 AS col2 FROM tab1
----
9 values hashing to fca5c454bef48c98a9adc51beffe0229

query II rowsort
SELECT DISTINCT + col0 * - - col0, + col2 FROM tab2
----
2116
23
4096
40
5625
58

query I rowsort
SELECT 94 FROM tab0 WHERE NOT + col0 + - + ( - col0 ) IS NULL
----
94
94
94

query II rowsort
SELECT ALL - col2 * - 72 * + col0, 52 AS col2 FROM tab2
----
184320
52
313200
52
76176
52

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab0 WHERE NULL NOT IN ( + col0, + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT ALL + + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL + + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8308
SELECT + - CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT + - CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <> + col2
----

query I rowsort
SELECT + - 79 * col0 + + col1 + + col2 - + + col2 FROM tab0 AS cor0
----
-1104
-6852
-7662

query II rowsort
SELECT DISTINCT col2 AS col2, 10 AS col1 FROM tab2
----
23
10
40
10
58
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8312
SELECT + CAST( NULL AS SIGNED ) / + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8312
SELECT + CAST ( NULL AS INTEGER ) / + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 53 ) AS col0 FROM tab1 AS cor0
----
-53

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - col0
----

query II rowsort
SELECT ALL col0 AS col1, + 68 FROM tab1 AS cor0
----
51
68
85
68
91
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 / - 6 = NULL
----

query II rowsort
SELECT - - 51, + col2 AS col1 FROM tab1 cor0
----
51
59
51
68
51
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= col2 + + 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT DISTINCT - SUM( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0 WHERE - col1 + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT - SUM ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0 WHERE - col1 + col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8320
SELECT ALL + col2 + + + col0 + + col2 AS col2, col1 DIV + + col0 FROM tab1 AS cor0
----
203
0
227
0
243
0

skipif mysql # not compatible
query II rowsort label-8320
SELECT ALL + col2 + + + col0 + + col2 AS col2, col1 / + + col0 FROM tab1 AS cor0
----
203
0
227
0
243
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8321
SELECT DISTINCT COUNT( * ) AS col1, 85 * + 52 * 50 * ( + + 82 ) + - 78 FROM tab2 AS cor0
----
3
18121922

skipif mysql # not compatible
query II rowsort label-8321
SELECT DISTINCT COUNT ( * ) AS col1, 85 * + 52 * 50 * ( + + 82 ) + - 78 FROM tab2 AS cor0
----
3
18121922

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8322
SELECT DISTINCT - - 50 + + col1 + + col1 * col1 * 20 * + CAST( NULL AS SIGNED ) AS col0, 55 FROM tab1 AS cor0
----
NULL
55

skipif mysql # not compatible
query II rowsort label-8322
SELECT DISTINCT - - 50 + + col1 + + col1 * col1 * 20 * + CAST ( NULL AS INTEGER ) AS col0, 55 FROM tab1 AS cor0
----
NULL
55

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - + col0 IS NULL )
----

query I rowsort
SELECT - + col1 + + + col0 + + - 76 FROM tab1 AS cor0
----
-32
-39
4

query I rowsort
SELECT + 33 + - col1 AS col1 FROM tab0
----
-48
12
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 * col1 + + + col2 col2 FROM tab2
----
-487
-612
-730

onlyif mysql # DIV for integer division: 
query I rowsort label-8327
SELECT col2 DIV + col0 + 35 AS col2 FROM tab1
----
35
35
36

skipif mysql # not compatible
query I rowsort label-8327
SELECT col2 / + col0 + 35 AS col2 FROM tab1
----
35
35
36

query I rowsort
SELECT ( col2 ) + 57 FROM tab2
----
115
80
97

query I rowsort
SELECT - ( + 47 ) FROM tab2 AS cor0
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8330
SELECT - col0 DIV + - col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8330
SELECT - col0 / + - col1 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + col1 - + + col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8332
SELECT + 20 DIV + col0 + - col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8332
SELECT + 20 / + col0 + - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8333
SELECT 66 * 37 DIV - col0 + + + col1 AS col0 FROM tab1
----
-23
-33
21

skipif mysql # not compatible
query I rowsort label-8333
SELECT 66 * 37 / - col0 + + + col1 AS col0 FROM tab1
----
-23
-33
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - 49 ) - col2 col1 FROM tab0 AS cor0
----
-50
2
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8335
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT + 55 * - + col0 * - col2 * - col0 AS col0 FROM tab2 AS cor0
----
-17943750
-2676740
-9011200

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT ALL + SUM( ALL ( + + col1 ) ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL + SUM ( ALL ( + + col1 ) ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8338
SELECT DISTINCT ( - - col1 ) * col0 * col2 * + col2 DIV col2 FROM tab0 AS cor0
----
18270
57105
9603

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT ( - - col1 ) * col0 * col2 * + col2 / col2 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT 33 * - 9 + col2 - col0 FROM tab0 AS cor0 WHERE + col0 * - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8340
SELECT COUNT( * ), + 57 AS col0 FROM tab0 AS cor0
----
3
57

skipif mysql # not compatible
query II rowsort label-8340
SELECT COUNT ( * ), + 57 AS col0 FROM tab0 AS cor0
----
3
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8341
SELECT ALL - MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL - MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT ALL + COUNT( ALL 8 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL + COUNT ( ALL 8 ) AS col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col0 col0, + 48 AS col2, - col1 FROM tab0
----
9 values hashing to abcfd563ed022a5d3549af0282f57442

query II rowsort
SELECT + col1, 12 FROM tab0
----
1
12
21
12
81
12

query II rowsort
SELECT ALL - col0, col1 * + - 9 AS col0 FROM tab2
----
-46
-459
-64
-693
-75
-603

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT DISTINCT - COUNT( + + 69 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT - COUNT ( + + 69 ) AS col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, ( + + 6 ) col0 FROM tab0
----
1
6
21
6
81
6

query I rowsort
SELECT - + col1 FROM tab0 WHERE NOT + col2 * - - 6 <= + col0
----
-1
-81

query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab1 cor0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8350
SELECT - col1 * - col0 DIV - col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8350
SELECT - col1 * - col0 / - col0 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + - ( + ( col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT col2 * - col1 + + 34 FROM tab0 AS cor0
----
-176
-3773
-65

query III rowsort
SELECT ALL - - 56 * - col2 AS col2, 46, - ( + 57 ) AS col2 FROM tab2 AS cor0
----
9 values hashing to 0bec463e1dc0d5c3f26af62b76285f88

query I rowsort
SELECT + 75 + col1 AS col0 FROM tab0 cor0
----
156
76
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 + col0 AS col1, col1 col1 FROM tab1 AS cor0
----
138
47
65
14
90
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT MIN( + + 35 ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8356
SELECT MIN ( + + 35 ) FROM tab0 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8357
SELECT ALL + + 22 + - col0 + - + ( - + col2 ) / + 96 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - col0 + + + col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL + + 22 + - col0 + - + ( - + col2 ) / + 96 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - col0 + + + col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT ALL COUNT( * ) col0 FROM tab2 AS cor0 WHERE + col2 * + col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8358
SELECT ALL COUNT ( * ) col0 FROM tab2 AS cor0 WHERE + col2 * + col2 IS NULL
----
0

query I rowsort
SELECT ALL - 48 * + 84 + - col1 FROM tab1
----
-4037
-4046
-4079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 23 AS col2, - col0 col0 FROM tab2
----
-23
-46
-23
-64
-23
-75

query I rowsort
SELECT DISTINCT 76 * + col1 + - - 87 FROM tab0
----
163
1683
6243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8362
SELECT - CAST( 9 AS SIGNED ) AS col2 FROM tab0 WHERE ( NOT ( NOT + col2 * + 1 IS NOT NULL ) )
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-8362
SELECT - CAST ( 9 AS INTEGER ) AS col2 FROM tab0 WHERE ( NOT ( NOT + col2 * + 1 IS NOT NULL ) )
----
-9
-9
-9

query I rowsort
SELECT DISTINCT - 80 + + col0 AS col2 FROM tab0
----
-65
17
7

query I rowsort
SELECT DISTINCT ( + 92 ) * + - col1 + - col1 AS col0 FROM tab0
----
-1953
-7533
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT - ( - COUNT( * ) ) * + 22 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-8365
SELECT - ( - COUNT ( * ) ) * + 22 FROM tab2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8366
SELECT DISTINCT 84 DIV col1 FROM tab1
----
1
16
6

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT 84 / col1 FROM tab1
----
1
16
6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 98 + col0 BETWEEN ( - 42 ) AND ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8368
SELECT DISTINCT + 92 DIV - 95 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT + 92 / - 95 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 47 + - col2 NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8370
SELECT ALL + 33 DIV - col0 AS col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL + 33 / - col0 AS col0 FROM tab0
----
-2
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( 95 ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT ALL COUNT( * ) - + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND + 93
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 col2 FROM tab1 WHERE NOT col0 * + 71 IS NULL
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8375
SELECT + COUNT( * ) col2 FROM tab2 WHERE NOT CAST( col1 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8375
SELECT + COUNT ( * ) col2 FROM tab2 WHERE NOT CAST ( col1 AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ( MIN( + col1 ) ) AS col1 FROM tab0 WHERE + col0 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-8376
SELECT ( MIN ( + col1 ) ) AS col1 FROM tab0 WHERE + col0 IS NOT NULL
----
1

query III rowsort
SELECT * FROM tab0 WHERE - 32 NOT IN ( col2 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8378
SELECT - CAST( NULL AS SIGNED ) * col1 + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT - CAST ( NULL AS INTEGER ) * col1 + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT - COUNT( * ) * COUNT( * ) + COUNT( * ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8379
SELECT - COUNT ( * ) * COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT DISTINCT + 89 + 37 * COUNT( * ) AS col0 FROM tab1
----
200

skipif mysql # not compatible
query I rowsort label-8380
SELECT DISTINCT + 89 + 37 * COUNT ( * ) AS col0 FROM tab1
----
200

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8381
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS DECIMAL ) / - col1 = 14
----

skipif mysql # not compatible
query III rowsort label-8381
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS REAL ) / - col1 = 14
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8382
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 NOT BETWEEN - CAST( - 63 AS SIGNED ) - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8382
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 NOT BETWEEN - CAST ( - 63 AS INTEGER ) - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT - COUNT( DISTINCT 73 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT - COUNT ( DISTINCT 73 ) FROM tab2
----
-1

query I rowsort
SELECT - col0 + col1 * + col2 FROM tab1
----
1293
210
3105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8385
SELECT CAST( - MAX( ALL - col1 ) AS SIGNED ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8385
SELECT CAST ( - MAX ( ALL - col1 ) AS INTEGER ) FROM tab2
----
51

query I rowsort
SELECT + 91 * + col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + 99 )
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT IN ( - 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT ALL - MIN( DISTINCT col0 ) FROM tab0 WHERE NOT col0 > + col2
----
-15

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL - MIN ( DISTINCT col0 ) FROM tab0 WHERE NOT col0 > + col2
----
-15

query III rowsort
SELECT * FROM tab2 WHERE NULL > - col0 * - col0 + col2 * 67
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8390
SELECT ALL CAST( MIN( ALL - col0 ) AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-97

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL CAST ( MIN ( ALL - col0 ) AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-97

query I rowsort
SELECT ALL - col0 + - col0 FROM tab2 WHERE NOT ( ( 18 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT MAX( - 27 ) AS col1 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8392
SELECT MAX ( - 27 ) AS col1 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT 60 * ( col1 ) FROM tab2 AS cor0
----
3060
4020
4620

query I rowsort
SELECT ALL + ( 84 ) AS col1 FROM tab1 AS cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT DISTINCT COUNT( + col0 ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT COUNT ( + col0 ) * COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT 86 * 11 FROM tab0 AS cor0 WHERE NOT ( col2 ) IN ( + col1 * 48 )
----
946
946
946

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT DISTINCT MAX( 85 ) FROM tab2 AS cor0 CROSS JOIN tab1
----
85

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT MAX ( 85 ) FROM tab2 AS cor0 CROSS JOIN tab1
----
85

query I rowsort
SELECT + ( ( 48 ) ) * + ( + ( ( 23 ) ) * 93 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 )
----
9 values hashing to b9ed150ba39217b554f95a348e5f5b70

query III rowsort
SELECT * FROM tab0 WHERE col0 = - col0
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab0 ON NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( - col1 ) IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 68 + + col0 NOT IN ( 95 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + - 97 FROM tab2 AS cor0
----
-39
-57
-74

query I rowsort
SELECT ALL + col1 + 8 * 36 AS col1 FROM tab1 AS cor0
----
293
302
335

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + + 61 <> ( + 48 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 19 + col0 FROM tab0 AS cor0
----
106
116
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT + + 13 * 17 + 0 * COUNT( ALL col1 + - col2 ) AS col0 FROM tab1 cor0
----
221

skipif mysql # not compatible
query I rowsort label-8407
SELECT + + 13 * 17 + 0 * COUNT ( ALL col1 + - col2 ) AS col0 FROM tab1 cor0
----
221

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT - 34 + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8409
SELECT - 34 + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-25

query I rowsort
SELECT DISTINCT 6 + + col0 * 34 AS col1 FROM tab0 AS cor0
----
2964
3304
516

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * col0 + - 32 col0 FROM tab0 AS cor0
----
490
550
58

query I rowsort
SELECT ALL 55 FROM tab2 WHERE NULL >= col1
----

query I rowsort
SELECT ALL + col2 * + 44 FROM tab0
----
2068
4356
440

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ALL SUM( DISTINCT 77 ) FROM tab0 WHERE NOT - 31 + + col2 IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL SUM ( DISTINCT 77 ) FROM tab0 WHERE NOT - 31 + + col2 IS NULL
----
77

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE ( 97 + col1 ) IS NULL
----

query I rowsort
SELECT ALL col2 * 77 AS col1 FROM tab2
----
1771
3080
4466

query I rowsort
SELECT 43 * - - col2 FROM tab0
----
2021
4257
430

query I rowsort
SELECT ALL 15 - - col1 * + col0 AS col0 FROM tab1 WHERE NOT col1 > col0
----
4292
440
729

query I rowsort
SELECT + col2 FROM tab0 WHERE col2 * col1 >= - 49
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( 21 )
----

query I rowsort
SELECT - col1 * 38 + 5 * - col0 AS col1 FROM tab1 AS cor0
----
-2241
-615
-787

onlyif mysql # DIV for integer division: 
query I rowsort label-8422
SELECT - - ( 72 ) DIV col0 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-8422
SELECT - - ( 72 ) / col0 FROM tab0 AS cor0
----
0
0
4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col1 ) IN ( + 52 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8424
SELECT CAST( + - ( - SUM( + col0 ) ) AS SIGNED ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8424
SELECT CAST ( + - ( - SUM ( + col0 ) ) AS INTEGER ) AS col2 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8425
SELECT + col1 * - 42 + - col2 + CAST( + col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
-184
-1951
-633

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8425
SELECT + col1 * - 42 + - col2 + CAST ( + col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-184
-1951
-633

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8427
SELECT DISTINCT 17 DIV - - col2 + col2 AS col0 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8427
SELECT DISTINCT 17 / - - col2 + col2 AS col0 FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8428
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) NOT BETWEEN ( - 17 ) AND col1 * 7
----

skipif mysql # not compatible
query III rowsort label-8428
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( - 17 ) AND col1 * 7
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 col0 FROM tab0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8430
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN - col1 AND ( - col2 ) AND col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8430
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN - col1 AND ( - col2 ) AND col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8431
SELECT ALL - MIN( ALL + CAST( + col0 AS SIGNED ) ) * - COUNT( * ) * - 11 col1 FROM tab0
----
-495

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8431
SELECT ALL - MIN ( ALL + CAST ( + col0 AS INTEGER ) ) * - COUNT ( * ) * - 11 col1 FROM tab0
----
-495

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8433
SELECT DISTINCT col1 DIV ( 65 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT col1 / ( 65 ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8434
SELECT - SUM( ALL col1 ) * COUNT( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8434
SELECT - SUM ( ALL col1 ) * COUNT ( CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + 93 ) NOT IN ( col0 )
----

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT + col2 - 87 + + col2 * + col2 = col2
----
51
67
77

query I rowsort
SELECT col1 * - - 51 FROM tab2
----
2601
3417
3927

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8439
SELECT ALL 58 + + col1 - + + 67 DIV + col2 FROM tab2 AS cor0
----
107
124
134

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL 58 + + col1 - + + 67 / + col2 FROM tab2 AS cor0
----
107
124
134

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + + 86 - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT DISTINCT - + MIN( ALL - - col2 ) AS col2 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT - + MIN ( ALL - - col2 ) AS col2 FROM tab1 cor0
----
-59

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE col0 * - 80 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 15 ) NOT IN ( - col0 * - col1 * col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8444
SELECT ALL - ( + - col2 ) * + + 36 - - col0 + 23 + + col2 * + CAST( NULL AS DECIMAL ) * 50 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL - ( + - col2 ) * + + 36 - - col0 + 23 + + col2 * + CAST ( NULL AS REAL ) * 50 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + - + col0 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT ALL 84 - - COUNT( * ) AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL 84 - - COUNT ( * ) AS col1 FROM tab0
----
87

query I rowsort
SELECT DISTINCT - 54 + + 50 FROM tab0
----
-4

query I rowsort
SELECT DISTINCT - ( + 14 ) FROM tab2
----
-14

query I rowsort
SELECT 5 - col1 FROM tab1
----
-42
-9
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) - - col1 col1 FROM tab2
----
141
142
97

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE ( 37 + + col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT 13 - - MAX( + 15 ) AS col1 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-8452
SELECT 13 - - MAX ( + 15 ) AS col1 FROM tab2
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - col2 col0 FROM tab1
----
21
54
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col0 FROM tab1 WHERE + 7 < - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8455
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 - + col0 - + col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 - + col0 - + col2 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8457
SELECT DISTINCT - - col1 DIV - 25 FROM tab2 cor0
----
-2
-3

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT - - col1 / - 25 FROM tab2 cor0
----
-2
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 ) - - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8459
SELECT CAST( 78 AS SIGNED ), - 53 + + col2 AS col0 FROM tab2 AS cor0
----
78
-13
78
-30
78
5

skipif mysql # not compatible
query II rowsort label-8459
SELECT CAST ( 78 AS INTEGER ), - 53 + + col2 AS col0 FROM tab2 AS cor0
----
78
-13
78
-30
78
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 68 + - 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8461
SELECT ALL - - 22 DIV + - 31 * + + CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL - - 22 / + - 31 * + + CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 66 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 79 AS col1 FROM tab2 cor0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8464
SELECT ALL + COUNT( * ) * + CAST( - 94 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL + COUNT ( * ) * + CAST ( - 94 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT - ( SUM( DISTINCT - col0 ) ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-8465
SELECT - ( SUM ( DISTINCT - col0 ) ) FROM tab1 cor0
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-8466
SELECT + col1 DIV + 12 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-8466
SELECT + col1 / + 12 FROM tab0
----
0
1
6

query I rowsort
SELECT DISTINCT - col1 * - + 0 AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 38, - col2 * + 9 * - 34 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 + + + 19 col2 FROM tab1
----
60
60
60

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + + 59 * - + col0 + - ( + - col0 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 WHERE ( - col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE ( - col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 16 col1 FROM tab2 AS cor0
----
-24
-42
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8473
SELECT ALL - - col2 + + ( - 19 ) DIV - + 84 AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL - - col2 + + ( - 19 ) / - + 84 AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT ALL - COUNT( * ) * + - 73 + + ( - + COUNT( * ) ) + - 49 FROM tab2
----
167

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL - COUNT ( * ) * + - 73 + + ( - + COUNT ( * ) ) + - 49 FROM tab2
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL + MIN( + col2 ) FROM tab0 WHERE NOT + col1 > ( + + col2 + + col1 + + 98 )
----
10

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL + MIN ( + col2 ) FROM tab0 WHERE NOT + col1 > ( + + col2 + + col1 + + 98 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8476
SELECT * FROM tab1 WHERE - col1 / + - col0 * + - CAST( NULL AS SIGNED ) - 43 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8476
SELECT * FROM tab1 WHERE - col1 / + - col0 * + - CAST ( NULL AS INTEGER ) - 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT - + 34 * + + COUNT( * ) + + ( - 72 ) AS col1 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-8477
SELECT - + 34 * + + COUNT ( * ) + + ( - 72 ) AS col1 FROM tab1 AS cor0
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT - - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT - - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT DISTINCT - MIN( DISTINCT col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT - MIN ( DISTINCT col2 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT - 5 * col1 AS col1 FROM tab1 AS cor0 WHERE col1 + 88 * - col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8481
SELECT - 85 * + 81 - + col0 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT - 85 * + 81 - + col0 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT + 84 + MAX( - - 43 ) AS col2 FROM tab1 AS cor0
----
127

skipif mysql # not compatible
query I rowsort label-8482
SELECT + 84 + MAX ( - - 43 ) AS col2 FROM tab1 AS cor0
----
127

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT + ( - MIN( - col1 ) ) + - ( + COUNT( DISTINCT - col2 ) ) AS col0 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-8484
SELECT + ( - MIN ( - col1 ) ) + - ( + COUNT ( DISTINCT - col2 ) ) AS col0 FROM tab2 AS cor0
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 95 ) * + 45 + 89 col0 FROM tab0 AS cor0
----
-4186
-4186
-4186

onlyif mysql # DIV for integer division: 
query II rowsort label-8486
SELECT ALL - + 50 DIV col2 DIV + col0, col0 col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
0
46
0
64
0
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8486
SELECT ALL - + 50 / col2 / + col0, col0 col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
0
46
0
64
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL - COUNT( * ) FROM tab1 WHERE - col2 IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL - COUNT ( * ) FROM tab1 WHERE - col2 IN ( col0 )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 96 ) <= - ( - 46 ) + - 22 * - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8489
SELECT - CAST( + - COUNT( * ) AS SIGNED ) + + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2 WHERE - 60 NOT IN ( - col2, col1 )
----
-6

skipif mysql # not compatible
query I rowsort label-8489
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2 WHERE - 60 NOT IN ( - col2, col1 )
----
-6

query I rowsort
SELECT + col2 * 37 FROM tab0
----
1739
3663
370

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT DISTINCT - SUM( + 88 ) AS col0 FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT - SUM ( + 88 ) AS col0 FROM tab1
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT + MAX( + + 1 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8492
SELECT + MAX ( + + 1 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT + + 26 AS col1 FROM tab2 AS cor0
----
26
26
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT + + ( col1 ) DIV + + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8494
SELECT + + ( col1 ) / + + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT ALL SUM( DISTINCT - 70 ) col1 FROM tab2 cor0
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8495
SELECT ALL SUM ( DISTINCT - 70 ) col1 FROM tab2 cor0
----
-70

query II rowsort
SELECT DISTINCT - col0 AS col2, - col2 AS col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL + COUNT( + + col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL + COUNT ( + + col1 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 79 * + + 32 FROM tab2
----
2528
2528
2528

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - ( - col0 ), col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8500
SELECT DISTINCT * FROM tab2 cor0 WHERE 29 - - + 12 + - - ( col1 ) > ( CAST( NULL AS DECIMAL ) + 96 )
----

skipif mysql # not compatible
query III rowsort label-8500
SELECT DISTINCT * FROM tab2 cor0 WHERE 29 - - + 12 + - - ( col1 ) > ( CAST ( NULL AS REAL ) + 96 )
----

query II rowsort
SELECT + col2, - col2 AS col0 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT DISTINCT - MIN( ALL + 38 ) AS col0 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT - MIN ( ALL + 38 ) AS col0 FROM tab1 AS cor0
----
-38

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 < NULL
----

query I rowsort
SELECT ALL + col0 * + + 99 * - 93 AS col0 FROM tab0 AS cor0
----
-138105
-801009
-893079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8505
SELECT DISTINCT - 58 * + CAST( - + 4 AS SIGNED ) col2 FROM tab0 AS cor0
----
232

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8505
SELECT DISTINCT - 58 * + CAST ( - + 4 AS INTEGER ) col2 FROM tab0 AS cor0
----
232

query I rowsort
SELECT DISTINCT 85 * - col0 AS col2 FROM tab0
----
-1275
-7395
-8245

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-8508
SELECT ALL - col2 DIV + + 17 AS col2, 39, col2 FROM tab2
----
9 values hashing to 48f2ee80d046e6f0f952159a70a98c24

skipif mysql # not compatible
query III rowsort label-8508
SELECT ALL - col2 / + + 17 AS col2, 39, col2 FROM tab2
----
9 values hashing to 48f2ee80d046e6f0f952159a70a98c24

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 28 + + col0 * + 24 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8510
SELECT - col1 DIV - ( col2 ) AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8510
SELECT - col1 / - ( col2 ) AS col2 FROM tab0
----
0
1
2

query I rowsort
SELECT - col0 * - col2 * 72 FROM tab1
----
352512
361080
445536

query I rowsort
SELECT + 32 * 22 FROM tab2
----
704
704
704

query II rowsort
SELECT - col2 * + + col0 AS col0, + col1 + - col2 AS col1 FROM tab0
----
-705
34
-870
11
-9603
-98

query III rowsort
SELECT * FROM tab2 WHERE - col2 - - col1 <> + col2 + - col2 + - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8515
SELECT col2 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-8515
SELECT col2 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= ( + col1 )
----

query I rowsort
SELECT ALL - - 32 FROM tab2 cor0
----
32
32
32

query I rowsort
SELECT DISTINCT col0 * + + col0 + - - col1 FROM tab1 AS cor0
----
2615
7230
8328

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT DISTINCT + COUNT( * ) + - 91 AS col1 FROM tab0 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT + COUNT ( * ) + - 91 AS col1 FROM tab0 cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL - - MAX( + - ( - 30 ) ) AS col0 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL - - MAX ( + - ( - 30 ) ) AS col0 FROM tab1 AS cor0
----
30

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT - MIN( - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8522
SELECT - MIN ( - col2 ) FROM tab1
----
96

query III rowsort
SELECT * FROM tab1 WHERE - col0 * + col1 + + - ( col2 ) <> NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col0, ( 13 ) FROM tab0 AS cor0
----
15
13
87
13
97
13

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN + 85 * + col1 AND + - 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT ALL - ( MIN( - + col2 ) ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL - ( MIN ( - + col2 ) ) AS col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL + col2 + + - 74 FROM tab1 AS cor0
----
-15
-6
22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + ( col0 ) )
----

query I rowsort
SELECT ALL col1 - + + ( + + col0 ) FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT ALL + ( - - COUNT( * ) ) + + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL + ( - - COUNT ( * ) ) + + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT + 37 - col0 - - + col0 * + - col0 * - 15 + 21 FROM tab2
----
31752
61434
84358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 66 ) + - 83 col1 FROM tab2
----
-149
-149
-149

query II rowsort
SELECT col1 - + col2, col2 AS col0 FROM tab2
----
28
23
37
40
9
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8534
SELECT DISTINCT col2 * CAST( NULL AS DECIMAL ) - - + 90 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT col2 * CAST ( NULL AS REAL ) - - + 90 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col1 + - col1 AS col0, - col2 FROM tab2
----
0
-23
0
-40
0
-58

query I rowsort
SELECT ALL + col0 / - 1 + - + col2 * col0 + + + 55 * - col2 AS col0 FROM tab1 WHERE NULL > - - ( - 51 ) + + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8537
SELECT ( + - COUNT( * ) ) FROM tab2 WHERE NOT col1 + CAST( - col2 AS SIGNED ) * col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8537
SELECT ( + - COUNT ( * ) ) FROM tab2 WHERE NOT col1 + CAST ( - col2 AS INTEGER ) * col2 IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * 54 NOT BETWEEN col1 AND - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > col0 * col2 * - 0 * - - 41 * col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 + - 70 / + 99 )
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) > + col1 * ( - col1 ) + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8542
SELECT + 88 * col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1320
NULL
7656
NULL
8536
NULL

skipif mysql # not compatible
query II rowsort label-8542
SELECT + 88 * col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1320
NULL
7656
NULL
8536
NULL

query I rowsort
SELECT DISTINCT - 51 AS col2 FROM tab0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8544
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( col1 ) * + + 18 FROM tab1 AS cor0
----
252
846
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL SUM( + + 37 ) FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL SUM ( + + 37 ) FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8547
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - col0 NOT IN ( + col1 + + col2, - col2, ( col0 ) )
----

skipif mysql # not compatible
query III rowsort label-8547
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - col0 NOT IN ( + col1 + + col2, - col2, ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT - - SUM( - 91 ) AS col0 FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-8548
SELECT - - SUM ( - 91 ) AS col0 FROM tab0 AS cor0
----
-273

query I rowsort
SELECT DISTINCT - col0 + + 98 FROM tab2
----
23
34
52

query I rowsort
SELECT ALL + - col2 AS col1 FROM tab0 WHERE NOT - + col2 IS NOT NULL
----

query I rowsort
SELECT + - 17 AS col1 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL + MIN( DISTINCT + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL + MIN ( DISTINCT + col2 ) FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT DISTINCT SUM( ALL + 42 ) FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT SUM ( ALL + 42 ) FROM tab1
----
126

query I rowsort
SELECT ( - 27 ) + - + 10 AS col0 FROM tab1
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT + + COUNT( * ) + - ( - - 52 ) AS col1 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-8555
SELECT + + COUNT ( * ) + - ( - - 52 ) AS col1 FROM tab2 AS cor0
----
-49

query II rowsort
SELECT - col0 AS col2, col1 * + col2 FROM tab1 AS cor0
----
-51
1344
-85
295
-91
3196

query I rowsort
SELECT ALL col1 * 43 + 10 AS col1 FROM tab1 AS cor0
----
2031
225
612

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT - ( - - ( COUNT( * ) ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8558
SELECT - ( - - ( COUNT ( * ) ) ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 86 * - col0 * col1 AS col0 FROM tab0
----
-104490
-157122
-8342

query I rowsort
SELECT DISTINCT + col1 + 20 + 58 FROM tab1 WHERE + 74 IS NOT NULL
----
125
83
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT 80 + + ( - - COUNT( * ) ) AS col2 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-8561
SELECT 80 + + ( - - COUNT ( * ) ) AS col2 FROM tab0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 16 + - 82 AS col1, 83 col2 FROM tab0 cor0
----
-98
83
-98
83
-98
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8563
SELECT + + col0 + + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-8563
SELECT + + col0 + + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8564
SELECT DISTINCT + - 93 + - + 63 AS col1, SUM( DISTINCT col1 ) FROM tab2 AS cor0
----
-156
195

skipif mysql # not compatible
query II rowsort label-8564
SELECT DISTINCT + - 93 + - + 63 AS col1, SUM ( DISTINCT col1 ) FROM tab2 AS cor0
----
-156
195

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE col2 NOT IN ( col0, - ( + - col1 ) )
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col2 * + 15 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 15 * + - 79 * + + col0 FROM tab2 WHERE NOT ( + + col1 ) <= - - 51 / - col2 + + col0
----
-54510
-75840

onlyif mysql # DIV for integer division: 
query I rowsort label-8569
SELECT ALL col0 DIV - + col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL col0 / - + col1 FROM tab0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8570
SELECT COUNT( * ) AS col1, 46 FROM tab2
----
3
46

skipif mysql # not compatible
query II rowsort label-8570
SELECT COUNT ( * ) AS col1, 46 FROM tab2
----
3
46

query II rowsort
SELECT + col0 AS col1, + 4 FROM tab2 AS cor0
----
46
4
64
4
75
4

query II rowsort
SELECT col0, ( + col2 ) FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8573
SELECT + col1 DIV col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8573
SELECT + col1 / col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1
1
1

query II rowsort
SELECT DISTINCT col1, - ( - 9 ) AS col0 FROM tab2 cor0
----
51
9
67
9
77
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( 28 ) col0 FROM tab1 AS cor0
----
-28
-28
-28

query I rowsort
SELECT + 40 * - 31 FROM tab0
----
-1240
-1240
-1240

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON + 46 IS NULL, tab1 AS cor2
----

query I rowsort
SELECT DISTINCT 25 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
25

query I rowsort
SELECT DISTINCT col2 * + col0 * + - 75 FROM tab1
----
-367200
-376125
-464100

query I rowsort
SELECT ALL - + 42 FROM tab0 cor0
----
-42
-42
-42

query I rowsort
SELECT - col0 + - - col1 AS col1 FROM tab1 cor0
----
-37
-44
-80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= 73
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - col0 ) + + + col1 + + - 81 / - col2 IS NULL
----

query I rowsort
SELECT ALL - col0 * - - col2 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - ( - col0 ) + col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8586
SELECT + CAST( + + col1 AS SIGNED ) FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8586
SELECT + CAST ( + + col1 AS INTEGER ) FROM tab1 cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8587
SELECT - CAST( - - AVG ( ALL - col2 ) AS SIGNED ) AS col1 FROM tab1 WHERE NULL < 65
----
NULL

skipif mysql # not compatible
query I rowsort label-8587
SELECT - CAST ( - - AVG ( ALL - col2 ) AS INTEGER ) AS col1 FROM tab1 WHERE NULL < 65
----
NULL

query I rowsort
SELECT + ( + 14 ) AS col1 FROM tab1
----
14
14
14

query I rowsort
SELECT ALL + 76 * - - ( col0 ) FROM tab1
----
3876
6460
6916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8590
SELECT CAST( - + col0 AS SIGNED ) AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8590
SELECT CAST ( - + col0 AS INTEGER ) AS col1 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8591
SELECT 47 DIV + + MAX( - + col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8591
SELECT 47 / + + MAX ( - + col0 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8592
SELECT ALL - + col1 * + ( - CAST( NULL AS SIGNED ) ) * + 52 + - col0 - - col0 + + 0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL - + col1 * + ( - CAST ( NULL AS INTEGER ) ) * + 52 + - col0 - - col0 + + 0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8593
SELECT ALL + - col1 DIV + col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL + - col1 / + col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT 43 + + + col1 AS col2 FROM tab2 cor0
----
110
120
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8595
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + + CAST( 81 AS SIGNED ) * - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8595
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + + CAST ( 81 AS INTEGER ) * - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( - 29 ) ) + + ( + 29 ) col2 FROM tab2 AS cor0
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 * - 68 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-5916

query I rowsort
SELECT ALL col2 + 2 FROM tab0
----
101
12
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT ALL + COUNT( * ) + + 87 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
90

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL + COUNT ( * ) + + 87 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
90

query I rowsort
SELECT DISTINCT + - 35 + + 65 FROM tab2 AS cor0 WHERE NOT + 65 + col1 - + + col2 IS NULL
----
30

query I rowsort
SELECT DISTINCT + 18 * 64 FROM tab2 AS cor0
----
1152

query II rowsort
SELECT - 85 * - col0 AS col2, col0 FROM tab2 AS cor0
----
3910
46
5440
64
6375
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT - + 48 DIV + ( 25 ) AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8603
SELECT - + 48 / + ( 25 ) AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 94 * + col2 * + col2 AS col2 FROM tab0 AS cor0
----
-207646
-921294
-9400

query I rowsort
SELECT 66 * - - col2 AS col2 FROM tab2 AS cor0
----
1518
2640
3828

query I rowsort
SELECT + col1 * col1 + - col0 AS col1 FROM tab0 AS cor0
----
-96
354
6546

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT DISTINCT - MIN( DISTINCT - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT - MIN ( DISTINCT - col2 ) FROM tab2
----
58

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + 89
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col0 + + 66 + + - 60 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 96 * 38 AS col2 FROM tab0
----
3648

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 36 * + - 5 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8612
SELECT ALL - - SUM( ALL + col0 ) AS col0, COUNT( * ) DIV - 84 AS col2 FROM tab1 AS cor0
----
227
0

skipif mysql # not compatible
query II rowsort label-8612
SELECT ALL - - SUM ( ALL + col0 ) AS col0, COUNT ( * ) / - 84 AS col2 FROM tab1 AS cor0
----
227
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT + SUM( - - col0 ) FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT + SUM ( - - col0 ) FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT - COUNT( * ) * - - 61 + + + ( + COUNT( * ) ) FROM tab0 WHERE NOT col0 + + 10 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8614
SELECT - COUNT ( * ) * - - 61 + + + ( + COUNT ( * ) ) FROM tab0 WHERE NOT col0 + + 10 BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT + 89 * - ( + - col0 ), col0 FROM tab0
----
1335
15
7743
87
8633
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN - + col0 AND col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8617
SELECT ALL + - 6 AS col1, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6
3

skipif mysql # not compatible
query II rowsort label-8617
SELECT ALL + - 6 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6
3

query I rowsort
SELECT ALL + 94 + - 49 FROM tab0 AS cor0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8619
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) / + + 95 * col2 - + 69 <> col2
----

skipif mysql # not compatible
query III rowsort label-8619
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) / + + 95 * col2 - + 69 <> col2
----

query I rowsort
SELECT - + 11 AS col1 FROM tab2 cor0
----
-11
-11
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8621
SELECT + - CAST( + - col1 AS SIGNED ) + 12 FROM tab1 AS cor0
----
17
26
59

skipif mysql # not compatible
query I rowsort label-8621
SELECT + - CAST ( + - col1 AS INTEGER ) + 12 FROM tab1 AS cor0
----
17
26
59

query I rowsort
SELECT DISTINCT col2 * - col1 + - 72 FROM tab2 AS cor0
----
-1245
-3152
-3958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8623
SELECT ALL + CAST( NULL AS SIGNED ) * - + col2 + - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8623
SELECT ALL + CAST ( NULL AS INTEGER ) * - + col2 + - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + 97 FROM tab1 AS cor0
----
12
46
6

query I rowsort
SELECT ALL - - col1 * + col0 * - - col2 + - col0 FROM tab1 AS cor0
----
24990
290745
68493

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + col0 / col1 * col0 - + 53 + - + 49 + - - col0 / ( - - 83 ) )
----

query I rowsort
SELECT DISTINCT + 99 * + col2 + col0 + + + 72 FROM tab0
----
1149
4740
9970

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * - col1 * - col0 + - col0 + + 55 * + col1 * - + col0 >= ( + ( - + col2 ) + + + col1 + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 98 AS col0 FROM tab2 WHERE ( NULL = NULL )
----

query I rowsort
SELECT 51 AS col0 FROM tab1 AS cor0 WHERE - 72 IS NULL
----

query I rowsort
SELECT DISTINCT 20 + + 23 FROM tab1
----
43

query III rowsort
SELECT * FROM tab0 WHERE + 16 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8633
SELECT COUNT( * ) * + + COUNT( * ) DIV SUM( + 60 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8633
SELECT COUNT ( * ) * + + COUNT ( * ) / SUM ( + 60 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * + col1 col2 FROM tab1 AS cor0
----
2632
280
784

query II rowsort
SELECT 35 AS col2, col0 FROM tab1 cor0 WHERE NOT 31 IS NULL
----
35
51
35
85
35
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 64 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 71 * - + col1 AS col0 FROM tab1 AS cor0
----
-3337
-355
-994

query I rowsort
SELECT - col2 * + 44 FROM tab1 AS cor0
----
-2596
-2992
-4224

query I rowsort
SELECT DISTINCT - col2 * - 62 AS col1 FROM tab1 AS cor0
----
3658
4216
5952

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL BETWEEN 94 AND NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8641
SELECT ( + 21 ) AS col0, - SUM( DISTINCT - - col0 ) AS col2 FROM tab2 WHERE NOT col2 <> + - 8
----
21
NULL

skipif mysql # not compatible
query II rowsort label-8641
SELECT ( + 21 ) AS col0, - SUM ( DISTINCT - - col0 ) AS col2 FROM tab2 WHERE NOT col2 <> + - 8
----
21
NULL

query I rowsort
SELECT DISTINCT - 47 * + 93 AS col0 FROM tab2
----
-4371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, 51 FROM tab0
----
1
51
21
51
81
51

query I rowsort
SELECT ALL - col1 * 56 AS col0 FROM tab1
----
-2632
-280
-784

onlyif mysql # DIV for integer division: 
query II rowsort label-8645
SELECT DISTINCT col0 AS col0, - 89 DIV - + col2 FROM tab0
----
15
1
87
8
97
0

skipif mysql # not compatible
query II rowsort label-8645
SELECT DISTINCT col0 AS col0, - 89 / - + col2 FROM tab0
----
15
1
87
8
97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8646
SELECT ALL + 20 DIV + col1 AS col0 FROM tab0
----
0
0
20

skipif mysql # not compatible
query I rowsort label-8646
SELECT ALL + 20 / + col1 AS col0 FROM tab0
----
0
0
20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) + + 43 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT ALL - COUNT( + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL - COUNT ( + col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT DISTINCT - 98 + - SUM( 81 ) AS col0 FROM tab2 cor0
----
-341

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT - 98 + - SUM ( 81 ) AS col0 FROM tab2 cor0
----
-341

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8651
SELECT ALL + 69 DIV + 39 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL + 69 / + 39 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col1 * - col2 < + col2 )
----

query I rowsort
SELECT DISTINCT 62 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
62

query I rowsort
SELECT - 80 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT DISTINCT + ( - + col1 ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8656
SELECT ALL col2 + + - CAST( - col2 AS SIGNED ) col1 FROM tab2 cor0
----
116
46
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8656
SELECT ALL col2 + + - CAST ( - col2 AS INTEGER ) col1 FROM tab2 cor0
----
116
46
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8657
SELECT ALL + col1 + + - CAST( NULL AS DECIMAL ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL + col1 + + - CAST ( NULL AS REAL ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col1 AS col2, col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT DISTINCT MIN( ALL - - ( - + 4 ) ) AS col2 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT MIN ( ALL - - ( - + 4 ) ) AS col2 FROM tab2
----
-4

query I rowsort
SELECT ( - col0 ) - 27 * col1 FROM tab0
----
-124
-2202
-654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - 50 col2 FROM tab0
----
-137
-147
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8662
SELECT ALL + col2 col0 FROM tab2 WHERE NOT ( NULL ) > + 1 AND ( NULL IN ( + ( + - col1 ) * + - col2, - 36 * + + 46, - 59, + + col1 * + - CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8662
SELECT ALL + col2 col0 FROM tab2 WHERE NOT ( NULL ) > + 1 AND ( NULL IN ( + ( + - col1 ) * + - col2, - 36 * + + 46, - 59, + + col1 * + - CAST ( NULL AS REAL ) ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 96 NOT BETWEEN NULL AND - col1 * + - col1 + ( + - col2 ) * 46 + - + 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT - + CAST( NULL AS SIGNED ) * col1 * - 4 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT - + CAST ( NULL AS INTEGER ) * col1 * - 4 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT + - 44 * + ( COUNT( * ) ) FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-8665
SELECT + - 44 * + ( COUNT ( * ) ) FROM tab2 AS cor0
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8666
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8666
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - - CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT ALL - ( + - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT 64 IS NULL
----
51
67
77

query I rowsort
SELECT - + 90 * col1 AS col2 FROM tab0 AS cor0
----
-1890
-7290
-90

query I rowsort
SELECT ALL + col0 * + 87 FROM tab2 AS cor0
----
4002
5568
6525

query I rowsort
SELECT DISTINCT + 60 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
60

query I rowsort
SELECT col2 * 86 * - + col0 FROM tab2 AS cor0
----
-220160
-374100
-90988

query I rowsort
SELECT DISTINCT + ( col2 ) * + col1 AS col1 FROM tab1 WHERE NOT - + col0 IS NULL
----
1344
295
3196

query I rowsort
SELECT col2 * + col0 * + - col2 FROM tab2
----
-102400
-24334
-252300

query I rowsort
SELECT DISTINCT col1 * - ( - - col1 ) FROM tab1
----
-196
-2209
-25

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + 48 NOT BETWEEN - ( + col2 ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT DISTINCT - MIN( ALL - col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT - MIN ( ALL - col1 ) AS col0 FROM tab2
----
77

query I rowsort
SELECT + col0 + + 29 AS col0 FROM tab1
----
114
120
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT DISTINCT - 0 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT - 0 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8679
SELECT ALL - AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col1, col2 + + col2 FROM tab2 WHERE NOT NULL <> 74 * 82 + - - 58
----

query I rowsort
SELECT col2 * 12 AS col1 FROM tab0
----
1188
120
564

query I rowsort
SELECT + + 9 + + col0 + - 99 FROM tab1 cor0
----
-39
-5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT - COUNT( * ) + - MIN( + col2 ) AS col1 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8683
SELECT - COUNT ( * ) + - MIN ( + col2 ) AS col1 FROM tab2 AS cor0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8684
SELECT + + col1 * + col1 + - 21 DIV col0 - - 60 FROM tab2 AS cor0
----
2661
4549
5989

skipif mysql # not compatible
query I rowsort label-8684
SELECT + + col1 * + col1 + - 21 / col0 - - 60 FROM tab2 AS cor0
----
2661
4549
5989

query I rowsort
SELECT - 41 + - col0 AS col1 FROM tab1 AS cor0
----
-126
-132
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT DISTINCT - + 22 + - COUNT( * ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT - + 22 + - COUNT ( * ) FROM tab2 AS cor0
----
-25

query I rowsort
SELECT - 30 + + col1 FROM tab1 AS cor0
----
-16
-25
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT + - 17 + + - COUNT( * ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8688
SELECT + - 17 + + - COUNT ( * ) FROM tab0 AS cor0
----
-20

query I rowsort
SELECT ALL - 28 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
-1593
-1836
-2592

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE + - col1 * 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT ALL 48 + - COUNT( * ) AS col1 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL 48 + - COUNT ( * ) AS col1 FROM tab0
----
45

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT - col1 NOT IN ( + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col1 * col0 + + col2 + col0 + + + 54 col0 FROM tab2
----
-2177
-4706
-4763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 * + col1 - col0 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 * + col1 - col0 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT SUM( col1 ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8695
SELECT SUM ( col1 ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
63

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 - - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8698
SELECT - CAST( ( + - COUNT( * ) ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8698
SELECT - CAST ( ( + - COUNT ( * ) ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT + col0 * - 53 FROM tab0
----
-4611
-5141
-795

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 * 9 AS col1 FROM tab0 AS cor0
----
-423
-891
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8702
SELECT ALL - COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) * + 98 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8702
SELECT ALL - COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) * + 98 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-3
NULL

query I rowsort
SELECT - col2 * + + col0 AS col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8704
SELECT DISTINCT + CAST( - col1 AS SIGNED ) FROM tab1 WHERE NOT - - col1 + - - 9 IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) FROM tab1 WHERE NOT - - col1 + - - 9 IS NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT 38 DIV + + ( + col1 ) FROM tab1
----
0
2
7

skipif mysql # not compatible
query I rowsort label-8705
SELECT 38 / + + ( + col1 ) FROM tab1
----
0
2
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT COUNT( * ) * MAX( + - 54 ) FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-8706
SELECT COUNT ( * ) * MAX ( + - 54 ) FROM tab0
----
-162

query II rowsort
SELECT + ( + - col2 ) AS col2, col1 AS col2 FROM tab2
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT SUM( ALL + 13 ) AS col1 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-8708
SELECT SUM ( ALL + 13 ) AS col1 FROM tab0
----
39

query I rowsort
SELECT ALL + 42 + - col2 AS col0 FROM tab0
----
-5
-57
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT - MIN( + col0 ) + + SUM( ALL - + 61 ) FROM tab2
----
-229

skipif mysql # not compatible
query I rowsort label-8710
SELECT - MIN ( + col0 ) + + SUM ( ALL - + 61 ) FROM tab2
----
-229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * - 98 col1 FROM tab1
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT DISTINCT + SUM( - + 59 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-531

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT + SUM ( - + 59 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-531

onlyif mysql # DIV for integer division: 
query I rowsort label-8713
SELECT ALL - col2 * 41 DIV - col1 AS col1 FROM tab1 AS cor0
----
281
483
59

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL - col2 * 41 / - col1 AS col1 FROM tab1 AS cor0
----
281
483
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8714
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8715
SELECT * FROM tab2 AS cor0 WHERE col0 * 1 * - CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8715
SELECT * FROM tab2 AS cor0 WHERE col0 * 1 * - CAST ( col0 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT - 4 - SUM( DISTINCT + 60 ) FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-8716
SELECT - 4 - SUM ( DISTINCT + 60 ) FROM tab1 AS cor0
----
-64

query I rowsort
SELECT 70 * 47 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 - 6 FROM tab0
----
-5
15
75

query I rowsort
SELECT ALL col2 + 21 FROM tab1
----
117
80
89

query II rowsort
SELECT DISTINCT - 48 AS col1, 86 AS col2 FROM tab2 WHERE + - col1 IS NOT NULL
----
-48
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - + col0 - col0 col1 FROM tab1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8722
SELECT DISTINCT + - 70 DIV - col0 FROM tab0 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT + - 70 / - col0 FROM tab0 AS cor0
----
0
4

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 54 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + - 95 ) BETWEEN + - col2 AND - 0
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + col1 = NULL
----

query I rowsort
SELECT ( - - ( + + col1 ) ) FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 74 * + + col1 + - 27 * - + col0 * - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT DISTINCT - + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT - + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8729
SELECT + CAST( NULL AS SIGNED ) * - col1 + + 97 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8729
SELECT + CAST ( NULL AS INTEGER ) * - col1 + + 97 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT ALL MIN( + 72 ) FROM tab2 AS cor0 WHERE NULL <= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL MIN ( + 72 ) FROM tab2 AS cor0 WHERE NULL <= col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT DISTINCT - ( - 2 ) + - 28 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT - ( - 2 ) + - 28 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8732
SELECT - CAST( - CAST( - col0 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8732
SELECT - CAST ( - CAST ( - col0 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8733
SELECT DISTINCT - 46, col0 - + - col1 AS col1 FROM tab2 AS cor0 WHERE ( + - ( - + ( 87 ) ) - + + CAST( col1 AS SIGNED ) / + - col1 IS NULL )
----

skipif mysql # not compatible
query II rowsort label-8733
SELECT DISTINCT - 46, col0 - + - col1 AS col1 FROM tab2 AS cor0 WHERE ( + - ( - + ( 87 ) ) - + + CAST ( col1 AS INTEGER ) / + - col1 IS NULL )
----

query I rowsort
SELECT DISTINCT - 36 + 45 * - col2 AS col2 FROM tab2 AS cor0
----
-1071
-1836
-2646

query I rowsort
SELECT ALL - ( + col0 ) FROM tab0 AS cor0 WHERE NOT 23 IS NOT NULL
----

query I rowsort
SELECT - + 81 * - ( col1 ) + - + 75 FROM tab1 AS cor0
----
1059
330
3732

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT + COUNT( * ) + - MAX( 55 ) + + 80 AS col1 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-8737
SELECT + COUNT ( * ) + - MAX ( 55 ) + + 80 AS col1 FROM tab2
----
28

query I rowsort
SELECT 61 + - col1 FROM tab0
----
-20
40
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT ALL AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT SUM( + + col0 ) + + COUNT( * ) col2 FROM tab0 WHERE NOT - col1 >= ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8740
SELECT SUM ( + + col0 ) + + COUNT ( * ) col2 FROM tab0 WHERE NOT - col1 >= ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col2 AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT + - COUNT( * ) * COUNT( * ) FROM tab2 WHERE + - 12 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8742
SELECT + - COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE + - 12 <= NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8743
SELECT DISTINCT 63 * + CAST( NULL AS DECIMAL ) + - col0 + - - ( + col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT 63 * + CAST ( NULL AS REAL ) + - col0 + - - ( + col1 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT DISTINCT - + 64 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT - + 64 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
192

query I rowsort
SELECT - - ( + - col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + col0 + col0 + + + col1 FROM tab0
----
111
195
195

onlyif mysql # DIV for integer division: 
query I rowsort label-8747
SELECT DISTINCT col0 DIV + 89 + col2 + - - ( - 13 ) col0 FROM tab0 AS cor0
----
-3
34
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8747
SELECT DISTINCT col0 / + 89 + col2 + - - ( - 13 ) col0 FROM tab0 AS cor0
----
-3
34
87

query I rowsort
SELECT ALL ( col1 ) * + - col2 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 = ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 95 * - + 17 + + - col1 * 76 * + + 96 col2 FROM tab0 cor0
----
-151601
-5681
-589361

query I rowsort
SELECT DISTINCT - + 33 - - - 46 FROM tab0 AS cor0
----
-79

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 34 >= NULL
----

query I rowsort
SELECT ALL + 70 * + - 71 AS col0 FROM tab0
----
-4970
-4970
-4970

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT DISTINCT MIN( - + 67 ) * COUNT( * ) + - COUNT( * ) FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT MIN ( - + 67 ) * COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 99 ) col0 FROM tab0
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8756
SELECT CAST( NULL AS SIGNED ) * - + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT CAST ( NULL AS INTEGER ) * - + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8757
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8758
SELECT DISTINCT + col2 DIV col0 DIV col0 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT + col2 / col0 / col0 AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8759
SELECT * FROM tab2 WHERE NOT + col2 DIV - col0 * - col0 NOT IN ( 28 * + col0 * col2, col2, col0, CAST( - - col2 AS SIGNED ) - - 23 )
----

skipif mysql # not compatible
query III rowsort label-8759
SELECT * FROM tab2 WHERE NOT + col2 / - col0 * - col0 NOT IN ( 28 * + col0 * col2, col2, col0, CAST ( - - col2 AS INTEGER ) - - 23 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8760
SELECT CAST( NULL AS SIGNED ) * + col2 * + - CAST( NULL AS DECIMAL ) * - 99 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT CAST ( NULL AS INTEGER ) * + col2 * + - CAST ( NULL AS REAL ) * - 99 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 * - col2 * + - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 * - col2 * + - col2 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8762
SELECT - CAST( NULL AS SIGNED ) AS col0, col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8762
SELECT - CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - 35 < NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 4 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 87 AS col2, - col0 FROM tab2 AS cor0
----
87
-46
87
-64
87
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + 34 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8767
SELECT DISTINCT - col0 col0, col0 DIV - + 56 FROM tab1 AS cor0
----
-51
0
-85
-1
-91
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8767
SELECT DISTINCT - col0 col0, col0 / - + 56 FROM tab1 AS cor0
----
-51
0
-85
-1
-91
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT DISTINCT - - SUM( + col0 ) + - + 47 FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT - - SUM ( + col0 ) + - + 47 FROM tab1 AS cor0
----
180

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 90 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + ( + + 54 ) AS col1 FROM tab2 AS cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 29 col2 FROM tab0 AS cor0
----
2349
29
609

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT ALL 77 * + MIN( - 40 ) FROM tab1 AS cor0
----
-3080

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL 77 * + MIN ( - 40 ) FROM tab1 AS cor0
----
-3080

query I rowsort
SELECT 30 * col2 * + - 39 AS col2 FROM tab1
----
-112320
-69030
-79560

query I rowsort
SELECT - col1 * 70 AS col1 FROM tab0
----
-1470
-5670
-70

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + 30 IS NOT NULL )
----

query I rowsort
SELECT ALL + 23 + 33 AS col2 FROM tab2 cor0
----
56
56
56

query I rowsort
SELECT + - 15 + + + ( - col0 ) * + 76 * col1 - - 71 AS col1 FROM tab2 cor0
----
-178240
-374472
-381844

query II rowsort
SELECT + - 0 + + col0, + col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT + - COUNT( * ) * - - 76 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-684

skipif mysql # not compatible
query I rowsort label-8780
SELECT + - COUNT ( * ) * - - 76 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT 35 + - 49 * ( 83 ) - + COUNT( * ) FROM tab0
----
-4035

skipif mysql # not compatible
query I rowsort label-8781
SELECT 35 + - 49 * ( 83 ) - + COUNT ( * ) FROM tab0
----
-4035

query I rowsort
SELECT - 78 + + col2 AS col1 FROM tab2
----
-20
-38
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT - 92 * COUNT( * ) AS col1 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-8783
SELECT - 92 * COUNT ( * ) AS col1 FROM tab1
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8784
SELECT DISTINCT * FROM tab2 WHERE NOT + + 14 * col2 - + CAST( NULL AS SIGNED ) - - - col2 / - col0 * + 59 = - + col1
----

skipif mysql # not compatible
query III rowsort label-8784
SELECT DISTINCT * FROM tab2 WHERE NOT + + 14 * col2 - + CAST ( NULL AS INTEGER ) - - - col2 / - col0 * + 59 = - + col1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT - + col2 = ( col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8786
SELECT DISTINCT + MAX( CAST( - + col0 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT + MAX ( CAST ( - + col0 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8787
SELECT - ( 26 ) DIV - col1 AS col2 FROM tab1 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-8787
SELECT - ( 26 ) / - col1 AS col2 FROM tab1 AS cor0
----
0
1
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT ALL COUNT( * ) * - - 16 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL COUNT ( * ) * - - 16 FROM tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8790
SELECT 67 DIV COUNT( * ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-8790
SELECT 67 / COUNT ( * ) FROM tab1 AS cor0
----
22

query I rowsort
SELECT ( - 31 ) AS col1 FROM tab0
----
-31
-31
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8792
SELECT * FROM tab2 WHERE NOT - - CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8792
SELECT * FROM tab2 WHERE NOT - - CAST ( NULL AS REAL ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + col2 - - col0 ) NOT IN ( + col1, + ( 31 ) / - 83 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( ( - 48 ) ) + ( - col2 ) * 69 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8795
SELECT DISTINCT - col0 DIV CAST( 74 AS SIGNED ) DIV + CAST( - col2 AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT - col0 / CAST ( 74 AS INTEGER ) / + CAST ( - col2 AS INTEGER ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT 37 * COUNT( * ) + + + 75 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-8796
SELECT 37 * COUNT ( * ) + + + 75 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
75

query I rowsort
SELECT + + col2 * + 34 + - 0 FROM tab1 AS cor0
----
2006
2312
3264

query I rowsort
SELECT + + 7 AS col1 FROM tab0 cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8799
SELECT DISTINCT 30 AS col1, MIN( ALL 17 ) AS col0 FROM tab2
----
30
17

skipif mysql # not compatible
query II rowsort label-8799
SELECT DISTINCT 30 AS col1, MIN ( ALL 17 ) AS col0 FROM tab2
----
30
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT DISTINCT - - 63 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
567

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT - - 63 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT ALL - + 0 + + COUNT( + 66 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL - + 0 + + COUNT ( + 66 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( + 35 ) AS col0 FROM tab0 AS cor0
----
-35

query I rowsort
SELECT ALL - + ( - - col1 ) + + col0 AS col2 FROM tab2 AS cor0
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 65 col2 FROM tab1 AS cor0
----
-65
-65
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8805
SELECT CAST( + 87 AS SIGNED ) FROM tab0 AS cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-8805
SELECT CAST ( + 87 AS INTEGER ) FROM tab0 AS cor0
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 * - col2 * + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8808
SELECT DISTINCT + 96 + 6 + + + COUNT( * ) * + + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT + 96 + 6 + + + COUNT ( * ) * + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 + + - 65 FROM tab1 AS cor0
----
-18
-51
-60

query I rowsort
SELECT 82 + + + col2 AS col1 FROM tab2 AS cor0
----
105
122
140

query I rowsort
SELECT ALL - ( + + 29 ) AS col2 FROM tab1
----
-29
-29
-29

query I rowsort
SELECT - col2 * ( - col0 ) + + 43 FROM tab0
----
748
913
9646

query II rowsort
SELECT + 8, col1 - - col1 AS col1 FROM tab0 AS cor0
----
8
162
8
2
8
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT + - 91 * 77 + + COUNT( * ) col0 FROM tab0 AS cor0
----
-7004

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8814
SELECT + - 91 * 77 + + COUNT ( * ) col0 FROM tab0 AS cor0
----
-7004

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 + + 78 + - + 90 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT - MAX( 21 ) * 75 AS col0 FROM tab1 cor0
----
-1575

skipif mysql # not compatible
query I rowsort label-8816
SELECT - MAX ( 21 ) * 75 AS col0 FROM tab1 cor0
----
-1575

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8817
SELECT ALL + CAST( 61 AS SIGNED ) * + 49 + - 94 DIV + - 79 FROM tab2 AS cor0
----
2990
2990
2990

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL + CAST ( 61 AS INTEGER ) * + 49 + - 94 / + - 79 FROM tab2 AS cor0
----
2990
2990
2990

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * col0 * 17 + + + 51 + + 31 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 71 + 2 AS col2 FROM tab0 AS cor0
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 38 col2 FROM tab2 AS cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT - COUNT( ALL - + 13 ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8821
SELECT - COUNT ( ALL - + 13 ) col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT MAX( 62 ) * + AVG ( - - ( + - 21 ) ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8822
SELECT MAX ( 62 ) * + AVG ( - - ( + - 21 ) ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - col1 + + 62 + + + col2 + + - 64 * + col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-1293
-5156
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT - MAX( DISTINCT - 72 ) FROM tab0 cor0
----
72

skipif mysql # not compatible
query I rowsort label-8824
SELECT - MAX ( DISTINCT - 72 ) FROM tab0 cor0
----
72

query II rowsort
SELECT + + 14, 3 AS col0 FROM tab0 AS cor0
----
14
3
14
3
14
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND + col0 + col2
----

query I rowsort
SELECT col1 * 33 + 62 AS col0 FROM tab0
----
2735
755
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col1 FROM tab2
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT - 16 * COUNT( * ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-8829
SELECT - 16 * COUNT ( * ) FROM tab1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8830
SELECT ALL 60 - + CAST( 10 AS SIGNED ) AS col0 FROM tab2
----
50
50
50

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL 60 - + CAST ( 10 AS INTEGER ) AS col0 FROM tab2
----
50
50
50

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE - 7 IS NULL
----

query I rowsort
SELECT 92 * - 56 AS col0 FROM tab2
----
-5152
-5152
-5152

query I rowsort
SELECT - 50 * - 17 FROM tab0
----
850
850
850

query I rowsort
SELECT 85 * + 10 FROM tab2
----
850
850
850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8835
SELECT + CAST( NULL AS SIGNED ) * SUM( ALL - 1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT + CAST ( NULL AS INTEGER ) * SUM ( ALL - 1 ) FROM tab0
----
NULL

query I rowsort
SELECT col1 - - 48 * - col0 FROM tab0
----
-4155
-4655
-639

query I rowsort
SELECT ALL + ( 45 ) AS col2 FROM tab1
----
45
45
45

query I rowsort
SELECT + ( 36 ) FROM tab2
----
36
36
36

query III rowsort
SELECT * FROM tab1 WHERE 81 + + 63 NOT BETWEEN ( 37 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT DISTINCT - COUNT( * ) + 49 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT - COUNT ( * ) + 49 FROM tab0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8841
SELECT DISTINCT 85 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT DISTINCT 85 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE + col1 >= 55
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8843
SELECT MIN( DISTINCT - col2 ) + - CAST( 62 + - 59 AS SIGNED ) FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-8843
SELECT MIN ( DISTINCT - col2 ) + - CAST ( 62 + - 59 AS INTEGER ) FROM tab2
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 19 col0 FROM tab2
----
1216
1425
874

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ALL COUNT( * ) * 17 AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL COUNT ( * ) * 17 AS col1 FROM tab2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8846
SELECT COUNT( * ) AS col2 FROM tab1 WHERE ( NULL ) NOT IN ( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8846
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL ) NOT IN ( - CAST ( NULL AS INTEGER ) )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 * col0 ) IN ( - ( 3 ) + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 51 = ( col1 )
----
64
77
40
75
67
58

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT 36 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT 36 IS NOT NULL
----
0

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT + 62 * SUM( ALL - col2 ) AS col1 FROM tab1
----
-13826

skipif mysql # not compatible
query I rowsort label-8852
SELECT + 62 * SUM ( ALL - col2 ) AS col1 FROM tab1
----
-13826

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL + COUNT( * ) FROM tab0 WHERE - 10 / - col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL + COUNT ( * ) FROM tab0 WHERE - 10 / - col2 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT COUNT( * ) FROM tab0 WHERE NOT - 25 / col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8854
SELECT COUNT ( * ) FROM tab0 WHERE NOT - 25 / col0 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + 83 FROM tab2
----
129
147
158

query I rowsort
SELECT + col2 + ( + col1 ) FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL 72 - - 72 AS col0 FROM tab2
----
144
144
144

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NULL NOT IN ( 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8859
SELECT COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8860
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8860
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8861
SELECT + 0 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8861
SELECT + 0 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT + - ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8862
SELECT + - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 22 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT ALL + - SUM( DISTINCT - 38 ) AS col2 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL + - SUM ( DISTINCT - 38 ) AS col2 FROM tab0 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) IN ( col1 - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) IN ( col1 - col2 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT ALL + SUM( ALL - col0 ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL + SUM ( ALL - col0 ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL col0 * + 94 AS col2 FROM tab0
----
1410
8178
9118

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( col0 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT DISTINCT MAX( + + 30 ) AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT MAX ( + + 30 ) AS col0 FROM tab2
----
30

query I rowsort
SELECT - col0 - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-104
-133
-69

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE 17 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT + COUNT( * ) * + ( SUM( ALL + ( col1 ) ) ) col2 FROM tab2
----
585

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8872
SELECT + COUNT ( * ) * + ( SUM ( ALL + ( col1 ) ) ) col2 FROM tab2
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT DISTINCT SUM( + col1 ) * ( COUNT( * ) ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT SUM ( + col1 ) * ( COUNT ( * ) ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) NOT IN ( 95 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8875
SELECT ALL + + CAST( NULL AS SIGNED ) * - COUNT( * ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8875
SELECT ALL + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + col1 + 64 * - col0 FROM tab0 AS cor0
----
-5537
-6108
-832

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) = ( + col1 )
----

query I rowsort
SELECT + - col2 * + + col0 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 62 <> + col2
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 ) >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 98 FROM tab2 AS cor0 WHERE col1 >= NULL
----

query I rowsort
SELECT + col1 + - + col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT ALL + col0 - col1 * + 71 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 + + + col2 IN ( col2 * + col2 )
----
-1404
-5736
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 6 + 66 + + - col0 - - col2 * + col1 col2 FROM tab1 AS cor0
----
1365
282
3177

query I rowsort
SELECT - col1 + - col2 - - col2 + col2 * - ( col1 - col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 8 ) <> NULL
----

query I rowsort
SELECT ALL + col1 * + + col2 + - 10 AS col2 FROM tab1 AS cor0
----
1334
285
3186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8889
SELECT + 10 * - col0 + + - CAST( NULL AS SIGNED ) + 34 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8889
SELECT + 10 * - col0 + + - CAST ( NULL AS INTEGER ) + 34 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8891
SELECT DISTINCT 12 DIV 94 DIV 62 * 58 + + COUNT( col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8891
SELECT DISTINCT 12 / 94 / 62 * 58 + + COUNT ( col2 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - - ( 96 ) - - 87 NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 58 < NULL
----

query I rowsort
SELECT - 0 + + col1 * 75 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
31790
320684
53499

query I rowsort
SELECT ALL - col1 * - + col2 FROM tab1 WHERE NULL IS NULL
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 / col0 + - 64 - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 1 FROM tab0 WHERE + 18 / + col1 + col2 = NULL
----

query I rowsort
SELECT DISTINCT col2 * + + col0 AS col0 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT - COUNT( * ) * + - 48 * MIN( ALL + 55 ) FROM tab1
----
7920

skipif mysql # not compatible
query I rowsort label-8899
SELECT - COUNT ( * ) * + - 48 * MIN ( ALL + 55 ) FROM tab1
----
7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * + col2 col1, col1 FROM tab2
----
1600
77
3364
67
529
51

query III rowsort
SELECT * FROM tab2 WHERE NULL > - - col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT ALL 64 * - ( - COUNT( * ) ) AS col0 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL 64 * - ( - COUNT ( * ) ) AS col0 FROM tab1
----
192

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( - col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col2 - + 44 FROM tab1
----
15
24
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8905
SELECT DISTINCT 82 DIV + col1 AS col0 FROM tab0
----
1
3
82

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT 82 / + col1 AS col0 FROM tab0
----
1
3
82

query I rowsort
SELECT ALL + - col0 * - + col2 * + 34 * - col0 FROM tab1 AS cor0
----
-14493350
-19145672
-8489664

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT ALL 79 * - 85 + + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-6718

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL 79 * - 85 + + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-6718

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col1 BETWEEN col0 AND - - col0 * + 61
----

query I rowsort
SELECT ALL ( + 86 ) AS col0 FROM tab1
----
86
86
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8911
SELECT + col0 * ( - 71 ) DIV col0 FROM tab1 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-8911
SELECT + col0 * ( - 71 ) / col0 FROM tab1 AS cor0
----
-71
-71
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 * 34 col0 FROM tab0 AS cor0
----
544
544
544

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 / + col1 + + 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT ALL SUM( - + 92 ) FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL SUM ( - + 92 ) FROM tab1
----
-276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8915
SELECT - MIN( + 38 ) DIV - + 27 col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8915
SELECT - MIN ( + 38 ) / - + 27 col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT DISTINCT - SUM( + 5 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT - SUM ( + 5 ) AS col0 FROM tab0
----
-15

query I rowsort
SELECT ( - - col2 ) * + col2 FROM tab0
----
100
2209
9801

query II rowsort
SELECT - col1, 76 AS col0 FROM tab2
----
-51
76
-67
76
-77
76

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 73 NOT BETWEEN ( - - ( col0 ) ) AND ( NULL )
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * col0 + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 42 + col1 col1 FROM tab0 AS cor0
----
-21
-41
39

query I rowsort
SELECT DISTINCT + ( - 4 ) FROM tab2
----
-4

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE + + col1 + + col0 + - col1 <> - + 98 * - 25 * - col2 + 60 * - 15
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8925
SELECT ALL 38 DIV + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 + + ( col1 ) * + CAST( NULL AS SIGNED ) * - col2 DIV + col1 IS NOT NULL
----
0
0
3

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL 38 / + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 + + ( col1 ) * + CAST ( NULL AS INTEGER ) * - col2 / + col1 IS NOT NULL
----
0
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8926
SELECT DISTINCT + col2 + + - col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-11
NULL
-34
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-8926
SELECT DISTINCT + col2 + + - col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-11
NULL
-34
NULL
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT ALL - COUNT( * ) * SUM( DISTINCT - col0 ) FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL - COUNT ( * ) * SUM ( DISTINCT - col0 ) FROM tab0 AS cor0
----
597

query I rowsort
SELECT ALL + 74 + + ( col1 ) + col1 * - - col2 AS col0 FROM tab2 cor0
----
1298
3231
4027

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8929
SELECT ALL + - col1 + - CAST( + col2 AS SIGNED ) FROM tab2 cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL + - col1 + - CAST ( + col2 AS INTEGER ) FROM tab2 cor0
----
-117
-125
-74

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NULL < + 44 * - col1 * - 42
----

query I rowsort
SELECT ALL - col0 - 20 + + 87 AS col1 FROM tab1 AS cor0 WHERE + 39 IN ( - 5 )
----

query II rowsort
SELECT ALL - col1 + + + col2 AS col2, - col1 AS col2 FROM tab1 AS cor0
----
21
-47
54
-5
82
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8933
SELECT ALL + col1 + + col2 * - - CAST( NULL AS SIGNED ) + - 21 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL + col1 + + col2 * - - CAST ( NULL AS INTEGER ) + - 21 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 4 * - 19 + col1 FROM tab1 AS cor0
----
123
81
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT - - ( - MAX( - col2 ) ) - - + COUNT( * ) FROM tab1 cor0
----
62

skipif mysql # not compatible
query I rowsort label-8935
SELECT - - ( - MAX ( - col2 ) ) - - + COUNT ( * ) FROM tab1 cor0
----
62

query I rowsort
SELECT - col2 - - col0 + - ( - - col0 ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT - MIN( + 22 ) - 91 AS col2 FROM tab2
----
-113

skipif mysql # not compatible
query I rowsort label-8937
SELECT - MIN ( + 22 ) - 91 AS col2 FROM tab2
----
-113

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE - - 26 * col0 + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col1 col1 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT COUNT( * ) + 80 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-8940
SELECT COUNT ( * ) + 80 FROM tab2
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * ( col0 ) col2 FROM tab0
----
225
7569
9409

query I rowsort
SELECT DISTINCT col2 + - ( 35 ) + - + col1 / + - col1 FROM tab2 WHERE NOT NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, - 70 FROM tab2 cor0
----
23
-70
40
-70
58
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8944
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 / col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 / col1 FROM tab2
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 76 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8946
SELECT ALL CAST( + - 40 AS SIGNED ) FROM tab2 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL CAST ( + - 40 AS INTEGER ) FROM tab2 AS cor0
----
-40
-40
-40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 + + col2 * + col2 IS NOT NULL OR NOT - + col2 * + 17 * + - col0 / col0 BETWEEN ( + 56 ) AND + col2 / col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT MAX( DISTINCT - 66 ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8948
SELECT MAX ( DISTINCT - 66 ) FROM tab2 AS cor0
----
-66

query I rowsort
SELECT ALL ( - ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL - MAX( + col2 ) + - 20 FROM tab1 AS cor0 WHERE NOT NULL < - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL - MAX ( + col2 ) + - 20 FROM tab1 AS cor0 WHERE NOT NULL < - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT MIN( ALL - 79 ) AS col0 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-8951
SELECT MIN ( ALL - 79 ) AS col0 FROM tab2 AS cor0
----
-79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 = + ( - 19 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8953
SELECT SUM( ALL + col0 ) DIV - COUNT( + col0 ) col0 FROM tab1
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8953
SELECT SUM ( ALL + col0 ) / - COUNT ( + col0 ) col0 FROM tab1
----
-75

query I rowsort
SELECT - + col2 AS col2 FROM tab2 WHERE NOT 68 NOT IN ( - - col1 / + + col2, col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 69 * - 36 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 13 * - - col1 BETWEEN ( + 77 * col0 ) AND NULL
----

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE 93 NOT IN ( - ( - + col1 ), 66, + 80, + - col1 - col2 )
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8958
SELECT DISTINCT 50 / - col1 + - + CAST( NULL AS SIGNED ) + - 84 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT 50 / - col1 + - + CAST ( NULL AS INTEGER ) + - 84 AS col2 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 + ( + + col1 ) col1 FROM tab2
----
108
82
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT DISTINCT - MAX( - col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT - MAX ( - col2 ) AS col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT - 72 + + - COUNT( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8961
SELECT - 72 + + - COUNT ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT + COUNT( * ) + - 0 + ( ( - COUNT( * ) ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8962
SELECT + COUNT ( * ) + - 0 + ( ( - COUNT ( * ) ) ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8963
SELECT - CAST( col0 AS SIGNED ) + + + col2 + - col1, + col0 * + + col0 DIV + - col0 col2 FROM tab0 AS cor0
----
-49
-15
-98
-87
1
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8963
SELECT - CAST ( col0 AS INTEGER ) + + + col2 + - col1, + col0 * + + col0 / + - col0 col2 FROM tab0 AS cor0
----
-49
-15
-98
-87
1
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, + col1 * + + ( + - col2 ) FROM tab1 AS cor0
----
-59
-295
-68
-3196
-96
-1344

query I rowsort
SELECT DISTINCT + + col1 + - - 66 FROM tab0 AS cor0
----
147
67
87

query I rowsort
SELECT DISTINCT - col0 + - + 99 AS col1 FROM tab0 AS cor0
----
-114
-186
-196

query I rowsort
SELECT 37 * + 7 + - + col0 FROM tab2 AS cor0
----
184
195
213

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT + - MAX( + 96 ) * - MAX( + 84 ) - + COUNT( * ) + 85 FROM tab0 cor0
----
8146

skipif mysql # not compatible
query I rowsort label-8968
SELECT + - MAX ( + 96 ) * - MAX ( + 84 ) - + COUNT ( * ) + 85 FROM tab0 cor0
----
8146

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8969
SELECT + + col2 + - 62 + - - col2 + col0 DIV + 79 + col1 * + CAST( - 28 AS SIGNED ) FROM tab0 AS cor0
----
-2236
-629
109

skipif mysql # not compatible
query I rowsort label-8969
SELECT + + col2 + - 62 + - - col2 + col0 / + 79 + col1 * + CAST ( - 28 AS INTEGER ) FROM tab0 AS cor0
----
-2236
-629
109

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + ( + col2 ) + + 52 col0 FROM tab1
----
3533
4676
9268

query III rowsort
SELECT * FROM tab2 WHERE - col0 * col2 IN ( 27, - col0 + + col2 - + col1 * + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> 55
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL COUNT( DISTINCT 35 ) + + + COUNT( + - col0 ) AS col0 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL COUNT ( DISTINCT 35 ) + + + COUNT ( + - col0 ) AS col0 FROM tab0
----
4

query II rowsort
SELECT col2 * + 24 AS col2, col0 AS col1 FROM tab1
----
1416
85
1632
91
2304
51

query II rowsort
SELECT DISTINCT + ( + + col1 ) AS col1, - 84 AS col2 FROM tab2 AS cor0
----
51
-84
67
-84
77
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8978
SELECT DISTINCT ( - CAST( 21 AS SIGNED ) ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT ( - CAST ( 21 AS INTEGER ) ) FROM tab1 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT ALL COUNT( * ) FROM tab1 WHERE - col2 NOT IN ( - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL COUNT ( * ) FROM tab1 WHERE - col2 NOT IN ( - col0 )
----
3

query I rowsort
SELECT DISTINCT - ( + 75 ) * + ( ( + col2 ) ) AS col1 FROM tab1
----
-4425
-5100
-7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 77 col2, + ( col1 ) - + ( + - 10 ) - col2 + + col0 * col0 AS col1 FROM tab2
----
77
2154
77
4143
77
5644

query II rowsort
SELECT + 22, col1 FROM tab0
----
22
1
22
21
22
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8985
SELECT + col2 DIV - 38 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8985
SELECT + col2 / - 38 FROM tab0
----
-1
-2
0

query I rowsort
SELECT - 89 * col2 FROM tab2
----
-2047
-3560
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT + + MIN( - col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8987
SELECT + + MIN ( - col0 ) FROM tab2 cor0
----
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( 11 ) <= col1
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + col0 * 28 BETWEEN NULL AND col0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + col0 - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8991
SELECT DISTINCT COUNT( * ) + - - SUM( + 5 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT - - col0 / col1 / - col2 - + + col0 / + col0 BETWEEN ( - - col2 ) AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT COUNT ( * ) + - - SUM ( + 5 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT - - col0 / col1 / - col2 - + + col0 / + col0 BETWEEN ( - - col2 ) AND NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8992
SELECT DISTINCT + COUNT( * ) AS col0, 78 FROM tab0 AS cor0 WHERE NOT NULL < col1 * - col1
----
0
78

skipif mysql # not compatible
query II rowsort label-8992
SELECT DISTINCT + COUNT ( * ) AS col0, 78 FROM tab0 AS cor0 WHERE NOT NULL < col1 * - col1
----
0
78

onlyif mysql # DIV for integer division: 
query II rowsort label-8993
SELECT DISTINCT + col1 DIV col0 * ( - col1 ) AS col0, 13 FROM tab0
----
-405
13
0
13

skipif mysql # not compatible
query II rowsort label-8993
SELECT DISTINCT + col1 / col0 * ( - col1 ) AS col0, 13 FROM tab0
----
-405
13
0
13

query I rowsort
SELECT col1 * + + col2 * - 88 FROM tab2
----
-103224
-271040
-341968

onlyif mysql # DIV for integer division: 
query I rowsort label-8995
SELECT DISTINCT 62 DIV - - col1 AS col2 FROM tab0
----
0
2
62

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT 62 / - - col1 AS col2 FROM tab0
----
0
2
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT ( + - ( + COUNT( * ) ) ) * + + COUNT( * ) col1 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8996
SELECT ( + - ( + COUNT ( * ) ) ) * + + COUNT ( * ) col1 FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8997
SELECT ( - - col1 ) DIV 9 * - + col2 * 87 FROM tab0
----
-1740
-36801
0

skipif mysql # not compatible
query I rowsort label-8997
SELECT ( - - col1 ) / 9 * - + col2 * 87 FROM tab0
----
-1740
-36801
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8998
SELECT ALL CAST( + + 59 AS SIGNED ) FROM tab0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL CAST ( + + 59 AS INTEGER ) FROM tab0
----
59
59
59

query I rowsort
SELECT DISTINCT - 88 + + + 34 + - - col0 FROM tab1 AS cor0
----
-3
31
37

query I rowsort
SELECT 84 + - - 97 FROM tab1 AS cor0
----
181
181
181

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT + COUNT( * ) + - + COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9001
SELECT + COUNT ( * ) + - + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT + col2 + + col1 <> ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9003
SELECT + col2 / + col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 26 AND - 80 + - - CAST( NULL AS SIGNED ) + 36
----

skipif mysql # not compatible
query I rowsort label-9003
SELECT + col2 / + col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 26 AND - 80 + - - CAST ( NULL AS INTEGER ) + 36
----

query I rowsort
SELECT DISTINCT col2 * - + 32 FROM tab2 cor0
----
-1280
-1856
-736

query I rowsort
SELECT ALL + ( - 90 ) AS col1 FROM tab2 cor0
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9006
SELECT - col1 - - + 70 * + 4 + - 69 * col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9006
SELECT - col1 - - + 70 * + 4 + - 69 * col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9007
SELECT ALL 26 + col1 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL 26 + col1 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT col2 - 44 AS col0 FROM tab1 AS cor0
----
15
24
52

query I rowsort
SELECT + - col0 * + - 73 AS col0 FROM tab2 AS cor0 WHERE col2 * 17 IS NOT NULL
----
3358
4672
5475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9010
SELECT DISTINCT + 64 * COUNT( * ) DIV - + 57 + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT + 64 * COUNT ( * ) / - + 57 + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT - - col2 - + ( + 19 ) AS col1 FROM tab0 AS cor0
----
-9
28
80

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col2 AND NULL AND NOT col2 IN ( - 68, 24 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9013
SELECT ALL * FROM tab2 WHERE + + CAST( - + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9013
SELECT ALL * FROM tab2 WHERE + + CAST ( - + col0 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9014
SELECT DISTINCT * FROM tab0 WHERE - - col1 * 2 - - col2 * - ( + 89 ) NOT BETWEEN CAST( NULL AS SIGNED ) AND - 92
----

skipif mysql # not compatible
query III rowsort label-9014
SELECT DISTINCT * FROM tab0 WHERE - - col1 * 2 - - col2 * - ( + 89 ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND - 92
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE ( - - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9016
SELECT - 79 AS col2, - COUNT( ALL + + col0 ) FROM tab0
----
-79
-3

skipif mysql # not compatible
query II rowsort label-9016
SELECT - 79 AS col2, - COUNT ( ALL + + col0 ) FROM tab0
----
-79
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT 17 - - - ( col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT DISTINCT COUNT( DISTINCT col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT COUNT ( DISTINCT col0 ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9019
SELECT DISTINCT col0, col2 AS col0, - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
9 values hashing to 201ed14d510d8e1592e1ff00f3965a91

skipif mysql # not compatible
query III rowsort label-9019
SELECT DISTINCT col0, col2 AS col0, - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
9 values hashing to 201ed14d510d8e1592e1ff00f3965a91

query III rowsort
SELECT * FROM tab1 WHERE NOT - 88 * + + col2 >= + col0 * 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL COUNT( * ) * - COUNT( - + col1 ) AS col0 FROM tab1 WHERE NULL IN ( ( col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL COUNT ( * ) * - COUNT ( - + col1 ) AS col0 FROM tab1 WHERE NULL IN ( ( col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL - - COUNT( + - 56 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL - - COUNT ( + - 56 ) AS col0 FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 - + 63 / ( + + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9024
SELECT * FROM tab2 AS cor0 WHERE NOT + 70 BETWEEN - col2 AND ( + CAST( - col2 AS SIGNED ) + - 0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9024
SELECT * FROM tab2 AS cor0 WHERE NOT + 70 BETWEEN - col2 AND ( + CAST ( - col2 AS INTEGER ) + - 0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 col1 FROM tab0 cor0
----
73
73
73

query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab2 WHERE - + 8 IN ( col0, 51 * + col0, + - col1 )
----

query I rowsort
SELECT col1 + + - 63 AS col2 FROM tab0
----
-42
-62
18

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NOT + - col1 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT 21 * + + COUNT( * ) * - COUNT( * ) + - COUNT( - 81 ) AS col0 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-9031
SELECT 21 * + + COUNT ( * ) * - COUNT ( * ) + - COUNT ( - 81 ) AS col0 FROM tab1
----
-192

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT DISTINCT - COUNT( DISTINCT - col1 ) * + MAX( + col2 ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) * + MAX ( + col2 ) FROM tab0 AS cor0
----
-297

query I rowsort
SELECT ALL + 35 FROM tab2 AS cor0 WHERE + 4 / - col1 IS NOT NULL
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9035
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL - COUNT( * ) * - + 35 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
315

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL - COUNT ( * ) * - + 35 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
315

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9037
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) < - - col0 * - - col0 + + col2
----

skipif mysql # not compatible
query III rowsort label-9037
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) < - - col0 * - - col0 + + col2
----

query I rowsort
SELECT ( + 78 ) + - col0 FROM tab2 AS cor0
----
14
3
32

query I rowsort
SELECT + col0 + - 98 * - - col1 AS col0 FROM tab0 AS cor0
----
-1
-1971
-7923

query I rowsort
SELECT col2 + - + col1 FROM tab1 cor0
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9041
SELECT + - 98 + + col0 * + - ( + CAST( NULL AS SIGNED ) ) / - + ( col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT + - 98 + + col0 * + - ( + CAST ( NULL AS INTEGER ) ) / - + ( col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( + 4 ) AS col1 FROM tab2 AS cor0
----
-4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + - col0 AND + - 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT COUNT( * ) FROM tab2 WHERE NOT NULL = - col2
----
0

skipif mysql # not compatible
query I rowsort label-9044
SELECT COUNT ( * ) FROM tab2 WHERE NOT NULL = - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT + MIN( - - 35 ) AS col2 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-9045
SELECT + MIN ( - - 35 ) AS col2 FROM tab1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9046
SELECT DISTINCT CAST( 19 AS SIGNED ) AS col2 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-9046
SELECT DISTINCT CAST ( 19 AS INTEGER ) AS col2 FROM tab0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9047
SELECT ALL + 11 AS col2 FROM tab0 WHERE - - ( CAST( NULL AS SIGNED ) ) + + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL + 11 AS col2 FROM tab0 WHERE - - ( CAST ( NULL AS INTEGER ) ) + + col2 IS NOT NULL
----

query I rowsort
SELECT col2 * + + col2 AS col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT DISTINCT - col1 + - ( + col2 ) FROM tab0 WHERE col2 < col0 + - col1
----
-31

query I rowsort
SELECT 63 FROM tab0 WHERE NOT ( col2 + - col0 ) < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9051
SELECT + CAST( + + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9051
SELECT + CAST ( + + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9052
SELECT col1 + - 28 AS col0 FROM tab0 AS cor0 WHERE ( + col2 ) IN ( CAST( 18 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9052
SELECT col1 + - 28 AS col0 FROM tab0 AS cor0 WHERE ( + col2 ) IN ( CAST ( 18 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9053
SELECT COUNT( DISTINCT - - col1 ) + + COUNT( * ) AS col2, 8 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 7 * + col2 AND ( NULL )
----
0
8

skipif mysql # not compatible
query II rowsort label-9053
SELECT COUNT ( DISTINCT - - col1 ) + + COUNT ( * ) AS col2, 8 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 7 * + col2 AND ( NULL )
----
0
8

query II rowsort
SELECT - + col0, col0 AS col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT DISTINCT ( - + 28 ) FROM tab2 AS cor0
----
-28

query II rowsort
SELECT DISTINCT col0 AS col2, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9057
SELECT DISTINCT ( + 95 ) + - + ( + col1 ) DIV + 79 + 23 AS col2 FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT ( + 95 ) + - + ( + col1 ) / + 79 + 23 AS col2 FROM tab2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT DISTINCT 97 + + - MIN( - 25 ) AS col0 FROM tab2
----
122

skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT 97 + + - MIN ( - 25 ) AS col0 FROM tab2
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-9059
SELECT + col1 DIV 69 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9059
SELECT + col1 / 69 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT DISTINCT MIN( + 36 ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT MIN ( + 36 ) FROM tab0
----
36

query I rowsort
SELECT col0 + - + 60 AS col1 FROM tab1
----
-9
25
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9062
SELECT + COUNT( * ) + 75 DIV - MIN( DISTINCT + 22 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9062
SELECT + COUNT ( * ) + 75 / - MIN ( DISTINCT + 22 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 39 * col1 AS col0 FROM tab2
----
-1989
-2613
-3003

query I rowsort
SELECT DISTINCT + col0 * - - 34 FROM tab0 AS cor0 WHERE NOT ( ( NULL <> NULL ) )
----

query I rowsort
SELECT - col1 * + col0 + col0 + col2 AS col1 FROM tab1 cor0
----
-281
-4118
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9067
SELECT DISTINCT col0 * + col2 * + col0 + + - CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
163917
326317
48719

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT col0 * + col2 * + col0 + + - CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
163917
326317
48719

onlyif mysql # DIV for integer division: 
query I rowsort label-9068
SELECT ALL + col0 DIV - + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL + col0 / - + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 92 + + col0 * 72 <> + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT ALL + + 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-9070
SELECT ALL + + COUNT ( ALL - + col1 ) col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT - - col2 AS col0, 50 FROM tab2 AS cor0
----
23
50
40
50
58
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9072
SELECT + COUNT( * ) * - COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9072
SELECT + COUNT ( * ) * - COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * + - 64 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL > ( NULL ) )
----

query I rowsort
SELECT DISTINCT 88 * - - col0 AS col1 FROM tab1
----
4488
7480
8008

onlyif mysql # DIV for integer division: 
query I rowsort label-9076
SELECT ALL - col1 * + ( col2 ) * - col1 * + col0 DIV col0 FROM tab0
----
308367
4410
99

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL - col1 * + ( col2 ) * - col1 * + col0 / col0 FROM tab0
----
308367
4410
99

query II rowsort
SELECT DISTINCT + 38 * + col0, col2 FROM tab0
----
3306
10
3686
99
570
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9078
SELECT DISTINCT + 33 DIV col2 DIV + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT + 33 / col2 / + col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT DISTINCT + MIN( 61 ) FROM tab0 cor0
----
61

skipif mysql # not compatible
query I rowsort label-9079
SELECT DISTINCT + MIN ( 61 ) FROM tab0 cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT DISTINCT - COUNT( - 45 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9080
SELECT DISTINCT - COUNT ( - 45 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT DISTINCT COUNT( ALL - col0 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9081
SELECT DISTINCT COUNT ( ALL - col0 ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT + 29 * COUNT( col2 ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9082
SELECT + 29 * COUNT ( col2 ) FROM tab2 AS cor0
----
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + col2 NOT BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT DISTINCT COUNT( * ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9084
SELECT DISTINCT COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 col2 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT ALL - col2 * 35 AS col1 FROM tab1 AS cor0
----
-2065
-2380
-3360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9087
SELECT COUNT( * ) / + - ( 54 ) + CAST( NULL AS SIGNED ) + - - SUM( col1 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9087
SELECT COUNT ( * ) / + - ( 54 ) + CAST ( NULL AS INTEGER ) + - - SUM ( col1 ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 33 * + col0 + - col1 AS col2 FROM tab2 AS cor0
----
-1569
-2189
-2542

query I rowsort
SELECT - + col1 + 93 AS col0 FROM tab2 AS cor0
----
16
26
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT + 71 + + 1 * COUNT( + col2 ) AS col2 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-9090
SELECT + 71 + + 1 * COUNT ( + col2 ) AS col2 FROM tab1 AS cor0
----
74

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 = - - col0
----

query I rowsort
SELECT DISTINCT col1 * + 93 + + - col2 AS col1 FROM tab1
----
1206
406
4303

query I rowsort
SELECT col1 * + - col2 * + + 80 FROM tab1
----
-107520
-23600
-255680

query I rowsort
SELECT DISTINCT col1 * - 33 FROM tab0
----
-2673
-33
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT + ( + COUNT( - + 18 ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9095
SELECT + ( + COUNT ( - + 18 ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + col0 * + col2 AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT + - 3 - - - ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9097
SELECT + - 3 - - - ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT DISTINCT + 5 * COUNT( * ) * - 62 FROM tab2
----
-930

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT + 5 * COUNT ( * ) * - 62 FROM tab2
----
-930

onlyif mysql # DIV for integer division: 
query I rowsort label-9101
SELECT DISTINCT col1 DIV 22 FROM tab1
----
0
2

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT col1 / 22 FROM tab1
----
0
2

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - 25, ( col2 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 67 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9104
SELECT col2 * CAST( + + col2 AS SIGNED ) * col2 DIV + - 9 FROM tab1
----
-22819
-34936
-98304

skipif mysql # not compatible
query I rowsort label-9104
SELECT col2 * CAST ( + + col2 AS INTEGER ) * col2 / + - 9 FROM tab1
----
-22819
-34936
-98304

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9105
SELECT col1, - 25 * - CAST( NULL AS SIGNED ) * - col0 * + - 32 AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9105
SELECT col1, - 25 * - CAST ( NULL AS INTEGER ) * - col0 * + - 32 AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9106
SELECT + CAST( - CAST( - - AVG ( + col1 ) AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-9106
SELECT + CAST ( - CAST ( - - AVG ( + col1 ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-9107
SELECT DISTINCT + 49 DIV + col1 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT + 49 / + col1 AS col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 91 col2 FROM tab2 cor0
----
-91
-91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9109
SELECT DISTINCT - 94 DIV - - 49 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT - 94 / - - 49 FROM tab2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9110
SELECT ALL + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT + COUNT( * ) + - 62 AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9111
SELECT + COUNT ( * ) + - 62 AS col2 FROM tab1
----
-59

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 42 BETWEEN - col1 AND col1 + + col1
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + col2 + 28 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
68
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT DISTINCT - ( + + SUM( + ( col0 ) ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9114
SELECT DISTINCT - ( + + SUM ( + ( col0 ) ) ) FROM tab2 AS cor0
----
-185

query II rowsort
SELECT + 91 AS col2, 70 * + col1 FROM tab0 cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9116
SELECT DISTINCT CAST( + + 95 AS SIGNED ) - + col0 AS col2 FROM tab2 AS cor0
----
20
31
49

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT CAST ( + + 95 AS INTEGER ) - + col0 AS col2 FROM tab2 AS cor0
----
20
31
49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 25 * - col0 BETWEEN NULL AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> + 94
----

query I rowsort
SELECT DISTINCT col2 + - 54 AS col0 FROM tab1
----
14
42
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT ALL - MIN( DISTINCT - - 87 ) col1 FROM tab0
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9120
SELECT ALL - MIN ( DISTINCT - - 87 ) col1 FROM tab0
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 * + 88 - + col2 col1 FROM tab0
----
-1682
-1719
-1771

query I rowsort
SELECT + 42 - col1 AS col1 FROM tab0
----
-39
21
41

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - ( + col1 ) AND + 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT ALL COUNT( * ) - + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL COUNT ( * ) - + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT col1 + - ( - - 81 ) FROM tab0
----
-60
-80
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9126
SELECT - MIN( DISTINCT + CAST( + 1 AS SIGNED ) ) + 17 AS col0 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-9126
SELECT - MIN ( DISTINCT + CAST ( + 1 AS INTEGER ) ) + 17 AS col0 FROM tab1
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - col0 - - col0 AS col2, + 8 col0 FROM tab2
----
-1012
8
-2496
8
-4275
8

query II rowsort
SELECT DISTINCT - + col0 AS col2, + col1 + + col1 FROM tab0 cor0
----
-15
162
-87
42
-97
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT + MIN( 1 ) * - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9129
SELECT + MIN ( 1 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL + MAX( ALL - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL + MAX ( ALL - col1 ) FROM tab2
----
-51

query I rowsort
SELECT DISTINCT 94 * + col1 * + - col0 * - col0 AS col1 FROM tab0
----
14941206
1713150
884446

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9132
SELECT ALL + CAST( + + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT ALL - col1, col1 AS col0 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT DISTINCT - ( - + 37 ) FROM tab1 cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT + MIN( DISTINCT 38 ) AS col2 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9135
SELECT + MIN ( DISTINCT 38 ) AS col2 FROM tab1 AS cor0
----
38

query I rowsort
SELECT + + col2 * - + col0 * + - 28 + + 59 * - col1 FROM tab0 AS cor0
----
14961
23121
268825

query I rowsort
SELECT col1 AS col2 FROM tab1 cor0 WHERE NOT ( NOT 70 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9138
SELECT - CAST( NULL AS SIGNED ) * col2 / + col0 + - 92 + - col1 + + col0 - col0 * + col0 + - - 17 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9138
SELECT - CAST ( NULL AS INTEGER ) * col2 / + col0 + - 92 + - col1 + + col0 - col0 * + col0 + - - 17 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * - ( col1 ) FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ALL - COUNT( + 9 ) * + 23 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL - COUNT ( + 9 ) * + 23 FROM tab0 AS cor0
----
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9141
SELECT 13 AS col1 FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9141
SELECT 13 AS col1 FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT + 11 * - col1 / col2 - 60 + - ( - + col1 ) FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 12 AS col1 FROM tab2 AS cor0 WHERE - col1 * + col1 * - col1 - col2 + - + col1 * - + col1 - 94 IS NULL
----

query I rowsort
SELECT - col0 + - col1 + + + col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT - + 93 * - + SUM( ALL col1 ) + - COUNT( - - col0 ) AS col1 FROM tab0 AS cor0
----
9576

skipif mysql # not compatible
query I rowsort label-9145
SELECT - + 93 * - + SUM ( ALL col1 ) + - COUNT ( - - col0 ) AS col1 FROM tab0 AS cor0
----
9576

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL - - 19 * + + col2 * col2 + + 48 * + col0 + - col0 AS col0 FROM tab0 AS cor0
----
190778
42676
5989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9148
SELECT - CAST( + - col0 AS SIGNED ) * - col0 AS col1 FROM tab1
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-9148
SELECT - CAST ( + - col0 AS INTEGER ) * - col0 AS col1 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT ALL + 47 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL + 5 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ALL + MAX( - col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL + MAX ( - col1 ) AS col0 FROM tab2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9152
SELECT - COUNT( * ) DIV 62 + - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9152
SELECT - COUNT ( * ) / 62 + - COUNT ( * ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + col2 ) * + 17 * + 74 / + col2 <= - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 45 + - col2 AS col1 FROM tab1 AS cor0
----
-14
-23
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-9155
SELECT 59 * col2 + - col2, - ( 6 ) DIV + + col1 + - 76 + col2 AS col2 FROM tab2 cor0
----
1334
-53
2320
-36
3364
-18

skipif mysql # not compatible
query II rowsort label-9155
SELECT 59 * col2 + - col2, - ( 6 ) / + + col1 + - 76 + col2 AS col2 FROM tab2 cor0
----
1334
-53
2320
-36
3364
-18

query I rowsort
SELECT DISTINCT + 79 + - col0 FROM tab1 AS cor0
----
-12
-6
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9157
SELECT + - CAST( NULL AS SIGNED ) + - - col0 * - 20 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9157
SELECT + - CAST ( NULL AS INTEGER ) + - - col0 * - 20 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT DISTINCT SUM( ALL 21 ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT SUM ( ALL 21 ) FROM tab2 AS cor0
----
63

query I rowsort
SELECT ALL + ( + 91 ) + col1 * col1 FROM tab1 AS cor0
----
116
2300
287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9160
SELECT ALL + CAST( + 75 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
156
76
96

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL + CAST ( + 75 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
156
76
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 7 * - col0 + - - ( - col1 ) * + col2, 14 * - col0 col0 FROM tab2
----
-1495
-644
-3528
-896
-4411
-1050

query I rowsort
SELECT ALL 99 - col2 + + 49 AS col0 FROM tab1
----
52
80
89

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 * + 52 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 10 + + col0 FROM tab2
----
56
74
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9165
SELECT DISTINCT col1 - + CAST( - 73 AS SIGNED ) col2 FROM tab1
----
120
78
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9165
SELECT DISTINCT col1 - + CAST ( - 73 AS INTEGER ) col2 FROM tab1
----
120
78
87

query I rowsort
SELECT - + 45 AS col0 FROM tab0 WHERE + col0 + + + 96 - + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9167
SELECT + col1 * - ( + - col1 ) * col2 + + CAST( NULL AS SIGNED ) * col1 * - col1 * col1 + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9167
SELECT + col1 * - ( + - col1 ) * col2 + + CAST ( NULL AS INTEGER ) * col1 * - col1 * col1 + - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT DISTINCT MAX( + 29 ) AS col1 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-9168
SELECT DISTINCT MAX ( + 29 ) AS col1 FROM tab2
----
29

query I rowsort
SELECT DISTINCT 59 + 40 AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) BETWEEN + col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 16 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9173
SELECT - CAST( + 64 AS SIGNED ), + 62 * col1 + - col1 FROM tab2 WHERE NOT - col2 - - col1 - CAST( col2 AS SIGNED ) * + ( col1 ) > NULL
----

skipif mysql # not compatible
query II rowsort label-9173
SELECT - CAST ( + 64 AS INTEGER ), + 62 * col1 + - col1 FROM tab2 WHERE NOT - col2 - - col1 - CAST ( col2 AS INTEGER ) * + ( col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT ALL + - MAX( ALL + 3 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL + - MAX ( ALL + 3 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT - + MIN( + + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9175
SELECT - + MIN ( + + col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT - - MIN( col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9176
SELECT - - MIN ( col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, + col1 col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT 0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * col1 col0 FROM tab2
----
306
402
462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 54, + 11 col0 FROM tab0
----
54
11
54
11
54
11

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + - 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 55 * - 11 AS col1 FROM tab0
----
-605
-605
-605

query I rowsort
SELECT + ( + 75 ) AS col0 FROM tab2
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9185
SELECT ALL - 78 * + + COUNT( * ) + - - 98 + - - SUM( + col2 ) - ( + + COUNT( * ) ) AS col1, COUNT( * ) FROM tab0 AS cor0
----
17
3

skipif mysql # not compatible
query II rowsort label-9185
SELECT ALL - 78 * + + COUNT ( * ) + - - 98 + - - SUM ( + col2 ) - ( + + COUNT ( * ) ) AS col1, COUNT ( * ) FROM tab0 AS cor0
----
17
3

query I rowsort
SELECT - 48 + 59 * + - 80 FROM tab0
----
-4768
-4768
-4768

onlyif mysql # DIV for integer division: 
query I rowsort label-9187
SELECT col0 * + + 92 + - col1 + + col2 DIV - 51 + col2 - - 26 * 48 FROM tab2
----
5452
7099
8138

skipif mysql # not compatible
query I rowsort label-9187
SELECT col0 * + + 92 + - col1 + + col2 / - 51 + col2 - - 26 * 48 FROM tab2
----
5452
7099
8138

query I rowsort
SELECT DISTINCT 77 * - + col2 * + col0 FROM tab0
----
-54285
-66990
-739431

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9190
SELECT + CAST( + 66 AS SIGNED ) + + - ( COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE ( - col2 ) <= - col1
----
65

skipif mysql # not compatible
query I rowsort label-9190
SELECT + CAST ( + 66 AS INTEGER ) + + - ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE ( - col2 ) <= - col1
----
65

query I rowsort
SELECT DISTINCT + col1 * + + col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT DISTINCT + ( - COUNT( * ) ) * + + 93 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-9192
SELECT DISTINCT + ( - COUNT ( * ) ) * + + 93 FROM tab2 AS cor0
----
-279

onlyif mysql # DIV for integer division: 
query II rowsort label-9193
SELECT ALL col1 + 86 AS col0, - col2 DIV - 33 - - col2 FROM tab0 AS cor0
----
107
10
167
48
87
102

skipif mysql # not compatible
query II rowsort label-9193
SELECT ALL col1 + 86 AS col0, - col2 / - 33 - - col2 FROM tab0 AS cor0
----
107
10
167
48
87
102

query I rowsort
SELECT ALL - 91 * + - col0 FROM tab1 AS cor0
----
4641
7735
8281

onlyif mysql # DIV for integer division: 
query II rowsort label-9195
SELECT ALL 89 DIV + col1, col2 FROM tab0 AS cor0
----
1
47
4
10
89
99

skipif mysql # not compatible
query II rowsort label-9195
SELECT ALL 89 / + col1, col2 FROM tab0 AS cor0
----
1
47
4
10
89
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 86, ( + 86 ), + col1 )
----

query I rowsort
SELECT col2 - + col2 + + - col2 * - 62 * col2 * + + 32 + 49 FROM tab2 AS cor0
----
1049585
3174449
6674225

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT + 72 - + - SUM( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-9198
SELECT + 72 - + - SUM ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
138

query I rowsort
SELECT + 63 - 84 FROM tab1
----
-21
-21
-21

query II rowsort
SELECT col2 + - 78 * + + col0 AS col1, + ( + col2 ) FROM tab0
----
-1123
47
-6776
10
-7467
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9201
SELECT - 94 + col2 DIV - col2 FROM tab2
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-9201
SELECT - 94 + col2 / - col2 FROM tab2
----
-95
-95
-95

query II rowsort
SELECT DISTINCT col2, - 75 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
-75
68
-75
96
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 89 * + ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT SUM( + + 80 ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-9204
SELECT SUM ( + + 80 ) FROM tab0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT ALL + MAX( 24 ) AS col1 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL + MAX ( 24 ) AS col1 FROM tab2 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0, 57 col1 FROM tab1 AS cor0
----
51
57
85
57
91
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9207
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + CAST( - col1 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9207
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + CAST ( - col1 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT ALL + + COUNT( + + col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL + + COUNT ( + + col2 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9209
SELECT col1 DIV + 84 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9209
SELECT col1 / + 84 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT - COUNT( + 0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9210
SELECT - COUNT ( + 0 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT ALL + - COUNT( * ) * - + 55 col2 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9211
SELECT ALL + - COUNT ( * ) * - + 55 col2 FROM tab2 AS cor0
----
165

query I rowsort
SELECT DISTINCT + col0 * - col0 + col1 * + + 68 + + col0 * + col2 AS col1 FROM tab1 AS cor0
----
-1870
1103
3247

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ALL + COUNT( DISTINCT 64 ) FROM tab1 AS cor0 WHERE col2 + 5 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL + COUNT ( DISTINCT 64 ) FROM tab1 AS cor0 WHERE col2 + 5 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT + ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 76 + + 58 FROM tab0 AS cor0
----
-18
-18
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9216
SELECT MIN( - col2 ) * + COUNT( * ) + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9216
SELECT MIN ( - col2 ) * + COUNT ( * ) + - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT 27 + col0 + + col2 FROM tab0
----
124
223
89

query III rowsort
SELECT * FROM tab2 WHERE NULL = - col2 + - 46
----

query I rowsort
SELECT ALL ( - - col0 ) FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE - 48 <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NULL > - + 39
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9222
SELECT + 38, + MAX( - col0 ) AS col2 FROM tab0 AS cor0
----
38
-15

skipif mysql # not compatible
query II rowsort label-9222
SELECT + 38, + MAX ( - col0 ) AS col2 FROM tab0 AS cor0
----
38
-15

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE 39 * + col1 + - col0 * - - col1 * + ( + 43 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT ALL MIN( + + col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL MIN ( + + col1 ) AS col2 FROM tab1 AS cor0
----
5

query II rowsort
SELECT col2 AS col0, - col1 FROM tab0 cor0
----
10
-21
47
-81
99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9226
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( col1 ) + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( col1 ) + col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 99 + col0 - + ( - + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col0 + - 7 AS col0 FROM tab2 cor0
----
39
57
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9229
SELECT ALL + + SUM( DISTINCT + col1 ) * COUNT( * ) + 51 - 63 * - - MAX( - 95 ) AS col0, ( - MAX( - 1 ) ) FROM tab2 WHERE NOT NULL BETWEEN 44 AND + col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9229
SELECT ALL + + SUM ( DISTINCT + col1 ) * COUNT ( * ) + 51 - 63 * - - MAX ( - 95 ) AS col0, ( - MAX ( - 1 ) ) FROM tab2 WHERE NOT NULL BETWEEN 44 AND + col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL + MAX( - col0 ) + - COUNT( * ) col1 FROM tab0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9230
SELECT ALL + MAX ( - col0 ) + - COUNT ( * ) col1 FROM tab0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9231
SELECT COUNT( * ) + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9231
SELECT COUNT ( * ) + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT DISTINCT + MAX( + + ( + 39 ) ) * - 20 * + + COUNT( * ) AS col0 FROM tab0
----
-2340

skipif mysql # not compatible
query I rowsort label-9232
SELECT DISTINCT + MAX ( + + ( + 39 ) ) * - 20 * + + COUNT ( * ) AS col0 FROM tab0
----
-2340

query I rowsort
SELECT 18 + + col0 AS col0 FROM tab2
----
64
82
93

query I rowsort
SELECT ALL - + col2 * - col0 * + ( - 77 ) * - 18 FROM tab0 AS cor0
----
1205820
13309758
977130

onlyif mysql # aggregate syntax: 
query II rowsort label-9235
SELECT 61 + COUNT( * ) AS col2, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
64
3

skipif mysql # not compatible
query II rowsort label-9235
SELECT 61 + COUNT ( * ) AS col2, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
64
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT ALL COUNT( * ) * - MIN( - 63 ) FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL COUNT ( * ) * - MIN ( - 63 ) FROM tab2 AS cor0
----
189

query I rowsort
SELECT + col0 * 62 + + col1 FROM tab0 AS cor0
----
1011
5415
6015

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9238
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 IN ( + 10 * - - CAST( col1 AS SIGNED ), col0, - 58, + - col2, + col1 )
----

skipif mysql # not compatible
query III rowsort label-9238
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 IN ( + 10 * - - CAST ( col1 AS INTEGER ), col0, - 58, + - col2, + col1 )
----

query I rowsort
SELECT ALL 77 - col2 AS col2 FROM tab2 cor0
----
19
37
54

query I rowsort
SELECT DISTINCT col1 * - col2 - + - 43 + col2 * col0 FROM tab1
----
3035
3595
4763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9241
SELECT ALL + ( - 32 ) * - - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL + ( - 32 ) * - - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - 67 AS col1, - 49 AS col0 FROM tab0 WHERE NOT NULL <> + col1 / - - 46
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9243
SELECT DISTINCT - 9 DIV + col1 + - - 26 AS col1 FROM tab0 AS cor0
----
17
26

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT - 9 / + col1 + - - 26 AS col1 FROM tab0 AS cor0
----
17
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL - + ( - ( COUNT( * ) ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9244
SELECT ALL - + ( - ( COUNT ( * ) ) ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9245
SELECT - + COUNT( * ) AS col0, - 1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-1

skipif mysql # not compatible
query II rowsort label-9245
SELECT - + COUNT ( * ) AS col0, - 1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-1

query I rowsort
SELECT DISTINCT 81 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9247
SELECT CAST( + 52 AS SIGNED ) col2 FROM tab2 AS cor0
----
52
52
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9247
SELECT CAST ( + 52 AS INTEGER ) col2 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT - col2 + - + col2 FROM tab1 AS cor0 WHERE col1 / + 78 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9249
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9249
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT DISTINCT + 76 + + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT + 76 + + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
82

query I rowsort
SELECT - 86 * + col0 AS col2 FROM tab1
----
-4386
-7310
-7826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col2 FROM tab0
----
6
6
6

query I rowsort
SELECT ALL col1 * + col1 + - + col1 FROM tab0
----
0
420
6480

query I rowsort
SELECT - 84 * - col2 * + col2 FROM tab0
----
185556
823284
8400

query I rowsort
SELECT ALL - ( - ( - 23 ) ) AS col2 FROM tab0
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 + col2 col0 FROM tab1
----
-2505
-7166
-8213

query I rowsort
SELECT ALL - col2 - - - col1 FROM tab2 cor0
----
-117
-125
-74

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - 64 + + + 3 )
----

query I rowsort
SELECT + - col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9260
SELECT DISTINCT + + CAST( - ( - col1 ) AS SIGNED ) FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT + + CAST ( - ( - col1 ) AS INTEGER ) FROM tab1 cor0
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9261
SELECT COUNT( + col1 ) * + COUNT( * ) + + COUNT( * ) DIV + MIN( DISTINCT - + col0 ) AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-9261
SELECT COUNT ( + col1 ) * + COUNT ( * ) + + COUNT ( * ) / + MIN ( DISTINCT - + col0 ) AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT DISTINCT - MAX( DISTINCT 61 ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT - MAX ( DISTINCT 61 ) FROM tab0 AS cor0
----
-61

query I rowsort
SELECT 64 * - col0 + + - ( col1 ) AS col2 FROM tab0 AS cor0
----
-1041
-5589
-6209

query II rowsort
SELECT DISTINCT + col1 * - 36 AS col0, 71 AS col2 FROM tab2
----
-1836
71
-2412
71
-2772
71

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN - - ( + col2 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9266
SELECT - col2 DIV - + 84 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9266
SELECT - col2 / - + 84 AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT + col0 * col1 + + col2 - col2 * col0 FROM tab0 WHERE NULL IS NULL
----
-9407
557
967

query I rowsort
SELECT col2 * + 97 FROM tab2 cor0
----
2231
3880
5626

onlyif mysql # aggregate syntax: 
query II rowsort label-9269
SELECT + MIN( DISTINCT - 71 ), + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-71
3

skipif mysql # not compatible
query II rowsort label-9269
SELECT + MIN ( DISTINCT - 71 ), + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-71
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9270
SELECT DISTINCT COUNT( - CAST( CAST( - 7 AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT COUNT ( - CAST ( CAST ( - 7 AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9271
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9271
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM ( tab1 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 96 col2, - 65 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT ALL - MAX( DISTINCT - - col1 ) + - ( - 55 ) + + COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL - MAX ( DISTINCT - - col1 ) + - ( - 55 ) + + COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - + col2 col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + - col1 + + 17 AS col2 FROM tab1 AS cor0
----
-30
12
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9276
SELECT + 60 + + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT + 60 + + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * - + col1 FROM tab0 WHERE ( ( NULL ) = - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT - SUM( col1 ) + + - COUNT( 54 ) + + 87 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-9278
SELECT - SUM ( col1 ) + + - COUNT ( 54 ) + + 87 FROM tab1
----
18

query III rowsort
SELECT * FROM tab0 WHERE ( - 9 = NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9280
SELECT DISTINCT + COUNT( * ), - ( - COUNT( * ) ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9280
SELECT DISTINCT + COUNT ( * ), - ( - COUNT ( * ) ) FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL ( + COUNT( * ) ) FROM tab2 WHERE NOT 57 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL ( + COUNT ( * ) ) FROM tab2 WHERE NOT 57 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT MAX( + + 8 ) AS col0 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-9282
SELECT MAX ( + + 8 ) AS col0 FROM tab1
----
8

query I rowsort
SELECT DISTINCT col2 + + + col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT DISTINCT - 17 + + - MIN( col2 ) * - 0 AS col2 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-17

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT - 17 + + - MIN ( col2 ) * - 0 AS col2 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9285
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - + col2 * 20 - - + 97
----

skipif mysql # not compatible
query III rowsort label-9285
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - + col2 * 20 - - + 97
----

query I rowsort
SELECT DISTINCT - col1 + + col1 * + col0 FROM tab0
----
1134
1806
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9287
SELECT ALL CAST( + col1 AS SIGNED ) * col1 + col2 * 36 AS col0 FROM tab2
----
3429
6577
7369

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL CAST ( + col1 AS INTEGER ) * col1 + col2 * 36 AS col0 FROM tab2
----
3429
6577
7369

query I rowsort
SELECT 72 * - col1 AS col2 FROM tab1
----
-1008
-3384
-360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9289
SELECT ALL SUM( col2 ) DIV - 60 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL SUM ( col2 ) / - 60 FROM tab0
----
-2

query I rowsort
SELECT - 37 * + 21 AS col0 FROM tab1
----
-777
-777
-777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9291
SELECT DISTINCT 42 AS col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
42

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT 42 AS col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
42

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( col1 * 68 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9293
SELECT * FROM tab0 WHERE NOT CAST( col1 AS SIGNED ) NOT IN ( + 69 )
----

skipif mysql # not compatible
query III rowsort label-9293
SELECT * FROM tab0 WHERE NOT CAST ( col1 AS INTEGER ) NOT IN ( + 69 )
----

query I rowsort
SELECT + 27 + + col2 AS col0 FROM tab0
----
126
37
74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 42 * - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT - MAX( DISTINCT - col2 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9296
SELECT - MAX ( DISTINCT - col2 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9297
SELECT ALL + CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT DISTINCT COUNT( * ) + 58 AS col1 FROM tab1 WHERE col1 > ( 76 - - col0 )
----
58

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT COUNT ( * ) + 58 AS col1 FROM tab1 WHERE col1 > ( 76 - - col0 )
----
58

query I rowsort
SELECT ALL - ( - 30 ) + + col0 AS col2 FROM tab1
----
115
121
81

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE col0 + - ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9301
SELECT - ( CAST( 57 AS SIGNED ) ) + 6 AS col0 FROM tab0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-9301
SELECT - ( CAST ( 57 AS INTEGER ) ) + 6 AS col0 FROM tab0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT DISTINCT - MIN( + 66 ) col2 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9302
SELECT DISTINCT - MIN ( + 66 ) col2 FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9303
SELECT + 98 FROM tab2 WHERE ( + CAST( NULL AS SIGNED ) * ( - 15 ) + - col1 ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9303
SELECT + 98 FROM tab2 WHERE ( + CAST ( NULL AS INTEGER ) * ( - 15 ) + - col1 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * 51 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT MAX( - col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9306
SELECT MAX ( - col1 ) AS col2 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT COUNT( DISTINCT col0 ) + + 62 * - 58 col2 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( col0 )
----
-3596

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9307
SELECT COUNT ( DISTINCT col0 ) + + 62 * - 58 col2 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( col0 )
----
-3596

query I rowsort
SELECT ( 27 ) * 55 + ( - 48 ) AS col2 FROM tab0
----
1437
1437
1437

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9310
SELECT ALL ( 14 ) DIV 22 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL ( 14 ) / 22 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT COUNT( * ) + COUNT( * ) col1 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9311
SELECT COUNT ( * ) + COUNT ( * ) col1 FROM tab2
----
6

query I rowsort
SELECT + 38 + - col0 FROM tab1
----
-13
-47
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 WHERE NOT ( col0 + col2 ) IS NOT NULL
----

query I rowsort
SELECT - col2 + - 84 AS col2 FROM tab1
----
-143
-152
-180

query I rowsort
SELECT - col2 * - 26 AS col0 FROM tab0 AS cor0
----
1222
2574
260

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT - 21 + + MIN( DISTINCT col1 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND col1 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9316
SELECT - 21 + + MIN ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND col1 + col2
----
NULL

query I rowsort
SELECT DISTINCT + - col1 + + col1 * col0 AS col0 FROM tab0 cor0
----
1134
1806
96

query I rowsort
SELECT DISTINCT ( - 29 ) * col0 FROM tab0 AS cor0
----
-2523
-2813
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT ALL + COUNT( * ) * 66 + COUNT( * ) FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL + COUNT ( * ) * 66 + COUNT ( * ) FROM tab2 AS cor0
----
201

query I rowsort
SELECT DISTINCT col0 + col0 FROM tab2 AS cor0 WHERE NULL IN ( - col1 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT ALL MIN( ALL col0 ) + 23 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL MIN ( ALL col0 ) + 23 FROM tab2 AS cor0
----
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 IN ( 15 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9323
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND 51
----
NULL

query I rowsort
SELECT ALL - col2 + 21 FROM tab0 cor0
----
-26
-78
11

query I rowsort
SELECT ALL col0 - - 99 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT DISTINCT + 97 + COUNT( * ) FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT + 97 + COUNT ( * ) FROM tab1
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT CAST( CAST( col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9327
SELECT CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9328
SELECT - col1 DIV 63 - - 22 AS col0 FROM tab1
----
22
22
22

skipif mysql # not compatible
query I rowsort label-9328
SELECT - col1 / 63 - - 22 AS col0 FROM tab1
----
22
22
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9329
SELECT MAX( + + CAST( NULL AS DECIMAL ) ) * 82 + ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT MAX ( + + CAST ( NULL AS REAL ) ) * 82 + ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT SUM( - 24 ) FROM tab0 WHERE col1 < - 58 * col1 + col1 * 95
----
-72

skipif mysql # not compatible
query I rowsort label-9330
SELECT SUM ( - 24 ) FROM tab0 WHERE col1 < - 58 * col1 + col1 * 95
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT - COUNT( * ) * 97 FROM tab2 WHERE NULL >= col1
----
0

skipif mysql # not compatible
query I rowsort label-9331
SELECT - COUNT ( * ) * 97 FROM tab2 WHERE NULL >= col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL COUNT( * ) * + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL COUNT ( * ) * + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT 16 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9334
SELECT - 4 DIV - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-9334
SELECT - 4 / - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

query II rowsort
SELECT + 33 AS col1, 74 AS col2 FROM tab2
----
33
74
33
74
33
74

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 WHERE ( 64 ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 47 ) * + - col1 + col1 col0 FROM tab2
----
-2346
-3082
-3542

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col2 <= ( col1 * + 96 - + col1 )
----
97
1
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 32 + - col0 - ( 95 + - col1 ) ) <> NULL
----

query I rowsort
SELECT - 88 * + col0 + + col0 - col1 FROM tab2 AS cor0
----
-4053
-5645
-6592

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT 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-9341
SELECT SUM ( + - col2 ) col1 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT - 0 / + ( + + CAST( NULL AS SIGNED ) ) * - 14 + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT - 0 / + ( + + CAST ( NULL AS INTEGER ) ) * - 14 + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 1 * - ( col1 ) FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT ALL 71 * - col1 AS col2 FROM tab0 AS cor0
----
-1491
-5751
-71

query III rowsort
SELECT ALL * FROM tab1 WHERE + 14 / - - ( col2 ) >= col1
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE 24 + + - col1 IS NOT NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9348
SELECT col1 DIV + 8 AS col0 FROM tab0
----
0
10
2

skipif mysql # not compatible
query I rowsort label-9348
SELECT col1 / + 8 AS col0 FROM tab0
----
0
10
2

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT NULL >= - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 / + col1 <> ( + 80 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 13 * + + col0 + - col0 * col0 <= + 50 * + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT - MAX( col0 ) AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL AND col2 + - ( col0 ) > - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT - MAX ( col0 ) AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL AND col2 + - ( col0 ) > - 82
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > ( - col0 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT + COUNT( * ) * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9354
SELECT + COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT ALL - 14 + 26 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL - 14 + 26 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
15

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9357
SELECT DISTINCT + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - col1 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - col1 AS col0 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 + - ( + + 92 ) * - + col0 col2 FROM tab2 AS cor0
----
4244
5900
6912

query I rowsort
SELECT DISTINCT + col0 * - 34 FROM tab1 AS cor0
----
-1734
-2890
-3094

query III rowsort
SELECT * FROM tab1 cor0 WHERE + ( + col1 ) NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col2 * + + col2 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 * + + 81 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 84 + - col0 AS col0 FROM tab2 AS cor0
----
20
38
9

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE - col1 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL - MIN( ALL - col0 ) + - - 49 FROM tab2 cor0
----
124

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL - MIN ( ALL - col0 ) + - - 49 FROM tab2 cor0
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9366
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND CAST( NULL AS SIGNED ) + - 65 + - col1 * + col0 - col2
----

skipif mysql # not compatible
query III rowsort label-9366
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND CAST ( NULL AS INTEGER ) + - 65 + - col1 * + col0 - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 col2 FROM tab0
----
83
83
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9368
SELECT DISTINCT MIN( ALL - 52 ) AS col1 FROM tab0 WHERE ( - 72 ) NOT BETWEEN ( NULL ) AND ( - CAST( - col0 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9368
SELECT DISTINCT MIN ( ALL - 52 ) AS col1 FROM tab0 WHERE ( - 72 ) NOT BETWEEN ( NULL ) AND ( - CAST ( - col0 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9369
SELECT ALL CAST( + col2 AS SIGNED ) * - 78 AS col2 FROM tab1
----
-4602
-5304
-7488

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL CAST ( + col2 AS INTEGER ) * - 78 AS col2 FROM tab1
----
-4602
-5304
-7488

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL IN ( + col0 * - - 79 * col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT + MIN( 80 ) AS col1 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-9371
SELECT + MIN ( 80 ) AS col1 FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT 6 - MIN( DISTINCT 39 ) AS col1 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9372
SELECT 6 - MIN ( DISTINCT 39 ) AS col1 FROM tab0 AS cor0
----
-33

query II rowsort
SELECT - ( col2 ), + col1 AS col1 FROM tab2
----
-23
51
-40
77
-58
67

query I rowsort
SELECT + + 67 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT DISTINCT - 79 + + ( + col2 ) FROM tab0 WHERE - + col0 + - - col0 IS NOT NULL
----
-32
-69
20

query I rowsort
SELECT - + 79 AS col2 FROM tab0 cor0
----
-79
-79
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9377
SELECT + ( col0 ) * - 18 * + CAST( NULL AS SIGNED ) * + + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT + ( col0 ) * - 18 * + CAST ( NULL AS INTEGER ) * + + col2 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 AS col0, + col0 + - col1 FROM tab0 AS cor0 WHERE NOT ( NOT - 12 IS NULL )
----

query I rowsort
SELECT DISTINCT - 31 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, + ( - 83 ) FROM tab0
----
1
-83
21
-83
81
-83

query II rowsort
SELECT + 36 AS col2, + 83 FROM tab0
----
36
83
36
83
36
83

query II rowsort
SELECT DISTINCT + col2 AS col2, col1 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT ALL * FROM tab1 WHERE + 72 BETWEEN NULL AND + col2 - + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9384
SELECT 46 DIV + COUNT( * ) AS col1 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-9384
SELECT 46 / + COUNT ( * ) AS col1 FROM tab2
----
15

onlyif mysql # DIV for integer division: 
query II rowsort label-9385
SELECT DISTINCT - 87, + 23 DIV - + ( - - col2 ) AS col2 FROM tab2
----
-87
-1
-87
0

skipif mysql # not compatible
query II rowsort label-9385
SELECT DISTINCT - 87, + 23 / - + ( - - col2 ) AS col2 FROM tab2
----
-87
-1
-87
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9386
SELECT DISTINCT + COUNT( * ) + - - ( + + COUNT( * ) ) DIV 34 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT + COUNT ( * ) + - - ( + + COUNT ( * ) ) / 34 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - ( - - col0 ) + 81 AS col1 FROM tab0 AS cor0
----
-16
-6
66

query I rowsort
SELECT ALL + 37 + + col2 + + ( - - col2 ) * col0 AS col0 FROM tab0 AS cor0
----
789
917
9739

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT - + ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9389
SELECT - + ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9390
SELECT + ( - COUNT( * ) ) * - CAST( 91 AS SIGNED ) * + COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
7371

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9390
SELECT + ( - COUNT ( * ) ) * - CAST ( 91 AS INTEGER ) * + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
7371

query I rowsort
SELECT 38 * - + col2 * + 17 + col2 AS col0 FROM tab0 AS cor0
----
-30315
-63855
-6450

query II rowsort
SELECT DISTINCT + - col2 + + 1 AS col0, 51 - - col1 AS col1 FROM tab0 AS cor0
----
-46
132
-9
72
-98
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT - 75 - - - MIN( ALL - col0 ) AS col2 FROM tab0 cor0
----
22

skipif mysql # not compatible
query I rowsort label-9393
SELECT - 75 - - - MIN ( ALL - col0 ) AS col2 FROM tab0 cor0
----
22

query I rowsort
SELECT DISTINCT - col2 * - col0 + col1 * + 94 FROM tab0
----
2844
8319
9697

query I rowsort
SELECT DISTINCT + col1 - - - col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT - ( + 58 ) + col2 * - 95 FROM tab2
----
-2243
-3858
-5568

query I rowsort
SELECT DISTINCT col1 + + - ( - - ( + col0 ) ) + col2 * 1 AS col0 FROM tab1
----
-21
24
59

query II rowsort
SELECT col0 + - col2 + 92 AS col0, - ( col2 ) FROM tab2
----
109
-58
115
-23
116
-40

query I rowsort
SELECT - 38 + + 45 FROM tab0 WHERE + col1 BETWEEN - ( - - col0 ) AND + - col2
----

query I rowsort
SELECT 88 + + col2 AS col2 FROM tab1
----
147
156
184

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT COUNT( * ) + - 34 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-9401
SELECT COUNT ( * ) + - 34 FROM tab2
----
-31

query I rowsort
SELECT + 78 + - col2 FROM tab1
----
-18
10
19

query I rowsort
SELECT DISTINCT col1 - - - 13 FROM tab2
----
38
54
64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 BETWEEN NULL AND - + 72
----

query I rowsort
SELECT ALL + - col1 * + 3 * col1 + + - col0 AS col2 FROM tab1 cor0
----
-160
-639
-6718

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 - - col2 NOT IN ( + col0 * col2 * - ( - - col0 ) * col1 * 17 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 65 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + ( 93 ) AS col0 FROM tab2 cor0
----
-93

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT + ( - 98 ) IS NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 36 * + - col2 AS col1, + 33 * - col2 * + + col2 * + + col1 col0 FROM tab2 AS cor0
----
-1440
-4065600
-2088
-7437804
-828
-890307

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL + 25 FROM tab0 AS cor0 WHERE NOT + 28 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9417
SELECT - + col0 DIV 71 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9417
SELECT - + col0 / 71 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT - 41 * - - col1 * 98 AS col1 FROM tab0 AS cor0
----
-325458
-4018
-84378

query I rowsort
SELECT DISTINCT col0 + 14 AS col1 FROM tab0 AS cor0
----
101
111
29

onlyif mysql # aggregate syntax: 
query II rowsort label-9420
SELECT DISTINCT - - ( 97 ) AS col1, MAX( DISTINCT + col2 ) * + 35 FROM tab1 AS cor0
----
97
3360

skipif mysql # not compatible
query II rowsort label-9420
SELECT DISTINCT - - ( 97 ) AS col1, MAX ( DISTINCT + col2 ) * + 35 FROM tab1 AS cor0
----
97
3360

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - + col1
----

query I rowsort
SELECT - col2 * + col2 + - col2 FROM tab0
----
-110
-2256
-9900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9423
SELECT + col1 + CAST( NULL AS SIGNED ) / + col0 - col1 + - col1 - + col2 - - - 15 + + + 38 / + 98 + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT + col1 + CAST ( NULL AS INTEGER ) / + col0 - col1 + - col1 - + col2 - - - 15 + + + 38 / + 98 + + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT DISTINCT + MAX( - 53 ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT + MAX ( - 53 ) FROM tab0
----
-53

query I rowsort
SELECT DISTINCT - col1 * 35 AS col1 FROM tab2
----
-1785
-2345
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT DISTINCT MIN( - + ( - - 94 ) ) FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT MIN ( - + ( - - 94 ) ) FROM tab1
----
-94

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( NULL > - 60 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT ALL + 30 * MIN( - + 84 ) FROM tab0
----
-2520

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL + 30 * MIN ( - + 84 ) FROM tab0
----
-2520

onlyif mysql # DIV for integer division: 
query I rowsort label-9429
SELECT ALL - - col0 DIV + 74 + - 0 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL - - col0 / + 74 + - 0 FROM tab1 cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT SUM( ALL 33 ) * - - 4 * + - 66 + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-26133

skipif mysql # not compatible
query I rowsort label-9430
SELECT SUM ( ALL 33 ) * - - 4 * + - 66 + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-26133

query I rowsort
SELECT - col1 + + col1 + - col1 + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT - col1 + + 88 AS col2 FROM tab2 AS cor0
----
11
21
37

query II rowsort
SELECT DISTINCT + col2, + col2 - - - ( - 12 ) AS col1 FROM tab0 AS cor0
----
10
22
47
59
99
111

query I rowsort
SELECT ALL - 6 + - - 54 AS col1 FROM tab1 cor0
----
48
48
48

query II rowsort
SELECT col1 AS col0, col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9437
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( - ( col1 ) AS DECIMAL ) IN ( + col0 * - col2, + col1 )
----

skipif mysql # not compatible
query III rowsort label-9437
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( - ( col1 ) AS REAL ) IN ( + col0 * - col2, + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9438
SELECT - 2 DIV - 99 + - - col1 * - 64 * - 22 FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NULL IS NULL ) ) )
----
108416
71808
94336

skipif mysql # not compatible
query I rowsort label-9438
SELECT - 2 / - 99 + - - col1 * - 64 * - 22 FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NULL IS NULL ) ) )
----
108416
71808
94336

query I rowsort
SELECT DISTINCT + col0 * - col2 + - + ( - 79 ) FROM tab0
----
-626
-791
-9524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9440
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + COUNT( ALL + 31 ) + - ( COUNT( * ) ) AS col1 FROM tab2 WHERE - + 40 / - col2 <> - - col1 - + - col2 + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + COUNT ( ALL + 31 ) + - ( COUNT ( * ) ) AS col1 FROM tab2 WHERE - + 40 / - col2 <> - - col1 - + - col2 + + col1
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + - 22 AS col0 FROM tab1
----
-1034
-110
-308

query III rowsort
SELECT * FROM tab0 WHERE NOT + 4 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * + 37 FROM tab0
----
-3219
-3589
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL - MIN( + - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 40 * - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL - MIN ( + - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 40 * - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - - 92 AS col2 FROM tab2 AS cor0
----
92
92
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9446
SELECT DISTINCT - CAST( + COUNT( ALL + col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT - CAST ( + COUNT ( ALL + col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - - 19 AS col2 FROM tab0 AS cor0
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 * col0 * - 68 col2 FROM tab1 AS cor0
----
249696
416160
445536

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 16 IS NULL
----

query I rowsort
SELECT ALL 35 + + 0 AS col2 FROM tab1 AS cor0
----
35
35
35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 15 col1, - col1 + + 28 AS col2 FROM tab0
----
15
-53
15
27
15
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT DISTINCT - 25 + + COUNT( * ) col2 FROM tab0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9453
SELECT DISTINCT - 25 + + COUNT ( * ) col2 FROM tab0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT ALL - COUNT( ALL - 71 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL - COUNT ( ALL - 71 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT - 22 FROM tab2 WHERE + col0 + - + col2 BETWEEN NULL AND ( 79 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9456
SELECT - 51 DIV + 15 AS col2 FROM tab0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-9456
SELECT - 51 / + 15 AS col2 FROM tab0
----
-3
-3
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9457
SELECT DISTINCT MIN( - col0 ) DIV - + COUNT( * ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT MIN ( - col0 ) / - + COUNT ( * ) FROM tab1
----
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 78 / - 85 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9459
SELECT ALL + 7 DIV - + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL + 7 / - + col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE 5 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9460
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE 5 >= NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9461
SELECT ( col2 ) DIV col0 * + 46 + col1, + col0 + + 49 * ( + + col2 ) AS col0 FROM tab1
----
47
3423
5
2976
60
4755

skipif mysql # not compatible
query II rowsort label-9461
SELECT ( col2 ) / col0 * + 46 + col1, + col0 + + 49 * ( + + col2 ) AS col0 FROM tab1
----
47
3423
5
2976
60
4755

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 - + + ( 76 ), + 63 * + col1 * - - 9 col1 FROM tab1 WHERE + 32 - col0 + - + col1 + - col1 * col2 IS NOT NULL
----
-25
7938
15
26649
9
2835

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NULL AND NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 - + col0 - col0 * col0 FROM tab2 AS cor0
----
-2208
-4224
-5775

query I rowsort
SELECT + col2 - - 43 AS col0 FROM tab0 AS cor0
----
142
53
90

query II rowsort
SELECT ALL - col1 + + 96 AS col1, col2 AS col1 FROM tab2 AS cor0
----
19
40
29
58
45
23

query I rowsort
SELECT ALL - 92 * - - 44 AS col1 FROM tab2
----
-4048
-4048
-4048

query I rowsort
SELECT + 23 * + 94 AS col1 FROM tab0
----
2162
2162
2162

query II rowsort
SELECT col2 AS col0, 51 + + - col0 AS col0 FROM tab2
----
23
5
40
-13
58
-24

query I rowsort
SELECT + + 77 FROM tab1 WHERE NOT - 50 IS NULL
----
77
77
77

query II rowsort
SELECT + 11 AS col2, 81 + + col0 * - 7 FROM tab1
----
11
-276
11
-514
11
-556

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9472
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) - - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9472
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) - - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, - 47 * - 43 FROM tab2
----
51
2021
67
2021
77
2021

query I rowsort
SELECT DISTINCT - 30 * 58 FROM tab1 WHERE NULL NOT BETWEEN + + ( + 88 ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT - 51 * - COUNT( * ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-9476
SELECT - 51 * - COUNT ( * ) FROM tab2 AS cor0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9477
SELECT DISTINCT 96 + - CAST( NULL AS SIGNED ) * 45 + + ( + CAST( + - ( + col2 ) AS SIGNED ) ) * col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT 96 + - CAST ( NULL AS INTEGER ) * 45 + + ( + CAST ( + - ( + col2 ) AS INTEGER ) ) * col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 + col1 + - col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - 29 FROM tab2 AS cor0 WHERE ( - col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT SUM( ALL col2 ) + + COUNT( * ) FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-9480
SELECT SUM ( ALL col2 ) + + COUNT ( * ) FROM tab2 AS cor0
----
124

query I rowsort
SELECT DISTINCT 81 * + + col2 FROM tab0 WHERE NOT NULL NOT IN ( - col0 )
----

query I rowsort
SELECT ALL + col1 + + 2 AS col0 FROM tab0
----
23
3
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT DISTINCT CAST( + + col0 AS SIGNED ) col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9483
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT ALL ( + COUNT( * ) ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9484
SELECT ALL ( + COUNT ( * ) ) col0 FROM tab2
----
3

query I rowsort
SELECT ALL col1 * + 0 AS col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 + - col0 col2 FROM tab2
----
-21
-39
-50

query I rowsort
SELECT DISTINCT col1 + + + 3 AS col2 FROM tab0 AS cor0
----
24
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT COUNT( * ) * + COUNT( DISTINCT col0 ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9488
SELECT COUNT ( * ) * + COUNT ( DISTINCT col0 ) FROM tab2 cor0
----
9

query I rowsort
SELECT - 34 * + - col1 - + + col1 * col0 AS col0 FROM tab2 AS cor0
----
-2310
-2747
-612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9490
SELECT col1 - CAST( NULL AS SIGNED ) - - 97 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9490
SELECT col1 - CAST ( NULL AS INTEGER ) - - 97 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9491
SELECT DISTINCT - col2 DIV 61 + - col1 AS col2 FROM tab1
----
-15
-48
-5

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT - col2 / 61 + - col1 AS col2 FROM tab1
----
-15
-48
-5

query I rowsort
SELECT DISTINCT col2 * + 68 AS col0 FROM tab1
----
4012
4624
6528

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 <= + col0
----
15
81
47

onlyif mysql # DIV for integer division: 
query II rowsort label-9494
SELECT - 78 + 95 * + 9 * 95 col2, col0 - - col0 DIV + col2 FROM tab2 cor0
----
81147
48
81147
65
81147
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9494
SELECT - 78 + 95 * + 9 * 95 col2, col0 - - col0 / + col2 FROM tab2 cor0
----
81147
48
81147
65
81147
76

query I rowsort
SELECT - + 60 + + + 64 FROM tab0 AS cor0
----
4
4
4

query II rowsort
SELECT DISTINCT - col2 - + col1 + + col2 + col0 * + + 61 * - + 52 * col1 AS col0, col2 AS col1 FROM tab1 AS cor0
----
-1348105
59
-13566691
68
-2264822
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + 44 / col1 * col0 < col2 + 80 / - 31
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9498
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + CAST( NULL AS DECIMAL ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-9498
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + CAST ( NULL AS REAL ) AND + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 + - col1 + 59 * + col1 AND - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 73 col0 FROM tab0 AS cor0
----
73
73
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9501
SELECT ALL col0 DIV - 37 - - - 47 AS col1 FROM tab1 AS cor0
----
-48
-49
-49

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL col0 / - 37 - - - 47 AS col1 FROM tab1 AS cor0
----
-48
-49
-49

query I rowsort
SELECT ALL - - 36 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT DISTINCT + MIN( DISTINCT 77 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT + MIN ( DISTINCT 77 ) FROM tab2 cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT DISTINCT COUNT( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT COUNT ( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 23 * + col0 + + col0 FROM tab0
----
-1914
-2134
-330

query II rowsort
SELECT DISTINCT 77 AS col1, ( + col1 ) * - col1 FROM tab1
----
77
-196
77
-2209
77
-25

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 63 IS NOT NULL
----

query I rowsort
SELECT ALL + - col2 * ( + - col2 ) FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query I rowsort label-9509
SELECT DISTINCT col2 DIV + col0 + - - col2 + - col0 * - + col1 * - + col1 FROM tab2 AS cor0
----
-119623
-336617
-379416

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT col2 / + col0 + - - col2 + - col0 * - + col1 * - + col1 FROM tab2 AS cor0
----
-119623
-336617
-379416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9510
SELECT ALL + + CAST( + 57 AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) > + + col2
----

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL + + CAST ( + 57 AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) > + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9511
SELECT - COUNT( * ) * COUNT( * ) - + - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9511
SELECT - COUNT ( * ) * COUNT ( * ) - + - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 64 + + 12 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9513
SELECT ALL + 74 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL + 74 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 76 * col0 + + - col0 AS col0 FROM tab2
----
3450
4800
5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9515
SELECT - CAST( + + MIN( + col0 ) AS SIGNED ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9515
SELECT - CAST ( + + MIN ( + col0 ) AS INTEGER ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT DISTINCT - 91 * - COUNT( * ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT - 91 * - COUNT ( * ) FROM tab0
----
273

query I rowsort
SELECT 79 + - col0 AS col0 FROM tab1
----
-12
-6
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9518
SELECT - CAST( + - MIN( ALL - + col0 ) AS SIGNED ) + + 30 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-9518
SELECT - CAST ( + - MIN ( ALL - + col0 ) AS INTEGER ) + + 30 FROM tab2
----
-45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( - col2 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE ( col0 - + col0 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9521
SELECT ALL - COUNT( * ) DIV - ( - 63 ) FROM tab1 AS cor0 WHERE NOT - CAST( + col2 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL - COUNT ( * ) / - ( - 63 ) FROM tab1 AS cor0 WHERE NOT - CAST ( + col2 AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9522
SELECT ALL 15 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL 15 + CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT - MIN( ALL + 1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9523
SELECT - MIN ( ALL + 1 ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT ALL + + col2 - - 15 FROM tab1 WHERE NULL IS NULL
----
111
74
83

query I rowsort
SELECT ALL 80 - - 95 FROM tab2
----
175
175
175

query I rowsort
SELECT ALL - 52 - - ( + - col0 ) AS col0 FROM tab0
----
-139
-149
-67

query I rowsort
SELECT ALL - - 81 AS col0 FROM tab1 cor0
----
81
81
81

query I rowsort
SELECT DISTINCT AVG ( + 33 ) AS col1 FROM tab0 cor0 WHERE NOT - col0 NOT IN ( + - 89, - col1, + 51, + col0 )
----
NULL

query I rowsort
SELECT + 57 * - col1 AS col0 FROM tab2 AS cor0
----
-2907
-3819
-4389

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col0 FROM tab0 AS cor0 WHERE NOT ( col2 IS NULL )
----
13
13
13

onlyif mysql # DIV for integer division: 
query I rowsort label-9531
SELECT DISTINCT col0 DIV - - col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT col0 / - - col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT col1 * + 36 AS col0 FROM tab2 AS cor0
----
1836
2412
2772

query I rowsort
SELECT + col0 * col2 * - col0 + + - 24 AS col0 FROM tab0 AS cor0
----
-10599
-75714
-931515

query II rowsort
SELECT DISTINCT - 52, - 76 + - col0 AS col0 FROM tab1
----
-52
-127
-52
-161
-52
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT COUNT( * ) * + ( + MAX( DISTINCT + col2 ) ) AS col2 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-9535
SELECT COUNT ( * ) * + ( + MAX ( DISTINCT + col2 ) ) AS col2 FROM tab0
----
297

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + + col0 * - + col1 + - + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9537
SELECT ALL + 36, + COUNT( * ) AS col0 FROM tab2
----
36
3

skipif mysql # not compatible
query II rowsort label-9537
SELECT ALL + 36, + COUNT ( * ) AS col0 FROM tab2
----
36
3

query I rowsort
SELECT ALL - + 26 AS col1 FROM tab2 WHERE NULL = NULL
----

query I rowsort
SELECT ALL col2 * + - col2 AS col0 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT ALL + COUNT( col2 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9540
SELECT ALL + COUNT ( col2 ) col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT + 56 AS col1, 9 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT DISTINCT COUNT( DISTINCT + 73 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT COUNT ( DISTINCT + 73 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT ALL col2 * - - 15 * + col0 + - col0 * 81 AS col1 FROM tab1 cor0
----
68340
69309
85449

query I rowsort
SELECT DISTINCT + col2 * col1 + - + col2 FROM tab0 AS cor0
----
0
200
3760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9545
SELECT DISTINCT - COUNT( * ) + ( - CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9545
SELECT DISTINCT - COUNT ( * ) + ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9546
SELECT 34 + - + AVG ( ALL CAST( NULL AS DECIMAL ) ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT 34 + - + AVG ( ALL CAST ( NULL AS REAL ) ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 33 col1 FROM tab2 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT DISTINCT - 56 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT - 56 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-53

query I rowsort
SELECT - col2 * col1 + - + col0 FROM tab1 cor0
----
-1395
-3287
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT ALL + COUNT( * ) + - 68 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL + COUNT ( * ) + - 68 FROM tab1 AS cor0
----
-65

query I rowsort
SELECT col1 + - 40 AS col1 FROM tab2
----
11
27
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 * + - col2 * - 52 * 55 col0 FROM tab1
----
13836680
15947360
22513920

query I rowsort
SELECT ALL 49 * - col2 + + + col1 AS col0 FROM tab2
----
-1076
-1883
-2775

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT MAX( - col2 ) FROM tab0 WHERE + ( + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT MAX ( - col2 ) FROM tab0 WHERE + ( + col0 ) IS NULL
----
NULL

query I rowsort
SELECT col1 - ( - + col2 ) FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9556
SELECT - - 66 - + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9556
SELECT - - 66 - + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9557
SELECT ALL + col2 DIV - + col0 col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9557
SELECT ALL + col2 / - + col0 col0 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT + col0 * + 63 - + + col2 FROM tab2 AS cor0
----
2875
3992
4667

query II rowsort
SELECT - col2 + 63 + - 84 AS col1, col0 FROM tab2 AS cor0
----
-44
46
-61
64
-79
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9560
SELECT ALL COUNT( * ) / + + COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL COUNT ( * ) / + + COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - 74 + col2 + + 6 + + ( + col0 ) * - col1 FROM tab1
----
-4277
-434
-686

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 18 * - - 3 <> NULL
----

query I rowsort
SELECT DISTINCT 91 / col1 + ( + col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 5 * + 43 * + + col2 col2 FROM tab0
----
-151575
-187050
-2064645

query III rowsort
SELECT ALL * FROM tab2 WHERE + 7 * 77 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT ALL - COUNT( + 45 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL - COUNT ( + 45 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT ( - 86 ) FROM tab1
----
-86
-86
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9570
SELECT DISTINCT - 35 DIV + + col0 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT - 35 / + + col0 AS col2 FROM tab2
----
0

query II rowsort
SELECT - col2 AS col1, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9572
SELECT ALL 47 DIV col0 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL 47 / col0 AS col0 FROM tab2
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 + + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + col0 * - col1 = + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - 15 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT - ( + + 71 ) * 86 + - + MAX( - col0 ) col0 FROM tab0
----
-6091

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9578
SELECT - ( + + 71 ) * 86 + - + MAX ( - col0 ) col0 FROM tab0
----
-6091

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, col0 AS col1 FROM tab0
----
15
15
87
87
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, col2 col0 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9581
SELECT - - COUNT( * ), + 45 AS col2 FROM tab1 AS cor0
----
3
45

skipif mysql # not compatible
query II rowsort label-9581
SELECT - - COUNT ( * ), + 45 AS col2 FROM tab1 AS cor0
----
3
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9582
SELECT ALL - + ( - MIN( - CAST( NULL AS SIGNED ) ) ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE 21 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL - + ( - MIN ( - CAST ( NULL AS INTEGER ) ) ) * + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 WHERE 21 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 * col2 * + col2 + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 * col2 * + col2 + col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 36 AS col1 FROM tab2 AS cor0 WHERE col0 * + 14 BETWEEN col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9585
SELECT DISTINCT - 49 + - - col0 + + - 3 DIV col1 FROM tab2 AS cor0
----
-3
15
26

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT - 49 + - - col0 + + - 3 / col1 FROM tab2 AS cor0
----
-3
15
26

query I rowsort
SELECT DISTINCT - col2 + + 59 AS col2 FROM tab2 AS cor0
----
1
19
36

query I rowsort
SELECT DISTINCT - col2 * col1 + - col0 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT - col2 + - col2 + + 77 FROM tab2
----
-3
-39
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9589
SELECT + col0 + 79 DIV + 61 + + - col2 col1 FROM tab0
----
-1
-31
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9589
SELECT + col0 + 79 / + 61 + + - col2 col1 FROM tab0
----
-1
-31
78

query II rowsort
SELECT + 32 + + - 21 AS col2, + 86 AS col0 FROM tab0
----
11
86
11
86
11
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9591
SELECT ALL - col1 - + + col2, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-117
NULL
-125
NULL
-74
NULL

skipif mysql # not compatible
query II rowsort label-9591
SELECT ALL - col1 - + + col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-117
NULL
-125
NULL
-74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT DISTINCT + COUNT( - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9592
SELECT DISTINCT + COUNT ( - col0 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9593
SELECT * FROM tab2 WHERE + col1 * - CAST( NULL AS SIGNED ) / - col1 * 14 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9593
SELECT * FROM tab2 WHERE + col1 * - CAST ( NULL AS INTEGER ) / - col1 * 14 IS NOT NULL
----

query I rowsort
SELECT + 6 * + col0 + - 60 + col1 FROM tab1
----
260
455
533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT col0 * + + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT col0 * + + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 11 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 col2 FROM tab0 cor0
----
60
60
60

query I rowsort
SELECT - + col2 * - col1 + + - col2 FROM tab2 AS cor0
----
1150
3040
3828

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) <> ( NULL )
----

query I rowsort
SELECT - + 35 * - col0 FROM tab2 AS cor0
----
1610
2240
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT DISTINCT + - MIN( DISTINCT - - 79 ) * 56 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
13272

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT + - MIN ( DISTINCT - - 79 ) * 56 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
13272

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT - COUNT( * ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-9602
SELECT - COUNT ( * ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9603
SELECT DISTINCT + col0 DIV - CAST( - col2 AS SIGNED ) col0 FROM tab0
----
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9603
SELECT DISTINCT + col0 / - CAST ( - col2 AS INTEGER ) col0 FROM tab0
----
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 AS cor0 WHERE NOT col1 / - - col2 BETWEEN ( - col0 ) / - 80 AND - col0
----
-59
-68
-96

query I rowsort
SELECT + col1 * + 28 AS col0 FROM tab1 AS cor0
----
1316
140
392

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT DISTINCT - 15 * + - COUNT( * ) AS col0 FROM tab1 cor0
----
45

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT - 15 * + - COUNT ( * ) AS col0 FROM tab1 cor0
----
45

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9608
SELECT DISTINCT - 76 / - + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT - 76 / - + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 66 < + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9610
SELECT DISTINCT col2 DIV + + col2, + 68 AS col0 FROM tab0
----
1
68

skipif mysql # not compatible
query II rowsort label-9610
SELECT DISTINCT col2 / + + col2, + 68 AS col0 FROM tab0
----
1
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT MIN( DISTINCT col0 ) * - 84 FROM tab2
----
-3864

skipif mysql # not compatible
query I rowsort label-9611
SELECT MIN ( DISTINCT col0 ) * - 84 FROM tab2
----
-3864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT + col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9613
SELECT CAST( + 62 AS SIGNED ) + - 46 + + col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9613
SELECT CAST ( + 62 AS INTEGER ) + - 46 + + col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 58 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 col0 FROM tab0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT + COUNT( - + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9616
SELECT + COUNT ( - + col0 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9617
SELECT DISTINCT + + col1 + + col1 * 78 DIV col0 * - col1 FROM tab1 AS cor0
----
-15
-1833
-280

skipif mysql # not compatible
query I rowsort label-9617
SELECT DISTINCT + + col1 + + col1 * 78 / col0 * - col1 FROM tab1 AS cor0
----
-15
-1833
-280

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 BETWEEN col1 * - col1 AND + col0 + + col1
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT ( + + COUNT( - col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9619
SELECT ( + + COUNT ( - col1 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT SUM( - col2 ) AS col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9620
SELECT SUM ( - col2 ) AS col2 FROM tab2 cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT - ( - - COUNT( * ) ) FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9621
SELECT - ( - - COUNT ( * ) ) FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9622
SELECT ALL - MAX( - col1 ) DIV - COUNT( * ) + - - MIN( - col2 ) AS col1 FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL - MAX ( - col1 ) / - COUNT ( * ) + - - MIN ( - col2 ) AS col1 FROM tab1 AS cor0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9623
SELECT ALL - ( - 85 ) DIV - - COUNT( + col2 ) AS col1 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL - ( - 85 ) / - - COUNT ( + col2 ) AS col1 FROM tab0
----
28

query III rowsort
SELECT * FROM tab1 WHERE - + col1 NOT BETWEEN NULL AND + 67
----

query I rowsort
SELECT ALL col1 + + col0 * - 86 + + + col0 FROM tab0
----
-1194
-7374
-8244

query I rowsort
SELECT DISTINCT - - 8 + col0 FROM tab2 AS cor0
----
54
72
83

query I rowsort
SELECT DISTINCT + col0 + + col0 AS col0 FROM tab2 cor0
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9628
SELECT ALL - CAST( + + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * ( + col1 ) / 42 IS NULL
----

query I rowsort
SELECT + col1 + + 97 FROM tab2 AS cor0
----
148
164
174

query I rowsort
SELECT + - 6 + + col1 - + 26 FROM tab0 AS cor0
----
-11
-31
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9632
SELECT + COUNT( * ) * - COUNT( * ) + 97 AS col1, + SUM( + CAST( + 83 AS SIGNED ) ) FROM tab2 AS cor0
----
88
249

skipif mysql # not compatible
query II rowsort label-9632
SELECT + COUNT ( * ) * - COUNT ( * ) + 97 AS col1, + SUM ( + CAST ( + 83 AS INTEGER ) ) FROM tab2 AS cor0
----
88
249

query I rowsort
SELECT - + col1 + + 45 FROM tab1 AS cor0
----
-2
31
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9634
SELECT CAST( CAST( + col2 AS SIGNED ) AS SIGNED ) col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9634
SELECT CAST ( CAST ( + col2 AS INTEGER ) AS INTEGER ) col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9635
SELECT ALL - ( + 20 ), COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
-20
0

skipif mysql # not compatible
query II rowsort label-9635
SELECT ALL - ( + 20 ), COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
-20
0

query I rowsort
SELECT 10 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( - ( col2 ) ) - 68 FROM tab2
----
-108
-126
-91

query I rowsort
SELECT - - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * col0 - + col0 AND NULL
----

query I rowsort
SELECT 1 - - - 60 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL > col0 )
----

query I rowsort
SELECT DISTINCT - 70 AS col2 FROM tab2 cor0
----
-70

query I rowsort
SELECT col2 + ( col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 >= - col1 * - ( + col2 )
----
62
97

query I rowsort
SELECT DISTINCT - + 73 * + + 75 AS col1 FROM tab0 AS cor0
----
-5475

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 11 * + col1 + - - 51 / - col0 <> - - col1
----

query I rowsort
SELECT + + col2 * - - 81 * - ( col1 ) FROM tab0 AS cor0
----
-17010
-308367
-8019

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT ALL SUM( DISTINCT + 33 ) AS col1 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL SUM ( DISTINCT + 33 ) AS col1 FROM tab2
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 col1 FROM tab1 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 * - - 95 col0 FROM tab0
----
8265
8265
8265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9649
SELECT DISTINCT AVG ( ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT AVG ( ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9650
SELECT DISTINCT + 67 + + + COUNT( * ) DIV - - ( + MAX( DISTINCT - - col0 ) ) FROM tab0 cor0
----
67

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT + 67 + + + COUNT ( * ) / - - ( + MAX ( DISTINCT - - col0 ) ) FROM tab0 cor0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9651
SELECT col1 + - col2 DIV - ( + + col2 ) col2 FROM tab0 cor0
----
2
22
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9651
SELECT col1 + - col2 / - ( + + col2 ) col2 FROM tab0 cor0
----
2
22
82

query I rowsort
SELECT DISTINCT - col0 * - + col1 AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT ALL - MIN( + + 84 ) * - 32 + - + COUNT( * ) + + 99 FROM tab1 cor0
----
2784

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL - MIN ( + + 84 ) * - 32 + - + COUNT ( * ) + + 99 FROM tab1 cor0
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL + 63 - + + COUNT( * ) AS col2 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL + 63 - + + COUNT ( * ) AS col2 FROM tab1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT DISTINCT + SUM( ALL + 57 ) * 46 FROM tab2
----
7866

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT + SUM ( ALL + 57 ) * 46 FROM tab2
----
7866

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT ALL + + COUNT( * ) * + 46 AS col2 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL + + COUNT ( * ) * + 46 AS col2 FROM tab1 AS cor0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9657
SELECT ALL col1 * col0 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * + - col0 > col1
----

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL col1 * col0 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * + - col0 > col1
----

query I rowsort
SELECT ALL col1 + - - col0 AS col1 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT + + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NULL > + col0
----
0

skipif mysql # not compatible
query I rowsort label-9659
SELECT + + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NULL > + col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 BETWEEN - col2 - - 44 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( - col0 ) - - col1 col0 FROM tab2
----
-2065
-4019
-5558

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + col0 + - col2 = + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + AVG ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 61 NOT BETWEEN NULL AND col1
----
NULL

query I rowsort
SELECT ALL + col0 * + - col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT DISTINCT + - 55 + - COUNT( * ) + - 36 AS col2 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-9665
SELECT DISTINCT + - 55 + - COUNT ( * ) + - 36 AS col2 FROM tab1 AS cor0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9666
SELECT - - 95 AS col0, MIN( - ( CAST( NULL AS DECIMAL ) ) ) FROM tab0 cor0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-9666
SELECT - - 95 AS col0, MIN ( - ( CAST ( NULL AS REAL ) ) ) FROM tab0 cor0
----
95
NULL

query I rowsort
SELECT - col2 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( - col1 )
----

query I rowsort
SELECT ALL - col1 + + col0 + ( - 52 ) AS col2 FROM tab0 AS cor0
----
-118
14
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 col1 FROM tab1
----
59

query II rowsort
SELECT ALL - 76 * + 35, col1 * + 29 AS col2 FROM tab0
----
-2660
2349
-2660
29
-2660
609

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - ( 30 ) <> NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9672
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 83 col0 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT - 17 FROM tab2 cor0 WHERE NULL BETWEEN col0 AND 53
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9675
SELECT + - SUM( ALL + col2 ), + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-223
3

skipif mysql # not compatible
query II rowsort label-9675
SELECT + - SUM ( ALL + col2 ), + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-223
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 26 + - 98 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 26 + - 98 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9678
SELECT ALL + col2 DIV + - col0 * - 94 + col2 + - - 78 FROM tab2 AS cor0
----
101
118
136

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL + col2 / + - col0 * - 94 + col2 + - - 78 FROM tab2 AS cor0
----
101
118
136

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + 35 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9680
SELECT ALL + 1 * - MIN( ALL - col0 ) AS col0, - SUM( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
91
NULL

skipif mysql # not compatible
query II rowsort label-9680
SELECT ALL + 1 * - MIN ( ALL - col0 ) AS col0, - SUM ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
91
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9681
SELECT - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) * - CAST( NULL AS SIGNED ) + + + 31 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9681
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) * - CAST ( NULL AS INTEGER ) + + + 31 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9682
SELECT - 34, CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
-34
NULL
-34
NULL
-34
NULL

skipif mysql # not compatible
query II rowsort label-9682
SELECT - 34, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
-34
NULL
-34
NULL
-34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL - SUM( ALL - col1 ) FROM tab2 AS cor0 WHERE col0 < - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - SUM ( ALL - col1 ) FROM tab2 AS cor0 WHERE col0 < - + col1
----
NULL

query II rowsort
SELECT ALL + - col0 - + col0 - + col1 AS col1, col1 FROM tab1 cor0
----
-116
14
-175
5
-229
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9685
SELECT - 47 DIV - - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9685
SELECT - 47 / - - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 70 * - + 25 * + 59 AS col0 FROM tab1
----
-103250
-103250
-103250

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9687
SELECT DISTINCT * FROM tab1 WHERE - - col0 * + col0 + + col2 * CAST( NULL AS DECIMAL ) - + + col0 + col1 * + col2 / + - col2 < + + ( - 75 )
----

skipif mysql # not compatible
query III rowsort label-9687
SELECT DISTINCT * FROM tab1 WHERE - - col0 * + col0 + + col2 * CAST ( NULL AS REAL ) - + + col0 + col1 * + col2 / + - col2 < + + ( - 75 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9688
SELECT DISTINCT * FROM tab2 WHERE - - 9 * - 79 + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9688
SELECT DISTINCT * FROM tab2 WHERE - - 9 * - 79 + CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 5 ) * - + 35 col2 FROM tab2
----
175
175
175

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT DISTINCT 70 * + 10 * COUNT( * ) * COUNT( * ) AS col2 FROM tab1
----
6300

skipif mysql # not compatible
query I rowsort label-9690
SELECT DISTINCT 70 * + 10 * COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT ALL SUM( - + 74 ) AS col0 FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL SUM ( - + 74 ) AS col0 FROM tab0
----
-222

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT - 41 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9692
SELECT - 41 / - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT col0 * - col0 AS col0, + col0 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-2116
46
-4096
64
-5625
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT DISTINCT SUM( DISTINCT + 19 ) col2 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9694
SELECT DISTINCT SUM ( DISTINCT + 19 ) col2 FROM tab1 AS cor0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9695
SELECT DISTINCT - 49 + CAST( NULL AS SIGNED ) + - col2 - + - col2 + + col2 * + + col1 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT - 49 + CAST ( NULL AS INTEGER ) + - col2 - + - col2 + + col2 * + + col1 AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9696
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + col1, col1 + col1 * CAST( - 46 AS SIGNED ) * col1 * 2 )
----

skipif mysql # not compatible
query III rowsort label-9696
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + col1, col1 + col1 * CAST ( - 46 AS INTEGER ) * col1 * 2 )
----

query II rowsort
SELECT 47 AS col2, - 94 * 42 AS col1 FROM tab1
----
47
-3948
47
-3948
47
-3948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9698
SELECT DISTINCT + col1 + ( - col2 ) + - col1 + - + col1 / + - col2 * - + ( - col0 ) - col2 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT + col1 + ( - col2 ) + - col1 + - + col1 / + - col2 * - + ( - col0 ) - col2 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - - col1 col0, - 66 + 76 AS col2 FROM tab1
----
196
10
2209
10
25
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT 5 * - - SUM( - col0 ) col0 FROM tab0
----
-995

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9700
SELECT 5 * - - SUM ( - col0 ) col0 FROM tab0
----
-995

onlyif mysql # aggregate syntax: 
query II rowsort label-9701
SELECT COUNT( * ) AS col0, - 62 AS col2 FROM tab2
----
3
-62

skipif mysql # not compatible
query II rowsort label-9701
SELECT COUNT ( * ) AS col0, - 62 AS col2 FROM tab2
----
3
-62

query III rowsort
SELECT * FROM tab2 WHERE + - 78 <= - - 38 * - + ( + + 83 ) * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT + 55 + - COUNT( * ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-9703
SELECT + 55 + - COUNT ( * ) FROM tab0
----
52

query I rowsort
SELECT col2 + ( + col0 ) + col0 - col1 AS col2 FROM tab1
----
184
203
224

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT - MIN( DISTINCT - - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT - MIN ( DISTINCT - - col0 ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-9706
SELECT ALL + 36 AS col1, 5 + - SUM( DISTINCT + - 75 ) + - 81 AS col0 FROM tab0
----
36
-1

skipif mysql # not compatible
query II rowsort label-9706
SELECT ALL + 36 AS col1, 5 + - SUM ( DISTINCT + - 75 ) + - 81 AS col0 FROM tab0
----
36
-1

query I rowsort
SELECT + ( - col1 ) + + col1 + + 13 FROM tab1 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT + col0 * + col1 - + col2 * - col1 * - col2 AS col2 FROM tab2 AS cor0
----
-118272
-220363
-24633

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + - col0 < NULL
----

query I rowsort
SELECT - col2 * + + 34 * + col2 AS col1 FROM tab1
----
-118354
-157216
-313344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9711
SELECT ALL 63 * MAX( ALL - col1 ) * + COUNT( * ) * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + 21 + - + MIN( DISTINCT - + col0 ) - + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL 63 * MAX ( ALL - col1 ) * + COUNT ( * ) * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + 21 + - + MIN ( DISTINCT - + col0 ) - + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9712
SELECT DISTINCT col0 * - - CAST( NULL AS SIGNED ) + + col0 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9712
SELECT DISTINCT col0 * - - CAST ( NULL AS INTEGER ) + + col0 col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9713
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) < ( NULL )
----

query I rowsort
SELECT ALL + + 87 AS col2 FROM tab2 AS cor0 WHERE NOT ( + 57 ) IS NULL
----
87
87
87

query I rowsort
SELECT DISTINCT - col2 * - 97 FROM tab0 AS cor0
----
4559
9603
970

query I rowsort
SELECT ALL - + col1 * + col2 + + col2 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9717
SELECT ALL - 15 * 32 * CAST( NULL AS SIGNED ) AS col2, ( col0 ) FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-9717
SELECT ALL - 15 * 32 * CAST ( NULL AS INTEGER ) AS col2, ( col0 ) FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT col0 DIV - 43 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9718
SELECT col0 / - 43 FROM tab1
----
-1
-1
-2

query I rowsort
SELECT ALL - col0 * 31 FROM tab0
----
-2697
-3007
-465

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( NULL ) BETWEEN 27 AND + col0 )
----

query I rowsort
SELECT ALL - 61 * col1 + + + 49 FROM tab1 AS cor0
----
-256
-2818
-805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - 52 col0 FROM tab2 AS cor0
----
2392
3328
3900

query I rowsort
SELECT 12 FROM tab1 WHERE NOT col0 / + col2 IS NULL
----
12
12
12

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) > 95 - col1
----

query I rowsort
SELECT DISTINCT 31 * col0 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1581
2635
2821

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 * 3 ) = ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 87 * + ( + 77 * col1 ) ) <= ( NULL )
----

query I rowsort
SELECT ALL + 3 * - 37 FROM tab2
----
-111
-111
-111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 * 99 col2 FROM tab1
----
1386
1386
1386

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT + COUNT( DISTINCT - col2 ) FROM tab2 WHERE NOT - col1 + col1 * - col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9731
SELECT + COUNT ( DISTINCT - col2 ) FROM tab2 WHERE NOT - col1 + col1 * - col1 NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND ( + col0 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9733
SELECT - CAST( NULL AS SIGNED ) * col1 FROM tab2 WHERE NOT 8 / col2 IN ( + col0 * - col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9733
SELECT - CAST ( NULL AS INTEGER ) * col1 FROM tab2 WHERE NOT 8 / col2 IN ( + col0 * - col0 )
----
NULL
NULL
NULL

query I rowsort
SELECT 0 * - 69 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 37 * 79 FROM tab0
----
2923
2923
2923

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 BETWEEN - 0 AND col0
----
75
67
58

query I rowsort
SELECT ALL - 85 + col0 FROM tab1
----
-34
0
6

query I rowsort
SELECT ( 85 ) * - 44 AS col1 FROM tab0
----
-3740
-3740
-3740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9739
SELECT DISTINCT - COUNT( * ) * + CAST( - ( COUNT( ALL col2 ) ) * 92 AS SIGNED ) FROM tab1
----
828

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT - COUNT ( * ) * + CAST ( - ( COUNT ( ALL col2 ) ) * 92 AS INTEGER ) FROM tab1
----
828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT DISTINCT + 49 * + CAST( 52 AS SIGNED ) AS col1 FROM tab1
----
2548

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT + 49 * + CAST ( 52 AS INTEGER ) AS col1 FROM tab1
----
2548

query III rowsort
SELECT * FROM tab2 WHERE NOT 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9742
SELECT DISTINCT + CAST( + 51 AS SIGNED ) AS col0 FROM tab0 WHERE NOT col2 * 53 - CAST( NULL AS SIGNED ) IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT + CAST ( + 51 AS INTEGER ) AS col0 FROM tab0 WHERE NOT col2 * 53 - CAST ( NULL AS INTEGER ) IS NOT NULL
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL NOT IN ( - 1 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9743
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL NOT IN ( - 1 + col1 )
----
0

query I rowsort
SELECT DISTINCT - 41 + col0 * col1 FROM tab0 WHERE NOT NULL <> 74 * col0 + col2
----

query I rowsort
SELECT col2 * - col1 + ( - ( col2 ) + + col1 ) AS col2 FROM tab1
----
-1426
-3217
-349

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT - COUNT( 84 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9746
SELECT - COUNT ( 84 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT + col2 NOT BETWEEN - col0 + + col2 * - col1 AND + col2
----
3

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col2 NOT BETWEEN - col0 + + col2 * - col1 AND + col2
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 + 56 * + 91 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * + 47 BETWEEN ( + 32 + ( 75 ) * - col2 ) AND NULL
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT COUNT( * ) * 40 FROM tab0 cor0
----
120

skipif mysql # not compatible
query I rowsort label-9750
SELECT COUNT ( * ) * 40 FROM tab0 cor0
----
120

query I rowsort
SELECT - 70 - + col0 AS col2 FROM tab0 AS cor0
----
-157
-167
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-9752
SELECT + 75 DIV - col0 - - 74 FROM tab1 AS cor0
----
73
74
74

skipif mysql # not compatible
query I rowsort label-9752
SELECT + 75 / - col0 - - 74 FROM tab1 AS cor0
----
73
74
74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 61 AND col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 IN ( col2 )
----

query I rowsort
SELECT ALL + col1 + - ( + col1 + - col2 ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT DISTINCT - COUNT( * ) + 75 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT - COUNT ( * ) + 75 FROM tab0
----
72

query III rowsort
SELECT * FROM tab1 WHERE ( + 29 ) NOT IN ( 50 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9758
SELECT CAST( NULL AS SIGNED ) - + 14 col2 FROM tab0 WHERE + col0 + col0 >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9758
SELECT CAST ( NULL AS INTEGER ) - + 14 col2 FROM tab0 WHERE + col0 + col0 >= NULL
----

query I rowsort
SELECT 3 AS col2 FROM tab2 WHERE NULL BETWEEN + col0 AND NULL
----

query I rowsort
SELECT + col0 * 4 + - ( + col0 ) FROM tab1
----
153
255
273

query I rowsort
SELECT DISTINCT col1 - + col1 AS col2 FROM tab1 WHERE 39 BETWEEN ( col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT - MIN( DISTINCT 58 ) FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9762
SELECT - MIN ( DISTINCT 58 ) FROM tab1 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT + COUNT( - 69 ) * 49 FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-9763
SELECT + COUNT ( - 69 ) * 49 FROM tab2 AS cor0
----
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col0 FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT + 74 FROM tab1 AS cor0 WHERE NOT col1 * col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + col0 NOT IN ( - col1 - 58 * - col0 )
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( 25 + col0 ) AND ( + 33 * - 64 )
----

query I rowsort
SELECT DISTINCT col2 + - 81 * 39 AS col0 FROM tab2 WHERE col1 * - col2 <= col1
----
-3101
-3119
-3136

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( col1 * - 46 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT DISTINCT + MAX( - 75 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT + MAX ( - 75 ) FROM tab2
----
-75

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - 33 >= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9772
SELECT DISTINCT - + 89 * + - MAX( DISTINCT - col2 ) + 50 DIV + 87 FROM tab0 AS cor0
----
-890

skipif mysql # not compatible
query I rowsort label-9772
SELECT DISTINCT - + 89 * + - MAX ( DISTINCT - col2 ) + 50 / + 87 FROM tab0 AS cor0
----
-890

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9773
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * CAST( NULL AS SIGNED ) NOT BETWEEN - col1 + ( col2 ) AND col1
----

skipif mysql # not compatible
query III rowsort label-9773
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * CAST ( NULL AS INTEGER ) NOT BETWEEN - col1 + ( col2 ) AND col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9774
SELECT SUM( + 44 ) DIV - 7 + 11 * 63 AS col1 FROM tab1 WHERE + 83 DIV ( + col2 + + 73 ) < 57
----
675

skipif mysql # not compatible
query I rowsort label-9774
SELECT SUM ( + 44 ) / - 7 + 11 * 63 AS col1 FROM tab1 WHERE + 83 / ( + col2 + + 73 ) < 57
----
675

query I rowsort
SELECT col1 * - + 35 * - + col0 FROM tab1
----
14875
149695
24990

query I rowsort
SELECT ALL + ( + col0 ) + + col0 + - 79 * 32 FROM tab0 AS cor0
----
-2334
-2354
-2498

query II rowsort
SELECT 85 AS col1, 92 FROM tab2 AS cor0
----
85
92
85
92
85
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT - col0 FROM tab2 AS cor0 WHERE ( 19 ) = + CAST( NULL AS SIGNED ) + col2 * - 70
----

skipif mysql # not compatible
query I rowsort label-9778
SELECT - col0 FROM tab2 AS cor0 WHERE ( 19 ) = + CAST ( NULL AS INTEGER ) + col2 * - 70
----

query I rowsort
SELECT DISTINCT 4 FROM tab0 AS cor0 WHERE ( col0 / + 76 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - + col0 ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9781
SELECT ALL - col0 + CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL - col0 + CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 74 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - 48
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) NOT BETWEEN col1 AND ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 + + col2 AS col1 FROM tab1 cor0
----
21
54
82

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( - col2 )
----

query I rowsort
SELECT - + col2 * - - col1 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT ALL - COUNT( * ) - + - ( - COUNT( * ) ) - 7 + - 3 col2 FROM tab2
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9789
SELECT ALL - COUNT ( * ) - + - ( - COUNT ( * ) ) - 7 + - 3 col2 FROM tab2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-9790
SELECT ALL - col0 + + 52 + - col1 DIV + col1 AS col0 FROM tab0
----
-36
-46
36

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL - col0 + + 52 + - col1 / + col1 AS col0 FROM tab0
----
-36
-46
36

query I rowsort
SELECT - col0 + + 52 * + col0 AS col0 FROM tab1 WHERE ( + col0 ) * col0 + 20 IS NULL
----

query II rowsort
SELECT col1 + col1, + 96 * - - col0 + 45 AS col2 FROM tab2
----
102
4461
134
7245
154
6189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT DISTINCT col2 * + col0 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT col2 * + col0 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9794
SELECT + col0 + + - CAST( + col0 AS SIGNED ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9794
SELECT + col0 + + - CAST ( + col0 AS INTEGER ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - 13 + - - col1 * - col1 AS col1 FROM tab2
----
-2614
-4502
-5942

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 = ( + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + - 90 FROM tab2
----
-113
-130
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT MAX( 39 ) FROM tab2 cor0 WHERE 32 > col1 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT MAX ( 39 ) FROM tab2 cor0 WHERE 32 > col1 * + col1
----
NULL

query I rowsort
SELECT 87 AS col1 FROM tab0 cor0
----
87
87
87

query I rowsort
SELECT 55 * - ( col1 * + 59 ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9801
SELECT ALL - 91 + - col2 DIV - - 63 FROM tab1 AS cor0
----
-91
-92
-92

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL - 91 + - col2 / - - 63 FROM tab1 AS cor0
----
-91
-92
-92

query I rowsort
SELECT - 0 AS col2 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * - col0 + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 5 col2, - col2 * - col0 AS col0 FROM tab2
----
5
1058
5
2560
5
4350

query II rowsort
SELECT DISTINCT - 19, - col1 + - - col2 AS col0 FROM tab2 AS cor0
----
-19
-28
-19
-37
-19
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9806
SELECT ALL - - CAST( 64 AS SIGNED ) * COUNT( * ) AS col1 FROM tab1 cor0
----
192

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL - - CAST ( 64 AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1 cor0
----
192

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 89 * + 76 * col0 * - col0 + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 21 * - - col2 - - 77 AS col1 FROM tab1 AS cor0
----
1316
1505
2093

query II rowsort
SELECT 47, col1 FROM tab2 AS cor0
----
47
51
47
67
47
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9810
SELECT ( - col0 ) * - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9810
SELECT ( - col0 ) * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 / + col2 * 34 ) NOT IN ( 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( col0 ) AND + 67 * - col2 * + + col1
----
0

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( col0 ) AND + 67 * - col2 * + + col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9813
SELECT ALL + 4 AS col1, + 37 DIV + - col2 FROM tab2 AS cor0
----
4
-1
4
0
4
0

skipif mysql # not compatible
query II rowsort label-9813
SELECT ALL + 4 AS col1, + 37 / + - col2 FROM tab2 AS cor0
----
4
-1
4
0
4
0

query I rowsort
SELECT - 85 * + col2 AS col2 FROM tab2
----
-1955
-3400
-4930

query II rowsort
SELECT + 39, - col1 AS col1 FROM tab1
----
39
-14
39
-47
39
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 56 col1, 40 FROM tab2
----
56
40
56
40
56
40

query I rowsort
SELECT + col1 * + 92 AS col2 FROM tab0
----
1932
7452
92

query I rowsort
SELECT DISTINCT - 88 * - 24 FROM tab1
----
2112

query I rowsort
SELECT DISTINCT 1 * - - 11 FROM tab1
----
11

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 52 <= NULL
----

query II rowsort
SELECT ALL - 95 + - col0, - col1 - - col1 AS col0 FROM tab0 AS cor0
----
-110
0
-182
0
-192
0

query I rowsort
SELECT - 35 AS col0 FROM tab0 AS cor0 WHERE NOT - 69 IS NULL
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 48 col0, - ( - ( col2 ) ) col1 FROM tab1 AS cor0
----
-48
59
-48
68
-48
96

query I rowsort
SELECT ALL 22 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query II rowsort
SELECT ALL - - col1 * + + col2, + 43 AS col1 FROM tab1 AS cor0
----
1344
43
295
43
3196
43

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * - 27 IS NULL
----

query I rowsort
SELECT - - col1 + + 77 FROM tab1 AS cor0
----
124
82
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9828
SELECT - COUNT( * ) + - ( + + MAX( - ( CAST( NULL AS SIGNED ) ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT - COUNT ( * ) + - ( + + MAX ( - ( CAST ( NULL AS INTEGER ) ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9829
SELECT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT col0 + + - 33 * col1 AS col2 FROM tab2 AS cor0
----
-1637
-2136
-2477

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 0 <> ( - col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9832
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT col1 + - col0 * col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-2065
-4019
-5558

query I rowsort
SELECT ALL 83 * + + col0 + - + col2 * col0 FROM tab1
----
-663
1365
2040

query I rowsort
SELECT DISTINCT - col2 - + + col0 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT + + col0 FROM tab2 WHERE - col2 + - - 61 IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab1 WHERE NULL = ( - 90 - - 26 )
----

query I rowsort
SELECT DISTINCT col1 * - col1 * - col1 AS col0 FROM tab2
----
132651
300763
456533

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - + 61 AND NULL
----

query I rowsort
SELECT col1 * + - col1 - + col0 * - col2 * col1 - + ( - col0 ) + col1 AS col1 FROM tab2
----
191332
287103
51454

onlyif mysql # DIV for integer division: 
query I rowsort label-9841
SELECT ALL 25 DIV + - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL 25 / + - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col2 * + 38 AS col2 FROM tab0 AS cor0
----
1786
3762
380

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT - 32 - + SUM( - col2 ) FROM tab0 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-9843
SELECT - 32 - + SUM ( - col2 ) FROM tab0 AS cor0
----
124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 - 55 col0 FROM tab2 AS cor0
----
-20
-20
-20

query I rowsort
SELECT - 4 - 18 - + - ( + col2 ) FROM tab0 cor0
----
-12
25
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9846
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9847
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - col0 + + CAST( NULL AS SIGNED ) / - col1 * + + col2 IN ( + + col0 )
----

skipif mysql # not compatible
query III rowsort label-9847
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - col0 + + CAST ( NULL AS INTEGER ) / - col1 * + + col2 IN ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 66 + + col1 * - - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9848
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 66 + + col1 * - - col0 IS NULL
----
3

query I rowsort
SELECT DISTINCT - 75 AS col1 FROM tab1, tab1 AS cor0
----
-75

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL NOT BETWEEN ( 1 ) AND ( NULL )
----

query II rowsort
SELECT DISTINCT + col2 * - col2 AS col0, col2 FROM tab0
----
-100
10
-2209
47
-9801
99

query I rowsort
SELECT - - 92 AS col2 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT DISTINCT 51 * - - col1 FROM tab0 AS cor0
----
1071
4131
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT - COUNT( DISTINCT - - col1 ) / + + AVG ( - col0 ) - - + 86 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9854
SELECT - COUNT ( DISTINCT - - col1 ) / + + AVG ( - col0 ) - - + 86 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + + col2 ) col0 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 97 * + - 86 * + col0 * + 88 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - + col1 * - 30 / + + col2 - - ( - - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9859
SELECT + 3 DIV - COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9859
SELECT + 3 / - COUNT ( * ) FROM tab2
----
-1

query I rowsort
SELECT col2 * - 14 AS col2 FROM tab0
----
-1386
-140
-658

query II rowsort
SELECT + 76, col0 FROM tab2
----
76
46
76
64
76
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) col0 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 WHERE 30 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT + 36 + + - COUNT( * ) AS col2 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-9864
SELECT + 36 + + - COUNT ( * ) AS col2 FROM tab2
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, + 21 FROM tab1
----
-59
21
-68
21
-96
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT + MAX( + 70 ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
70

skipif mysql # not compatible
query I rowsort label-9866
SELECT + MAX ( + 70 ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9867
SELECT + 35 DIV - - 5 AS col1 FROM tab0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-9867
SELECT + 35 / - - 5 AS col1 FROM tab0
----
7
7
7

query III rowsort
SELECT * FROM tab0 WHERE + 35 + + col0 > - - col0 + + col2 + - col1 + - + col1 * + 33 + + 3 + + - ( + 86 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 - + col2 FROM tab0 AS cor0 WHERE ( + 45 * + - 81 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9870
SELECT DISTINCT - + col1 DIV 55 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT - + col1 / 55 FROM tab2 cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL col2 + - 36 AS col1 FROM tab0 AS cor0
----
-26
11
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT DISTINCT COUNT( * ) + - 13 + + 66 * + + 15 AS col0 FROM tab0 AS cor0
----
980

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT COUNT ( * ) + - 13 + + 66 * + + 15 AS col0 FROM tab0 AS cor0
----
980

query I rowsort
SELECT DISTINCT 2 - + + ( - 72 ) FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT DISTINCT COUNT( * ) * + COUNT( * ) - - 72 AS col2 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) - - 72 AS col2 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT DISTINCT ( + + MAX( ALL col1 ) ) - + + 43 + + + COUNT( - col0 ) AS col2 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-9877
SELECT DISTINCT ( + + MAX ( ALL col1 ) ) - + + 43 + + + COUNT ( - col0 ) AS col2 FROM tab0
----
41

query I rowsort
SELECT col1 + - - ( 31 ) AS col1 FROM tab0
----
112
32
52

query I rowsort
SELECT - 61 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 33 * - col2 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT + - MIN( 34 ) AS col1 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9881
SELECT + - MIN ( 34 ) AS col1 FROM tab0 AS cor0
----
-34

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9883
SELECT + col2, - CAST( NULL AS SIGNED ) + + ( - col0 ) FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-9883
SELECT + col2, - CAST ( NULL AS INTEGER ) + + ( - col0 ) FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 25 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 28 AS col0 FROM tab2 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-9886
SELECT ALL COUNT( * ) AS col2, COUNT( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9886
SELECT ALL COUNT ( * ) AS col2, COUNT ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT - 28 FROM tab1 cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT SUM( ALL + + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9888
SELECT SUM ( ALL + + col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9889
SELECT ALL + + col2 AS col1, + col1 * + - CAST( NULL AS SIGNED ) + + 45 * + col1 + col0 AS col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-9889
SELECT ALL + + col2 AS col1, + col1 * + - CAST ( NULL AS INTEGER ) + + 45 * + col1 + col0 AS col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9890
SELECT - CAST( NULL AS SIGNED ) + - 5 - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT - CAST ( NULL AS INTEGER ) + - 5 - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 13 + + col2 FROM tab2 cor0
----
10
27
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9892
SELECT DISTINCT - - col2, + col0, CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - 97 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9892
SELECT DISTINCT - - col2, + col0, CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - 97 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 80 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + + + col0 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - 33 FROM tab1
----
-1551
-165
-462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9896
SELECT - MIN( CAST( - - 91 AS SIGNED ) ) FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9896
SELECT - MIN ( CAST ( - - 91 AS INTEGER ) ) FROM tab2 AS cor0
----
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 33 + - 51 IS NULL
----

query I rowsort
SELECT DISTINCT + 68 + 94 - - col2 AS col2 FROM tab0 AS cor0
----
172
209
261

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT + MIN( - - 94 ) FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9899
SELECT + MIN ( - - 94 ) FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 / - 90 + + + col1 BETWEEN + col2 AND col2 * + col0
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query II rowsort label-9901
SELECT - + COUNT( * ), - 41 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-41

skipif mysql # not compatible
query II rowsort label-9901
SELECT - + COUNT ( * ), - 41 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT ALL MIN( + col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL MIN ( + col1 ) AS col0 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT + COUNT( * ) + COUNT( * ) + - COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9903
SELECT + COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT ( + - 45 ) + 23 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-22

query I rowsort
SELECT + col1 + - ( + 12 ) * + col1 FROM tab1 AS cor0
----
-154
-517
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT COUNT( DISTINCT + col1 ) * - COUNT( * ) + - + 7 + - 55 * + 69 FROM tab1 cor0
----
-3811

skipif mysql # not compatible
query I rowsort label-9906
SELECT COUNT ( DISTINCT + col1 ) * - COUNT ( * ) + - + 7 + - 55 * + 69 FROM tab1 cor0
----
-3811

query I rowsort
SELECT + + 74 * col2 + - 51 AS col0 FROM tab0 AS cor0
----
3427
689
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT DISTINCT - 68 + + + COUNT( * ) FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT - 68 + + + COUNT ( * ) FROM tab2 AS cor0
----
-65

query I rowsort
SELECT + 4 * + 4 * - col0 FROM tab0 AS cor0
----
-1392
-1552
-240

query I rowsort
SELECT DISTINCT col1 + + 22 AS col0 FROM tab0 AS cor0
----
103
23
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9911
SELECT ( - CAST( 82 AS SIGNED ) ) FROM tab1 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-9911
SELECT ( - CAST ( 82 AS INTEGER ) ) FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT DISTINCT 86 + - 40 + - - col0 FROM tab0
----
133
143
61

query I rowsort
SELECT ALL - col2 + + - ( - col0 ) FROM tab2
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-9914
SELECT DISTINCT - col1 - - col1 DIV + - col1 AS col1 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT - col1 - - col1 / + - col1 AS col1 FROM tab2
----
-52
-68
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-9915
SELECT + + COUNT( * ) + - - COUNT( ALL col2 ) col2, + 63 FROM tab2 WHERE NOT + + col1 + col2 IS NULL
----
6
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9915
SELECT + + COUNT ( * ) + - - COUNT ( ALL col2 ) col2, + 63 FROM tab2 WHERE NOT + + col1 + col2 IS NULL
----
6
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9916
SELECT DISTINCT col2 * - ( CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT col2 * - ( CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT COUNT( + + col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9917
SELECT COUNT ( + + col0 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT DISTINCT 42 AS col0, col1 + + col0 AS col2 FROM tab2
----
42
141
42
142
42
97

query I rowsort
SELECT AVG ( ALL - 45 ) FROM tab2 WHERE NOT ( - + 44 ) <= ( NULL ) AND 59 BETWEEN + 71 / - 21 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9920
SELECT DISTINCT + COUNT( * ) AS col1, ( - + 68 ) + + COUNT( * ) col2 FROM tab2
----
3
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9920
SELECT DISTINCT + COUNT ( * ) AS col1, ( - + 68 ) + + COUNT ( * ) col2 FROM tab2
----
3
-65

query I rowsort
SELECT - + col0 * 57 * + + col0 AS col2 FROM tab2 AS cor0
----
-120612
-233472
-320625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9922
SELECT DISTINCT - 27 AS col2, CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-9922
SELECT DISTINCT - 27 AS col2, CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT DISTINCT COUNT( * ) col0 FROM tab2 cor0 WHERE NOT + 49 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9923
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 cor0 WHERE NOT + 49 IS NULL
----
3

query I rowsort
SELECT - col1 * 40 FROM tab2
----
-2040
-2680
-3080

query III rowsort
SELECT * FROM tab2 WHERE NOT - 26 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col2 ) * - 47 * 28 col0 FROM tab0
----
130284
13160
61852

query I rowsort
SELECT 19 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT ALL CAST( NULL AS SIGNED ) + 62 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL CAST ( NULL AS INTEGER ) + 62 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 3 + + + col2 AS col1, - col2 * - 35 FROM tab2 AS cor0
----
20
805
37
1400
55
2030

query I rowsort
SELECT DISTINCT - ( + - 53 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = + col0 * + col1 * + 66 / + col1 + + ( - 3 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 + - col0 col1 FROM tab2
----
-21
-3
-32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL >= ( NULL ) )
----

query I rowsort
SELECT - 91 * + 53 AS col1 FROM tab0
----
-4823
-4823
-4823

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT + 64 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT + col2 AS col2, - col0 - 76 FROM tab1
----
59
-161
68
-167
96
-127

query II rowsort
SELECT DISTINCT + 11 AS col1, col2 FROM tab2
----
11
23
11
40
11
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9937
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT ALL - 27 + + ( + COUNT( * ) ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-9938
SELECT ALL - 27 + + ( + COUNT ( * ) ) FROM tab0
----
-24

query I rowsort
SELECT + col2 + 16 + col0 * + - col2 * - - col1 AS col1 FROM tab0 cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL - + 88 AS col1 FROM tab1 cor0
----
-88
-88
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9941
SELECT + 81 DIV + col1 + 61 FROM tab2 AS cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-9941
SELECT + 81 / + col1 + 61 FROM tab2 AS cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ( MIN( DISTINCT 62 ) ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-9942
SELECT ( MIN ( DISTINCT 62 ) ) FROM tab1 AS cor0
----
62

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= - 69
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9944
SELECT + col2 col2, - ( - + 7 ) * CAST( NULL AS SIGNED ) - + col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9944
SELECT + col2 col2, - ( - + 7 ) * CAST ( NULL AS INTEGER ) - + col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9945
SELECT ALL + 84 AS col0, CAST( NULL AS DECIMAL ) FROM tab2
----
84
NULL
84
NULL
84
NULL

skipif mysql # not compatible
query II rowsort label-9945
SELECT ALL + 84 AS col0, CAST ( NULL AS REAL ) FROM tab2
----
84
NULL
84
NULL
84
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, + 93 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT DISTINCT - COUNT( + - col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT - COUNT ( + - col1 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 56 * col2 * - col1 FROM tab1
----
-16520
-178976
-75264

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT COUNT( * ) * SUM( DISTINCT - col0 ) AS col1 FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-9949
SELECT COUNT ( * ) * SUM ( DISTINCT - col0 ) AS col1 FROM tab2
----
-555

query I rowsort
SELECT 4 * - col0 AS col1 FROM tab2
----
-184
-256
-300

query I rowsort
SELECT DISTINCT - col2 * + col2 + - 29 FROM tab0 AS cor0
----
-129
-2238
-9830

query I rowsort
SELECT - col1 * - col1 + - + ( + col2 ) + col2 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 91 >= + - 78
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9954
SELECT - col0 + + 58 DIV + col2 AS col2 FROM tab0 AS cor0
----
-14
-82
-97

skipif mysql # not compatible
query I rowsort label-9954
SELECT - col0 + + 58 / + col2 AS col2 FROM tab0 AS cor0
----
-14
-82
-97

query I rowsort
SELECT - + 73 + - ( 98 ) * - col2 FROM tab2 AS cor0
----
2181
3847
5611

query I rowsort
SELECT col0 + - 11 FROM tab2 AS cor0
----
35
53
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9957
SELECT ALL - CAST( + 98 AS SIGNED ) DIV - col0 + - - col2 * - + 92 AS col1 FROM tab1 AS cor0
----
-5427
-6255
-8831

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL - CAST ( + 98 AS INTEGER ) / - col0 + - - col2 * - + 92 AS col1 FROM tab1 AS cor0
----
-5427
-6255
-8831

query I rowsort
SELECT + 96 * - col0 + - col0 * - + 10 + - + 7 - + - col0 FROM tab0
----
-1282
-7402
-8252

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT col1 + + col1 + - col1 DIV - col2 FROM tab0
----
163
2
44

skipif mysql # not compatible
query I rowsort label-9959
SELECT col1 + + col1 + - col1 / - col2 FROM tab0
----
163
2
44

query I rowsort
SELECT ALL - col1 + 41 FROM tab2
----
-10
-26
-36

query III rowsort
SELECT * FROM tab2 WHERE + ( + + col0 ) * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 * + col1 AS col2, col1 FROM tab1
----
425
5
4277
47
714
14

query I rowsort
SELECT ALL - + col0 + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < - col2
----

query I rowsort
SELECT col2 + col0 AS col2 FROM tab2 AS cor0 WHERE + col0 / - - 8 <> - 58
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9965
SELECT ( - col1 ) / + col0 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT ( - col1 ) / + col0 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT ALL - 92 - COUNT( * ) FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL - 92 - COUNT ( * ) FROM tab0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL - COUNT( * ) - COUNT( * ) + COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL - COUNT ( * ) - COUNT ( * ) + COUNT ( * ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - col2 - 68 FROM tab1 cor0
----
-127
-136
-164

query I rowsort
SELECT DISTINCT 74 AS col1 FROM tab0 cor0 WHERE NOT NULL > + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT - col1 + CAST( + - col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 / - 32 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9970
SELECT - col1 + CAST ( + - col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 / - 32 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + col0 ) <= col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9972
SELECT ALL + 19 DIV COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL + 19 / COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT - 93 * col2 AS col2 FROM tab2 AS cor0
----
-2139
-3720
-5394

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT + COUNT( * ) * - 25 * + COUNT( * ) * MIN( 78 ) FROM tab0 AS cor0
----
-17550

skipif mysql # not compatible
query I rowsort label-9974
SELECT + COUNT ( * ) * - 25 * + COUNT ( * ) * MIN ( 78 ) FROM tab0 AS cor0
----
-17550

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT + 74 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 - + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT DISTINCT COUNT( + - col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT COUNT ( + - col1 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT - ( - 19 ) FROM tab0
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9979
SELECT DISTINCT + - col1 * + CAST( NULL AS SIGNED ) + + col2 * - col0, CAST( NULL AS DECIMAL ) * col2 + + col1 + + 5 AS col2 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9979
SELECT DISTINCT + - col1 * + CAST ( NULL AS INTEGER ) + + col2 * - col0, CAST ( NULL AS REAL ) * col2 + + col1 + + 5 AS col2 FROM tab2 AS cor0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9980
SELECT ALL 12 DIV 59 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL 12 / 59 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL ( - 67 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT DISTINCT 57 + - 97 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-40

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT BETWEEN + col1 * + col2 + + + 7 AND col0 * - - 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT DISTINCT - + 50 * - - MIN( DISTINCT + 98 ) FROM tab2 AS cor0
----
-4900

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT - + 50 * - - MIN ( DISTINCT + 98 ) FROM tab2 AS cor0
----
-4900

onlyif mysql # aggregate syntax: 
query II rowsort label-9985
SELECT DISTINCT - MAX( ALL + col2 ) AS col1, + 92 AS col0 FROM tab0 AS cor0 WHERE + col1 BETWEEN NULL AND - + col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-9985
SELECT DISTINCT - MAX ( ALL + col2 ) AS col1, + 92 AS col0 FROM tab0 AS cor0 WHERE + col1 BETWEEN NULL AND - + col0
----
NULL
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT ALL + - COUNT( * ) + - + 36 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL + - COUNT ( * ) + - + 36 FROM tab0 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ALL + COUNT( * ) + + - MAX( DISTINCT - - col1 ) AS col1 FROM tab2 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL + COUNT ( * ) + + - MAX ( DISTINCT - - col1 ) AS col1 FROM tab2 cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT DISTINCT SUM( - 29 ) FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT SUM ( - 29 ) FROM tab0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9989
SELECT col0 + CAST( NULL AS SIGNED ), col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-9989
SELECT col0 + CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 63 col1 FROM tab0
----
-48
24
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 WHERE NULL > - - 54 * - col0
----

query I rowsort
SELECT 88 + - - col1 - 43 FROM tab1
----
50
59
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 + - 64 * 24 + - - 94 col0 FROM tab2
----
-1375
-1375
-1375

query I rowsort
SELECT - col1 + + - col2 - - col2 + col0 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT ALL + 54 * COUNT( * ) FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL + 54 * COUNT ( * ) FROM tab0
----
162

query I rowsort
SELECT + ( + col2 ) * col2 + - ( + col0 ) + - 84 * + 37 * + - col0 FROM tab2 AS cor0
----
143451
200448
236389

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 84 * + + 35 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 84 * + + 35 IS NULL
----
-3

query I rowsort
SELECT ALL - 46 + - 62 AS col2 FROM tab1 AS cor0
----
-108
-108
-108

query I rowsort
SELECT DISTINCT + col0 + + - col0 + + col0 * col1 * + col0 * - + col1 * 8 AS col0 FROM tab0 AS cor0
----
-11809800
-26703432
-75272

