sqllogictest

Artifact [1359f1d4ec]
Login

Artifact 1359f1d4ec46b78728ca682d7346b8715b855501:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1
SELECT DISTINCT + + 93 * + - col2 + 48 * CAST( + + col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
-2655
-3060
-4320

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1
SELECT DISTINCT + + 93 * + - col2 + 48 * CAST ( + + col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
-2655
-3060
-4320

query I rowsort
SELECT - 83 + + col2 AS col2 FROM tab0 cor0
----
-36
-73
16

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4
SELECT - CAST( + + col2 AS SIGNED ) + 68 DIV + + 67 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-4
SELECT - CAST ( + + col2 AS INTEGER ) + 68 / + + 67 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE NOT ( ( col2 ) ) IS NULL
----
46
64
75

query II rowsort
SELECT + 53, + ( + 29 ) AS col1 FROM tab0 AS cor0
----
53
29
53
29
53
29

query II rowsort
SELECT ALL + col2 AS col1, + ( - + 48 ) FROM tab2 AS cor0
----
23
-48
40
-48
58
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT ALL - MAX( - 43 ) * - SUM( + col0 ) FROM tab0 AS cor0 WHERE NOT ( + 48 ) * - col2 * - col0 IS NULL
----
-8557

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL - MAX ( - 43 ) * - SUM ( + col0 ) FROM tab0 AS cor0 WHERE NOT ( + 48 ) * - col2 * - col0 IS NULL
----
-8557

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

query II rowsort
SELECT - + 91, + 56 AS col0 FROM tab1 AS cor0
----
-91
56
-91
56
-91
56

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT + MAX( ALL - 18 ) AS col1 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-11
SELECT + MAX ( ALL - 18 ) AS col1 FROM tab0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-12
SELECT col1 * + CAST( - + 59 AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL <= - + col1
----

skipif mysql # not compatible
query I rowsort label-12
SELECT col1 * + CAST ( - + 59 AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL <= - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-13
SELECT DISTINCT * FROM tab0 WHERE + 5 < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-13
SELECT DISTINCT * FROM tab0 WHERE + 5 < CAST ( NULL AS INTEGER )
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 98 <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-16
SELECT ( + col0 ) FROM tab0 WHERE NOT NULL <> - CAST( NULL AS SIGNED ) * - 76 + - col2
----

skipif mysql # not compatible
query I rowsort label-16
SELECT ( + col0 ) FROM tab0 WHERE NOT NULL <> - CAST ( NULL AS INTEGER ) * - 76 + - col2
----

query I rowsort
SELECT - col1 * - ( 75 ) AS col0 FROM tab0
----
1575
6075
75

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT DISTINCT - COUNT( * ) * 25 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-18
SELECT DISTINCT - COUNT ( * ) * 25 FROM tab0
----
-75

query I rowsort
SELECT + col0 * 58 FROM tab1
----
2958
4930
5278

query I rowsort
SELECT DISTINCT - - col1 * + col0 * + col0 FROM tab0 AS cor0
----
158949
18225
9409

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + + col1, - col1 col2 FROM tab1 AS cor0
----
425
-5
4277
-47
714
-14

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-24
SELECT col2 + CAST( - 57 AS SIGNED ) * - 37 FROM tab2
----
2132
2149
2167

skipif mysql # not compatible
query I rowsort label-24
SELECT col2 + CAST ( - 57 AS INTEGER ) * - 37 FROM tab2
----
2132
2149
2167

query I rowsort
SELECT col2 + 58 - - 21 * + + 9 FROM tab2
----
270
287
305

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT - col2 <> + + col1
----

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT DISTINCT 74 * + + COUNT( - 39 ) + - COUNT( * ) FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-29
SELECT DISTINCT 74 * + + COUNT ( - 39 ) + - COUNT ( * ) FROM tab0 AS cor0
----
219

query I rowsort
SELECT - col1 + + + col0 * + col1 AS col0 FROM tab2 AS cor0
----
2295
4851
4958

query I rowsort
SELECT + col2 + + ( + col2 ) + - 31 AS col2 FROM tab2 cor0
----
15
49
85

query I rowsort
SELECT + + 45 * + + col2 + - col2 FROM tab2 AS cor0
----
1012
1760
2552

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

query I rowsort
SELECT DISTINCT + 53 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-35
SELECT ALL - + 64 + + MAX( col0 ) AS col1 FROM tab0 WHERE NOT + CAST( + col1 AS SIGNED ) * - 97 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL - + 64 + + MAX ( col0 ) AS col1 FROM tab0 WHERE NOT + CAST ( + col1 AS INTEGER ) * - 97 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL - 35, + col1 AS col0 FROM tab0
----
-35
1
-35
21
-35
81

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT SUM( - 49 ) FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-37
SELECT SUM ( - 49 ) FROM tab0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT ( COUNT( * ) ) col2 FROM tab2
----
3

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

query I rowsort
SELECT ALL col2 + 59 - + col2 FROM tab0
----
59
59
59

query III rowsort
SELECT * FROM tab2 WHERE col0 - - + 60 * - + 13 >= + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT DISTINCT COUNT( * ) * + 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
846

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT COUNT ( * ) * + 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
846

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 41 col1 FROM tab2 AS cor0
----
-1640
-2378
-943

onlyif mysql # aggregate syntax: 
query II rowsort label-43
SELECT ALL ( MIN( - col0 ) ) AS col1, 42 * - 87 AS col0 FROM tab2
----
-75
-3654

skipif mysql # not compatible
query II rowsort label-43
SELECT ALL ( MIN ( - col0 ) ) AS col1, 42 * - 87 AS col0 FROM tab2
----
-75
-3654

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + col1 * + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT ALL MAX( ALL + col1 ) * SUM( - col1 ) * 88 AS col2 FROM tab0
----
-734184

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL MAX ( ALL + col1 ) * SUM ( - col1 ) * 88 AS col2 FROM tab0
----
-734184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + + col0 * + + 6 col0, col0 - + col0 AS col2 FROM tab0
----
-4230
0
-5220
0
-57618
0

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

skipif mysql # not compatible
query I rowsort label-49
SELECT - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0
----
-9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-51
SELECT ALL + 83 DIV + + 59 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL + 83 / + + 59 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - - 1 AS col0 FROM tab0 cor0
----
1

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

query I rowsort
SELECT + - ( 56 ) * + col2 + + 22 * col0 * 97 FROM tab0 AS cor0
----
185098
201454
29378

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT DISTINCT COUNT( * ) * - 14 * COUNT( * ) * MIN( - 22 ) FROM tab0
----
2772

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT COUNT ( * ) * - 14 * COUNT ( * ) * MIN ( - 22 ) FROM tab0
----
2772

query III rowsort
SELECT * FROM tab2 WHERE NOT + 20 * col1 + - 47 BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT DISTINCT MAX( - - col1 ) + 61 AS col2 FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT MAX ( - - col1 ) + 61 AS col2 FROM tab1 AS cor0
----
108

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-58
SELECT ALL - col0 * col0 * + 32 - - + CAST( - - col0 AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL - col0 * col0 * + 32 - - + CAST ( - - col0 AS REAL ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 26 * - 15 + - 38 FROM tab0 AS cor0
----
-428
-428
-428

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + + col2 = NULL
----

query I rowsort
SELECT - ( - + 14 ) + + col0 FROM tab1
----
105
65
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - + 78 * ( + col1 ) + col2 col0 FROM tab0
----
-1638
-6318
-78

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

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

query I rowsort
SELECT ALL + 27 - - 0 AS col1 FROM tab2 WHERE NOT col2 * - 45 + - ( col1 ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-65
SELECT + col1 + + ( 2 ) DIV + col2 * - - col0 * + 9 col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-65
SELECT + col1 + + ( 2 ) / + col2 * - - col0 * + 9 col0 FROM tab0
----
1
21
81

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

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

query I rowsort
SELECT DISTINCT 72 + - col0 AS col2 FROM tab1
----
-13
-19
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, - 95 + + + 11 col1 FROM tab1
----
-14
-84
-47
-84
-5
-84

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 / - + col1 * col0 * col2 > NULL
----

query I rowsort
SELECT ALL - + 31 + + - col2 AS col1 FROM tab2 cor0
----
-54
-71
-89

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

query I rowsort
SELECT DISTINCT + col0 + + - 83 FROM tab0 AS cor0
----
-68
14
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 80 * col0 col2 FROM tab0 cor0
----
-1185
-6873
-7663

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT + 58 - - ( - + COUNT( * ) ) FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-75
SELECT + 58 - - ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
55

query I rowsort
SELECT - 62 - + + 99 AS col1 FROM tab0 AS cor0
----
-161
-161
-161

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT + 88 * + + 22 FROM tab1
----
1936

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT DISTINCT + - MAX( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT + - MAX ( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
15

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col1 col2 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - - col0 * - col0 * - ( col2 ) AS col1 FROM tab0 cor0
----
10575
75690
931491

query I rowsort
SELECT DISTINCT 67 FROM tab0 cor0
----
67

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-89
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col0 AS col2, - 49 AS col2 FROM tab1
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-89
SELECT DISTINCT CAST ( NULL AS REAL ) * - col0 AS col2, - 49 AS col2 FROM tab1
----
NULL
-49

query I rowsort
SELECT DISTINCT - col1 * + 43 FROM tab1
----
-2021
-215
-602

query II rowsort
SELECT 84 * - + 97 AS col1, + col2 FROM tab1
----
-8148
59
-8148
68
-8148
96

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

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

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

query II rowsort
SELECT - col0 AS col1, + 76 + + + 42 / - col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

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

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

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

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

query II rowsort
SELECT DISTINCT + 2 + - + col1 * - col1 AS col0, col0 FROM tab0 AS cor0
----
3
97
443
87
6563
15

query II rowsort
SELECT + col2 * + col2 + + 59 AS col2, + 53 + - - ( + + col2 ) AS col0 FROM tab1 AS cor0
----
3540
112
4683
121
9275
149

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

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT DISTINCT - SUM( 72 ) FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT - SUM ( 72 ) FROM tab0 AS cor0
----
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-101
SELECT ALL + - ( col1 ) DIV + ( + col2 ) - - 22 AS col0 FROM tab2 AS cor0
----
20
21
21

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL + - ( col1 ) / + ( + col2 ) - - 22 AS col0 FROM tab2 AS cor0
----
20
21
21

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

query I rowsort
SELECT col2 * col0 / + + 75 FROM tab1 WHERE - col1 * + - col2 IN ( + 10 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT + COUNT( * ) - - + 71 AS col2 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-105
SELECT + COUNT ( * ) - - + 71 AS col2 FROM tab0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT 1 + + SUM( DISTINCT - 4 ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-106
SELECT 1 + + SUM ( DISTINCT - 4 ) col1 FROM tab0
----
-3

query I rowsort
SELECT + col1 * - 82 + 99 + - col1 AS col2 FROM tab2
----
-4134
-5462
-6292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 34 / col0 + 41 col0, col0 * col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT - + 16 + + 21 FROM tab2 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT SUM( + 68 ) col1 FROM tab0 cor0
----
204

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

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT MIN( - col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-111
SELECT MIN ( - col1 ) AS col0 FROM tab1
----
-47

query I rowsort
SELECT col2 * + col0 * - 16 FROM tab2
----
-16928
-40960
-69600

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-114
SELECT DISTINCT - 54 / 75 FROM tab1 AS cor0 WHERE NOT NULL <> ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT - 54 / 75 FROM tab1 AS cor0 WHERE NOT NULL <> ( + CAST ( NULL AS INTEGER ) )
----

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

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

query III rowsort
SELECT col0 AS col2, + col0 * - - col2 - col1, col2 AS col0 FROM tab1
----
9 values hashing to d0e150491cae328fe6bbc76380b65cf6

query I rowsort
SELECT ALL col1 * + + 95 FROM tab1
----
1330
4465
475

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-118
SELECT + col1, - 27 + CAST( + 77 AS SIGNED ) FROM tab0
----
1
50
21
50
81
50

skipif mysql # not compatible
query II rowsort label-118
SELECT + col1, - 27 + CAST ( + 77 AS INTEGER ) FROM tab0
----
1
50
21
50
81
50

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

query I rowsort
SELECT 15 + - - col1 * - col2 AS col2 FROM tab2
----
-1158
-3065
-3871

query II rowsort
SELECT DISTINCT + col0 AS col2, col2 + + 76 * col2 + + + col0 AS col0 FROM tab1
----
51
7443
85
4628
91
5327

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

query I rowsort
SELECT ALL col1 + + - col1 - - - 40 * + - col0 + 34 FROM tab2 AS cor0
----
1874
2594
3034

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-126
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT - + 83 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT DISTINCT - 89 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-89

query III rowsort
SELECT ALL * FROM tab2 WHERE + 71 BETWEEN NULL AND + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IS NULL OR NOT NULL IS NULL
----

query I rowsort
SELECT col0 + - col2 * - 12 FROM tab2 AS cor0
----
322
544
771

query I rowsort
SELECT DISTINCT + col0 + + - col0 - + col1 * + - 34 + col0 FROM tab0 AS cor0
----
131
2769
801

query I rowsort
SELECT DISTINCT + col1 * 48 + col0 AS col1 FROM tab0 cor0
----
1095
145
3903

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT + SUM( DISTINCT - 2 ) + - MIN( ALL 46 ) AS col0 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-134
SELECT + SUM ( DISTINCT - 2 ) + - MIN ( ALL 46 ) AS col0 FROM tab2 AS cor0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-135
SELECT - SUM( - CAST( + col1 AS SIGNED ) ) + - MIN( + + col2 ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-135
SELECT - SUM ( - CAST ( + col1 AS INTEGER ) ) + - MIN ( + + col2 ) FROM tab1 AS cor0
----
7

query I rowsort
SELECT DISTINCT - col0 FROM tab1 cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT - 73 + - 93 FROM tab2 AS cor0
----
-166
-166
-166

onlyif mysql # DIV for integer division: 
query I rowsort label-138
SELECT ALL col1 DIV - - col1 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL col1 / - - col1 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-139
SELECT CAST( - col1 AS SIGNED ) + 76 AS col2 FROM tab1 AS cor0
----
29
62
71

skipif mysql # not compatible
query I rowsort label-139
SELECT CAST ( - col1 AS INTEGER ) + 76 AS col2 FROM tab1 AS cor0
----
29
62
71

query I rowsort
SELECT col2 * + col1 + - + col0 * - - col2 FROM tab0
----
-660
-9504
3102

query I rowsort
SELECT ALL - 91 * + + col0 - + - 44 AS col2 FROM tab0
----
-1321
-7873
-8783

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

query II rowsort
SELECT ALL - + col0, 25 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-147
SELECT - + 41 AS col1, + SUM( 4 ) AS col2 FROM tab2 AS cor0
----
-41
12

skipif mysql # not compatible
query II rowsort label-147
SELECT - + 41 AS col1, + SUM ( 4 ) AS col2 FROM tab2 AS cor0
----
-41
12

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

onlyif mysql # DIV for integer division: 
query II rowsort label-149
SELECT ALL - + col1 AS col2, - col2 DIV - col1 * - + ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-149
SELECT ALL - + col1 AS col2, - col2 / - col1 * - + ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-152
SELECT DISTINCT CAST ( - 26 AS INTEGER ) col0 FROM tab2 AS cor0
----
-26

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

skipif mysql # not compatible
query I rowsort label-153
SELECT 36 * + + COUNT ( * ) FROM tab2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL + COUNT( * ) * 19 AS col2 FROM tab1, tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL + COUNT ( * ) * 19 AS col2 FROM tab1, tab1 AS cor0
----
171

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

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

query I rowsort
SELECT DISTINCT col2 + + + ( - - col1 ) * 30 AS col2 FROM tab0 AS cor0
----
129
2477
640

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

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

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

skipif mysql # not compatible
query I rowsort label-158
SELECT - MAX ( - - 72 ) AS col1 FROM tab2 WHERE + col0 IS NOT NULL
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-159
SELECT CAST( NULL AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-159
SELECT CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

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

query I rowsort
SELECT + 39 FROM tab0 AS cor0 WHERE - 59 BETWEEN + 2 AND + col1
----

query I rowsort
SELECT DISTINCT - col1 + - col1 * + 20 AS col1 FROM tab1 cor0
----
-105
-294
-987

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-164
SELECT ( - + COUNT ( * ) ) col2 FROM tab2 AS cor0 WHERE ( - col1 ) + 23 IS NULL
----
0

query I rowsort
SELECT DISTINCT 20 * col2 - - col2 FROM tab1
----
1239
1428
2016

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

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

query I rowsort
SELECT + 55 + + 76 FROM tab1
----
131
131
131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-168
SELECT ALL - col1 * + 81, - col0 + + - ( + CAST( 7 AS SIGNED ) ) - 71 + - col0 AS col0 FROM tab2
----
-4131
-170
-5427
-228
-6237
-206

skipif mysql # not compatible
query II rowsort label-168
SELECT ALL - col1 * + 81, - col0 + + - ( + CAST ( 7 AS INTEGER ) ) - 71 + - col0 AS col0 FROM tab2
----
-4131
-170
-5427
-228
-6237
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT DISTINCT - 54 * - COUNT( + 8 ) AS col2 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-169
SELECT DISTINCT - 54 * - COUNT ( + 8 ) AS col2 FROM tab1
----
162

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-172
SELECT ALL + - MIN( + col0 ) DIV + SUM( + + col0 ) + + SUM( DISTINCT - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL + - MIN ( + col0 ) / + SUM ( + + col0 ) + + SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT DISTINCT - 82 * - ( + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
738

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT - 82 * - ( + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
738

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT ALL COUNT( * ) * - + 98 + - 42 FROM tab1, tab2 AS cor0
----
-924

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL COUNT ( * ) * - + 98 + - 42 FROM tab1, tab2 AS cor0
----
-924

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-177
SELECT ALL + col1 * 67 DIV 98 * + + 62 + - 92 - 84 * + 91 FROM tab1 AS cor0
----
-5752
-7178
-7550

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL + col1 * 67 / 98 * + + 62 + - 92 - 84 * + 91 FROM tab1 AS cor0
----
-5752
-7178
-7550

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-178
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

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

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

query I rowsort
SELECT - - 76 * - + 29 FROM tab0 cor0
----
-2204
-2204
-2204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-181
SELECT - CAST( NULL AS SIGNED ) / - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-181
SELECT - CAST ( NULL AS INTEGER ) / - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-182
SELECT + 27 * CAST( + - ( - 70 ) AS SIGNED ), - col2 col2 FROM tab0
----
1890
-10
1890
-47
1890
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-182
SELECT + 27 * CAST ( + - ( - 70 ) AS INTEGER ), - col2 col2 FROM tab0
----
1890
-10
1890
-47
1890
-99

query I rowsort
SELECT + 20 * + - col1 * + + col1 + + col2 FROM tab1
----
-3824
-441
-44112

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT + MAX( + col0 ) + + 79 FROM tab2
----
154

skipif mysql # not compatible
query I rowsort label-184
SELECT + MAX ( + col0 ) + + 79 FROM tab2
----
154

query I rowsort
SELECT col0 * - - col2 + + 38 + - col0 * - col0 AS col1 FROM tab1
----
12278
14507
7535

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > - 10
----

query I rowsort
SELECT + 26 + col0 FROM tab2
----
101
72
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 col2 FROM tab0 WHERE NULL = - 2
----

query I rowsort
SELECT ALL - col0 + + 88 AS col2 FROM tab0
----
-9
1
73

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT - + SUM( ALL + col2 ) * + - 85 AS col2 FROM tab2 AS cor0
----
10285

skipif mysql # not compatible
query I rowsort label-190
SELECT - + SUM ( ALL + col2 ) * + - 85 AS col2 FROM tab2 AS cor0
----
10285

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT col1 DIV 49 * + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-191
SELECT col1 / 49 * + col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-192
SELECT 43 - + + COUNT( * ) DIV MIN( ALL - 87 ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-192
SELECT 43 - + + COUNT ( * ) / MIN ( ALL - 87 ) FROM tab0
----
43

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE 87 * - 51 IS NOT NULL
----
-46
-64
-75

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

query II rowsort
SELECT DISTINCT + col2 + + + col0 + col2 AS col0, col1 FROM tab0 cor0
----
107
21
109
81
295
1

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT ALL 28 - SUM( DISTINCT - col2 ) FROM tab1 AS cor0
----
251

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL 28 - SUM ( DISTINCT - col2 ) FROM tab1 AS cor0
----
251

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

query I rowsort
SELECT - col0 * + + col2 * - col2 FROM tab0 AS cor0
----
33135
8700
950697

query I rowsort
SELECT ALL 53 * - col0 AS col2 FROM tab2
----
-2438
-3392
-3975

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT ALL - MAX( + + 92 ) AS col1 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL - MAX ( + + 92 ) AS col1 FROM tab2
----
-92

query I rowsort
SELECT ALL ( 51 ) * + col1 + + col2 AS col0 FROM tab0
----
1081
150
4178

query I rowsort
SELECT ALL + 94 * + + col0 AS col0 FROM tab0
----
1410
8178
9118

query I rowsort
SELECT ALL - col2 * - col1 * - col1 AS col1 FROM tab2
----
-237160
-260362
-59823

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-206
SELECT + - COUNT( 24 ) DIV + COUNT( * ) + + - 2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-206
SELECT + - COUNT ( 24 ) / + COUNT ( * ) + + - 2 FROM tab0 AS cor0
----
-3

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

query II rowsort
SELECT + col1, col0 * - col0 * - 45 FROM tab2 AS cor0
----
51
95220
67
253125
77
184320

query I rowsort
SELECT ALL 17 * - - 69 FROM tab0
----
1173
1173
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT + + MIN( ALL + 66 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
66

skipif mysql # not compatible
query I rowsort label-210
SELECT + + MIN ( ALL + 66 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
66

query I rowsort
SELECT + - col1 * - 51 + - col2 AS col1 FROM tab0 AS cor0
----
-48
1061
4084

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

skipif mysql # not compatible
query I rowsort label-212
SELECT 75 + - SUM ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT ALL 24 + COUNT( * ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-213
SELECT ALL 24 + COUNT ( * ) FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-214
SELECT + + COUNT( ALL - col0 ) AS col1, 15 AS col2 FROM tab0 AS cor0
----
3
15

skipif mysql # not compatible
query II rowsort label-214
SELECT + + COUNT ( ALL - col0 ) AS col1, 15 AS col2 FROM tab0 AS cor0
----
3
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT - MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-216
SELECT - MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT DISTINCT - 88 * - COUNT( * ) AS col1 FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-218
SELECT DISTINCT - 88 * - COUNT ( * ) AS col1 FROM tab1
----
264

onlyif mysql # DIV for integer division: 
query II rowsort label-219
SELECT col1 AS col2, ( - 6 ) DIV + - col1 FROM tab0
----
1
6
21
0
81
0

skipif mysql # not compatible
query II rowsort label-219
SELECT col1 AS col2, ( - 6 ) / + - col1 FROM tab0
----
1
6
21
0
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT DISTINCT SUM( - col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT SUM ( - col2 ) AS col1 FROM tab2
----
-121

query I rowsort
SELECT DISTINCT 5 + + col2 AS col1 FROM tab1
----
101
64
73

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

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

query I rowsort
SELECT DISTINCT + 78 + + - col0 FROM tab0
----
-19
-9
63

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT + COUNT( * ) + 90 AS col1 FROM tab0 cor0
----
93

skipif mysql # not compatible
query I rowsort label-224
SELECT + COUNT ( * ) + 90 AS col1 FROM tab0 cor0
----
93

query I rowsort
SELECT - 90 + - col1 AS col2 FROM tab2 AS cor0
----
-141
-157
-167

query I rowsort
SELECT DISTINCT + + ( - + ( - + 50 ) ) + ( + 87 ) FROM tab0 AS cor0
----
137

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

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

query I rowsort
SELECT - 68 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT - 6 * col0 FROM tab2 AS cor0
----
-276
-384
-450

query I rowsort
SELECT ALL + - col0 * 45 FROM tab2 cor0 WHERE NOT + col1 * - col1 > + col2
----
-2070
-2880
-3375

query I rowsort
SELECT DISTINCT - ( - 47 ) + + 82 AS col2 FROM tab0 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-232
SELECT - COUNT( * ) AS col0, ( + + SUM( DISTINCT + + col1 ) ) + 6 FROM tab0 AS cor0 WHERE NOT col0 * - + col1 IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-232
SELECT - COUNT ( * ) AS col0, ( + + SUM ( DISTINCT + + col1 ) ) + 6 FROM tab0 AS cor0 WHERE NOT col0 * - + col1 IS NOT NULL
----
0
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 * - 13 col2 FROM tab1 AS cor0
----
2548
28717
325

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL <> 47
----

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

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

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + 82 + + col0 AND NULL
----

query II rowsort
SELECT ALL col1, - col0 * - col1 * - ( + 19 ) AS col1 FROM tab0
----
1
-1843
21
-34713
81
-23085

query I rowsort
SELECT col1 * - + col0 * 15 * + col2 FROM tab0
----
-144045
-274050
-856575

query I rowsort
SELECT - + col1 FROM tab0 WHERE NOT - + 98 - - - ( + - col2 ) >= - col2
----
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT COUNT( * ) * 25 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-241
SELECT COUNT ( * ) * 25 FROM tab1
----
75

query I rowsort
SELECT ALL - 61 * + col2 FROM tab2
----
-1403
-2440
-3538

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT - MIN( col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-243
SELECT - MIN ( col1 ) AS col1 FROM tab2
----
-51

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < - - 59 / - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-245
SELECT MAX( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-245
SELECT MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - col1 * + - col2 * + - col2 FROM tab1
----
14
-129024
47
-217328
5
-17405

onlyif mysql # DIV for integer division: 
query I rowsort label-247
SELECT ALL + col1 DIV - + 26 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-247
SELECT ALL + col1 / - + 26 FROM tab1
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < ( - 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT DISTINCT SUM( ALL 77 ) FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT SUM ( ALL 77 ) FROM tab1
----
231

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * - col2 >= + + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT ALL + - SUM( DISTINCT - col2 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col2 * + + ( col0 ) NOT IN ( - + col1, 85 / - col0 )
----
153

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL + - SUM ( DISTINCT - col2 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col2 * + + ( col0 ) NOT IN ( - + col1, 85 / - col0 )
----
153

query I rowsort
SELECT ALL - - 69 + + + col1 + + col1 * + col1 FROM tab0 cor0
----
531
6711
71

query I rowsort
SELECT - + 37 + + col1 AS col2 FROM tab1 AS cor0
----
-23
-32
10

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT + COUNT( * ) + + - 29 AS col2 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-255
SELECT + COUNT ( * ) + + - 29 AS col2 FROM tab2 AS cor0
----
-26

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

query I rowsort
SELECT DISTINCT - 27 * - 99 FROM tab0
----
2673

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-258
SELECT ALL 15 DIV COUNT( * ) AS col2, - COUNT( * ) AS col2 FROM tab2
----
5
-3

skipif mysql # not compatible
query II rowsort label-258
SELECT ALL 15 / COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab2
----
5
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT - 1 + + MAX( + col1 ) * - 39 FROM tab1
----
-1834

skipif mysql # not compatible
query I rowsort label-260
SELECT - 1 + + MAX ( + col1 ) * - 39 FROM tab1
----
-1834

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-261
SELECT ALL * FROM tab2 cor0 WHERE ( - CAST( NULL AS SIGNED ) ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-261
SELECT ALL * FROM tab2 cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT DISTINCT - COUNT( * ) - - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT - COUNT ( * ) - - COUNT ( * ) FROM tab1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-264
SELECT DISTINCT + 16 + CAST( + col1 AS SIGNED ) + col0 AS col2, col1 FROM tab1
----
106
5
154
47
81
14

skipif mysql # not compatible
query II rowsort label-264
SELECT DISTINCT + 16 + CAST ( + col1 AS INTEGER ) + col0 AS col2, col1 FROM tab1
----
106
5
154
47
81
14

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT DISTINCT - MAX( + + 42 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-42

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT - MAX ( + + 42 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT DISTINCT + ( + - COUNT( * ) ) * 42 + 85 col1 FROM tab1 AS cor0 WHERE ( + 29 * + 54 + + 32 < NULL )
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-267
SELECT DISTINCT + ( + - COUNT ( * ) ) * 42 + 85 col1 FROM tab1 AS cor0 WHERE ( + 29 * + 54 + + 32 < NULL )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-268
SELECT 97 AS col0, CAST( NULL AS SIGNED ) / - + 50 + - col0 + - 77 + - col1 + + + col2 * + CAST( NULL AS SIGNED ) * 43 FROM tab0 cor0
----
97
NULL
97
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-268
SELECT 97 AS col0, CAST ( NULL AS INTEGER ) / - + 50 + - col0 + - 77 + - col1 + + + col2 * + CAST ( NULL AS INTEGER ) * 43 FROM tab0 cor0
----
97
NULL
97
NULL
97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-269
SELECT + col0 DIV + - 47 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-269
SELECT + col0 / + - 47 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-270
SELECT + COUNT( * ), + 39 AS col0 FROM tab2 AS cor0
----
3
39

skipif mysql # not compatible
query II rowsort label-270
SELECT + COUNT ( * ), + 39 AS col0 FROM tab2 AS cor0
----
3
39

query II rowsort
SELECT 5 AS col1, - col1 * + + col1 FROM tab0 AS cor0
----
5
-1
5
-441
5
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT DISTINCT MAX( ALL - 73 ) AS col2 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT MAX ( ALL - 73 ) AS col2 FROM tab0
----
-73

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

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

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

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

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL SUM ( ALL col1 ) AS col2 FROM tab0
----
103

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 11 <> - 95 + + + col0
----

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

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

query I rowsort
SELECT ALL + + 1 * - 33 FROM tab1 AS cor0
----
-33
-33
-33

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

query I rowsort
SELECT ALL col1 + + col0 * - col0 FROM tab0
----
-144
-7548
-9408

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

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

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

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

query II rowsort
SELECT - - ( + col1 ), - col0 FROM tab2 cor0 WHERE ( NULL ) >= + 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT 78 * COUNT( * ) FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-288
SELECT 78 * COUNT ( * ) FROM tab0 AS cor0
----
234

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

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

query I rowsort
SELECT ALL col1 + - - col1 AS col2 FROM tab0 cor0
----
162
2
42

query II rowsort
SELECT - 63 AS col0, col0 * - - col1 AS col1 FROM tab1 AS cor0
----
-63
425
-63
4277
-63
714

query I rowsort
SELECT DISTINCT - - col1 + col2 * - ( - 56 ) FROM tab2 AS cor0
----
1339
2317
3315

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

query I rowsort
SELECT + AVG ( ALL 67 ) AS col2 FROM tab0 cor0 WHERE - 22 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-296
SELECT ALL 12 DIV - - col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-296
SELECT ALL 12 / - - col2 FROM tab0
----
0
0
1

query II rowsort
SELECT ALL 98 + + 13 + ( col0 ) AS col2, - 35 + col2 FROM tab0
----
126
12
198
-25
208
64

onlyif mysql # DIV for integer division: 
query I rowsort label-298
SELECT + 40 DIV ( + - col1 ) + - 86 AS col1 FROM tab1
----
-86
-88
-94

skipif mysql # not compatible
query I rowsort label-298
SELECT + 40 / ( + - col1 ) + - 86 AS col1 FROM tab1
----
-86
-88
-94

query I rowsort
SELECT + col2 + - + 55 * 12 + - col0 + + col0 - - - col0 FROM tab1 AS cor0
----
-615
-683
-686

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

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

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

query I rowsort
SELECT ALL + - 73 FROM tab0 WHERE NOT NULL < - + 5
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-304
SELECT - ( COUNT( DISTINCT + 38 ) ) DIV + - 48 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-304
SELECT - ( COUNT ( DISTINCT + 38 ) ) / + - 48 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT ALL + 10 * + MIN( DISTINCT + - 97 ) FROM tab2 AS cor0
----
-970

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL + 10 * + MIN ( DISTINCT + - 97 ) FROM tab2 AS cor0
----
-970

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

skipif mysql # not compatible
query I rowsort label-306
SELECT DISTINCT + 81 / + COUNT ( * ) FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT - COUNT( * ) * + - ( + 97 ) + - 86 AS col1 FROM tab1 cor0 WHERE NOT 16 IS NOT NULL
----
-86

skipif mysql # not compatible
query I rowsort label-307
SELECT - COUNT ( * ) * + - ( + 97 ) + - 86 AS col1 FROM tab1 cor0 WHERE NOT 16 IS NOT NULL
----
-86

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

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

query I rowsort
SELECT - 83 FROM tab1 WHERE NOT - col0 IS NULL
----
-83
-83
-83

query II rowsort
SELECT DISTINCT 58, - 18 AS col2 FROM tab0
----
58
-18

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

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

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

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

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

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

query II rowsort
SELECT col1, 9 + 60 FROM tab2
----
51
69
67
69
77
69

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT DISTINCT MAX( DISTINCT - 63 ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-317
SELECT DISTINCT MAX ( DISTINCT - 63 ) FROM tab2
----
-63

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

skipif mysql # not compatible
query I rowsort label-318
SELECT - CAST ( + col0 AS INTEGER ) + + ( + col2 ) FROM tab1 WHERE NOT NULL <= + col1
----

query I rowsort
SELECT DISTINCT + + 7 + - 60 FROM tab2 cor0
----
-53

query II rowsort
SELECT + col1, + col1 + 7 AS col2 FROM tab1 AS cor0
----
14
21
47
54
5
12

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-322
SELECT * FROM tab2 WHERE CAST( NULL AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-322
SELECT * FROM tab2 WHERE CAST ( NULL AS REAL ) >= NULL
----

query I rowsort
SELECT ALL - 51 * - col1 AS col2 FROM tab1
----
2397
255
714

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

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

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

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

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT ( col2 ) <> NULL
----

query I rowsort
SELECT ALL - 86 FROM tab1 WHERE NOT - col1 * + 35 IS NULL
----
-86
-86
-86

query I rowsort
SELECT DISTINCT col0 - + 75 FROM tab0
----
-60
12
22

query I rowsort
SELECT ALL + ( - 18 ) * 70 AS col0 FROM tab2
----
-1260
-1260
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT COUNT( * ) * + 54 AS col1 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-332
SELECT COUNT ( * ) * + 54 AS col1 FROM tab2
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-333
SELECT DISTINCT - 33 + CAST( MIN( col2 ) AS SIGNED ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-333
SELECT DISTINCT - 33 + CAST ( MIN ( col2 ) AS INTEGER ) FROM tab0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-334
SELECT col0 * + CAST( col1 AS SIGNED ) FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-334
SELECT col0 * + CAST ( col1 AS INTEGER ) FROM tab0
----
1215
1827
97

query I rowsort
SELECT col0 * 30 AS col1 FROM tab0
----
2610
2910
450

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

query I rowsort
SELECT 16 * - 12 AS col2 FROM tab2
----
-192
-192
-192

query I rowsort
SELECT DISTINCT - 17 * - col1 FROM tab0 WHERE + col2 IS NOT NULL
----
1377
17
357

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT DISTINCT COUNT( * ) + 82 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT COUNT ( * ) + 82 FROM tab2
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 * col0 col0 FROM tab0
----
-5133
-5723
-885

query I rowsort
SELECT + 93 - col1 AS col1 FROM tab2
----
16
26
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-343
SELECT ALL - ( 91 ) FROM tab1 WHERE NOT ( col1 ) = CAST( 42 AS SIGNED )
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL - ( 91 ) FROM tab1 WHERE NOT ( col1 ) = CAST ( 42 AS INTEGER )
----
-91
-91
-91

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT ALL + COUNT( * ) + MIN( 2 ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL + COUNT ( * ) + MIN ( 2 ) FROM tab0 AS cor0
----
5

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

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

query I rowsort
SELECT DISTINCT + 54 * col0 AS col0 FROM tab2 AS cor0
----
2484
3456
4050

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT COUNT( * ) * - 5 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-350
SELECT COUNT ( * ) * - 5 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL + - 21 * col2 AS col2 FROM tab2 AS cor0
----
-1218
-483
-840

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-354
SELECT ALL 55 * - CAST( NULL AS SIGNED ) - - col1 FROM tab1 AS cor0 WHERE NOT ( + 45 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL 55 * - CAST ( NULL AS INTEGER ) - - col1 FROM tab1 AS cor0 WHERE NOT ( + 45 ) IS NULL
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-356
SELECT + - 23 DIV COUNT( * ) FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-356
SELECT + - 23 / COUNT ( * ) FROM tab2 AS cor0
----
-7

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

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT + COUNT ( * ) / 2 FROM tab0 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT 29 * + COUNT( * ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-359
SELECT 29 * + COUNT ( * ) FROM tab2 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT - MAX( ALL + col1 ) * COUNT( * ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-360
SELECT - MAX ( ALL + col1 ) * COUNT ( * ) FROM tab2 AS cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT ( COUNT( * ) ) + - 24 * - 80 FROM tab0 AS cor0 WHERE NOT 94 IS NULL
----
1923

skipif mysql # not compatible
query I rowsort label-361
SELECT ( COUNT ( * ) ) + - 24 * - 80 FROM tab0 AS cor0 WHERE NOT 94 IS NULL
----
1923

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT + COUNT( col0 ) AS col1 FROM tab2 WHERE NOT 20 * + col0 - 68 / col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-364
SELECT + COUNT ( col0 ) AS col1 FROM tab2 WHERE NOT 20 * + col0 - 68 / col2 > NULL
----
0

query I rowsort
SELECT ALL col2 * - - ( - col2 ) + col0 * col2 AS col1 FROM tab1
----
-4320
1534
1564

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT MIN( ALL + 67 ) AS col2 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-366
SELECT MIN ( ALL + 67 ) AS col2 FROM tab1
----
67

query I rowsort
SELECT col0 + col2 FROM tab0 WHERE ( + col1 * - col2 ) IS NULL OR col2 BETWEEN col2 AND ( col2 ) - 3
----

query I rowsort
SELECT ALL + + col0 + - 13 FROM tab0 AS cor0
----
2
74
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) NOT IN ( 61 / col0 )
----

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

query I rowsort
SELECT + + col2 * - ( + col0 ) + - col2 * 9 FROM tab1 cor0
----
-5546
-5760
-6800

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN col0 AND col0 - + col0
----
23
40
58

query I rowsort
SELECT ALL col2 + 69 FROM tab0
----
116
168
79

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 + ( - 50 ) BETWEEN - 66 AND ( NULL ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-377
SELECT - 51 / CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-377
SELECT - 51 / CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT col2 AS col0, - col0 AS col0 FROM tab2
----
23
-46
40
-64
58
-75

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - ( + 65 ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT ALL - 59 + + 1 + SUM( col2 ) FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL - 59 + + 1 + SUM ( col2 ) FROM tab1 AS cor0
----
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 89 + - col2 col2 FROM tab1 AS cor0
----
-148
-157
-185

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE - col0 NOT IN ( + col1 )
----
46
64
75

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

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

query I rowsort
SELECT DISTINCT - col2 / 5 AS col1 FROM tab2 WHERE NULL = 98 * - - col0 AND NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 4 - col0 AS col0 FROM tab2
----
-42
-60
-71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT DISTINCT - MIN( ALL - 68 ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-388
SELECT DISTINCT - MIN ( ALL - 68 ) FROM tab1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT ALL 59 * + - COUNT( * ) FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL 59 * + - COUNT ( * ) FROM tab0
----
-177

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

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT 53 + COUNT( * ) AS col0 FROM tab2 WHERE + col1 IS NULL
----
53

skipif mysql # not compatible
query I rowsort label-391
SELECT 53 + COUNT ( * ) AS col0 FROM tab2 WHERE + col1 IS NULL
----
53

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

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

query I rowsort
SELECT DISTINCT - col1 * + + 89 AS col0 FROM tab2 AS cor0
----
-4539
-5963
-6853

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

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

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

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

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT ( - col2 ) BETWEEN col1 AND NULL
----
-51
-67
-77

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

skipif mysql # not compatible
query I rowsort label-399
SELECT + CAST ( + - CAST ( 36 AS INTEGER ) AS INTEGER ) FROM tab2
----
-36
-36
-36

query I rowsort
SELECT DISTINCT col1 * + + 45 FROM tab0
----
3645
45
945

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT SUM( DISTINCT + col2 ) * - COUNT( * ) AS col0 FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-401
SELECT SUM ( DISTINCT + col2 ) * - COUNT ( * ) AS col0 FROM tab1
----
-669

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

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT ALL + + COUNT( DISTINCT + 57 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL + + COUNT ( DISTINCT + 57 ) FROM tab1 cor0
----
1

query I rowsort
SELECT DISTINCT - 83 * col0 AS col2 FROM tab2
----
-3818
-5312
-6225

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 17 <= NULL
----

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

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

query I rowsort
SELECT 39 + - 6 + - ( + ( - 54 ) ) + - col2 + + col2 AS col1 FROM tab0
----
87
87
87

query I rowsort
SELECT - col2 * col1 AS col2 FROM tab2 WHERE NOT col1 IN ( + col0 * - col0 + 71 )
----
-1173
-3080
-3886

query I rowsort
SELECT + col1 + - col2 + - col1 FROM tab0
----
-10
-47
-99

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

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE ( ( NULL ) < NULL )
----

query II rowsort
SELECT + col1 + - col2, + col1 FROM tab0
----
-98
1
11
21
34
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-416
SELECT ALL * FROM tab1 WHERE + + col1 <> ( + CAST( 28 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-416
SELECT ALL * FROM tab1 WHERE + + col1 <> ( + CAST ( 28 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-417
SELECT DISTINCT 83 + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * 73 BETWEEN ( - col2 ) AND NULL
----
83

skipif mysql # not compatible
query I rowsort label-417
SELECT DISTINCT 83 + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * 73 BETWEEN ( - col2 ) AND NULL
----
83

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

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

query I rowsort
SELECT ALL + + col0 * + col2 * + + col2 AS col1 FROM tab1 cor0
----
295885
420784
470016

query II rowsort
SELECT + col2 * ( - col2 ) * + col2, col1 AS col0 FROM tab1 AS cor0
----
-205379
5
-314432
47
-884736
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - 29
----

query I rowsort
SELECT ALL - 40 AS col1 FROM tab1 AS cor0
----
-40
-40
-40

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 6 * - 32 / 55 * col2 - - col0 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-424
SELECT - col1 + 76 * col0 AS col0 FROM tab1 WHERE 25 * - col1 >= CAST( + + 44 AS SIGNED ) / 92
----

skipif mysql # not compatible
query I rowsort label-424
SELECT - col1 + 76 * col0 AS col0 FROM tab1 WHERE 25 * - col1 >= CAST ( + + 44 AS INTEGER ) / 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT ALL + + MAX( - 92 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-92

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL + + MAX ( - 92 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-92

query I rowsort
SELECT DISTINCT - col0 * + ( - 69 ) + + 90 FROM tab2 AS cor0
----
3264
4506
5265

query I rowsort
SELECT ALL col0 * + col1 AS col1 FROM tab1 AS cor0 WHERE col1 / 49 * + col2 NOT IN ( + col2 )
----
425
4277
714

query I rowsort
SELECT DISTINCT - 43 + - 27 AS col1 FROM tab0 AS cor0
----
-70

query I rowsort
SELECT DISTINCT ( + + 42 ) - col2 FROM tab0 AS cor0
----
-5
-57
32

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT DISTINCT SUM( - 45 ) AS col2 FROM tab2 cor0 WHERE ( col0 ) IS NOT NULL
----
-135

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT SUM ( - 45 ) AS col2 FROM tab2 cor0 WHERE ( col0 ) IS NOT NULL
----
-135

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

query I rowsort
SELECT ALL + col0 + + - 38 AS col2 FROM tab0 WHERE NOT + col2 IS NULL
----
-23
49
59

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

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

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

query I rowsort
SELECT ALL 87 - - - 83 - - - col0 * - 73 AS col1 FROM tab0
----
1099
6355
7085

query I rowsort
SELECT DISTINCT ( + - 15 ) AS col2 FROM tab0
----
-15

query I rowsort
SELECT - ( + - col1 ) * 42 + 76 AS col0 FROM tab0
----
118
3478
958

query II rowsort
SELECT DISTINCT col0, 19 AS col0 FROM tab0
----
15
19
87
19
97
19

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 91 - - col0 <> NULL
----

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

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

query I rowsort
SELECT + + 52 * col2 FROM tab0 cor0
----
2444
5148
520

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

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

skipif mysql # not compatible
query I rowsort label-444
SELECT COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL + ( - 98 ) FROM tab0
----
-98
-98
-98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT 44 - 55 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <> col1
----

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

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

query I rowsort
SELECT col1 * col0 * - ( - 13 ) - col0 FROM tab0 AS cor0
----
1164
15780
23664

query I rowsort
SELECT - ( - 13 ) * - - col0 AS col2 FROM tab1 AS cor0
----
1105
1183
663

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-453
SELECT ALL 90 AS col1, COUNT( * ) AS col0 FROM tab1 WHERE + + 17 < ( - col2 )
----
90
0

skipif mysql # not compatible
query II rowsort label-453
SELECT ALL 90 AS col1, COUNT ( * ) AS col0 FROM tab1 WHERE + + 17 < ( - col2 )
----
90
0

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

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

query II rowsort
SELECT 45, col2 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT 78 + - col0 FROM tab0
----
-19
-9
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 57 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 23 IN ( - col0 * col2, 19 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 14 + + + col1 + col0 FROM tab2 AS cor0
----
127
128
83

onlyif mysql # DIV for integer division: 
query I rowsort label-462
SELECT - - col1 DIV - col2 + + col1 * + 58 FROM tab0 cor0
----
1216
4697
58

skipif mysql # not compatible
query I rowsort label-462
SELECT - - col1 / - col2 + + col1 * + 58 FROM tab0 cor0
----
1216
4697
58

query I rowsort
SELECT + - col2 * col0 / - + 96 FROM tab2 AS cor0 WHERE col0 < col2
----

query I rowsort
SELECT DISTINCT + col2 - + 22 + + - col2 + - col0 FROM tab1
----
-107
-113
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-465
SELECT * FROM tab2 WHERE 94 + - + 6 + - CAST( NULL AS SIGNED ) / - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-465
SELECT * FROM tab2 WHERE 94 + - + 6 + - CAST ( NULL AS INTEGER ) / - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 61 AS col2 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT col2 + col2 AS col2 FROM tab0 AS cor0 WHERE - 87 IS NOT NULL
----
198
20
94

query II rowsort
SELECT 80, 63 AS col1 FROM tab2 AS cor0
----
80
63
80
63
80
63

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-471
SELECT - col0 - col2 DIV + + 76 col2 FROM tab1 AS cor0
----
-52
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-471
SELECT - col0 - col2 / + + 76 col2 FROM tab1 AS cor0
----
-52
-85
-91

query I rowsort
SELECT DISTINCT + col1 * - col2 - - + 88 + col1 - - + col0 AS col2 FROM tab0 AS cor0
----
-14
-3623
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + - col0 col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-474
SELECT ALL 20 DIV col1 AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL 20 / col1 AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT ALL - + ( - SUM( + 57 ) ) FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND - - col2 * - - col0 + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL - + ( - SUM ( + 57 ) ) FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND - - col2 * - - col0 + - col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT - SUM( ALL + col0 ) * COUNT( ALL + col0 ) AS col2 FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-477
SELECT - SUM ( ALL + col0 ) * COUNT ( ALL + col0 ) AS col2 FROM tab0
----
-597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 * + + ( - col2 ) col2 FROM tab1
----
3776
4352
6144

query I rowsort
SELECT ALL 12 * - + col2 * col0 AS col1 FROM tab2
----
-12696
-30720
-52200

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

onlyif mysql # aggregate syntax: 
query II rowsort label-481
SELECT DISTINCT - SUM( + + col1 ), - 20 AS col2 FROM tab2
----
-195
-20

skipif mysql # not compatible
query II rowsort label-481
SELECT DISTINCT - SUM ( + + col1 ), - 20 AS col2 FROM tab2
----
-195
-20

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE ( + 58 ) IS NULL
----

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

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

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

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

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

query I rowsort
SELECT - - 56 AS col0 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT ALL col1 + - - col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT ALL + 90 + - 11 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 85 + col2 AND ( + - ( col0 ) )
----

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

query I rowsort
SELECT + col2 / - 49 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT ALL COUNT( * ) * + - 43 * - 11 AS col2 FROM tab0 AS cor0
----
1419

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL COUNT ( * ) * + - 43 * - 11 AS col2 FROM tab0 AS cor0
----
1419

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + 74 * col1 col1, + col0 FROM tab2 AS cor0
----
173604
46
364672
64
371850
75

query I rowsort
SELECT - col2 * col2 + - 58 + - - 14 AS col2 FROM tab2 AS cor0
----
-1644
-3408
-573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-496
SELECT col1 + + 30 + 65 / + ( - col2 ) + - CAST( - 99 AS SIGNED ) * + - CAST( NULL AS SIGNED ) / - + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-496
SELECT col1 + + 30 + 65 / + ( - col2 ) + - CAST ( - 99 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) / - + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

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

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

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

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

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

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

query I rowsort
SELECT - col0 * col2 * + col1 + col0 * + + col2 AS col2 FROM tab1 WHERE - col1 + col2 <> - col0
----
-20060
-284648
-63648

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-503
SELECT ALL col1 DIV + 95 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL col1 / + 95 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 82 NOT BETWEEN 32 + + - col0 AND + 36
----

query I rowsort
SELECT - + 93 + - col1 FROM tab2 cor0
----
-144
-160
-170

query I rowsort
SELECT ALL col0 + 38 FROM tab0 AS cor0
----
125
135
53

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

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

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

query I rowsort
SELECT - 40 AS col2 FROM tab0 cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-510
SELECT + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

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

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

query II rowsort
SELECT - col1, col0 - - col1 AS col2 FROM tab2
----
-51
97
-67
142
-77
141

query III rowsort
SELECT * FROM tab0 WHERE NOT 21 IS NOT NULL AND NOT - 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-515
SELECT DISTINCT 35, - COUNT( * ) + 50 AS col2 FROM tab1
----
35
47

skipif mysql # not compatible
query II rowsort label-515
SELECT DISTINCT 35, - COUNT ( * ) + 50 AS col2 FROM tab1
----
35
47

query I rowsort
SELECT DISTINCT 60 * col1 AS col0 FROM tab0
----
1260
4860
60

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

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

query I rowsort
SELECT 76 * - - ( - + 71 ) + + + 86 + - ( + - col0 ) + + 77 AS col0 FROM tab0 AS cor0
----
-5136
-5146
-5218

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-520
SELECT ALL 12 / - - CAST( NULL AS DECIMAL ) + + - ( - + COUNT( * ) ) FROM tab0 cor0 WHERE NOT ( NOT col1 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL 12 / - - CAST ( NULL AS REAL ) + + - ( - + COUNT ( * ) ) FROM tab0 cor0 WHERE NOT ( NOT col1 IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT ALL + + MAX( - 14 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-14

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL + + MAX ( - 14 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-14

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

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

query I rowsort
SELECT + col0 + col0 + col0 AS col1 FROM tab1
----
153
255
273

query I rowsort
SELECT 30 + - col0 AS col0 FROM tab0 AS cor0
----
-57
-67
15

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

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

query I rowsort
SELECT ALL + - 85 * ( - 63 ) FROM tab1 AS cor0
----
5355
5355
5355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-528
SELECT DISTINCT + CAST( - CAST( + col1 AS SIGNED ) AS SIGNED ) col1 FROM tab0 cor0
----
-1
-21
-81

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

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

query I rowsort
SELECT ALL - col2 + - + 25 + - 65 FROM tab0
----
-100
-137
-189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, + col0 FROM tab1
----
-51
51
-85
85
-91
91

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

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

query I rowsort
SELECT DISTINCT + col1 + + 17 FROM tab2
----
68
84
94

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT 0 - MIN( col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-534
SELECT 0 - MIN ( col2 ) AS col2 FROM tab0
----
-10

query I rowsort
SELECT ALL + + col1 + - col1 * col1 FROM tab0 AS cor0
----
-420
-6480
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - 7 * + + col0, col0 * - - col2 + 9 + - col1 / 81 + + + col0 )
----

query II rowsort
SELECT ALL - col1, col2 + + ( - + col0 ) - + 87 AS col2 FROM tab0 AS cor0
----
-1
-85
-21
-164
-81
-55

query I rowsort
SELECT ALL + 57 - 77 * - col2 AS col0 FROM tab1 cor0
----
4600
5293
7449

query I rowsort
SELECT - 57 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-540
SELECT ALL - 87 DIV COUNT( - col2 ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL - 87 / COUNT ( - col2 ) FROM tab1 AS cor0
----
-29

query I rowsort
SELECT ALL - 74 AS col1 FROM tab0 cor0
----
-74
-74
-74

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

skipif mysql # not compatible
query I rowsort label-542
SELECT + + SUM ( - col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-543
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE 17 NOT BETWEEN col0 * + ( CAST( col2 AS SIGNED ) ) AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE 17 NOT BETWEEN col0 * + ( CAST ( col2 AS INTEGER ) ) AND NULL
----
-3

query I rowsort
SELECT - + 50 * col1 * + - 10 - col0 * - - 91 * + col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * - + col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT - 85 * - col0 FROM tab1
----
4335
7225
7735

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-547
SELECT + MAX ( + col2 ) col2 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-548
SELECT - - 33 + 44 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( - CAST( + + col2 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-548
SELECT - - 33 + 44 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( - CAST ( + + col2 AS INTEGER ) ) AND NULL
----

query II rowsort
SELECT col2 * col1 * - col2 AS col0, 89 FROM tab1
----
-129024
89
-17405
89
-217328
89

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT ( COUNT( * ) ) * - ( + 57 ) FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-550
SELECT ( COUNT ( * ) ) * - ( + 57 ) FROM tab0
----
-171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * - + col1 * - col1 col2 FROM tab1
----
15288
172302
1950

query I rowsort
SELECT ALL - 49 * col2 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-2891
-3332
-4704

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND col0 * - 32 + - col2 * 75 + - 96 * - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-554
SELECT ( MAX( ALL + 53 ) ) * + MAX( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-554
SELECT ( MAX ( ALL + 53 ) ) * + MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-555
SELECT + CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-555
SELECT + CAST ( NULL AS REAL ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

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

query I rowsort
SELECT ALL - col0 + - - col1 FROM tab0 cor0
----
-66
-96
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * - 99 + - ( - col0 ) col1, - 63 FROM tab1 AS cor0
----
-4998
-63
-8330
-63
-8918
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, - 83 FROM tab2 AS cor0
----
46
-83
64
-83
75
-83

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

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

query I rowsort
SELECT DISTINCT - - 11 + col1 AS col0 FROM tab2 AS cor0
----
62
78
88

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

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

query I rowsort
SELECT DISTINCT + ( + 32 ) + + + col1 - + col0 AS col0 FROM tab1
----
-12
-48
-5

query I rowsort
SELECT ALL - 41 + - 95 + + + col0 + 72 * col1 FROM tab0
----
1463
33
5711

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

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE col1 - - col0 + + col0 + col0 / + + col1 + - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= col1
----

query I rowsort
SELECT - + 29 - + 21 * - col2 FROM tab1 cor0
----
1210
1399
1987

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT MAX( DISTINCT - 8 ) * + 18 - COUNT( * ) FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-570
SELECT MAX ( DISTINCT - 8 ) * + 18 - COUNT ( * ) FROM tab2 AS cor0
----
-147

query I rowsort
SELECT ALL 29 - - ( - col1 ) FROM tab2 AS cor0
----
-22
-38
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT DISTINCT ( SUM( ALL + col1 ) ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT ( SUM ( ALL + col1 ) ) AS col2 FROM tab2
----
195

query I rowsort
SELECT 92 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query II rowsort
SELECT ALL - col2, - col2 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT DISTINCT - 38 * - - COUNT( * ) FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT - 38 * - - COUNT ( * ) FROM tab0 AS cor0
----
-114

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

skipif mysql # not compatible
query II rowsort label-576
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
3

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 39 * - 31 IS NOT NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 89 * + col2 + - + col0 + + - 91 + + + ( + col1 ) / 45 NOT BETWEEN NULL AND - 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT - ( + SUM( ALL - col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-582
SELECT - ( + SUM ( ALL - col1 ) ) FROM tab1 AS cor0
----
66

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE + - 11 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query II rowsort label-584
SELECT DISTINCT + 35 * 4, COUNT( DISTINCT ( 57 ) ) AS col2 FROM tab1
----
140
1

skipif mysql # not compatible
query II rowsort label-584
SELECT DISTINCT + 35 * 4, COUNT ( DISTINCT ( 57 ) ) AS col2 FROM tab1
----
140
1

query I rowsort
SELECT - + col2 * + 43 AS col0 FROM tab0 AS cor0
----
-2021
-4257
-430

query I rowsort
SELECT col2 + 74 + + 24 * col1 + - + col1 FROM tab1 AS cor0 WHERE NOT col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 * - col0 * - col0 col1 FROM tab1 AS cor0
----
-115600
-132496
-41616

query I rowsort
SELECT 47 + 82 AS col1 FROM tab0
----
129
129
129

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT DISTINCT + + COUNT( * ) FROM tab1 WHERE - col1 = - + col0
----
0

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT + + COUNT ( * ) FROM tab1 WHERE - col1 = - + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT ALL - COUNT( * ) FROM tab0 WHERE 5 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL - COUNT ( * ) FROM tab0 WHERE 5 = NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-591
SELECT - + CAST( + MAX( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-591
SELECT - + CAST ( + MAX ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-75

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

query I rowsort
SELECT DISTINCT - ( + col0 ) * 49 - + col1 FROM tab2 AS cor0
----
-2305
-3213
-3742

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT DISTINCT 4 * + - COUNT( * ) - 4 * + + 86 * - 10 + 61 FROM tab2
----
3489

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT 4 * + - COUNT ( * ) - 4 * + + 86 * - 10 + 61 FROM tab2
----
3489

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, col1 AS col1 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT + 62 * 92 - - 93 + col2 + col1 FROM tab1
----
5861
5907
5912

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-598
SELECT col0 + col1 col0, + col2 * - col0 + + ( CAST( col1 AS SIGNED ) ) FROM tab1
----
138
-6141
65
-4882
90
-5010

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-598
SELECT col0 + col1 col0, + col2 * - col0 + + ( CAST ( col1 AS INTEGER ) ) FROM tab1
----
138
-6141
65
-4882
90
-5010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-599
SELECT ALL - col1 * - 84 + - 97 * - CAST( col1 AS SIGNED ) FROM tab2
----
12127
13937
9231

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL - col1 * - 84 + - 97 * - CAST ( col1 AS INTEGER ) FROM tab2
----
12127
13937
9231

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-601
SELECT ALL col2 DIV col0 * - col2 * + ( col2 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL col2 / col0 * - col2 * + ( col2 ) FROM tab2
----
0
0
0

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

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

query II rowsort
SELECT DISTINCT - + 98 AS col0, - 70 FROM tab0 cor0
----
-98
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-604
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
9

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-606
SELECT DISTINCT COUNT( - col0 ) AS col0, - MAX( - col1 ) FROM tab0 AS cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-606
SELECT DISTINCT COUNT ( - col0 ) AS col0, - MAX ( - col1 ) FROM tab0 AS cor0
----
3
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-607
SELECT DISTINCT - MAX ( - col0 ) col0 FROM tab2 AS cor0
----
46

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

query I rowsort
SELECT ALL + 78 * - 27 AS col0 FROM tab1 AS cor0
----
-2106
-2106
-2106

query I rowsort
SELECT ALL 32 * - col1 * - + col1 FROM tab1
----
6272
70688
800

query I rowsort
SELECT ALL + 7 * - + 96 AS col1 FROM tab1
----
-672
-672
-672

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

query I rowsort
SELECT DISTINCT 77 * + col2 AS col0 FROM tab2
----
1771
3080
4466

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

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT - COUNT( * ) + + 87 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-615
SELECT - COUNT ( * ) + + 87 FROM tab1
----
84

query I rowsort
SELECT ALL - + ( + ( - + 26 ) ) * + - col1 * - 55 AS col1 FROM tab1 AS cor0
----
20020
67210
7150

query I rowsort
SELECT DISTINCT col0 + + + 48 AS col1 FROM tab2 cor0
----
112
123
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT COUNT( * ) * - + COUNT( * ) * - + COUNT( * ) FROM tab1 AS cor0 WHERE ( ( NULL BETWEEN NULL AND NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-619
SELECT COUNT ( * ) * - + COUNT ( * ) * - + COUNT ( * ) FROM tab1 AS cor0 WHERE ( ( NULL BETWEEN NULL AND NULL ) )
----
0

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

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

query I rowsort
SELECT ALL - 49 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-622
SELECT DISTINCT + 57 + + - 70, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-622
SELECT DISTINCT + 57 + + - 70, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-13
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-623
SELECT * FROM tab2 AS cor0 WHERE NULL <= + ( + + col0 ) / - + col0 * + ( + + ( + - ( - CAST( NULL AS DECIMAL ) ) ) ) + col2 + col2 * + col1 * - 55
----

skipif mysql # not compatible
query III rowsort label-623
SELECT * FROM tab2 AS cor0 WHERE NULL <= + ( + + col0 ) / - + col0 * + ( + + ( + - ( - CAST ( NULL AS REAL ) ) ) ) + col2 + col2 * + col1 * - 55
----

query I rowsort
SELECT DISTINCT - - col0 + + + 69 - - col2 AS col1 FROM tab2 AS cor0
----
138
173
202

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-626
SELECT ALL - col1 DIV - col0 * 24 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL - col1 / - col0 * 24 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-627
SELECT + 68 + - - 46 AS col2, col0 * + - col1 + + - col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
114
-2347
114
-4929
114
-5026

skipif mysql # not compatible
query II rowsort label-627
SELECT + 68 + - - 46 AS col2, col0 * + - col1 + + - col1 / + col1 AS col0 FROM tab2 AS cor0
----
114
-2347
114
-4929
114
-5026

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-629
SELECT + - SUM( - - ( + CAST( NULL AS SIGNED ) ) ) + + - 23 + + 91 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-629
SELECT + - SUM ( - - ( + CAST ( NULL AS INTEGER ) ) ) + + - 23 + + 91 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE 9 + + - col2 * 95 * col1 * col1 * 49 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT ALL MAX( ALL 35 ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-633
SELECT ALL MAX ( ALL 35 ) FROM tab2
----
35

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

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

query I rowsort
SELECT + - col2 AS col0 FROM tab2 WHERE - 60 * 86 <= col1
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT col2 IN ( + - col2 / + col0, 3 * 3 * ( col0 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query II rowsort
SELECT ALL col2 + - col0 AS col0, 30 AS col1 FROM tab0 AS cor0 WHERE - 17 * + + col2 <> NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-640
SELECT ALL - COUNT( col1 ), + 75 * + ( COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-640
SELECT ALL - COUNT ( col1 ), + 75 * + ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT ALL + - 74 DIV 76 * col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL + - 74 / 76 * col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 30 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-645
SELECT DISTINCT - - 47 AS col1, SUM( ALL + 63 ) FROM tab2 AS cor0
----
47
189

skipif mysql # not compatible
query II rowsort label-645
SELECT DISTINCT - - 47 AS col1, SUM ( ALL + 63 ) FROM tab2 AS cor0
----
47
189

query II rowsort
SELECT - 43, + 79 * - - 23 + col1 * + - col1 AS col1 FROM tab1 AS cor0
----
-43
-392
-43
1621
-43
1792

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

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

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

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

query I rowsort
SELECT - col2 + + ( col2 ) FROM tab0 cor0 WHERE NOT col2 >= + - 94
----

query II rowsort
SELECT DISTINCT - col2, - 65 * + col1 * - - 21 + - col1 AS col0 FROM tab0 AS cor0
----
-10
-28686
-47
-110646
-99
-1366

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT ALL + 46 + + COUNT( * ) * - SUM( ALL - + col1 ) * - 35 FROM tab2
----
-20429

skipif mysql # not compatible
query I rowsort label-654
SELECT ALL + 46 + + COUNT ( * ) * - SUM ( ALL - + col1 ) * - 35 FROM tab2
----
-20429

query I rowsort
SELECT DISTINCT + 40 + col2 AS col2 FROM tab1
----
108
136
99

query I rowsort
SELECT ALL + 13 + - 87 + + + col0 FROM tab1
----
-23
11
17

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

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

query I rowsort
SELECT - 1 + - 10 AS col0 FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-659
SELECT DISTINCT COUNT( ALL - - 72 ) + - ( + ( + 57 ) ) - - + COUNT( * ) DIV + 15 col0 FROM tab1, tab2 AS cor0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-659
SELECT DISTINCT COUNT ( ALL - - 72 ) + - ( + ( + 57 ) ) - - + COUNT ( * ) / + 15 col0 FROM tab1, tab2 AS cor0
----
-48

query I rowsort
SELECT + 83 - + + 78 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT DISTINCT + 49 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-663
SELECT ALL + col2 DIV - - 66 + + 63 + col1 DIV + - col1 + - 44 * - - 42 AS col2 FROM tab1 AS cor0
----
-1785
-1785
-1786

skipif mysql # not compatible
query I rowsort label-663
SELECT ALL + col2 / - - 66 + + 63 + col1 / + - col1 + - 44 * - - 42 AS col2 FROM tab1 AS cor0
----
-1785
-1785
-1786

query I rowsort
SELECT DISTINCT - 6 - - 66 AS col1 FROM tab0 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-665
SELECT ( + CAST( + + col1 AS SIGNED ) ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-665
SELECT ( + CAST ( + + col1 AS INTEGER ) ) FROM tab2 AS cor0
----
51
67
77

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

query I rowsort
SELECT + - 52 - + - col0 * - 39 + - - 26 FROM tab0 AS cor0
----
-3419
-3809
-611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-668
SELECT DISTINCT - 84 * - col1 + - 16 + + col0 * + - col0 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 8 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT - 84 * - col1 + - 16 + + col0 * + - col0 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 8 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT + col0 - + 17 AS col0 FROM tab1 AS cor0
----
34
68
74

query I rowsort
SELECT + col0 - + + col0 * - col1 FROM tab0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT - 14 * + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-672
SELECT - 14 * + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0
----
-39

query I rowsort
SELECT DISTINCT col1 * + ( 13 ) FROM tab1
----
182
611
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * + + 14 * - col1 col1 FROM tab1
----
18228
61194
6510

onlyif mysql # DIV for integer division: 
query I rowsort label-675
SELECT 13 DIV + col2 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-675
SELECT 13 / + col2 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL - 79 * col0 * col0 * + - 58 AS col2 FROM tab0
----
1030950
34681158
43112038

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT DISTINCT col1 DIV 51 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-677
SELECT DISTINCT col1 / 51 FROM tab0
----
0
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT ALL + - MIN( ALL + - col0 ) * + - COUNT( * ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL + - MIN ( ALL + - col0 ) * + - COUNT ( * ) FROM tab1 AS cor0
----
-273

query II rowsort
SELECT + 9, 15 + + 90 AS col0 FROM tab1
----
9
105
9
105
9
105

query III rowsort
SELECT * FROM tab0 WHERE NOT 44 <> + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 60, - col0 + col2 - 62 col1 FROM tab1 AS cor0
----
60
-17
60
-85
60
-88

query I rowsort
SELECT 96 * - col2 AS col2 FROM tab1 AS cor0
----
-5664
-6528
-9216

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

query I rowsort
SELECT ALL 85 * + 46 * + - col2 AS col2 FROM tab2
----
-156400
-226780
-89930

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT - ( + - 85 ) + ( + + MAX( + col2 ) ) FROM tab0
----
184

skipif mysql # not compatible
query I rowsort label-686
SELECT - ( + - 85 ) + ( + + MAX ( + col2 ) ) FROM tab0
----
184

query I rowsort
SELECT col1 + + - col1 * col1 * - col0 * + 80 FROM tab2
----
26934067
30356557
9571731

query I rowsort
SELECT ( + col1 ) * 28 + - 45 FROM tab2 WHERE NULL <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + 32 * + col0 * col0 NOT BETWEEN + col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 + - - ( + col0 ) - - + col1 * + col2 FROM tab2
----
1265
3208
4036

query I rowsort
SELECT ALL + 76 FROM tab1 AS cor0 WHERE col1 + + col1 NOT BETWEEN NULL AND + - col1
----
76
76
76

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

onlyif mysql # aggregate syntax: 
query II rowsort label-693
SELECT - 84 AS col0, - COUNT( col2 ) col1 FROM tab1 AS cor0
----
-84
-3

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

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

query II rowsort
SELECT ALL - col0 * - - col0 AS col1, col1 FROM tab0
----
-225
81
-7569
21
-9409
1

query I rowsort
SELECT col2 - - 50 FROM tab2
----
108
73
90

query I rowsort
SELECT DISTINCT - 88 + - - col2 FROM tab0 AS cor0
----
-41
-78
11

query I rowsort
SELECT DISTINCT + col0 + - + 1 AS col2 FROM tab2 cor0
----
45
63
74

query I rowsort
SELECT DISTINCT 24 + 97 * 74 * + + col1 * + + 10 + - col1 AS col0 FROM tab2 AS cor0
----
3660753
4809217
5527007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-700
SELECT col0 * - - 10 * - col1 * - 71 + - CAST( + - col0 AS SIGNED ) * + col2 FROM tab2 AS cor0 WHERE col0 IN ( - + 80 * + + col1 / - col0 * + col1 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-700
SELECT col0 * - - 10 * - col1 * - 71 + - CAST ( + - col0 AS INTEGER ) * + col2 FROM tab2 AS cor0 WHERE col0 IN ( - + 80 * + + col1 / - col0 * + col1 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT - COUNT( * ) * + 92 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-276

skipif mysql # not compatible
query I rowsort label-701
SELECT - COUNT ( * ) * + 92 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-276

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-705
SELECT ALL CAST( NULL AS SIGNED ) AS col1, SUM( + col2 ) FROM tab2
----
NULL
121

skipif mysql # not compatible
query II rowsort label-705
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, SUM ( + col2 ) FROM tab2
----
NULL
121

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col0 * 21 FROM tab0
----
1
2037
21
1827
81
315

query I rowsort
SELECT - 91 * - col1 AS col1 FROM tab2
----
4641
6097
7007

query I rowsort
SELECT ALL col1 * 62 AS col2 FROM tab1
----
2914
310
868

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

query I rowsort
SELECT ALL col0 * - 40 FROM tab2
----
-1840
-2560
-3000

query I rowsort
SELECT ALL col1 * - 87 FROM tab2
----
-4437
-5829
-6699

onlyif mysql # DIV for integer division: 
query I rowsort label-713
SELECT col2 DIV - 92 col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-713
SELECT col2 / - 92 col0 FROM tab0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-714
SELECT - ( - 33 ) DIV + - col0 * col2 AS col0, ( col1 ) AS col2 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-714
SELECT - ( - 33 ) / + - col0 * col2 AS col0, ( col1 ) AS col2 FROM tab2 AS cor0
----
0
51
0
67
0
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT + SUM( ALL 36 ) FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-716
SELECT + SUM ( ALL 36 ) FROM tab1 AS cor0
----
108

query I rowsort
SELECT 62 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT DISTINCT - col2 * ( - col0 ) FROM tab0
----
705
870
9603

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - col2 + + col0 FROM tab2 WHERE + col0 BETWEEN NULL AND + col1
----

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

skipif mysql # not compatible
query I rowsort label-721
SELECT COUNT ( * ) / - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-1

query I rowsort
SELECT + col0 + + - 2 AS col1 FROM tab2
----
44
62
73

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 ALL ( - 58 ) * - 27 + ( - col2 ) col2 FROM tab1 AS cor0
----
1470
1498
1507

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 + - - col2 + + 69 col2 FROM tab0 AS cor0
----
150
187
239

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-728
SELECT + 76 DIV + COUNT( * ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-728
SELECT + 76 / + COUNT ( * ) FROM tab0 AS cor0
----
25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL + MIN( ALL col0 ) + + MIN( + 75 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL + MIN ( ALL col0 ) + + MIN ( + 75 ) FROM tab2
----
121

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

skipif mysql # not compatible
query I rowsort label-731
SELECT COUNT ( * ) / + 10 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT 91 + + COUNT( * ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-732
SELECT 91 + + COUNT ( * ) FROM tab1
----
94

query I rowsort
SELECT + col1 + - + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 + + + col1 + - col1 * + col2 AS col2 FROM tab2 cor0
----
-1076
-2939
-3744

query I rowsort
SELECT DISTINCT col2 + + + 23 AS col1 FROM tab0
----
122
33
70

query I rowsort
SELECT DISTINCT + 13 * + 60 * + col2 FROM tab1
----
46020
53040
74880

query I rowsort
SELECT + col2 * col2 - - col0 AS col2 FROM tab1 AS cor0
----
3566
4715
9267

query I rowsort
SELECT ALL 69 * col2 + + - col2 AS col0 FROM tab1 AS cor0
----
4012
4624
6528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col0 * + + 46 col0 FROM tab2 cor0
----
188416
258750
97336

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, col0 * - - col2 * - - col2 col0 FROM tab0 AS cor0
----
10
8700
47
33135
99
950697

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 99 ) col2 FROM tab0 AS cor0
----
99
99
99

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

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

query II rowsort
SELECT ALL 0 * + 10, - 48 AS col1 FROM tab2
----
0
-48
0
-48
0
-48

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-749
SELECT COUNT ( ALL - 8 ) AS col2 FROM tab2
----
3

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

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

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

query I rowsort
SELECT col1 * - ( + col1 ) + + 51 AS col1 FROM tab2 AS cor0
----
-2550
-4438
-5878

query I rowsort
SELECT 18 + - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-2098
-4078
-5607

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( NOT - 68 IS NULL )
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col1 * + + ( col1 ) FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( - 55 ) IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> col2 * 0
----

query I rowsort
SELECT DISTINCT + + col0 + col2 + + 90 * - col1 AS col1 FROM tab0 AS cor0
----
-1793
-7228
106

query I rowsort
SELECT - col0 + 24 + + col0 FROM tab2
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT COUNT( * ) + + - 64 col1 FROM tab0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-760
SELECT COUNT ( * ) + + - 64 col1 FROM tab0
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col1 FROM tab1
----
15

query I rowsort
SELECT + + 68 FROM tab1 WHERE - 35 IS NULL
----

query I rowsort
SELECT ALL + col2 + + 34 AS col0 FROM tab2
----
57
74
92

query II rowsort
SELECT 39 AS col1, col2 FROM tab1 WHERE - col0 IS NOT NULL
----
39
59
39
68
39
96

query I rowsort
SELECT DISTINCT - 94 + - + 43 - + - col2 FROM tab0 AS cor0
----
-127
-38
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-766
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( 77 AS SIGNED ) <= - + col0
----

skipif mysql # not compatible
query III rowsort label-766
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( 77 AS INTEGER ) <= - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-767
SELECT ALL - col0 DIV + 55 + - - 61 - - ( col1 ) FROM tab1 AS cor0
----
107
65
75

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL - col0 / + 55 + - - 61 - - ( col1 ) FROM tab1 AS cor0
----
107
65
75

query I rowsort
SELECT - 19 - col0 FROM tab1 AS cor0
----
-104
-110
-70

query I rowsort
SELECT + 23 - 62 + 74 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT + - 81 - + + 42 AS col1 FROM tab2 AS cor0
----
-123
-123
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT - 97 - COUNT( * ) AS col0 FROM tab2
----
-100

skipif mysql # not compatible
query I rowsort label-771
SELECT - 97 - COUNT ( * ) AS col0 FROM tab2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT 90 + + + MIN( DISTINCT - col1 ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-772
SELECT 90 + + + MIN ( DISTINCT - col1 ) FROM tab2
----
13

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

onlyif mysql # aggregate syntax: 
query II rowsort label-774
SELECT DISTINCT + COUNT( * ) AS col1, + 54 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
54

skipif mysql # not compatible
query II rowsort label-774
SELECT DISTINCT + COUNT ( * ) AS col1, + 54 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
54

query I rowsort
SELECT + 18 AS col2 FROM tab1 cor0
----
18
18
18

query I rowsort
SELECT ALL - + 65 AS col2 FROM tab0 AS cor0
----
-65
-65
-65

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 <> col2 + + + col2
----

query I rowsort
SELECT ALL 64 * - - col1 FROM tab1
----
3008
320
896

query II rowsort
SELECT DISTINCT col0, col1 + + + 40 * 20 AS col2 FROM tab0
----
15
881
87
821
97
801

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-783
SELECT + col0 DIV col0 * 26 FROM tab1 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-783
SELECT + col0 / col0 * 26 FROM tab1 AS cor0
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-784
SELECT + 20 AS col0, - col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
20
NULL
20
NULL
20
NULL

skipif mysql # not compatible
query II rowsort label-784
SELECT + 20 AS col0, - col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
20
NULL
20
NULL
20
NULL

query II rowsort
SELECT ALL - - col1 * 48 AS col2, ( + 66 ) AS col1 FROM tab1 AS cor0
----
2256
66
240
66
672
66

query I rowsort
SELECT 2 * - 18 * - col0 + ( + col2 ) FROM tab0 AS cor0
----
3142
3591
587

query II rowsort
SELECT DISTINCT col0 * + 93 + - + col0 * + + 75 AS col0, col0 * - 14 + + col1 AS col0 FROM tab1 AS cor0
----
1530
-1185
1638
-1227
918
-700

query I rowsort
SELECT ALL - 72 AS col0 FROM tab0 cor0 WHERE NOT 92 - + col2 * - 1 * - col1 > NULL
----

query I rowsort
SELECT + col0 * + 98 * + col2 AS col1 FROM tab2 AS cor0
----
103684
250880
426300

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - - col2 * + col2 * col0 * - col0 + + 30
----

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

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

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

query I rowsort
SELECT 62 * + 59 * + 68 + col1 + col0 * + - col1 * - col0 FROM tab1 AS cor0 WHERE col2 * + 86 + + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-794
SELECT DISTINCT COUNT( * ) DIV - CAST( + 98 AS SIGNED ) + + + COUNT( * ) + - 54 * + COUNT( * ) col0 FROM tab1 cor0 WHERE NOT 78 IS NULL
----
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-794
SELECT DISTINCT COUNT ( * ) / - CAST ( + 98 AS INTEGER ) + + + COUNT ( * ) + - 54 * + COUNT ( * ) col0 FROM tab1 cor0 WHERE NOT 78 IS NULL
----
-159

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

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

query III rowsort
SELECT * FROM tab0 WHERE - ( + 44 ) IS NULL
----

query I rowsort
SELECT - col1 * 84 + + col0 + - col1 - - col0 + - 92 FROM tab0
----
-1703
-6947
17

query I rowsort
SELECT - 69 FROM tab2 WHERE ( NOT - col1 IS NOT NULL )
----

query I rowsort
SELECT ALL - 41 + - 23 FROM tab0
----
-64
-64
-64

query I rowsort
SELECT - 68 FROM tab1 WHERE NULL < col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT DISTINCT - 86 - - COUNT( * ) FROM tab1 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT - 86 - - COUNT ( * ) FROM tab1 cor0
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 45 ) + + 95 col0 FROM tab2 AS cor0
----
50
50
50

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

query I rowsort
SELECT 61 + - col2 * col0 FROM tab0
----
-644
-809
-9542

query I rowsort
SELECT DISTINCT 5 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
5

query I rowsort
SELECT DISTINCT - 66 FROM tab0 WHERE NOT + 47 IS NOT NULL
----

query I rowsort
SELECT + 87 - col2 AS col2 FROM tab2
----
29
47
64

query I rowsort
SELECT DISTINCT - col0 * col2 + col2 AS col0 FROM tab0
----
-658
-860
-9504

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

onlyif mysql # DIV for integer division: 
query I rowsort label-811
SELECT col0 - - 58 DIV ( col0 ) FROM tab1
----
52
85
91

skipif mysql # not compatible
query I rowsort label-811
SELECT col0 - - 58 / ( col0 ) FROM tab1
----
52
85
91

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE + col0 * - col1 IS NULL
----

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

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

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

query I rowsort
SELECT col1 * - col2 - - col1 * - 42 AS col0 FROM tab0
----
-1092
-141
-7209

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT - 46 + - MIN( DISTINCT - 3 ) AS col0 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-818
SELECT - 46 + - MIN ( DISTINCT - 3 ) AS col0 FROM tab1
----
-43

query I rowsort
SELECT + col0 - 20 * 53 FROM tab1
----
-1009
-969
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT COUNT( 5 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-820
SELECT COUNT ( 5 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 19 AS col2 FROM tab2
----
-19

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 77 * col1 > NULL
----

query I rowsort
SELECT col1 * + 72 AS col2 FROM tab2
----
3672
4824
5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-825
SELECT col0 AS col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-825
SELECT col0 AS col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL - ( + 35 ) AS col1 FROM tab2 AS cor0
----
-35
-35
-35

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 72 ) IN ( - col0 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT DISTINCT + COUNT( * ) + MIN( ALL + 30 ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT + COUNT ( * ) + MIN ( ALL + 30 ) FROM tab2
----
33

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + col2 ) col1 FROM tab0 cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( + 7 ) + col1 ) <= - ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 19 + - 14 FROM tab2 cor0 WHERE NULL NOT IN ( col2 + col0 )
----

query I rowsort
SELECT DISTINCT + 80 + col0 AS col0 FROM tab1 AS cor0
----
131
165
171

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 31 * col1 IN ( + 89 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 55 / - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT - ( + + 11 ) FROM tab2
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT COUNT( 97 ) AS col0 FROM tab2 WHERE col2 + - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-841
SELECT COUNT ( 97 ) AS col0 FROM tab2 WHERE col2 + - col0 IS NOT NULL
----
3

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

query I rowsort
SELECT ALL col1 + + 92 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 85 * + col2 FROM tab2 WHERE NULL > ( - col1 ) + col2
----

query I rowsort
SELECT ALL + col1 * + + 24 + + ( col2 ) FROM tab0
----
123
1991
514

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-847
SELECT 53 - - - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-847
SELECT 53 - - - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * 96 BETWEEN 71 AND NULL
----

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

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

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

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

query I rowsort
SELECT - 90 * 23 * + - col2 FROM tab2
----
120060
47610
82800

query I rowsort
SELECT DISTINCT + 95 * + + 52 * col1 FROM tab2 cor0
----
251940
330980
380380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-854
SELECT - MAX( DISTINCT + col0 ) DIV COUNT( * ) * 90 AS col1 FROM tab0 cor0
----
-2880

skipif mysql # not compatible
query I rowsort label-854
SELECT - MAX ( DISTINCT + col0 ) / COUNT ( * ) * 90 AS col1 FROM tab0 cor0
----
-2880

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 IS NOT NULL OR NULL NOT IN ( 4 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 31 + + col2 col1 FROM tab2 AS cor0
----
1604
2135
2427

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT - + MIN( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-857
SELECT - + MIN ( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
81

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

skipif mysql # not compatible
query I rowsort label-858
SELECT + COUNT ( * ) * COUNT ( * ) / - COUNT ( * ) FROM tab1
----
-3

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

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

query I rowsort
SELECT ALL col0 * - - 71 * + - col1 * col1 + ( ( + 8 ) ) FROM tab0
----
-2724049
-6879
-6987457

query I rowsort
SELECT col1 + col1 AS col2 FROM tab1 AS cor0 WHERE col1 BETWEEN - col1 AND - col2
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + 29 AND - - 9 * col0
----
51
14
96
85
5
59

query I rowsort
SELECT ALL - - 51 AS col2 FROM tab2 AS cor0
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-866
SELECT ALL * FROM tab2 cor0 WHERE - col2 * - 20 * + - CAST( - col0 AS SIGNED ) * col1 + - col0 BETWEEN - col2 * 51 AND + col1
----

skipif mysql # not compatible
query III rowsort label-866
SELECT ALL * FROM tab2 cor0 WHERE - col2 * - 20 * + - CAST ( - col0 AS INTEGER ) * col1 + - col0 BETWEEN - col2 * 51 AND + col1
----

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-870
SELECT DISTINCT MIN( DISTINCT - col2 ) + CAST( SUM( + ( 54 ) ) AS SIGNED ) + + CAST( - 35 - + COUNT( * ) DIV 4 AS SIGNED ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT MIN ( DISTINCT - col2 ) + CAST ( SUM ( + ( 54 ) ) AS INTEGER ) + + CAST ( - 35 - + COUNT ( * ) / 4 AS INTEGER ) FROM tab2 AS cor0
----
69

query I rowsort
SELECT DISTINCT - + 65 - + 1 AS col1 FROM tab1 AS cor0
----
-66

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

query I rowsort
SELECT ALL - 23 + ( col0 ) AS col1 FROM tab2 cor0
----
23
41
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-874
SELECT ALL + AVG ( - CAST( col1 AS SIGNED ) ) * COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN col2 + - 42 + + col1 / 56 AND ( col2 ) - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL + AVG ( - CAST ( col1 AS INTEGER ) ) * COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN col2 + - 42 + + col1 / 56 AND ( col2 ) - 55
----
NULL

query I rowsort
SELECT ALL + 8 + - col0 FROM tab1 AS cor0
----
-43
-77
-83

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL NOT IN ( - 36, + 44 ) )
----

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE - col1 * - 89 <= col0 + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-878
SELECT col2 + + col2 AS col0, col0 - - - col2 DIV col1 DIV 85 AS col0 FROM tab0
----
198
96
20
87
94
15

skipif mysql # not compatible
query II rowsort label-878
SELECT col2 + + col2 AS col0, col0 - - - col2 / col1 / 85 AS col0 FROM tab0
----
198
96
20
87
94
15

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT COUNT( + - 98 ) col2 FROM tab0
----
3

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

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

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

query I rowsort
SELECT col1 * - col1 * + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 73 IS NOT NULL
----

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

query I rowsort
SELECT ALL - - 80 AS col1 FROM tab2 cor0
----
80
80
80

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

query I rowsort
SELECT - col0 * + + col0 * + col1 FROM tab0 AS cor0
----
-158949
-18225
-9409

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

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT COUNT( * ) + - MIN( ALL col0 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-890
SELECT COUNT ( * ) + - MIN ( ALL col0 ) FROM tab0
----
-12

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

query I rowsort
SELECT DISTINCT - col0 * 80 AS col2 FROM tab0
----
-1200
-6960
-7760

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT ( MIN( ALL + ( + ( - - 9 ) ) ) ) AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-893
SELECT ( MIN ( ALL + ( + ( - - 9 ) ) ) ) AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( - col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-894
SELECT ALL + 97 DIV - col1 AS col1 FROM tab0
----
-1
-4
-97

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL + 97 / - col1 AS col1 FROM tab0
----
-1
-4
-97

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 38 >= + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT MIN( DISTINCT - col1 ) + + ( COUNT( * ) ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-897
SELECT MIN ( DISTINCT - col1 ) + + ( COUNT ( * ) ) FROM tab1
----
-44

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

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT MAX ( 19 ) FROM tab0 AS cor0
----
19

query II rowsort
SELECT DISTINCT - col0 * 19 + col2 AS col0, - 38 AS col0 FROM tab0 AS cor0
----
-1643
-38
-1744
-38
-238
-38

query II rowsort
SELECT ( col2 ) AS col1, - 40 FROM tab0
----
10
-40
47
-40
99
-40

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab2 AS cor1 ON NULL IS NOT NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

query I rowsort
SELECT - col0 + - 21 - - col0 FROM tab1
----
-21
-21
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-903
SELECT DISTINCT 60 + CAST( - + COUNT( * ) AS DECIMAL ) + + 63 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT DISTINCT 60 + CAST ( - + COUNT ( * ) AS REAL ) + + 63 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

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

query I rowsort
SELECT + col1 + - 22 AS col0 FROM tab0 cor0
----
-1
-21
59

query I rowsort
SELECT ALL + col2 + + - 43 * 33 AS col1 FROM tab0 AS cor0
----
-1320
-1372
-1409

query I rowsort
SELECT DISTINCT + - 47 + - col2 FROM tab2 AS cor0
----
-105
-70
-87

query I rowsort
SELECT + ( - - ( + 74 ) ) AS col1 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT ALL 2 AS col2 FROM tab1 WHERE NOT NULL > + + col0
----

query I rowsort
SELECT ALL - ( - 88 ) AS col0 FROM tab0
----
88
88
88

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

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

query II rowsort
SELECT - 65 AS col1, 27 FROM tab1 AS cor0
----
-65
27
-65
27
-65
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-914
SELECT ALL col2 DIV - 16 AS col1 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL col2 / - 16 AS col1 FROM tab2
----
-1
-2
-3

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

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NOT col1 >= ( col2 )
----
99

query I rowsort
SELECT + 85 * + + 56 AS col0 FROM tab2 AS cor0
----
4760
4760
4760

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-919
SELECT - 48 AS col2, SUM( - - col1 ) AS col1 FROM tab0 AS cor0
----
-48
103

skipif mysql # not compatible
query II rowsort label-919
SELECT - 48 AS col2, SUM ( - - col1 ) AS col1 FROM tab0 AS cor0
----
-48
103

query I rowsort
SELECT col0 * 80 AS col2 FROM tab0 AS cor0
----
1200
6960
7760

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT DISTINCT 65 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT 65 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
195

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

onlyif mysql # DIV for integer division: 
query I rowsort label-923
SELECT DISTINCT col2 DIV - 24 AS col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT col2 / - 24 AS col2 FROM tab2
----
-1
-2
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT - - 21 + - - MAX( - 32 ) AS col0 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-925
SELECT - - 21 + - - MAX ( - 32 ) AS col0 FROM tab1 AS cor0
----
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-926
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE ( + col2 / - col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL + CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE ( + col2 / - col1 ) IS NULL
----

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

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

query I rowsort
SELECT + 89 * - 14 FROM tab2
----
-1246
-1246
-1246

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT COUNT( ALL + - 27 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-930
SELECT COUNT ( ALL + - 27 ) FROM tab2
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-932
SELECT - 76 DIV col2 AS col2 FROM tab0 cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-932
SELECT - 76 / col2 AS col2 FROM tab0 cor0
----
-1
-7
0

onlyif mysql # DIV for integer division: 
query I rowsort label-933
SELECT ( - + col0 ) DIV + ( 81 ) - - - col2 FROM tab0 AS cor0
----
-100
-11
-47

skipif mysql # not compatible
query I rowsort label-933
SELECT ( - + col0 ) / + ( 81 ) - - - col2 FROM tab0 AS cor0
----
-100
-11
-47

query I rowsort
SELECT DISTINCT - col0 * - + col0 * col0 + - 86 FROM tab2 AS cor0
----
262058
421789
97250

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-936
SELECT + COUNT ( * ) - - 7 col1 FROM tab0 AS cor0
----
10

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

query I rowsort
SELECT DISTINCT + 53 - + + 2 FROM tab0 AS cor0
----
51

query I rowsort
SELECT ALL 73 AS col2 FROM tab2 cor0
----
73
73
73

query I rowsort
SELECT col2 * - 24 * - - col1 * + col2 AS col0 FROM tab1
----
-3096576
-417720
-5215872

query I rowsort
SELECT + ( - - col2 ) * + 66 FROM tab2
----
1518
2640
3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-942
SELECT 55 * + - 21 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-942
SELECT 55 * + - 21 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-943
SELECT ALL - + ( - col0 ) FROM tab0 WHERE 84 * + col0 * col2 BETWEEN - CAST( NULL AS SIGNED ) AND col0
----

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL - + ( - col0 ) FROM tab0 WHERE 84 * + col0 * col2 BETWEEN - CAST ( NULL AS INTEGER ) AND col0
----

query I rowsort
SELECT 24 * col2 AS col0 FROM tab0
----
1128
2376
240

onlyif mysql # aggregate syntax: 
query II rowsort label-945
SELECT + MAX( ALL + col0 ), + 47 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL
47

skipif mysql # not compatible
query II rowsort label-945
SELECT + MAX ( ALL + col0 ), + 47 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL
47

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + col2 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - col2 * + 63 FROM tab2
----
-1449
-2520
-3654

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

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT - COUNT( DISTINCT - 54 ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-952
SELECT - COUNT ( DISTINCT - 54 ) AS col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-953
SELECT DISTINCT COUNT( * ), 21 col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-953
SELECT DISTINCT COUNT ( * ), 21 col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9
21

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT - MAX( DISTINCT 6 ) col2 FROM tab2
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-954
SELECT - MAX ( DISTINCT 6 ) col2 FROM tab2
----
-6

query II rowsort
SELECT DISTINCT - col0 AS col2, - col1 * ( + + col0 ) FROM tab1 AS cor0
----
-51
-714
-85
-425
-91
-4277

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 6
----

query I rowsort
SELECT col0 + 83 FROM tab1 AS cor0
----
134
168
174

query I rowsort
SELECT DISTINCT ( + 24 ) AS col2 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT COUNT( * ) * - 99 * + 68 + + ( ( - COUNT( * ) ) ) FROM tab1
----
-20199

skipif mysql # not compatible
query I rowsort label-959
SELECT COUNT ( * ) * - 99 * + 68 + + ( ( - COUNT ( * ) ) ) FROM tab1
----
-20199

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT - MIN( - col0 ) + - COUNT( * ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-960
SELECT - MIN ( - col0 ) + - COUNT ( * ) FROM tab1
----
88

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 IN ( + 13, + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT 79 + col0 FROM tab0
----
166
176
94

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-965
SELECT ALL - col1 + 16 + + - CAST ( NULL AS INTEGER ) / col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + - 59 AS col0 FROM tab0 AS cor0 WHERE NULL <> col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> + ( col2 ) - + col2
----

query I rowsort
SELECT - 83 * 84 - + col1 AS col2 FROM tab0
----
-6973
-6993
-7053

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-972
SELECT col2 DIV - + 80 AS col1, 43 FROM tab1 AS cor0
----
-1
43
0
43
0
43

skipif mysql # not compatible
query II rowsort label-972
SELECT col2 / - + 80 AS col1, 43 FROM tab1 AS cor0
----
-1
43
0
43
0
43

query I rowsort
SELECT ALL + 36 * - col1 + 99 AS col2 FROM tab2 cor0
----
-1737
-2313
-2673

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-975
SELECT + col1 FROM tab1 WHERE NOT ( - CAST( NULL AS SIGNED ) * - 99 ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-975
SELECT + col1 FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) * - 99 ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT - col1 * + 37 AS col2 FROM tab1
----
-1739
-185
-518

query II rowsort
SELECT DISTINCT + col1 AS col0, + col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

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

skipif mysql # not compatible
query I rowsort label-978
SELECT - + COUNT ( - ( + + 98 ) ) * + COUNT ( * ) FROM tab2 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-979
SELECT col0 + - 75 + col2 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= + CAST( NULL AS SIGNED ) + + col2
----

skipif mysql # not compatible
query I rowsort label-979
SELECT col0 + - 75 + col2 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= + CAST ( NULL AS INTEGER ) + + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT ALL MIN( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL MIN ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT 54 + 70 * col0 AS col2 FROM tab2
----
3274
4534
5304

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

query II rowsort
SELECT ( + 6 ) AS col1, - col2 * - col0 FROM tab0 AS cor0
----
6
705
6
870
6
9603

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

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

query I rowsort
SELECT + col2 * + + 70 FROM tab0 AS cor0
----
3290
6930
700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 + - + col1 col0, + col1 AS col0 FROM tab1 AS cor0
----
-10
5
-28
14
-94
47

query I rowsort
SELECT + col0 - + 63 FROM tab1
----
-12
22
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 + - col0 + ( - col2 ) col1 FROM tab2
----
-126
-161
-190

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

onlyif mysql # DIV for integer division: 
query I rowsort label-991
SELECT col1 DIV + + col2 + - 74 FROM tab1
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-991
SELECT col1 / + + col2 + - 74 FROM tab1
----
-74
-74
-74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-992
SELECT 48 + + CAST( + col1 AS SIGNED ) DIV - 43 col0 FROM tab0
----
47
48
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-992
SELECT 48 + + CAST ( + col1 AS INTEGER ) / - 43 col0 FROM tab0
----
47
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT ALL + MIN( DISTINCT + 5 ) AS col0 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL + MIN ( DISTINCT + 5 ) AS col0 FROM tab2
----
5

query I rowsort
SELECT ALL + 10 * - - col0 FROM tab1 WHERE NULL IS NULL
----
510
850
910

query II rowsort
SELECT + col0 + ( col1 ) - + col2 * + col1 AS col1, col2 AS col1 FROM tab2
----
-1076
23
-2939
40
-3744
58

query I rowsort
SELECT ALL + 27 + col0 AS col0 FROM tab0
----
114
124
42

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-997
SELECT + + 70 + + 61 AS col0 FROM tab2 AS cor0 WHERE + CAST( - + col1 AS DECIMAL ) NOT BETWEEN - - 26 + - CAST( NULL AS SIGNED ) * - - 91 + + col2 - + 69 AND NULL
----

skipif mysql # not compatible
query I rowsort label-997
SELECT + + 70 + + 61 AS col0 FROM tab2 AS cor0 WHERE + CAST ( - + col1 AS REAL ) NOT BETWEEN - - 26 + - CAST ( NULL AS INTEGER ) * - - 91 + + col2 - + 69 AND NULL
----

query II rowsort
SELECT - - col2 * - - col2 + - col1 AS col1, 41 AS col0 FROM tab2 AS cor0
----
1523
41
3297
41
478
41

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1000
SELECT DISTINCT + - 7 DIV + 53 + + - col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT + - 7 / + 53 + + - col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1001
SELECT - 21 DIV - + CAST( - + ( + col1 ) AS SIGNED ) FROM tab0 cor0
----
-1
-21
0

skipif mysql # not compatible
query I rowsort label-1001
SELECT - 21 / - + CAST ( - + ( + col1 ) AS INTEGER ) FROM tab0 cor0
----
-1
-21
0

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

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - - 24, + 22 - - 7, + ( - 13 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1008
SELECT ALL COUNT( * ), 95 + - - 1 AS col1 FROM tab1 AS cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-1008
SELECT ALL COUNT ( * ), 95 + - - 1 AS col1 FROM tab1 AS cor0
----
3
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT - 95 * + COUNT( * ) * - 43 FROM tab2
----
12255

skipif mysql # not compatible
query I rowsort label-1010
SELECT - 95 * + COUNT ( * ) * - 43 FROM tab2
----
12255

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT + COUNT( * ) * COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-1011
SELECT + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
9

query I rowsort
SELECT - ( - + 52 ) * - - col1 FROM tab0
----
1092
4212
52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1014
SELECT - + CAST( 52 AS SIGNED ) * 4 AS col1 FROM tab0 AS cor0
----
-208
-208
-208

skipif mysql # not compatible
query I rowsort label-1014
SELECT - + CAST ( 52 AS INTEGER ) * 4 AS col1 FROM tab0 AS cor0
----
-208
-208
-208

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

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

query I rowsort
SELECT DISTINCT col1 * col0 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-201019
-2125
-9996

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1017
SELECT col2 AS col0, CAST( NULL AS SIGNED ) - - col0 AS col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-1017
SELECT col2 AS col0, CAST ( NULL AS INTEGER ) - - col0 AS col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT + - COUNT( * ) * - ( - - COUNT( * ) ) + + COUNT( * ) FROM tab2 cor0 WHERE col1 * + col1 + + 36 IS NOT NULL
----
12

skipif mysql # not compatible
query I rowsort label-1018
SELECT + - COUNT ( * ) * - ( - - COUNT ( * ) ) + + COUNT ( * ) FROM tab2 cor0 WHERE col1 * + col1 + + 36 IS NOT NULL
----
12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT DISTINCT + + COUNT( + + 17 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT + + COUNT ( + + 17 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE - ( + - col0 ) >= - - 53
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1022
SELECT 20 DIV + ( + - col1 ) FROM tab0
----
-20
0
0

skipif mysql # not compatible
query I rowsort label-1022
SELECT 20 / + ( + - col1 ) FROM tab0
----
-20
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1023
SELECT ( 60 ) DIV + - 65 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1023
SELECT ( 60 ) / + - 65 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < 6
----

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

query I rowsort
SELECT ALL - 60 + ( + 83 ) FROM tab2 cor0
----
23
23
23

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-1028
SELECT ALL - 91 - + SUM( + + 86 ) AS col1 FROM tab0 cor0
----
-349

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL - 91 - + SUM ( + + 86 ) AS col1 FROM tab0 cor0
----
-349

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT ALL + 76 * COUNT( * ) AS col0 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL + 76 * COUNT ( * ) AS col0 FROM tab1
----
228

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1036
SELECT - CAST ( 24 AS INTEGER ) FROM tab1 AS cor0
----
-24
-24
-24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT DISTINCT - + COUNT( * ) * - 8 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT - + COUNT ( * ) * - 8 FROM tab2 AS cor0
----
24

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

query I rowsort
SELECT ALL - 93 * + col2 AS col0 FROM tab1
----
-5487
-6324
-8928

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

query I rowsort
SELECT - - col2 * + col2 + 4 + 77 * - 27 * + 46 AS col2 FROM tab1 WHERE NOT ( - ( + col2 ) * + + col0 ) = col0
----
-86414
-91006
-92149

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 < - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

query I rowsort
SELECT - 52 * - col0 + 20 + + col0 * 13 * + 85 AS col2 FROM tab0 AS cor0
----
100679
112249
17375

query I rowsort
SELECT + 4 * 31 * - col1 + col0 FROM tab2 AS cor0
----
-6278
-8233
-9484

query I rowsort
SELECT DISTINCT + + col2 * + col0 * + col1 + + - 91 + col1 FROM tab1 AS cor0
----
24989
290792
68467

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT ALL COUNT( * ) * - 86 * - + 14 - + SUM( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3509

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL COUNT ( * ) * - 86 * - + 14 - + SUM ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3509

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT + - MIN( - col1 ) * + + 51 AS col1 FROM tab2 cor0
----
3927

skipif mysql # not compatible
query I rowsort label-1050
SELECT + - MIN ( - col1 ) * + + 51 AS col1 FROM tab2 cor0
----
3927

onlyif mysql # aggregate syntax: 
query II rowsort label-1051
SELECT + SUM( - col2 ) AS col1, 19 AS col1 FROM tab2 AS cor0
----
-121
19

skipif mysql # not compatible
query II rowsort label-1051
SELECT + SUM ( - col2 ) AS col1, 19 AS col1 FROM tab2 AS cor0
----
-121
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 < + 34
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT - - ( col0 ) - + col0 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT 81 - - COUNT( * ) col2 FROM tab2
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1054
SELECT 81 - - COUNT ( * ) col2 FROM tab2
----
84

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1056
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1057
SELECT ALL - COUNT ( ALL - col0 ) col1 FROM tab0 AS cor0
----
-3

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

query I rowsort
SELECT - ( 75 ) FROM tab1 AS cor0
----
-75
-75
-75

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT DISTINCT - MAX( ALL - + col0 ) AS col1 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-1065
SELECT DISTINCT - MAX ( ALL - + col0 ) AS col1 FROM tab0 cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 * - ( + + 57 ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT ALL - 17 * - 80 + ( + - 29 ) + - COUNT( * ) AS col2 FROM tab1
----
1328

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL - 17 * - 80 + ( + - 29 ) + - COUNT ( * ) AS col2 FROM tab1
----
1328

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT SUM( DISTINCT - - col1 ) FROM tab2 WHERE NOT + col0 + - 56 IS NULL
----
195

skipif mysql # not compatible
query I rowsort label-1069
SELECT SUM ( DISTINCT - - col1 ) FROM tab2 WHERE NOT + col0 + - 56 IS NULL
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT DISTINCT - ( + + 1 ) * - + COUNT( * ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT - ( + + 1 ) * - + COUNT ( * ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT COUNT( * ) + - 95 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-1071
SELECT COUNT ( * ) + - 95 FROM tab0
----
-92

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

query I rowsort
SELECT DISTINCT - 98 * col2 FROM tab2
----
-2254
-3920
-5684

query I rowsort
SELECT DISTINCT - col1 + + - 16 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN + - 55 AND + col2
----
-67
-83
-93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT - COUNT( * ) FROM tab2 cor0 WHERE 32 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1076
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE 32 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 72 * - + 33 + - col1 col2 FROM tab0 WHERE - - col1 NOT BETWEEN - col0 AND + + 92
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT DISTINCT - COUNT( * ) + COUNT( * ) col1 FROM tab0 cor0
----
0

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

query I rowsort
SELECT 91 + + 45 AS col0 FROM tab0 AS cor0
----
136
136
136

query I rowsort
SELECT - - 57 + - ( - col0 ) FROM tab2 AS cor0
----
103
121
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT ALL + COUNT( * ) - - 85 AS col2 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-1082
SELECT ALL + COUNT ( * ) - - 85 AS col2 FROM tab0 AS cor0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1083
SELECT DISTINCT + col2 - + + col2 + - + col1 * + - CAST( + 37 AS SIGNED ) FROM tab2
----
1887
2479
2849

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT + col2 - + + col2 + - + col1 * + - CAST ( + 37 AS INTEGER ) FROM tab2
----
1887
2479
2849

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1084
SELECT ALL * FROM tab1 WHERE NOT - 62 * + + col1 + - CAST( NULL AS DECIMAL ) + 90 * 49 + + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1084
SELECT ALL * FROM tab1 WHERE NOT - 62 * + + col1 + - CAST ( NULL AS REAL ) + 90 * 49 + + col0 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT + MIN( + ( + 45 ) ) col1 FROM tab2
----
45

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

query I rowsort
SELECT + 59 * col1 AS col2 FROM tab1
----
2773
295
826

query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
92

query I rowsort
SELECT - - 6 * + - ( - col1 ) * 91 * - col1 FROM tab1 AS cor0
----
-107016
-1206114
-13650

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

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

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

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

query I rowsort
SELECT + col2 * - 25 * + 68 FROM tab2 AS cor0
----
-39100
-68000
-98600

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

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

query I rowsort
SELECT ALL 7 * - + col2 FROM tab0 AS cor0
----
-329
-693
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT ALL + COUNT( ALL - - col2 ) FROM tab2 AS cor0 WHERE NOT col1 + - col0 = 90
----
3

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL + COUNT ( ALL - - col2 ) FROM tab2 AS cor0 WHERE NOT col1 + - col0 = 90
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT COUNT( * ) * + 37 * + MIN( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
-8547

skipif mysql # not compatible
query I rowsort label-1097
SELECT COUNT ( * ) * + 37 * + MIN ( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
-8547

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1102
SELECT DISTINCT - 71 + col1 DIV col1 * + col2 AS col0 FROM tab2
----
-13
-31
-48

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT - 71 + col1 / col1 * + col2 AS col0 FROM tab2
----
-13
-31
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT - 68 + SUM( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1104
SELECT - 68 + SUM ( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
-291

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT ALL COUNT( - 82 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL COUNT ( - 82 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 64 ) col1 FROM tab2
----
-64

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

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

query I rowsort
SELECT - col2 - - - 11 FROM tab1 AS cor0
----
-107
-70
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-1110
SELECT ALL + col2 + - col1 DIV + 99 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL + col2 + - col1 / + 99 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL col0 - - + col2 AS col2 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 95 / col1 + - 68 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1113
SELECT - col0 * + - col2 DIV col2 + + 81 - + col1 FROM tab1 AS cor0
----
118
125
161

skipif mysql # not compatible
query I rowsort label-1113
SELECT - col0 * + - col2 / col2 + + 81 - + col1 FROM tab1 AS cor0
----
118
125
161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) - 81 * + col0 * + + col0 col2 FROM tab1 AS cor0
----
-210777
-585284
-670829

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 82, col0 * + col2 * - 14 * + col0 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col2 + + - 76 AS col2 FROM tab2
----
-116
-134
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT DISTINCT + MAX( DISTINCT - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT + MAX ( DISTINCT - col0 ) FROM tab2
----
-46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT + MAX( - + col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1119
SELECT + MAX ( - + col2 ) AS col1 FROM tab0
----
-10

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

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

query I rowsort
SELECT ALL - 38 * + 71 * + col1 FROM tab1
----
-126806
-13490
-37772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1122
SELECT ALL col0 FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) ) >= - 33
----

skipif mysql # not compatible
query I rowsort label-1122
SELECT ALL col0 FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) ) >= - 33
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1123
SELECT COUNT( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
0

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

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

skipif mysql # not compatible
query I rowsort label-1124
SELECT - MIN ( DISTINCT - 90 ) AS col1 FROM tab1 AS cor0
----
90

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * + col1 * - + 0 NOT BETWEEN NULL AND NULL
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT ALL SUM( DISTINCT - 47 ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL SUM ( DISTINCT - 47 ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1133
SELECT + col1 DIV + + col1 + col0, 9 AS col2 FROM tab1
----
52
9
86
9
92
9

skipif mysql # not compatible
query II rowsort label-1133
SELECT + col1 / + + col1 + col0, 9 AS col2 FROM tab1
----
52
9
86
9
92
9

query I rowsort
SELECT + 9 + - col0 AS col0 FROM tab1
----
-42
-76
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, - 28 FROM tab1
----
59
-28
68
-28
96
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1136
SELECT 49 * + 73 + + CAST( NULL AS SIGNED ) * + col2 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1136
SELECT 49 * + 73 + + CAST ( NULL AS INTEGER ) * + col2 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT DISTINCT MAX( - col1 ) * COUNT( * ) FROM tab0 WHERE + - 68 / col2 - - 68 + + col2 + + + 1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT MAX ( - col1 ) * COUNT ( * ) FROM tab0 WHERE + - 68 / col2 - - 68 + + col2 + + + 1 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1138
SELECT DISTINCT - col2 + + CAST( + + ( - 91 ) AS SIGNED ) FROM tab0
----
-101
-138
-190

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT - col2 + + CAST ( + + ( - 91 ) AS INTEGER ) FROM tab0
----
-101
-138
-190

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT COUNT( * ) col0 FROM tab2 WHERE NULL >= + + 95
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1141
SELECT COUNT ( * ) col0 FROM tab2 WHERE NULL >= + + 95
----
0

query I rowsort
SELECT + col1 * - 6 AS col1 FROM tab2
----
-306
-402
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-1143
SELECT DISTINCT 78 DIV ( - 6 ) + + 26 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-1143
SELECT DISTINCT 78 / ( - 6 ) + + 26 FROM tab2
----
13

query III rowsort
SELECT ALL * FROM tab2 WHERE 82 + - 85 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT MAX( DISTINCT - + ( - 11 ) ) AS col2 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-1145
SELECT MAX ( DISTINCT - + ( - 11 ) ) AS col2 FROM tab0
----
11

query I rowsort
SELECT ALL + + col0 * col0 + - col2 FROM tab2 AS cor0
----
2093
4056
5567

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

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

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

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

query I rowsort
SELECT ALL + 83 - - + col2 FROM tab1 AS cor0
----
142
151
179

query I rowsort
SELECT - 31 - col2 FROM tab1 AS cor0
----
-127
-90
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT ALL - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1153
SELECT + 80 * 64 * + - 21 + - MAX( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT + 80 * 64 * + - 21 + - MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

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

query I rowsort
SELECT + col1 + + - col0 - - 91 FROM tab1 AS cor0
----
11
47
54

onlyif mysql # aggregate syntax: 
query II rowsort label-1156
SELECT - - COUNT( ALL + + col0 ) * + + 65 * - COUNT( * ) + - 37 + - ( COUNT( * ) ), + SUM( - 98 ) AS col2 FROM tab1 AS cor0
----
-625
-294

skipif mysql # not compatible
query II rowsort label-1156
SELECT - - COUNT ( ALL + + col0 ) * + + 65 * - COUNT ( * ) + - 37 + - ( COUNT ( * ) ), + SUM ( - 98 ) AS col2 FROM tab1 AS cor0
----
-625
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1157
SELECT ALL - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL < NULL
----
0

query I rowsort
SELECT - ( 49 ) AS col1 FROM tab1
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 65 AS col1, - col1 col1 FROM tab2
----
65
-51
65
-67
65
-77

query I rowsort
SELECT ALL ( 6 ) * + col1 FROM tab0
----
126
486
6

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * + col0 col0 FROM tab1
----
4386
7310
7826

query I rowsort
SELECT ALL col1 * - + 74 AS col0 FROM tab1
----
-1036
-3478
-370

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

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

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( ( NULL ) BETWEEN - - 80 * + 34 / col1 AND + col2 ) )
----

query I rowsort
SELECT DISTINCT - 25 * col0 FROM tab2
----
-1150
-1600
-1875

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + - 60 ) BETWEEN ( NULL ) AND - col1
----
15
81
47

query III rowsort
SELECT ALL * FROM tab2 WHERE 11 * - 79 IS NULL
----

query II rowsort
SELECT + col0 AS col2, + col2 AS col2 FROM tab2 cor0
----
46
23
64
40
75
58

query I rowsort
SELECT ALL - - 83 * col2 - + - 52 FROM tab1 cor0 WHERE NULL <> 97
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1172
SELECT - + 33 * + col2 AS col0, col1 * - col1 * - 3 + - CAST( NULL AS SIGNED ) + - - col0 * - - 35 * + ( + 46 ) col1 FROM tab1 AS cor0
----
-1947
NULL
-2244
NULL
-3168
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1172
SELECT - + 33 * + col2 AS col0, col1 * - col1 * - 3 + - CAST ( NULL AS INTEGER ) + - - col0 * - - 35 * + ( + 46 ) col1 FROM tab1 AS cor0
----
-1947
NULL
-2244
NULL
-3168
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT ALL + 94 * + MAX( col0 ) FROM tab2 AS cor0
----
7050

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL + 94 * + MAX ( col0 ) FROM tab2 AS cor0
----
7050

onlyif mysql # DIV for integer division: 
query I rowsort label-1174
SELECT + - col2 DIV col2 + ( + col2 ) + + + col2 * + col1 AS col2 FROM tab0 AS cor0
----
197
219
3853

skipif mysql # not compatible
query I rowsort label-1174
SELECT + - col2 / col2 + ( + col2 ) + + + col2 * + col1 AS col2 FROM tab0 AS cor0
----
197
219
3853

query II rowsort
SELECT - + col2 AS col2, col0 * - col2 FROM tab1 AS cor0
----
-59
-5015
-68
-6188
-96
-4896

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 < col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * col0 col1, + ( + col2 ) FROM tab2
----
2116
23
4096
40
5625
58

query I rowsort
SELECT DISTINCT 40 * + col0 + + + col0 * + col2 FROM tab0
----
1305
13483
4350

query I rowsort
SELECT - - 50 * col0 * - - 6 + - + col1 FROM tab0 AS cor0
----
26079
29099
4419

query II rowsort
SELECT DISTINCT - - col1 - - 79 AS col1, col1 FROM tab1 AS cor0
----
126
47
84
5
93
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT 47 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-1182
SELECT 47 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
50

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

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

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

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

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

query I rowsort
SELECT ALL - + ( - 68 ) AS col1 FROM tab2 AS cor0
----
68
68
68

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

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

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

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

query I rowsort
SELECT DISTINCT + + ( - 47 ) FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1191
SELECT ALL CAST( - ( + col2 ) AS SIGNED ) * col1 * + + 87 * + col2 FROM tab2
----
-10718400
-19608756
-2347173

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL CAST ( - ( + col2 ) AS INTEGER ) * col1 * + + 87 * + col2 FROM tab2
----
-10718400
-19608756
-2347173

query I rowsort
SELECT - - col0 * + 83 * + - col2 * + + col0 + + 63 FROM tab2 WHERE NOT + - col0 + 76 = + col2 * + ( - - col2 )
----
-13598657
-27078687
-4039381

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + col1 / - col0 + 88 < NULL
----

query I rowsort
SELECT - ( + + 29 ) FROM tab0 WHERE NOT 71 NOT BETWEEN NULL AND NULL
----

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

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

query II rowsort
SELECT ( - + col1 ) AS col0, col2 FROM tab2
----
-51
23
-67
58
-77
40

query I rowsort
SELECT ALL - 91 * + + 35 * - 50 * + col2 + - + col0 + + col1 / + + 41 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + col0 * + + ( + col1 ) AS col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT + 15 * - 93 + + + col2 FROM tab1 WHERE NOT - col2 / + - 44 IS NULL
----
-1299
-1327
-1336

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

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

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

query I rowsort
SELECT DISTINCT + col1 * - 98 AS col2 FROM tab2
----
-4998
-6566
-7546

onlyif mysql # DIV for integer division: 
query I rowsort label-1203
SELECT DISTINCT col0 DIV col1 + + 28 + - col1 AS col1 FROM tab1
----
-18
17
40

skipif mysql # not compatible
query I rowsort label-1203
SELECT DISTINCT col0 / col1 + + 28 + - col1 AS col1 FROM tab1
----
-18
17
40

query II rowsort
SELECT DISTINCT + + 60 AS col1, 0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
60
0

query I rowsort
SELECT - 24 + + col2 + + ( + ( 17 ) ) AS col0 FROM tab2 cor0 WHERE + 5 <= + col1
----
16
33
51

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

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT - MAX ( DISTINCT - col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT DISTINCT 61 * - ( - COUNT( * ) ) + - 60 col2 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1207
SELECT DISTINCT 61 * - ( - COUNT ( * ) ) + - 60 col2 FROM tab1 AS cor0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1208
SELECT ALL CAST( - - col1 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL CAST ( - - col1 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT + 41 + MIN( + 51 ) - - - 97 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1209
SELECT + 41 + MIN ( + 51 ) - - - 97 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT - col1 + - 19 * + 90 AS col2 FROM tab2 AS cor0
----
-1761
-1777
-1787

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT MAX( col2 ) FROM tab0 WHERE + 59 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1211
SELECT MAX ( col2 ) FROM tab0 WHERE + 59 <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT 3 + MAX( DISTINCT - col0 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-1212
SELECT 3 + MAX ( DISTINCT - col0 ) FROM tab0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1213
SELECT MAX( ALL col0 ) * + MIN( ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1213
SELECT MAX ( ALL col0 ) * + MIN ( ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - + col1 / + col0 = - col0 + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT ALL - + MAX( DISTINCT - ( + - col1 ) ) FROM tab0 WHERE NOT col2 >= + col1
----
-81

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL - + MAX ( DISTINCT - ( + - col1 ) ) FROM tab0 WHERE NOT col2 >= + col1
----
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT 52 * - MIN( ALL + + ( col2 ) ) FROM tab2
----
-1196

skipif mysql # not compatible
query I rowsort label-1217
SELECT 52 * - MIN ( ALL + + ( col2 ) ) FROM tab2
----
-1196

query I rowsort
SELECT - + 48 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1219
SELECT ALL - 25 DIV + col0 + + col0 col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1219
SELECT ALL - 25 / + col0 + + col0 col2 FROM tab1
----
51
85
91

query I rowsort
SELECT - col0 - - ( - 38 ) FROM tab0 AS cor0
----
-125
-135
-53

query I rowsort
SELECT - ( - 8 ) - - col0 FROM tab2 AS cor0
----
54
72
83

query I rowsort
SELECT + - col1 + + ( 76 ) FROM tab0 AS cor0
----
-5
55
75

query I rowsort
SELECT DISTINCT 56 - + 27 AS col0 FROM tab2
----
29

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

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

skipif mysql # not compatible
query I rowsort label-1225
SELECT SUM ( - - col1 ) AS col0 FROM tab1 AS cor0
----
66

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT DISTINCT + 92 + + + MIN( ALL + 99 ) FROM tab0 AS cor0
----
191

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT + 92 + + + MIN ( ALL + 99 ) FROM tab0 AS cor0
----
191

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT col2 < - col1
----
14
47
5

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

query I rowsort
SELECT DISTINCT - - 92 * + 84 AS col1 FROM tab2 AS cor0
----
7728

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1235
SELECT DISTINCT 35 * - 54 AS col2 FROM tab1 WHERE ( 91 * - CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND - col0 / 98
----

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT 35 * - 54 AS col2 FROM tab1 WHERE ( 91 * - CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND - col0 / 98
----

query I rowsort
SELECT DISTINCT - 55 * - ( col2 ) FROM tab2
----
1265
2200
3190

query I rowsort
SELECT ALL col0 * + 19 AS col2 FROM tab1
----
1615
1729
969

query I rowsort
SELECT DISTINCT col0 * 15 FROM tab1
----
1275
1365
765

query III rowsort
SELECT * FROM tab2 WHERE - col1 BETWEEN + 77 * col1 AND ( 95 )
----

query I rowsort
SELECT + col2 FROM tab0 WHERE - col0 + col0 NOT IN ( col0 )
----
10
47
99

query I rowsort
SELECT ALL col1 * + 53 AS col0 FROM tab2 WHERE NOT ( NULL ) >= NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1243
SELECT CAST( + col1 AS SIGNED ) col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1243
SELECT CAST ( + col1 AS INTEGER ) col1 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL - COUNT( * ) * - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL - COUNT ( * ) * - COUNT ( * ) FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1245
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col2 + - ( col2 ) IN ( CAST( - ( - 85 ) AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1245
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col2 + - ( col2 ) IN ( CAST ( - ( - 85 ) AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 24 AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
24
24
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1247
SELECT ALL 44 DIV + 53 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL 44 / + 53 FROM tab1
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1250
SELECT - col1 DIV 55 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1250
SELECT - col1 / 55 AS col1 FROM tab2
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 53 col0 FROM tab2 WHERE NULL IS NULL
----
2703
3551
4081

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 51 BETWEEN 62 AND ( col2 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1255
SELECT + 23 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT + 57 * MIN( col0 ) FROM tab2
----
2622

skipif mysql # not compatible
query I rowsort label-1256
SELECT + 57 * MIN ( col0 ) FROM tab2
----
2622

query I rowsort
SELECT DISTINCT - 23 + col0 AS col0 FROM tab1
----
28
62
68

query I rowsort
SELECT DISTINCT + col1 - + col2 AS col0 FROM tab1
----
-21
-54
-82

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

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

query I rowsort
SELECT DISTINCT col1 * + 22 AS col2 FROM tab2
----
1122
1474
1694

query III rowsort
SELECT ALL * FROM tab2 WHERE 63 IS NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT - col0 * 33 AS col0 FROM tab0
----
-2871
-3201
-495

query I rowsort
SELECT + col0 + + 82 AS col1 FROM tab1 AS cor0
----
133
167
173

query I rowsort
SELECT 69 + - 15 * col0 AS col0 FROM tab0 AS cor0
----
-1236
-1386
-156

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * + col2 - col2 <> NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1272
SELECT - 85 DIV col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1272
SELECT - 85 / col2 FROM tab1
----
-1
-1
0

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

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

query I rowsort
SELECT AVG ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( 44 * col2 )
----
NULL

query I rowsort
SELECT + - 20 * + col0 AS col2 FROM tab0 AS cor0
----
-1740
-1940
-300

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

query I rowsort
SELECT DISTINCT 62 * col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 54 <= 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 < ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 5 * + col1 FROM tab0 cor0
----
105
405
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT 66 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-1281
SELECT 66 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-198

query I rowsort
SELECT ALL + 35 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT + 51 + col0 - col2 FROM tab0
----
128
19
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT ALL - MAX( DISTINCT col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL - MAX ( DISTINCT col2 ) AS col2 FROM tab0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1285
SELECT col1 DIV col0 + 43 FROM tab1
----
43
43
43

skipif mysql # not compatible
query I rowsort label-1285
SELECT col1 / col0 + 43 FROM tab1
----
43
43
43

query I rowsort
SELECT DISTINCT 20 * - 62 + col2 * + 89 FROM tab2
----
2320
3922
807

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT ALL COUNT( * ) + ( - 57 ) AS col1 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL COUNT ( * ) + ( - 57 ) AS col1 FROM tab1
----
-54

query I rowsort
SELECT + ( + 95 ) FROM tab1 AS cor0
----
95
95
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT + SUM( + + 9 ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-1290
SELECT + SUM ( + + 9 ) FROM tab0
----
27

query I rowsort
SELECT ALL 3 + ( + col1 ) AS col0 FROM tab0
----
24
4
84

query I rowsort
SELECT + 19 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT - col1 + - ( - - col0 ) FROM tab1 cor0
----
-138
-65
-90

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN NULL AND col2 + col0 * 22
----

query I rowsort
SELECT DISTINCT + col2 * 89 + + + col0 FROM tab1 AS cor0
----
5336
6143
8595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1297
SELECT DISTINCT + 22 DIV MIN( ALL - col0 ) col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1297
SELECT DISTINCT + 22 / MIN ( ALL - col0 ) col2 FROM tab0 cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1299
SELECT * FROM tab1 AS cor0 WHERE - ( + 76 ) * CAST( + 80 AS SIGNED ) + + col1 / - 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1299
SELECT * FROM tab1 AS cor0 WHERE - ( + 76 ) * CAST ( + 80 AS INTEGER ) + + col1 / - 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 - - - col1 - + - col1 * - col1 FROM tab1 AS cor0
----
-224
-2303
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1301
SELECT 10 * - - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT 10 * - - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1303
SELECT ALL - CAST( + + col0 AS SIGNED ) * - 48 FROM tab1
----
2448
4080
4368

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL - CAST ( + + col0 AS INTEGER ) * - 48 FROM tab1
----
2448
4080
4368

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 98 + - col0 col2 FROM tab0
----
-1067
-4621
-9799

query I rowsort
SELECT ALL - 3 AS col2 FROM tab1
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND 89 + col2 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1308
SELECT ALL + col1 DIV + + col2 + 39 AS col1 FROM tab1 AS cor0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL + col1 / + + col2 + 39 AS col1 FROM tab1 AS cor0
----
39
39
39

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * col1 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1848
7128
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1311
SELECT + ( - col2 ) AS col2 FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) * + 42 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1311
SELECT + ( - col2 ) AS col2 FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) * + 42 ) IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1314
SELECT DISTINCT - - col0, - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

skipif mysql # not compatible
query II rowsort label-1314
SELECT DISTINCT - - col0, - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

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

query I rowsort
SELECT - 88 * - col0 AS col1 FROM tab1 AS cor0
----
4488
7480
8008

onlyif mysql # DIV for integer division: 
query I rowsort label-1317
SELECT + 98 DIV - col0 FROM tab0 AS cor0
----
-1
-1
-6

skipif mysql # not compatible
query I rowsort label-1317
SELECT + 98 / - col0 FROM tab0 AS cor0
----
-1
-1
-6

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

query I rowsort
SELECT DISTINCT - col0 + - col1 FROM tab1 AS cor0 WHERE NOT col1 + - col0 + + col2 + + col2 IS NULL
----
-138
-65
-90

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

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

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

query I rowsort
SELECT ALL + - 82 AS col2 FROM tab0 AS cor0
----
-82
-82
-82

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 78 AS col0, + col2 + + 4 col2 FROM tab1
----
78
100
78
63
78
72

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

query I rowsort
SELECT DISTINCT - 37 * - 78 AS col1 FROM tab1
----
2886

query I rowsort
SELECT ALL - 31 + + col2 AS col2 FROM tab2
----
-8
27
9

query I rowsort
SELECT 84 * + col2 FROM tab0 WHERE NOT - col0 NOT BETWEEN ( - - col0 + - + col0 * + col2 + col0 ) AND ( + 84 * col1 )
----
3948
8316
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1332
SELECT COUNT( * ) * COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab2 WHERE - col0 NOT BETWEEN - + col2 AND + ( + + ( col1 ) ) / - col1 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT COUNT ( * ) * COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE - col0 NOT BETWEEN - + col2 AND + ( + + ( col1 ) ) / - col1 + col0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1335
SELECT COUNT( * ) + + + 43 AS col1, COUNT( + 81 ) FROM tab2 cor0
----
46
3

skipif mysql # not compatible
query II rowsort label-1335
SELECT COUNT ( * ) + + + 43 AS col1, COUNT ( + 81 ) FROM tab2 cor0
----
46
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1336
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 / - - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-1336
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 / - - CAST ( NULL AS INTEGER ) <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT - 39 * - COUNT( * ) FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-1339
SELECT - 39 * - COUNT ( * ) FROM tab2
----
117

query I rowsort
SELECT - + ( - col2 ) * + col2 FROM tab0 AS cor0 WHERE - 25 IS NULL
----

query II rowsort
SELECT + ( 61 ) AS col2, + 13 FROM tab0 AS cor0
----
61
13
61
13
61
13

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE + ( + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1344
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE + ( + col0 ) IS NULL
----
0

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

skipif mysql # not compatible
query III rowsort label-1345
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * + CAST ( NULL AS INTEGER ) BETWEEN + col1 * col0 AND - + 86
----

query I rowsort
SELECT + 68 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col1 * col0 - - - ( - 5 ) AS col2 FROM tab2 AS cor0
----
-2341
-4923
-5020

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT - - MIN( DISTINCT - col0 ) FROM tab1 WHERE NULL <= - + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1348
SELECT - - MIN ( DISTINCT - col0 ) FROM tab1 WHERE NULL <= - + 3
----
NULL

query I rowsort
SELECT ALL - col0 - - 73 + + - col1 FROM tab2
----
-24
-68
-69

query I rowsort
SELECT + col2 + 99 AS col2 FROM tab0
----
109
146
198

query I rowsort
SELECT + 39 + 44 FROM tab1
----
83
83
83

query I rowsort
SELECT DISTINCT + col0 - 91 FROM tab1
----
-40
-6
0

query I rowsort
SELECT + col0 FROM tab0 WHERE 94 * col1 <= ( NULL )
----

query I rowsort
SELECT 20 * col0 FROM tab1
----
1020
1700
1820

query III rowsort
SELECT * FROM tab2 WHERE + 47 / 45 = ( 7 ) OR NOT col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT DISTINCT 85 * + COUNT( * ) AS col1 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT 85 * + COUNT ( * ) AS col1 FROM tab1
----
255

query I rowsort
SELECT DISTINCT - col0 * col0 * col0 AS col0 FROM tab2
----
-262144
-421875
-97336

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT ALL - 40 * - - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL - 40 * - - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-123

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

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

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT + 21 / - - COUNT ( * ) FROM tab2 AS cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 52 col1, + 74 FROM tab0 AS cor0 WHERE col0 + + ( - col0 ) - 81 IS NOT NULL
----
52
74

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 76 * + 62 * 47 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 60 IN ( + 0 + - 79, - 35 )
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - ( - col1 ) * + 36 AS col0 FROM tab1 AS cor0
----
1692
180
504

query I rowsort
SELECT col2 * + 78 * + 84 AS col0 FROM tab0 cor0
----
307944
648648
65520

query II rowsort
SELECT ALL - + ( col0 ) AS col1, col1 * - - 9 FROM tab0 AS cor0 WHERE NOT - 99 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT ALL - MIN( DISTINCT 79 ) FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL - MIN ( DISTINCT 79 ) FROM tab2 AS cor0
----
-79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 <= ( - 45 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + + col1 / col0 NOT BETWEEN + 74 - + ( 98 ) * + col2 AND - col1 + ( - 14 )
----

query I rowsort
SELECT + 43 + + + col0 + + col0 FROM tab2
----
135
171
193

query I rowsort
SELECT ALL - 70 + + col1 * + 75 FROM tab2
----
3755
4955
5705

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 + + 83 FROM tab1
----
142
151
179

query I rowsort
SELECT ALL 18 AS col1 FROM tab0 AS cor0 WHERE ( NOT ( NULL ) BETWEEN NULL AND col0 / + 78 * + + col2 + 57 - 69 + - + col1 / col2 )
----

query I rowsort
SELECT 63 * + - 29 FROM tab0 AS cor0
----
-1827
-1827
-1827

query II rowsort
SELECT ALL col0, col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT ALL + ( - 87 ) + - 20 AS col1 FROM tab0 cor0
----
-107
-107
-107

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT DISTINCT + COUNT( * ) col1 FROM tab2 AS cor0 WHERE - col1 + - 9 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1383
SELECT DISTINCT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE - col1 + - 9 IS NULL
----
0

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 <= ( + + col2 ) * + col2 - - 78
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 24 - - - col0 FROM tab1 AS cor0
----
-27
-61
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT - 96 * - COUNT( * ) * - + 42 FROM tab1
----
-12096

skipif mysql # not compatible
query I rowsort label-1389
SELECT - 96 * - COUNT ( * ) * - + 42 FROM tab1
----
-12096

onlyif mysql # DIV for integer division: 
query I rowsort label-1390
SELECT + + col0 DIV - 59 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1390
SELECT + + col0 / - 59 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1391
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 70 + - + col2 * + 25 >= + col0 * + CAST( + + 47 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1391
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 70 + - + col2 * + 25 >= + col0 * + CAST ( + + 47 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT + col2 * + 91 AS col0 FROM tab0
----
4277
9009
910

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1394
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE + CAST( NULL AS SIGNED ) >= + - 2
----

skipif mysql # not compatible
query IIIIII rowsort label-1394
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE + CAST ( NULL AS INTEGER ) >= + - 2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1395
SELECT 46 AS col1 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
46
46
46

skipif mysql # not compatible
query I rowsort label-1395
SELECT 46 AS col1 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
46
46
46

query I rowsort
SELECT ALL - col0 * + ( 56 ) * col0 + - col1 FROM tab1
----
-145670
-404605
-463783

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

skipif mysql # not compatible
query II rowsort label-1397
SELECT - COUNT ( * ) AS col0, + MIN ( + col2 ) AS col1 FROM tab2 AS cor0
----
-3
23

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1400
SELECT ALL col0 AS col2, CAST( NULL AS SIGNED ) * - 48 AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-1400
SELECT ALL col0 AS col2, CAST ( NULL AS INTEGER ) * - 48 AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT - 90, - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - - 89 * + - col1 AS col1 FROM tab0 AS cor0
----
-1869
-7209
-89

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 = NULL
----

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

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

query I rowsort
SELECT - 38 * + 73 AS col2 FROM tab0 AS cor0
----
-2774
-2774
-2774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1406
SELECT + COUNT( * ), MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + - MAX( DISTINCT + col1 ) - + + 71 + - 53 + + 12 AS col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1406
SELECT + COUNT ( * ), MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - MAX ( DISTINCT + col1 ) - + + 71 + - 53 + + 12 AS col0 FROM tab2 AS cor0
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 * - col2 col1 FROM tab2
----
-1357
-2360
-3422

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1409
SELECT ALL 72 * + + CAST( NULL AS SIGNED ) + 7 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL 72 * + + CAST ( NULL AS INTEGER ) + 7 AS col1 FROM tab2
----
NULL
NULL
NULL

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * - col2 * 26 + + 63 AS col0 FROM tab0 AS cor0
----
18393
22683
249741

query I rowsort
SELECT DISTINCT + 25 + col0 AS col0 FROM tab2 AS cor0
----
100
71
89

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

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

query I rowsort
SELECT + 38 / + 55 FROM tab1 WHERE - + col0 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1419
SELECT DISTINCT CAST( col0 AS SIGNED ) + 79 * col0 AS col2 FROM tab1 cor0
----
4080
6800
7280

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT CAST ( col0 AS INTEGER ) + 79 * col0 AS col2 FROM tab1 cor0
----
4080
6800
7280

onlyif mysql # DIV for integer division: 
query I rowsort label-1420
SELECT - - 11 DIV - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1420
SELECT - - 11 / - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1421
SELECT ALL CAST( - + col1 AS SIGNED ) AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL CAST ( - + col1 AS INTEGER ) AS col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - col1 * - + col0 FROM tab0 WHERE NOT + - col1 IS NULL
----
1215
1827
97

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

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT + MAX ( ALL col1 ) FROM tab1
----
47

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1425
SELECT + 74, MIN( - - col2 ) AS col1 FROM tab2
----
74
23

skipif mysql # not compatible
query II rowsort label-1425
SELECT + 74, MIN ( - - col2 ) AS col1 FROM tab2
----
74
23

query I rowsort
SELECT - ( + - 81 ) FROM tab2
----
81
81
81

query I rowsort
SELECT col1 * + + 39 * + - 68 * 18 FROM tab1
----
-2243592
-238680
-668304

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT - ( - COUNT( * ) ) * - 26 * - + MAX( ALL + - 98 ) FROM tab1
----
-7644

skipif mysql # not compatible
query I rowsort label-1430
SELECT - ( - COUNT ( * ) ) * - 26 * - + MAX ( ALL + - 98 ) FROM tab1
----
-7644

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT DISTINCT SUM( - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT SUM ( - col2 ) AS col0 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT ALL + - col0, col2 AS col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT DISTINCT 61 * - SUM( - ( + - 78 ) ) AS col1 FROM tab0 AS cor0
----
-14274

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT 61 * - SUM ( - ( + - 78 ) ) AS col1 FROM tab0 AS cor0
----
-14274

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <> NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 34 * 28 AS col0, - col1 col2 FROM tab2 AS cor0
----
952
-51
952
-67
952
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT - 2 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1438
SELECT - 2 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT DISTINCT + 98 * + COUNT( * ) FROM tab1 cor0
----
294

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT + 98 * + COUNT ( * ) FROM tab1 cor0
----
294

query I rowsort
SELECT ALL AVG ( DISTINCT - 89 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT + col1 * + + col0 + + - col0 + ( 40 ) AS col2 FROM tab1
----
380
4226
703

query I rowsort
SELECT ALL - col1 * - 63 AS col1 FROM tab0
----
1323
5103
63

query I rowsort
SELECT - col2 + + + ( 30 ) AS col1 FROM tab0
----
-17
-69
20

onlyif mysql # aggregate syntax: 
query II rowsort label-1444
SELECT ALL - - COUNT( * ), 97 AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0
97

skipif mysql # not compatible
query II rowsort label-1444
SELECT ALL - - COUNT ( * ), 97 AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0
97

query II rowsort
SELECT - col2 * col2 + + - col1, col0 FROM tab0 WHERE col0 IS NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - + col1 - col2 * + col1 FROM tab0 AS cor0
----
-100
-231
-3888

query I rowsort
SELECT DISTINCT 57 + - 66 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT + 33 - + - 42 FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT 82 * col0 + - - col2 AS col1 FROM tab0
----
1277
7144
8053

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE col2 IN ( col2 - col0, ( col0 ) + - + 77 )
----
10

query I rowsort
SELECT DISTINCT - + col0 * + - 29 * col2 AS col2 FROM tab1 AS cor0
----
141984
145435
179452

onlyif mysql # DIV for integer division: 
query I rowsort label-1460
SELECT ALL col1 DIV + 50 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL col1 / + 50 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1461
SELECT + col0 DIV + ( + col1 ) FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-1461
SELECT + col0 / + ( + col1 ) FROM tab0 AS cor0
----
0
4
97

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

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT - MIN ( col0 ) AS col2 FROM tab2
----
-46

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 * col0 + col2 + - - 86 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 <= + + col2 * - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 4 AS col0 FROM tab1 WHERE NOT + col0 * - - col0 <= NULL
----

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

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT + + col1 * + - 4 + - col0 AS col0 FROM tab1 WHERE NOT ( + ( + 68 ) ) * - - col2 - CAST ( + 59 AS INTEGER ) + + 59 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 18 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + - col1 + + col2 * 90 + + ( + + 30 ) * + 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT MIN( DISTINCT - col2 ) * - 85 AS col2 FROM tab2
----
4930

skipif mysql # not compatible
query I rowsort label-1469
SELECT MIN ( DISTINCT - col2 ) * - 85 AS col2 FROM tab2
----
4930

query I rowsort
SELECT - col1 * - 22 + - + 51 * - 43 * - 67 + + 81 * - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( 51 + col2 )
----

query I rowsort
SELECT ALL + col0 * + - 71 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3266
-4544
-5325

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT - 83 * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-1472
SELECT - 83 * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT ALL + COUNT( * ) + - 18 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL + COUNT ( * ) + - 18 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT ALL + ( + col1 ) + - col0 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT - - 16 AS col2 FROM tab1 cor0 WHERE 74 IS NULL
----

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

query II rowsort
SELECT ALL - col2, - col2 + col2 AS col1 FROM tab2 cor0
----
-23
0
-40
0
-58
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1478
SELECT + col1 * - 0 DIV - + col1 AS col0 FROM tab1 AS cor0 WHERE + 60 * - 69 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1478
SELECT + col1 * - 0 / - + col1 AS col0 FROM tab1 AS cor0 WHERE + 60 * - 69 IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * - 42 AS col1 FROM tab2 cor0
----
1680
2436
966

onlyif mysql # DIV for integer division: 
query II rowsort label-1480
SELECT col2 - - col0 AS col2, col2 DIV - 81 AS col0 FROM tab0
----
196
-1
62
0
97
0

skipif mysql # not compatible
query II rowsort label-1480
SELECT col2 - - col0 AS col2, col2 / - 81 AS col0 FROM tab0
----
196
-1
62
0
97
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1482
SELECT ALL - CAST( + col0 AS SIGNED ) + + col2 FROM tab1
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL - CAST ( + col0 AS INTEGER ) + + col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT DISTINCT + ( - - col1 ) + + col1 * + 56 AS col2 FROM tab0 AS cor0
----
1197
4617
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT ALL + COUNT( ALL + 10 ) * + MIN( 78 ) - 97 AS col0 FROM tab2 AS cor0
----
137

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL + COUNT ( ALL + 10 ) * + MIN ( 78 ) - 97 AS col0 FROM tab2 AS cor0
----
137

query I rowsort
SELECT DISTINCT - 37 * - 5 - 42 AS col1 FROM tab0 AS cor0
----
143

query I rowsort
SELECT ALL - 67 * - col0 AS col1 FROM tab2
----
3082
4288
5025

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

query II rowsort
SELECT col0, + ( col2 ) - + ( - col0 ) - - col2 - - + 13 + - + 11 FROM tab0 cor0
----
15
111
87
109
97
297

onlyif mysql # aggregate syntax: 
query II rowsort label-1489
SELECT ALL SUM( + col2 ) * 31, 59 col1 FROM tab0 AS cor0
----
4836
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1489
SELECT ALL SUM ( + col2 ) * 31, 59 col1 FROM tab0 AS cor0
----
4836
59

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT 15 / col2 IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + 73 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
73

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

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

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

query I rowsort
SELECT + 39 + - col1 FROM tab1 WHERE NOT - col0 * + 31 * 27 * - + col1 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1495
SELECT ALL CAST( col0 AS SIGNED ) * + + ( - + col0 ) * + 82 + - 71 + - col0 + 94 + - 43 col1 FROM tab1
----
-213353
-592555
-679153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1495
SELECT ALL CAST ( col0 AS INTEGER ) * + + ( - + col0 ) * + 82 + - 71 + - col0 + 94 + - 43 col1 FROM tab1
----
-213353
-592555
-679153

query I rowsort
SELECT ALL - - col0 + + col2 FROM tab0 WHERE ( ( - + col0 IS NOT NULL ) )
----
196
62
97

query I rowsort
SELECT 54 * col0 FROM tab1
----
2754
4590
4914

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

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

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL COUNT ( * ) / 15 / - - 52 AS col0 FROM tab2
----
0

query I rowsort
SELECT col1 * - + 42 * + + 57 AS col1 FROM tab1
----
-112518
-11970
-33516

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1502
SELECT + MAX( + - 93 ) DIV - 18 AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1502
SELECT + MAX ( + - 93 ) / - 18 AS col1 FROM tab1 AS cor0
----
5

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + col0 + col1 IN ( 47, col0 )
----

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

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

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

query II rowsort
SELECT DISTINCT + - col2 AS col1, - col0 AS col0 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1508
SELECT CAST( + + col2 AS SIGNED ) * - 33 + - 46 FROM tab0
----
-1597
-3313
-376

skipif mysql # not compatible
query I rowsort label-1508
SELECT CAST ( + + col2 AS INTEGER ) * - 33 + - 46 FROM tab0
----
-1597
-3313
-376

query II rowsort
SELECT + col0, col1 FROM tab0 WHERE NOT ( NOT ( + col1 + col1 IS NULL ) ) OR NOT NULL IS NOT NULL
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT + col1 * col0 + + 8 AS col0 FROM tab1
----
4285
433
722

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1512
SELECT ALL + ( MIN( 50 ) ) + 25 * 40 * - ( 68 ) * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL + ( MIN ( 50 ) ) + 25 * 40 * - ( 68 ) * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1513
SELECT + SUM( DISTINCT - ( 94 ) ) DIV 13 AS col2 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-1513
SELECT + SUM ( DISTINCT - ( 94 ) ) / 13 AS col2 FROM tab0
----
-7

query I rowsort
SELECT DISTINCT + col1 + + - col0 + col0 + - + 50 FROM tab2
----
1
17
27

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

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

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

query I rowsort
SELECT ALL - + ( + + 19 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT - + ( - + 5 ) AS col0 FROM tab1 cor0
----
5
5
5

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1520
SELECT - COUNT( * ) DIV 1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1520
SELECT - COUNT ( * ) / 1 FROM tab0 cor0
----
-3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 8 AS col0, + col0 col0 FROM tab1 AS cor0 WHERE ( col0 * - col1 IS NOT NULL ) OR NULL NOT BETWEEN NULL AND NULL
----
8
51
8
85
8
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1523
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
-14
-47
-5

query I rowsort
SELECT + 64 FROM tab0 WHERE NOT - col1 NOT BETWEEN + col2 * - col1 - - col1 + - - 56 AND - - 12
----
64
64
64

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

skipif mysql # not compatible
query I rowsort label-1525
SELECT - 69 * - COUNT ( * ) FROM tab2
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1526
SELECT DISTINCT - - 29 AS col2 FROM tab1 WHERE col1 / + 81 * + col0 * + + col1 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1526
SELECT DISTINCT - - 29 AS col2 FROM tab1 WHERE col1 / + 81 * + col0 * + + col1 > - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 + - + 86 * + col1 * + + col2 col2 FROM tab1
----
-115562
-25348
-274834

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1530
SELECT col0 + - - col1 DIV + col1 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-1530
SELECT col0 + - - col1 / + col1 FROM tab0 AS cor0
----
16
88
98

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

query I rowsort
SELECT DISTINCT - col2 * col2 - ( - - ( - - 74 ) ) - - 54 AS col1 FROM tab1 AS cor0
----
-3501
-4644
-9236

query I rowsort
SELECT DISTINCT ( + 98 ) + - col1 + col2 * - 89 AS col2 FROM tab1 AS cor0
----
-5158
-6001
-8460

query I rowsort
SELECT 29 + + + 71 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
100
100
100

onlyif mysql # DIV for integer division: 
query I rowsort label-1535
SELECT DISTINCT - col0 DIV col0 * + col1 DIV col2 + - - 36 + + col1 FROM tab0 AS cor0
----
116
37
55

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT - col0 / col0 * + col1 / col2 + - - 36 + + col1 FROM tab0 AS cor0
----
116
37
55

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 IN ( col0 * - col2 + + 45, col2 ) AND + ( - 58 ) BETWEEN + col1 AND col0
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1538
SELECT ALL 1 DIV - + MAX( col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL 1 / - + MAX ( col2 ) FROM tab0
----
0

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

query I rowsort
SELECT - 30 * + - col1 + col2 FROM tab1
----
1478
209
516

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT DISTINCT - 22 + - + ( + COUNT( * ) ) * + 79 AS col1 FROM tab1
----
-259

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT - 22 + - + ( + COUNT ( * ) ) * + 79 AS col1 FROM tab1
----
-259

query II rowsort
SELECT ALL col1, 73 + - col0 + + - 80 FROM tab1
----
14
-58
47
-98
5
-92

query I rowsort
SELECT ALL + 89 + - col0 FROM tab0
----
-8
2
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT DISTINCT 88 * - COUNT( * ) AS col1 FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT 88 * - COUNT ( * ) AS col1 FROM tab0
----
-264

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1548
SELECT 20, + CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
20
1
20
21
20
81

skipif mysql # not compatible
query II rowsort label-1548
SELECT 20, + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
20
1
20
21
20
81

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 46 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT + - 24 DIV + + col1 FROM tab1 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1554
SELECT + - 24 / + + col1 FROM tab1 AS cor0
----
-1
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT + SUM( DISTINCT + + 93 ) AS col2 FROM tab2 WHERE NOT col0 <> col0 + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1555
SELECT + SUM ( DISTINCT + + 93 ) AS col2 FROM tab2 WHERE NOT col0 <> col0 + - col1
----
NULL

query I rowsort
SELECT col2 + + - 42 * + ( - 46 ) AS col2 FROM tab0
----
1942
1979
2031

query I rowsort
SELECT col2 * col1 * + col0 + + col0 + + 12 * 13 FROM tab1
----
25316
291083
68751

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT - 46 + COUNT( * ) * + 81 AS col1 FROM tab2
----
197

skipif mysql # not compatible
query I rowsort label-1558
SELECT - 46 + COUNT ( * ) * + 81 AS col1 FROM tab2
----
197

query I rowsort
SELECT DISTINCT - 28 * + + ( - - col2 ) FROM tab1
----
-1652
-1904
-2688

query I rowsort
SELECT ALL + 95 * - col1 FROM tab1
----
-1330
-4465
-475

onlyif mysql # DIV for integer division: 
query I rowsort label-1561
SELECT DISTINCT col1 DIV + - col0 FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT col1 / + - col0 FROM tab0
----
-5
0

query I rowsort
SELECT ALL 79 + + col1 AS col2 FROM tab2
----
130
146
156

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 < - + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 >= + col0
----

query I rowsort
SELECT DISTINCT - + 81 FROM tab0 cor0
----
-81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT + COUNT( * ) - + + 35 AS col2 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-1567
SELECT + COUNT ( * ) - + + 35 AS col2 FROM tab2
----
-32

query I rowsort
SELECT + 0 + - + col0 + + - 64 * + - ( + + col1 ) FROM tab0
----
-33
1257
5169

query I rowsort
SELECT - col2 * + col2 + - + col2 FROM tab0
----
-110
-2256
-9900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 14 * - col0 + col2 * + col0 col2 FROM tab1 AS cor0
----
5610
6205
7462

query I rowsort
SELECT 19 * 18 + + - col2 * 42 AS col2 FROM tab1 AS cor0
----
-2136
-2514
-3690

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT ALL - 88 DIV 68 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL - 88 / 68 FROM tab1
----
-1
-1
-1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT ALL 98 - + COUNT( * ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL 98 - + COUNT ( * ) FROM tab1
----
95

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

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

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( - ( 78 ) * + col0 + + 88 - + 97 ) NOT IN ( - col2 * 42 + + 88 )
----
15
87
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT SUM( ALL col2 ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-1581
SELECT SUM ( ALL col2 ) AS col2 FROM tab0 cor0
----
156

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1583
SELECT DISTINCT COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT ALL - MAX( ALL - - 82 ) col0 FROM tab2
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1584
SELECT ALL - MAX ( ALL - - 82 ) col0 FROM tab2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1585
SELECT + ( + - 34 ) DIV - 13 AS col1 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1585
SELECT + ( + - 34 ) / - 13 AS col1 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT ALL + col0 * 10 * + 77 + + col0 FROM tab2 AS cor0
----
35466
49344
57825

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 * 38 col1 FROM tab1 AS cor0
----
2508
2508
2508

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1593
SELECT ALL + COUNT( * ), ( + + 96 ) AS col2 FROM tab0 WHERE + col0 IS NULL
----
0
96

skipif mysql # not compatible
query II rowsort label-1593
SELECT ALL + COUNT ( * ), ( + + 96 ) AS col2 FROM tab0 WHERE + col0 IS NULL
----
0
96

query I rowsort
SELECT DISTINCT + 27 + ( + - 96 ) - + + 45 FROM tab0
----
-114

query I rowsort
SELECT col0 * + col1 + 60 AS col1 FROM tab1
----
4337
485
774

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

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

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

query I rowsort
SELECT DISTINCT - - 66 + col2 + - col1 + - 75 * + - col0 AS col1 FROM tab0 AS cor0
----
1157
6580
7439

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT - MIN ( + col0 ) FROM tab2
----
-46

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

query I rowsort
SELECT ALL - col0 * ( col1 ) * + + col1 AS col1 FROM tab0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT DISTINCT + 94 * - + MAX( ALL - 91 ) AS col1 FROM tab2
----
8554

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT + 94 * - + MAX ( ALL - 91 ) AS col1 FROM tab2
----
8554

onlyif mysql # DIV for integer division: 
query I rowsort label-1607
SELECT col2 DIV - 28 AS col2 FROM tab0 cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1607
SELECT col2 / - 28 AS col2 FROM tab0 cor0
----
-1
-3
0

query I rowsort
SELECT ALL + 64 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

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

query I rowsort
SELECT DISTINCT - - 6 FROM tab2 AS cor0 WHERE NOT - 74 IS NOT NULL
----

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

query I rowsort
SELECT ALL col0 * + 7 + col2 AS col1 FROM tab0
----
152
619
778

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

query III rowsort
SELECT * FROM tab1 WHERE + 99 = - - 94 - + - 58 + + 63 + 94 + + col0 * + 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT ALL - 83 * - COUNT( * ) + + MAX( - col2 ) FROM tab1
----
190

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL - 83 * - COUNT ( * ) + + MAX ( - col2 ) FROM tab1
----
190

onlyif mysql # DIV for integer division: 
query II rowsort label-1618
SELECT DISTINCT + 11 + + + 49 * + col1 AS col1, col2 DIV ( + col0 ) FROM tab0
----
1040
0
3980
3
60
1

skipif mysql # not compatible
query II rowsort label-1618
SELECT DISTINCT + 11 + + + 49 * + col1 AS col1, col2 / ( + col0 ) FROM tab0
----
1040
0
3980
3
60
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT ALL - COUNT( * ) + + 24 FROM tab1 cor0
----
21

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL - COUNT ( * ) + + 24 FROM tab1 cor0
----
21

query I rowsort
SELECT - ( + + col1 ) - - col0 - col2 AS col2 FROM tab2 cor0
----
-28
-50
-53

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

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

query I rowsort
SELECT ALL - col2 + + col1 - - - 46 AS col0 FROM tab0
----
-12
-144
-35

query II rowsort
SELECT ALL col2 + + col1, + col1 AS col0 FROM tab2
----
117
77
125
67
74
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1625
SELECT DISTINCT - 90 - + 72 AS col1 FROM tab1 AS cor0 WHERE col2 * - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT - 90 - + 72 AS col1 FROM tab1 AS cor0 WHERE col2 * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1626
SELECT DISTINCT COUNT( * ) AS col1, + 98 + - 66 + 65 + COUNT( * ) * - 13 FROM tab0 AS cor0
----
3
58

skipif mysql # not compatible
query II rowsort label-1626
SELECT DISTINCT COUNT ( * ) AS col1, + 98 + - 66 + 65 + COUNT ( * ) * - 13 FROM tab0 AS cor0
----
3
58

query I rowsort
SELECT - ( 63 ) * - 0 FROM tab0 AS cor0 WHERE NOT 44 IS NULL
----
0
0
0

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

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

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

query I rowsort
SELECT ALL - 62 * - 29 - + 80 / ( 93 ) AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

query II rowsort
SELECT ALL + 78, - 2 * - - col2 AS col2 FROM tab2 AS cor0
----
78
-116
78
-46
78
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT DISTINCT MAX( + - 69 ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT MAX ( + - 69 ) FROM tab1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT ALL - MIN( DISTINCT - ( + col2 ) ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL - MIN ( DISTINCT - ( + col2 ) ) AS col1 FROM tab0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1634
SELECT ALL 78 * + + col1 DIV + col1 FROM tab2
----
78
78
78

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL 78 * + + col1 / + col1 FROM tab2
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT DISTINCT SUM( - 98 ) FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT SUM ( - 98 ) FROM tab2
----
-294

query I rowsort
SELECT ALL 5 * - ( + 55 ) AS col1 FROM tab1
----
-275
-275
-275

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col1 * col0 * - ( - 85 ) < + 22 )
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE NOT + 43 + - 76 BETWEEN - + col1 + + col2 AND + col0
----
51
67

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

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT + + 57 + - 5 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND - - col2
----
NULL

query I rowsort
SELECT col1 - 87 AS col0 FROM tab2 AS cor0 WHERE NOT - 75 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IS NOT NULL OR NOT NULL = + col0
----

query I rowsort
SELECT DISTINCT + + 48 AS col1 FROM tab2 WHERE NULL IS NULL
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT + 35 * - - MIN( 86 ) + + ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3001

skipif mysql # not compatible
query I rowsort label-1643
SELECT + 35 * - - MIN ( 86 ) + + ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3001

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

query II rowsort
SELECT - col1 AS col0, col0 FROM tab2 cor0
----
-51
46
-67
75
-77
64

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT 70 * COUNT( * ) FROM tab0 cor0
----
210

skipif mysql # not compatible
query I rowsort label-1648
SELECT 70 * COUNT ( * ) FROM tab0 cor0
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-1649
SELECT + - 28 DIV - + 61 FROM tab2 AS cor0 WHERE ( NOT + - col1 + - - col2 + + col0 + - + 78 >= - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1649
SELECT + - 28 / - + 61 FROM tab2 AS cor0 WHERE ( NOT + - col1 + - - col2 + + col0 + - + 78 >= - col0 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE - col0 < ( 78 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT - - 90 * + ( - SUM( + - 81 ) ) AS col0 FROM tab2 WHERE NULL BETWEEN + col0 + - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1651
SELECT - - 90 * + ( - SUM ( + - 81 ) ) AS col0 FROM tab2 WHERE NULL BETWEEN + col0 + - col1 AND NULL
----
NULL

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

query III rowsort
SELECT * FROM tab2 WHERE col1 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 89 NOT BETWEEN + - col0 AND 29
----
51
14
96
85
5
59

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE 52 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1656
SELECT DISTINCT SUM( DISTINCT + - 24 ) col1, 66 AS col2 FROM tab1 AS cor0
----
-24
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1656
SELECT DISTINCT SUM ( DISTINCT + - 24 ) col1, 66 AS col2 FROM tab1 AS cor0
----
-24
66

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1659
SELECT - 55 - - 62 DIV - + col1 col0 FROM tab1
----
-56
-59
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1659
SELECT - 55 - - 62 / - + col1 col0 FROM tab1
----
-56
-59
-67

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

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

query I rowsort
SELECT + - 98 FROM tab2 cor0
----
-98
-98
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 32 AS col0, - 71 col1 FROM tab1 AS cor0
----
-32
-71
-32
-71
-32
-71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT ALL - - MIN( ALL + ( + + 75 ) ) * 30 AS col0 FROM tab2 AS cor0
----
2250

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL - - MIN ( ALL + ( + + 75 ) ) * 30 AS col0 FROM tab2 AS cor0
----
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT ALL - MAX( DISTINCT + 99 ) AS col1 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL - MAX ( DISTINCT + 99 ) AS col1 FROM tab1 AS cor0
----
-99

query II rowsort
SELECT DISTINCT 90, + col2 AS col0 FROM tab2
----
90
23
90
40
90
58

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1669
SELECT 14, COUNT( * ) AS col0, + - SUM( + col2 ) * - - SUM( DISTINCT + + 1 ) AS col2 FROM tab2
----
14
3
-121

skipif mysql # not compatible
query III rowsort label-1669
SELECT 14, COUNT ( * ) AS col0, + - SUM ( + col2 ) * - - SUM ( DISTINCT + + 1 ) AS col2 FROM tab2
----
14
3
-121

query I rowsort
SELECT DISTINCT + col1 / 61 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + 16 AS col0 FROM tab0
----
1584
160
752

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

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT + MIN ( - - col0 ) FROM tab2
----
46

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1674
SELECT ALL col0, col0 + + 43 * + col1 - + CAST( NULL AS SIGNED ) col2 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-1674
SELECT ALL col0, col0 + + 43 * + col1 - + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

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

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT + col1 / col0 * - - 70 AS col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 col2 FROM tab0 AS cor0 WHERE NOT NULL <> 1 * - - 19
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT MAX( 25 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
25

skipif mysql # not compatible
query I rowsort label-1678
SELECT MAX ( 25 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
25

query I rowsort
SELECT ALL 3 AS col2 FROM tab2 WHERE NULL <> + col1
----

query I rowsort
SELECT ALL + col0 * - col0 + + + 22 + col0 * col2 AS col2 FROM tab0 AS cor0
----
-6677
216
502

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT DISTINCT - 38 + - + MAX( ALL - + col1 ) FROM tab2 cor0
----
13

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT - 38 + - + MAX ( ALL - + col1 ) FROM tab2 cor0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1682
SELECT ALL - MAX( + col1 ) * - 96 + + - CAST( + - COUNT( - col1 ) AS SIGNED ) AS col0 FROM tab0 cor0
----
7779

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL - MAX ( + col1 ) * - 96 + + - CAST ( + - COUNT ( - col1 ) AS INTEGER ) AS col0 FROM tab0 cor0
----
7779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + - col2 col1, - col2 FROM tab1 AS cor0
----
-3481
-59
-4624
-68
-9216
-96

query I rowsort
SELECT + col0 * + 3 AS col1 FROM tab2
----
138
192
225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1685
SELECT 28 DIV + - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-1685
SELECT 28 / + - COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT ALL + 73 * + col2 FROM tab1
----
4307
4964
7008

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT DISTINCT + SUM( ALL col1 ) AS col2 FROM tab1 WHERE NOT ( ( + col0 / + - 95 ) IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT + SUM ( ALL col1 ) AS col2 FROM tab1 WHERE NOT ( ( + col0 / + - 95 ) IS NOT NULL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1689
SELECT ALL - 66 col1, CAST( + COUNT( * ) AS SIGNED ) + 34 + - SUM( - + col0 ) + + 87 col1 FROM tab1
----
-66
351

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1689
SELECT ALL - 66 col1, CAST ( + COUNT ( * ) AS INTEGER ) + 34 + - SUM ( - + col0 ) + + 87 col1 FROM tab1
----
-66
351

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT - COUNT( * ) + + + 38 AS col1 FROM tab1 cor0
----
35

skipif mysql # not compatible
query I rowsort label-1690
SELECT - COUNT ( * ) + + + 38 AS col1 FROM tab1 cor0
----
35

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1693
SELECT 0 * - col2 AS col2 FROM tab2 WHERE NOT ( + col1 / - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1693
SELECT 0 * - col2 AS col2 FROM tab2 WHERE NOT ( + col1 / - CAST ( NULL AS INTEGER ) ) IS NULL
----

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

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

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

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

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

query I rowsort
SELECT ALL 66 * + col0 + + col1 FROM tab1
----
3380
5615
6053

query I rowsort
SELECT DISTINCT 64 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1700
SELECT - CAST( 12 AS SIGNED ) FROM tab1
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-1700
SELECT - CAST ( 12 AS INTEGER ) FROM tab1
----
-12
-12
-12

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT - col1 > + col0
----
46
64
75

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT col1 - + col2 * 94 <> ( NULL )
----

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT col0 BETWEEN ( NULL ) AND - 23
----
-14
-47
-5

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1706
SELECT DISTINCT + 48 / + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT + 48 / + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL - SUM ( ALL + col1 ) FROM tab0
----
-103

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT DISTINCT + SUM( DISTINCT 50 ) + 69 AS col1 FROM tab2 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT + SUM ( DISTINCT 50 ) + 69 AS col1 FROM tab2 AS cor0
----
119

query I rowsort
SELECT DISTINCT - 56 * 79 FROM tab0 AS cor0
----
-4424

query I rowsort
SELECT ALL col1 * 58 AS col1 FROM tab2 AS cor0
----
2958
3886
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE NOT ( 75 ) NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE NOT ( 75 ) NOT IN ( col2 )
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT DISTINCT 84 + COUNT( * ) * 25 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-1722
SELECT DISTINCT 84 + COUNT ( * ) * 25 FROM tab0
----
159

query I rowsort
SELECT 11 FROM tab1 AS cor0 CROSS JOIN tab1 WHERE ( 93 ) NOT BETWEEN NULL AND 32 + 65
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE ( - col0 ) IN ( - 67 / - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < 48 * 79
----

query I rowsort
SELECT - + 82 AS col2 FROM tab1 AS cor0
----
-82
-82
-82

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1728
SELECT DISTINCT + CAST( - MIN( CAST( col2 AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1728
SELECT DISTINCT + CAST ( - MIN ( CAST ( col2 AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----
NULL

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

query I rowsort
SELECT ALL - 28 - + col2 FROM tab0 AS cor0
----
-127
-38
-75

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1732
SELECT DISTINCT 3 / - CAST( NULL AS SIGNED ) * + SUM( col2 * col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT 3 / - CAST ( NULL AS INTEGER ) * + SUM ( col2 * col2 ) FROM tab2
----
NULL

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

query I rowsort
SELECT + 80 FROM tab0 WHERE ( NULL ) IS NULL
----
80
80
80

query I rowsort
SELECT - 57 * + - col0 + - col1 AS col1 FROM tab0
----
4938
5528
774

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT DISTINCT - 9 * ( COUNT( col0 ) ) + COUNT( * ) FROM tab0 WHERE NOT ( - 15 ) - + 23 BETWEEN - col0 AND ( NULL )
----
-8

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT - 9 * ( COUNT ( col0 ) ) + COUNT ( * ) FROM tab0 WHERE NOT ( - 15 ) - + 23 BETWEEN - col0 AND ( NULL )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1737
SELECT * FROM tab2 WHERE CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1737
SELECT * FROM tab2 WHERE CAST ( col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + 55 + - - 87 + + col2 AS col2 FROM tab2
----
165
182
200

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT + COUNT( * ) * - + 59 AS col0 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-1743
SELECT + COUNT ( * ) * - + 59 AS col0 FROM tab1
----
-177

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

query I rowsort
SELECT - + 78 * ( - 54 ) * col2 - col2 * col2 AS col2 FROM tab1 cor0
----
245027
281792
395136

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( + col2 * - col1 ) = - col1 * 72
----
3

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( + col2 * - col1 ) = - col1 * 72
----
3

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col0 FROM tab2 cor0 WHERE NOT 83 IS NULL
----
54
54
54

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1751
SELECT col0 * CAST( NULL AS SIGNED ) + - 88 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT col0 * CAST ( NULL AS INTEGER ) + - 88 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * + col0 - - 6 ) NOT IN ( + col2 )
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1755
SELECT + CAST ( + + 42 AS INTEGER ) FROM tab1
----
42
42
42

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

query I rowsort
SELECT ALL ( - + col0 ) + 62 / + ( - ( 66 ) ) AS col1 FROM tab1 WHERE + col2 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT ALL - - MAX( ALL col1 ) / COUNT( * ) FROM tab0 WHERE NOT + + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL - - MAX ( ALL col1 ) / COUNT ( * ) FROM tab0 WHERE NOT + + col0 IS NOT NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + 59 col0 FROM tab1 cor0
----
118
127
155

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1763
SELECT + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN ( + CAST( NULL AS SIGNED ) - 44 ) AND ( - 78 )
----

skipif mysql # not compatible
query I rowsort label-1763
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN ( + CAST ( NULL AS INTEGER ) - 44 ) AND ( - 78 )
----

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

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

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

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

query I rowsort
SELECT - col0 * - - col0 * + + 34 AS col2 FROM tab1 cor0
----
-245650
-281554
-88434

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 60 < + col1 - - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + - 52 AS col2 FROM tab1
----
2652
4420
4732

query I rowsort
SELECT - 66 * col2 AS col1 FROM tab1
----
-3894
-4488
-6336

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

skipif mysql # not compatible
query I rowsort label-1771
SELECT DISTINCT + MIN ( - col0 ) AS col0 FROM tab2
----
-75

query I rowsort
SELECT col2 - + - 7 FROM tab0
----
106
17
54

query II rowsort
SELECT ALL 55, 55 AS col0 FROM tab1
----
55
55
55
55
55
55

query I rowsort
SELECT DISTINCT + col1 * - col2 * col2 + + 11 FROM tab2 AS cor0
----
-123189
-225377
-26968

query I rowsort
SELECT DISTINCT + - col0 * - + col0 AS col2 FROM tab2 AS cor0
----
2116
4096
5625

query II rowsort
SELECT col2 AS col1, col0 AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

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

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

query I rowsort
SELECT ALL - - 83 * - - 29 AS col1 FROM tab1 AS cor0
----
2407
2407
2407

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

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

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

query I rowsort
SELECT DISTINCT + + 88 FROM tab2 AS cor0
----
88

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1783
SELECT CAST( NULL AS SIGNED ) / + + AVG ( + 64 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1783
SELECT CAST ( NULL AS INTEGER ) / + + AVG ( + 64 ) AS col2 FROM tab1 AS cor0
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1786
SELECT - CAST ( + + col2 AS INTEGER ) FROM tab1
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE 40 * + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - col0 * 84 col0 FROM tab0
----
1
-8148
21
-7308
81
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT ALL MIN( + ( 30 ) ) * + - 62 FROM tab2 WHERE 3 + - 99 IS NOT NULL
----
-1860

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL MIN ( + ( 30 ) ) * + - 62 FROM tab2 WHERE 3 + - 99 IS NOT NULL
----
-1860

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT DISTINCT COUNT( * ) + + - COUNT( - + col0 ) - - + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT COUNT ( * ) + + - COUNT ( - + col0 ) - - + COUNT ( * ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1791
SELECT ( - col0 ) + - - 95 DIV + col0 FROM tab1 AS cor0
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-1791
SELECT ( - col0 ) + - - 95 / + col0 FROM tab1 AS cor0
----
-50
-84
-90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 3 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 87 AS col1 FROM tab2 cor0
----
-87

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab2 cor1 ON 89 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1795
SELECT + + CAST( - + 1 AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-1795
SELECT + + CAST ( - + 1 AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1796
SELECT DISTINCT - MAX( DISTINCT - + 87 ) DIV - 43 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-2

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT - MAX ( DISTINCT - + 87 ) / - 43 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-2

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + + col0 * + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL NOT IN ( + col1 / - - 28, - 49 + + - 23 + + col2 * - + col0 + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1799
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 3 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 3 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT IN ( + - col1 * col0 - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 5 - col1 FROM tab1 AS cor0
----
-42
-9
0

query II rowsort
SELECT DISTINCT - 93 - + - 97 AS col0, col1 AS col2 FROM tab1 AS cor0
----
4
14
4
47
4
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1803
SELECT DISTINCT + + CAST( - 19 AS SIGNED ) - + - COUNT( * ) DIV - 38 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT + + CAST ( - 19 AS INTEGER ) - + - COUNT ( * ) / - 38 FROM tab0 AS cor0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1804
SELECT DISTINCT + 66 * - col1 col1 FROM tab2 AS cor0 WHERE ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1804
SELECT DISTINCT + 66 * - col1 col1 FROM tab2 AS cor0 WHERE ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL + 74 - + 50 FROM tab2 AS cor0
----
24
24
24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1807
SELECT - col2 + col1 FROM tab2 WHERE NOT - col2 + col0 >= + + CAST( NULL AS SIGNED ) AND NOT col2 * - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1807
SELECT - col2 + col1 FROM tab2 WHERE NOT - col2 + col0 >= + + CAST ( NULL AS INTEGER ) AND NOT col2 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT ALL 82 - + MAX( + col0 ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL 82 - + MAX ( + col0 ) FROM tab2
----
7

query I rowsort
SELECT ALL - col2 - + - ( - ( - + col1 ) ) FROM tab1
----
-21
-54
-82

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT ALL - MAX( ALL 61 ) AS col1 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL - MAX ( ALL 61 ) AS col1 FROM tab0
----
-61

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 30 IS NOT NULL
----

query I rowsort
SELECT ALL 77 * + 51 FROM tab1
----
3927
3927
3927

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT DISTINCT - + SUM( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT - + SUM ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT + + 18 AS col2 FROM tab1 AS cor0
----
18

query II rowsort
SELECT DISTINCT col0, - col1 + - 68 FROM tab0
----
15
-149
87
-89
97
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 * - col0 col1 FROM tab2
----
3772
5248
6150

onlyif mysql # DIV for integer division: 
query I rowsort label-1819
SELECT ALL ( - 57 ) DIV col0 * - 83 * + col2 - 22 * col2 * - col2 FROM tab0
----
215622
2200
60301

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL ( - 57 ) / col0 * - 83 * + col2 - 22 * col2 * - col2 FROM tab0
----
215622
2200
60301

query II rowsort
SELECT + col1, col0 AS col1 FROM tab2 WHERE NOT NULL <> - col1
----

query II rowsort
SELECT col1 AS col2, col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT ALL - col2 * - + col2 AS col2 FROM tab2
----
1600
3364
529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * 75 col0, - col0 AS col0 FROM tab1 AS cor0
----
3825
-51
6375
-85
6825
-91

query I rowsort
SELECT - col1 AS col0 FROM tab2 cor0 WHERE NOT - col1 + col2 * + - 34 NOT IN ( col2 - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT ALL MIN( ALL - 25 ) FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL MIN ( ALL - 25 ) FROM tab0 AS cor0
----
-25

query I rowsort
SELECT col0 + col0 + + - 7 FROM tab1 AS cor0
----
163
175
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1827
SELECT DISTINCT - col1 AS col2, col2 * + - 80 * ( - + 36 ) AS col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN + CAST( + col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-1827
SELECT DISTINCT - col1 AS col2, col2 * + - 80 * ( - + 36 ) AS col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN + CAST ( + col2 AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL 25 AS col0 FROM tab0 cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT DISTINCT 61 * - SUM( DISTINCT + + 61 ) FROM tab1, tab1 AS cor0
----
-3721

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT 61 * - SUM ( DISTINCT + + 61 ) FROM tab1, tab1 AS cor0
----
-3721

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT + 22 + ( - - COUNT( * ) ) AS col2 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-1830
SELECT + 22 + ( - - COUNT ( * ) ) AS col2 FROM tab1
----
25

query I rowsort
SELECT ( - col1 ) + 76 FROM tab0
----
-5
55
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1832
SELECT * FROM tab1 WHERE + col0 NOT BETWEEN ( - 77 ) AND + CAST( - 55 AS SIGNED ) / + col2 / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1832
SELECT * FROM tab1 WHERE + col0 NOT BETWEEN ( - 77 ) AND + CAST ( - 55 AS INTEGER ) / + col2 / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 + col0 + - col2 col1 FROM tab0
----
139
30
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT DISTINCT col2 DIV - col1 + + - col2 AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT col2 / - col1 + + - col2 AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT col2 + + - 47 AS col2 FROM tab1
----
12
21
49

query II rowsort
SELECT DISTINCT col2 * + col2 AS col1, + col1 * + col1 AS col2 FROM tab0
----
100
441
2209
6561
9801
1

query I rowsort
SELECT DISTINCT 68 + + + col1 * + col0 AS col0 FROM tab0
----
1283
165
1895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1838
SELECT CAST( - ( - col2 ) AS SIGNED ) AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1838
SELECT CAST ( - ( - col2 ) AS INTEGER ) AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL - col2 * col0 + + 64 * - col0 AS col2 FROM tab1
----
-10455
-12012
-8160

query I rowsort
SELECT DISTINCT + col2 + - + col0 AS col1 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1841
SELECT + CAST( NULL AS SIGNED ) AS col1, + col1 * - + col1 AS col0 FROM tab1 WHERE - + 78 + col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-1841
SELECT + CAST ( NULL AS INTEGER ) AS col1, + col1 * - + col1 AS col0 FROM tab1 WHERE - + 78 + col1 IS NULL
----

query I rowsort
SELECT - ( + 12 ) FROM tab0 AS cor0
----
-12
-12
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1843
SELECT ALL + col2 + + col2 AS col0, + CAST( NULL AS DECIMAL ) - - 70 FROM tab0 AS cor0
----
198
NULL
20
NULL
94
NULL

skipif mysql # not compatible
query II rowsort label-1843
SELECT ALL + col2 + + col2 AS col0, + CAST ( NULL AS REAL ) - - 70 FROM tab0 AS cor0
----
198
NULL
20
NULL
94
NULL

query II rowsort
SELECT ALL ( - col2 ), col1 AS col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query II rowsort
SELECT + col1 + + + col0 * - ( + ( - + col2 ) ) * + 73, - col2 AS col1 FROM tab2
----
186957
-40
317617
-58
77285
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-1846
SELECT ALL - 74, COUNT( * ) * - COUNT( DISTINCT + - 88 ) AS col0 FROM tab1
----
-74
-3

skipif mysql # not compatible
query II rowsort label-1846
SELECT ALL - 74, COUNT ( * ) * - COUNT ( DISTINCT + - 88 ) AS col0 FROM tab1
----
-74
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT col1 + - col1 DIV + ( + col1 ) + - - 33 AS col1 FROM tab1
----
37
46
79

skipif mysql # not compatible
query I rowsort label-1847
SELECT col1 + - col1 / + ( + col1 ) + - - 33 AS col1 FROM tab1
----
37
46
79

query I rowsort
SELECT DISTINCT + 75 + + col1 FROM tab2
----
126
142
152

onlyif mysql # aggregate syntax: 
query II rowsort label-1849
SELECT DISTINCT - 15 AS col2, + COUNT( * ) FROM tab0
----
-15
3

skipif mysql # not compatible
query II rowsort label-1849
SELECT DISTINCT - 15 AS col2, + COUNT ( * ) FROM tab0
----
-15
3

query I rowsort
SELECT ALL + 32 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ALL COUNT( * ) - 21 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL COUNT ( * ) - 21 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT - col2 AS col2 FROM tab2 cor0 WHERE - 87 / - col1 IS NULL
----

query I rowsort
SELECT + + 48 AS col0 FROM tab1 AS cor0
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1854
SELECT DISTINCT + + col2 + + - 44 / - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT + + col2 + + - 44 / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 - 10 AS col0 FROM tab1 cor0
----
49
58
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1856
SELECT - 38, COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 cor0
----
-38
9

skipif mysql # not compatible
query II rowsort label-1856
SELECT - 38, COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 cor0
----
-38
9

query II rowsort
SELECT - 73 AS col1, 16 FROM tab2 AS cor0
----
-73
16
-73
16
-73
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT COUNT( + - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1858
SELECT COUNT ( + - col1 ) FROM tab2
----
3

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE + + 27 IS NULL
----

query II rowsort
SELECT DISTINCT col2 * + col0 AS col2, ( ( - - col0 ) ) * - col0 FROM tab1
----
4896
-2601
5015
-7225
6188
-8281

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN 36 AND 15
----

query I rowsort
SELECT DISTINCT - - ( + - col0 ) AS col2 FROM tab0 WHERE NOT + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT DISTINCT 92 * - - SUM( + + col0 ) AS col0 FROM tab2
----
17020

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT 92 * - - SUM ( + + col0 ) AS col0 FROM tab2
----
17020

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT - + SUM( col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1864
SELECT - + SUM ( col2 ) AS col2 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT + + SUM( DISTINCT - 18 ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1865
SELECT + + SUM ( DISTINCT - 18 ) FROM tab1 AS cor0
----
-18

query II rowsort
SELECT 50 * + col0, col1 FROM tab2 cor0
----
2300
51
3200
77
3750
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1867
SELECT - CAST( + 43 AS SIGNED ) FROM tab2 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-1867
SELECT - CAST ( + 43 AS INTEGER ) FROM tab2 AS cor0
----
-43
-43
-43

query I rowsort
SELECT + ( + + 71 ) AS col1 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT + 36 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT - ( 4 ) AS col0 FROM tab0
----
-4
-4
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT ALL + 81 DIV - col0 + 69 AS col0 FROM tab0
----
64
69
69

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL + 81 / - col0 + 69 AS col0 FROM tab0
----
64
69
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1872
SELECT DISTINCT CAST( + - COUNT( + - col1 ) AS SIGNED ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT CAST ( + - COUNT ( + - col1 ) AS INTEGER ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT 73 * - + col1 FROM tab2 AS cor0
----
-3723
-4891
-5621

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT + SUM( ALL - - 14 ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1874
SELECT + SUM ( ALL - - 14 ) FROM tab0 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1875
SELECT - CAST( NULL AS SIGNED ) * - + col1 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-1875
SELECT - CAST ( NULL AS INTEGER ) * - + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 28 FROM tab2 AS cor0 WHERE NOT - col0 / + col2 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1877
SELECT ALL MAX( 67 ) AS col0, COUNT( * ) AS col0 FROM tab2
----
67
3

skipif mysql # not compatible
query II rowsort label-1877
SELECT ALL MAX ( 67 ) AS col0, COUNT ( * ) AS col0 FROM tab2
----
67
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT DISTINCT - COUNT( * ) col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1878
SELECT DISTINCT - COUNT ( * ) col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + 41 AND + col0
----

query I rowsort
SELECT ALL + 58 * + 83 FROM tab0
----
4814
4814
4814

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT COUNT( * ) * - - 8 + + COUNT( * ) * 18 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-1881
SELECT COUNT ( * ) * - - 8 + + COUNT ( * ) * 18 FROM tab1
----
78

query I rowsort
SELECT + 31 + 50 AS col2 FROM tab1
----
81
81
81

query I rowsort
SELECT 29 + - 42 AS col2 FROM tab2 AS cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT + col2 * - + col2 AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1885
SELECT + ( COUNT( * ) ) DIV + COUNT( * ) + 67 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-1885
SELECT + ( COUNT ( * ) ) / + COUNT ( * ) + 67 FROM tab2 AS cor0
----
68

query II rowsort
SELECT ALL - + col0 - - + col2 + col0 * + - 42 AS col0, col0 AS col2 FROM tab1 AS cor0
----
-2097
51
-3596
85
-3845
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1887
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + CAST( + ( ( + ( col2 ) ) ) AS SIGNED ) * col1 - CAST( - col2 AS SIGNED ) + ( - - CAST( - col1 AS SIGNED ) ) * + + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1887
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + CAST ( + ( ( + ( col2 ) ) ) AS INTEGER ) * col1 - CAST ( - col2 AS INTEGER ) + ( - - CAST ( - col1 AS INTEGER ) ) * + + col1 AND NULL
----

query I rowsort
SELECT 82 * - - col2 - + col0 FROM tab0
----
3839
733
8021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col1 ) + 93 - col1 col0 FROM tab1 AS cor0
----
93
93
93

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - + 83
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT DISTINCT COUNT( DISTINCT - + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT COUNT ( DISTINCT - + col2 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT 42 < + + col1 * 84 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1896
SELECT + col1 * + col2 * + CAST( NULL AS DECIMAL ) * col2 * + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT + col1 * + col2 * + CAST ( NULL AS REAL ) * col2 * + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 91 * + 7 AS col0 FROM tab2
----
-637
-637
-637

query II rowsort
SELECT ALL - col1 AS col1, - 88 FROM tab0
----
-1
-88
-21
-88
-81
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( col0 ) col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT col0 * + 67 / col2 FROM tab1 AS cor0 WHERE NULL IN ( - col2, col2 * + - col1 * - + col0 * + - col2, col1 + - - ( + 0 ) )
----

query I rowsort
SELECT + - col2 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) > NULL
----

query II rowsort
SELECT ALL - col1, + col0 FROM tab1 cor0
----
-14
51
-47
91
-5
85

query II rowsort
SELECT DISTINCT + + col1 * - 65 * + - col2, + col2 FROM tab0 AS cor0
----
13650
10
247455
47
6435
99

query I rowsort
SELECT DISTINCT 64 * + col2 AS col2 FROM tab2 AS cor0
----
1472
2560
3712

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT ALL - COUNT( * ) + + 35 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL - COUNT ( * ) + + 35 FROM tab0
----
32

query I rowsort
SELECT + col0 * - col1 + col1 FROM tab0 WHERE NOT 24 IS NULL
----
-1134
-1806
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= 55
----

query I rowsort
SELECT ALL - 19 + + - 97 FROM tab1
----
-116
-116
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT ALL - + 54 * + + 8 + COUNT( * ) AS col0 FROM tab0 cor0
----
-429

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL - + 54 * + + 8 + COUNT ( * ) AS col0 FROM tab0 cor0
----
-429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1910
SELECT 78 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1910
SELECT 78 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + + col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

query II rowsort
SELECT ALL + 90 + 51 AS col2, + col1 AS col2 FROM tab2 AS cor0
----
141
51
141
67
141
77

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + 85 * col2 / col1 - + col1 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1915
SELECT - ( - COUNT( * ) ) + - CAST( + COUNT( * ) AS SIGNED ) + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1915
SELECT - ( - COUNT ( * ) ) + - CAST ( + COUNT ( * ) AS INTEGER ) + COUNT ( * ) FROM tab0
----
3

query I rowsort
SELECT + col2 FROM tab2 WHERE + col2 IN ( + 40, col1, col0 + col2, - col0 )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT + 41 DIV - 1 AS col0 FROM tab0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-1917
SELECT + 41 / - 1 AS col0 FROM tab0
----
-41
-41
-41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1918
SELECT col1 DIV + CAST( - 72 AS SIGNED ) * col1 * + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1918
SELECT col1 / + CAST ( - 72 AS INTEGER ) * col1 * + - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 15 - + 54 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1920
SELECT - 8 DIV col2 * col2 * + 16 * - + 39 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1920
SELECT - 8 / col2 * col2 * + 16 * - + 39 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + 67 AS col0 FROM tab2
----
107
125
90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 70 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT + COUNT( DISTINCT ( + col0 ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1923
SELECT + COUNT ( DISTINCT ( + col0 ) ) col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1924
SELECT ALL + CAST( + AVG ( + 21 ) AS SIGNED ) + 85 FROM tab1
----
106

skipif mysql # not compatible
query I rowsort label-1924
SELECT ALL + CAST ( + AVG ( + 21 ) AS INTEGER ) + 85 FROM tab1
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1925
SELECT DISTINCT 2 AS col0 FROM tab2 AS cor0 WHERE col0 / - 72 / + - col2 IS NOT NULL AND NOT col0 + - col2 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT 2 AS col0 FROM tab2 AS cor0 WHERE col0 / - 72 / + - col2 IS NOT NULL AND NOT col0 + - col2 * CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - col1 + - + col2 + col2 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT + col2 + + ( + + col0 ) FROM tab2
----
104
133
69

query II rowsort
SELECT 48 + + 84 AS col2, - 99 + col2 AS col1 FROM tab1
----
132
-3
132
-31
132
-40

query II rowsort
SELECT ALL col1, - 18 FROM tab2
----
51
-18
67
-18
77
-18

query I rowsort
SELECT ALL + 29 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < col1 + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1932
SELECT + SUM( DISTINCT + col0 ) DIV - + COUNT( * ) col0 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1932
SELECT + SUM ( DISTINCT + col0 ) / - + COUNT ( * ) col0 FROM tab1 AS cor0
----
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 34 IS NOT NULL
----

query I rowsort
SELECT - ( + - 92 ) AS col2 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT - ( + - 20 ) FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE col0 + + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1937
SELECT ALL CAST( NULL AS SIGNED ) col2, + 25 + + ( + + 68 ) FROM tab2 AS cor0
----
NULL
93
NULL
93
NULL
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1937
SELECT ALL CAST ( NULL AS INTEGER ) col2, + 25 + + ( + + 68 ) FROM tab2 AS cor0
----
NULL
93
NULL
93
NULL
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1, 14 col2 FROM tab0 AS cor0
----
1
14
21
14
81
14

query I rowsort
SELECT - ( + + 72 ) FROM tab0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE + col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE + col1 NOT BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 * - col2 * - col1 * col1 col1 FROM tab2
----
-2845920
-3124344
-717876

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 99 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1944
SELECT + 15 * + ( - CAST( NULL AS DECIMAL ) ) + + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT + 15 * + ( - CAST ( NULL AS REAL ) ) + + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT ALL - COUNT( DISTINCT - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL - COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT ALL - COUNT( ALL ( + + col1 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL - COUNT ( ALL ( + + col1 ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - col2 BETWEEN NULL AND + col0
----

query I rowsort
SELECT + 78 * 8 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9101277cbc8be7269bc5ba59efd97148

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT ALL + SUM( - 45 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-405

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + SUM ( - 45 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT - - MAX( ALL - col2 ) AS col2 FROM tab0 AS cor0 WHERE + col0 * + 28 BETWEEN NULL AND + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1950
SELECT - - MAX ( ALL - col2 ) AS col2 FROM tab0 AS cor0 WHERE + col0 * + 28 BETWEEN NULL AND + 53
----
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0 WHERE - 48 BETWEEN - col2 + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT - - MAX( + 47 ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1952
SELECT - - MAX ( + 47 ) FROM tab0 AS cor0
----
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> 60 * - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1954
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( + 83 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1954
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( + 83 AS REAL ) IS NULL
----

query I rowsort
SELECT - 95 AS col1 FROM tab0 cor0
----
-95
-95
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1956
SELECT - 99 DIV col0 + col1 + + + col2 + - col1 AS col1 FROM tab0 AS cor0
----
41
9
98

skipif mysql # not compatible
query I rowsort label-1956
SELECT - 99 / col0 + col1 + + + col2 + - col1 AS col1 FROM tab0 AS cor0
----
41
9
98

query II rowsort
SELECT DISTINCT - + 70 AS col2, - 96 AS col0 FROM tab2 AS cor0
----
-70
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1958
SELECT DISTINCT col2 * + - 65 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT col2 * + - 65 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE ( NOT - col0 < 87 * 33 )
----

query I rowsort
SELECT col1 * + + col0 + + col0 + + 66 * + col2 AS col0 FROM tab1
----
4404
7101
8856

query I rowsort
SELECT ALL 57 * + + 31 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 51575456a5179a4e2a95e6ce764e6b22

query I rowsort
SELECT + col2 * - + 42 * 26 - ( - 78 ) FROM tab1 WHERE col0 NOT BETWEEN - + col0 AND - + col1
----
-104754
-64350
-74178

query I rowsort
SELECT + col2 * 92 * - col2 AS col1 FROM tab2 AS cor0
----
-147200
-309488
-48668

query I rowsort
SELECT ALL - - 45 - col2 AS col2 FROM tab1 AS cor0
----
-14
-23
-51

query I rowsort
SELECT 18 * col0 FROM tab2
----
1152
1350
828

query II rowsort
SELECT DISTINCT 47, - 79 AS col0 FROM tab2
----
47
-79

query I rowsort
SELECT - - col1 * + 91 * + col1 FROM tab0 AS cor0
----
40131
597051
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1968
SELECT DISTINCT - col2 * + - 48 + + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
2209
4653
470

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - col2 * + - 48 + + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
2209
4653
470

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( 33 / - + 11 ) IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT ALL + + col2 DIV - - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL + + col2 / - - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT - SUM( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-1972
SELECT - SUM ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT ALL ( + + MIN( ALL + col1 ) ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL ( + + MIN ( ALL + col1 ) ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT ALL + MIN( DISTINCT - 44 ) AS col1 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL + MIN ( DISTINCT - 44 ) AS col1 FROM tab2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1975
SELECT DISTINCT * FROM tab2 WHERE col2 >= col1 * col1 * + - 72 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1975
SELECT DISTINCT * FROM tab2 WHERE col2 >= col1 * col1 * + - 72 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col0 * + + 83 FROM tab2
----
3818
5312
6225

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT DISTINCT 64 * - - COUNT( ALL - 79 ) * + - 75 FROM tab1
----
-14400

skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT 64 * - - COUNT ( ALL - 79 ) * + - 75 FROM tab1
----
-14400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1978
SELECT ALL CAST( + + 22 AS SIGNED ) col2 FROM tab2
----
22
22
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1978
SELECT ALL CAST ( + + 22 AS INTEGER ) col2 FROM tab2
----
22
22
22

query I rowsort
SELECT 94 * - + col2 FROM tab0
----
-4418
-9306
-940

query II rowsort
SELECT col0 AS col1, - 63 + - col1 AS col2 FROM tab0
----
15
-144
87
-84
97
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1981
SELECT ALL - + col0 AS col0 FROM tab1 WHERE NULL < + CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL - + col0 AS col0 FROM tab1 WHERE NULL < + CAST ( - col2 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1982
SELECT ALL col0 DIV - - 69 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL col0 / - - 69 AS col1 FROM tab2
----
0
0
1

query II rowsort
SELECT ALL + col2, 20 * 93 FROM tab0
----
10
1860
47
1860
99
1860

onlyif mysql # aggregate syntax: 
query II rowsort label-1984
SELECT ALL MAX( ALL - col2 ), - 15 AS col2 FROM tab0
----
-10
-15

skipif mysql # not compatible
query II rowsort label-1984
SELECT ALL MAX ( ALL - col2 ), - 15 AS col2 FROM tab0
----
-10
-15

query I rowsort
SELECT + col0 * + col1 + + - col1 - 9 + 79 + 37 * + ( - - col0 ) AS col1 FROM tab0 AS cor0
----
1759
3755
5095

query II rowsort
SELECT ALL + - ( + col2 ) AS col0, 86 + col1 AS col2 FROM tab1 cor0
----
-59
91
-68
133
-96
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 96 + 38 > ( + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 96 + 38 > ( + col2 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 col0 FROM tab0 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT DISTINCT + SUM( DISTINCT col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT + SUM ( DISTINCT col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT - col0 * + + col0 * col0 AS col2 FROM tab0 AS cor0 WHERE 48 * 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT + SUM( - - col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-1991
SELECT + SUM ( - - col1 ) AS col2 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT DISTINCT - ( + + COUNT( * ) ) col2 FROM tab2 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-1992
SELECT DISTINCT - ( + + COUNT ( * ) ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT + col0 + - 29 + - 41 - + 61 + - col2 FROM tab2
----
-107
-108
-114

query I rowsort
SELECT - + col1 + 13 FROM tab0 AS cor0
----
-68
-8
12

query I rowsort
SELECT + + col2 * + + ( - 89 ) + col2 AS col2 FROM tab1 AS cor0
----
-5192
-5984
-8448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 52 * - ( + col2 ) col0, + 99 FROM tab1
----
-3068
99
-3536
99
-4992
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1998
SELECT COUNT( * ), 72 AS col2 FROM tab2
----
3
72

skipif mysql # not compatible
query II rowsort label-1998
SELECT COUNT ( * ), 72 AS col2 FROM tab2
----
3
72

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT BETWEEN col0 AND NULL
----
75
67
58

query I rowsort
SELECT ALL - 75 FROM tab1 WHERE NOT - 0 * - - col0 * + col2 / + 95 / + 17 + - col1 <= + col1
----

query I rowsort
SELECT ALL + col0 + - + col2 AS col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT col2 - 57 AS col1 FROM tab1
----
11
2
39

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - ( - 26 ) AND + + col1
----

query I rowsort
SELECT DISTINCT - col1 + + - col2 AS col2 FROM tab0 AS cor0
----
-100
-128
-31

query II rowsort
SELECT ALL col0 AS col0, col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT - + 32 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT DISTINCT - 91 * - col0 * col2 FROM tab2
----
232960
395850
96278

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT ALL + 31 * MAX( ALL 0 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL + 31 * MAX ( ALL 0 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT DISTINCT - + COUNT( col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT - + COUNT ( col2 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2011
SELECT - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) / 22 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2011
SELECT - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) / 22 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * 71 * + 11 AS col2 FROM tab0 AS cor0
----
16401
63261
781

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 49 col0 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT ALL 19 * 37 FROM tab0
----
703
703
703

query I rowsort
SELECT DISTINCT + 7 * + + 57 FROM tab0
----
399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, col0 FROM tab0
----
-1
97
-21
87
-81
15

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 + col0 - col0 + + ( + col0 ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2018
SELECT ALL - + col0 col2, 6 DIV - + 28 FROM tab2 WHERE ( col0 IS NOT NULL )
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2018
SELECT ALL - + col0 col2, 6 / - + 28 FROM tab2 WHERE ( col0 IS NOT NULL )
----
-46
0
-64
0
-75
0

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE - col0 * - + col0 IS NOT NULL
----
10
47
99

query II rowsort
SELECT ALL + col0, col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < col1
----

query I rowsort
SELECT - - col1 + + 27 + + col2 * + col0 AS col1 FROM tab1 AS cor0
----
4937
5047
6262

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT DISTINCT MIN( DISTINCT - + 46 ) FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT MIN ( DISTINCT - + 46 ) FROM tab0 AS cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2024
SELECT - 80 DIV - - 54 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2024
SELECT - 80 / - - 54 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2025
SELECT MIN( ALL - - col1 ), MIN( ALL + ( 83 ) ) AS col1 FROM tab2
----
51
83

skipif mysql # not compatible
query II rowsort label-2025
SELECT MIN ( ALL - - col1 ), MIN ( ALL + ( 83 ) ) AS col1 FROM tab2
----
51
83

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 30 <> 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 - - col1 col2 FROM tab0 AS cor0
----
139
59
79

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT DISTINCT + COUNT( * ) col0 FROM tab1 AS cor0 WHERE + col2 * + 57 <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2029
SELECT DISTINCT + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE + col2 * + 57 <> NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE 40 <= - col2 * - + 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2031
SELECT + col0 * - col1 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2031
SELECT + col0 * - col1 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 28 AS col1 FROM tab1
----
28
28
28

query I rowsort
SELECT + col0 + - 71 FROM tab0
----
-56
16
26

query I rowsort
SELECT DISTINCT + ( - - 65 ) AS col2 FROM tab2
----
65

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + - + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * 93 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2037
SELECT DISTINCT col1 DIV + col0 + - 56 FROM tab0 WHERE - - col2 + - - ( - col0 ) * + 31 < col1
----
-51
-56

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT col1 / + col0 + - 56 FROM tab0 WHERE - - col2 + - - ( - col0 ) * + 31 < col1
----
-51
-56

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query II rowsort
SELECT ALL col1 AS col1, 83 * + - col0 * 11 FROM tab0
----
1
-88561
21
-79431
81
-13695

query I rowsort
SELECT ALL + - 57 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT + - col1 * col1 * + 0 - - 34 + - col1 AS col1 FROM tab0 AS cor0
----
-47
13
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT ALL + MIN( ALL col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL + MIN ( ALL col2 ) FROM tab0 cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2043
SELECT + CAST( NULL AS SIGNED ), ( - 51 ) AS col0 FROM tab2 AS cor0
----
NULL
-51
NULL
-51
NULL
-51

skipif mysql # not compatible
query II rowsort label-2043
SELECT + CAST ( NULL AS INTEGER ), ( - 51 ) AS col0 FROM tab2 AS cor0
----
NULL
-51
NULL
-51
NULL
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-2044
SELECT - + 51, + 94 DIV + col2 + + - col1 AS col0 FROM tab0 cor0
----
-51
-1
-51
-12
-51
-79

skipif mysql # not compatible
query II rowsort label-2044
SELECT - + 51, + 94 / + col2 + + - col1 AS col0 FROM tab0 cor0
----
-51
-1
-51
-12
-51
-79

query II rowsort
SELECT - - col2, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT DISTINCT + + MIN( + + col1 ) FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT + + MIN ( + + col1 ) FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL ( + 24 ) FROM tab1 AS cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT + 40 * COUNT( * ) FROM tab2 WHERE col1 / + 77 IS NOT NULL
----
120

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT + 40 * COUNT ( * ) FROM tab2 WHERE col1 / + 77 IS NOT NULL
----
120

query I rowsort
SELECT ALL 16 * - 26 FROM tab2
----
-416
-416
-416

query I rowsort
SELECT DISTINCT + 53 * + 11 FROM tab1
----
583

query II rowsort
SELECT DISTINCT + col1 + + col2 AS col1, + 89 - 19 * - + 85 + 81 - + 15 AS col2 FROM tab0
----
100
1770
128
1770
31
1770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2052
SELECT ALL - 20 DIV COUNT( * ) DIV + 86 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL - 20 / COUNT ( * ) / + 86 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2053
SELECT 86 DIV 64 * COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2053
SELECT 86 / 64 * COUNT ( * ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT DISTINCT - ( + + COUNT( * ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2054
SELECT DISTINCT - ( + + COUNT ( * ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - - col0 * + + col2 + 44 AS col1 FROM tab2 cor0
----
1102
2604
4394

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT DISTINCT COUNT( * ) * - SUM( DISTINCT - + col2 ) FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-2056
SELECT DISTINCT COUNT ( * ) * - SUM ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2057
SELECT ALL CAST( 85 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL CAST ( 85 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT - MAX( ALL 63 ) AS col2 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2058
SELECT - MAX ( ALL 63 ) AS col2 FROM tab0 AS cor0
----
-63

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 48 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - + col1 * + + col2 * - - 57 - ( - col0 ) + col0 * col2 + + 92 AND - 10
----

query I rowsort
SELECT ALL col0 * 76 - - col1 AS col0 FROM tab1 cor0
----
3890
6465
6963

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2062
SELECT - 10 DIV + COUNT( * ) + 81 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2062
SELECT - 10 / + COUNT ( * ) + 81 FROM tab2 AS cor0
----
78

query I rowsort
SELECT ALL - 57 + col0 + - col0 - + col0 / - - col0 FROM tab2 AS cor0 WHERE NOT + col2 < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT ALL - + COUNT( * ) + + COUNT( * ) - - COUNT( ALL + col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL - + COUNT ( * ) + + COUNT ( * ) - - COUNT ( ALL + col2 ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT - 17 + - col0 + - col2 - + + col1 - 14 * - col2 FROM tab0 AS cor0
----
1172
498
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT SUM( ALL 28 ) col1 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2066
SELECT SUM ( ALL 28 ) col1 FROM tab0 AS cor0
----
84

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 62
----

query I rowsort
SELECT ALL 31 FROM tab2 AS cor0 WHERE col2 < NULL
----

query II rowsort
SELECT ALL - col0 AS col1, col0 AS col1 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT DISTINCT + col1 - - 24 AS col2 FROM tab1
----
29
38
71

query I rowsort
SELECT + 56 - + - 9 FROM tab2
----
65
65
65

query II rowsort
SELECT + 9, col1 + - col2 * - col2 AS col2 FROM tab2
----
9
1677
9
3431
9
580

query II rowsort
SELECT + col1, ( col2 ) FROM tab0 AS cor0
----
1
99
21
10
81
47

query II rowsort
SELECT ALL 66, - col1 AS col1 FROM tab0 AS cor0
----
66
-1
66
-21
66
-81

query I rowsort
SELECT - col0 * + 53 FROM tab2 AS cor0
----
-2438
-3392
-3975

query I rowsort
SELECT - col0 + + col1 * - col0 FROM tab0 WHERE NOT col1 IS NULL
----
-1230
-1914
-194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2077
SELECT - 55 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2077
SELECT - 55 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 20 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT COUNT( * ) * 0 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2079
SELECT COUNT ( * ) * 0 col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2080
SELECT * FROM tab2 AS cor0 WHERE NOT + ( 25 ) - + col1 + + 84 - - - ( - CAST( NULL AS SIGNED ) ) * col2 < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2080
SELECT * FROM tab2 AS cor0 WHERE NOT + ( 25 ) - + col1 + + 84 - - - ( - CAST ( NULL AS INTEGER ) ) * col2 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2081
SELECT COUNT( col2 ) AS col1, + 45 col0 FROM tab2 AS cor0
----
3
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2081
SELECT COUNT ( col2 ) AS col1, + 45 col0 FROM tab2 AS cor0
----
3
45

query I rowsort
SELECT ALL + ( + ( + 71 ) ) FROM tab2 AS cor0
----
71
71
71

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 > + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2084
SELECT - col0 * - col2 * + col2 * + CAST( - 45 AS SIGNED ) * col1 + 90 FROM tab0 AS cor0
----
-120776985
-42781275
-8221410

skipif mysql # not compatible
query I rowsort label-2084
SELECT - col0 * - col2 * + col2 * + CAST ( - 45 AS INTEGER ) * col1 + 90 FROM tab0 AS cor0
----
-120776985
-42781275
-8221410

query I rowsort
SELECT ALL ( 12 ) AS col1 FROM tab2
----
12
12
12

query I rowsort
SELECT DISTINCT col1 * - - 57 AS col0 FROM tab0
----
1197
4617
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT DISTINCT - 75 * + MAX( - + col0 ) + + 36 FROM tab2
----
3486

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT - 75 * + MAX ( - + col0 ) + + 36 FROM tab2
----
3486

onlyif mysql # DIV for integer division: 
query I rowsort label-2088
SELECT ALL ( 39 ) DIV + 60 * - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL ( 39 ) / + 60 * - col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NULL > + col0 + - col1 * + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2090
SELECT ALL MAX( + 96 ) + - 3, + CAST( - 19 AS SIGNED ) AS col0 FROM tab0
----
93
-19

skipif mysql # not compatible
query II rowsort label-2090
SELECT ALL MAX ( + 96 ) + - 3, + CAST ( - 19 AS INTEGER ) AS col0 FROM tab0
----
93
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2091
SELECT ALL CAST( + col0 AS SIGNED ) * CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL CAST ( + col0 AS INTEGER ) * CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT - 35 + - COUNT( * ) FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-2092
SELECT - 35 + - COUNT ( * ) FROM tab2 AS cor0
----
-38

query I rowsort
SELECT + 45 + - 16 AS col0 FROM tab1 AS cor0
----
29
29
29

query II rowsort
SELECT col1 AS col2, 7 FROM tab0 AS cor0
----
1
7
21
7
81
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2095
SELECT - col0 * - - CAST( NULL AS SIGNED ) AS col0, col1 - 99 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2095
SELECT - col0 * - - CAST ( NULL AS INTEGER ) AS col0, col1 - 99 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + 98 * + col2 AS col1 FROM tab1 AS cor0
----
5782
6664
9408

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col0 * + col2
----

query I rowsort
SELECT ALL + 3 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2099
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2099
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + + col1 - + col1 - - col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2101
SELECT - col1 - - col2 DIV - ( + ( col2 ) ) FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-2101
SELECT - col1 - - col2 / - ( + ( col2 ) ) FROM tab2 AS cor0
----
-52
-68
-78

query I rowsort
SELECT ALL + 73 AS col2 FROM tab2 cor0 WHERE - ( 7 ) >= NULL
----

query I rowsort
SELECT - - col2 + + col1 AS col0 FROM tab2 AS cor0 WHERE + 11 * + + col1 <= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2104
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 96, - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2104
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 96, - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2105
SELECT DISTINCT col2 / + 69 - + col0 + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT col2 / + 69 - + col0 + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT ALL - - 48 + COUNT( * ) FROM tab1 WHERE NOT 24 * - col2 BETWEEN + col0 * - col2 * - - col1 AND - - col2
----
48

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL - - 48 + COUNT ( * ) FROM tab1 WHERE NOT 24 * - col2 BETWEEN + col0 * - col2 * - - col1 AND - - col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT + ( - COUNT( * ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2107
SELECT + ( - COUNT ( * ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT ALL ( + - COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL ( + - COUNT ( * ) ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + 52 * + 9 AS col1 FROM tab2
----
468

query I rowsort
SELECT DISTINCT - 8 AS col2 FROM tab2 WHERE NOT + col0 * + col2 - 14 - ( col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 * 86 FROM tab2
----
4386
5762
6622

query I rowsort
SELECT + 43 AS col1 FROM tab2 cor0
----
43
43
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2113
SELECT DISTINCT 22 DIV col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT 22 / col2 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2114
SELECT ALL + COUNT( * ), + 71 AS col2 FROM tab1 AS cor0
----
3
71

skipif mysql # not compatible
query II rowsort label-2114
SELECT ALL + COUNT ( * ), + 71 AS col2 FROM tab1 AS cor0
----
3
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL - MIN( ALL + col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL - MIN ( ALL + col2 ) AS col2 FROM tab1
----
-59

query I rowsort
SELECT ALL 86 + + + col2 * col1 AS col2 FROM tab2 AS cor0
----
1259
3166
3972

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 / + - 32 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2118
SELECT ALL ( CAST( NULL AS SIGNED ) ) * col1 / + col2 AS col0, - col0 FROM tab0 cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-2118
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * col1 / + col2 AS col0, - col0 FROM tab0 cor0
----
NULL
-15
NULL
-87
NULL
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT ALL + MAX( DISTINCT col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL + MAX ( DISTINCT col1 ) FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2120
SELECT ALL + 52 + + 0 * + 31 DIV 67 AS col1 FROM tab2
----
52
52
52

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL + 52 + + 0 * + 31 / 67 AS col1 FROM tab2
----
52
52
52

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 75 * + ( + 6 ) * + col1 - 92 + + col2 / col1 + + 49 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 * col1 col1 FROM tab2
----
2397
5005
5092

query I rowsort
SELECT ALL col2 + + 93 * + 30 FROM tab1
----
2849
2858
2886

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT - - 10 + col2 AS col0 FROM tab0 AS cor0 WHERE 7 BETWEEN col1 * - - col2 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT + MIN( - col1 ) * - - 24 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2126
SELECT + MIN ( - col1 ) * - - 24 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 32 + + col1 AS col0 FROM tab1 AS cor0
----
37
46
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 * + - col1 - + 99 col1 FROM tab0 AS cor0
----
18171
57006
9504

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT ALL + 31 + + COUNT( * ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL + 31 + + COUNT ( * ) FROM tab1 AS cor0
----
34

query I rowsort
SELECT ALL - col1 * + ( + ( - + col2 ) ) + + + col1 * - + col2 - - col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT 54 * col2 AS col0 FROM tab1 AS cor0
----
3186
3672
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT ALL - SUM( + 52 ) AS col0 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL - SUM ( + 52 ) AS col0 FROM tab1 AS cor0
----
-156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 - + + 48 * - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( + + ( + + col0 ) ) AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NULL IN ( + + 69, 86 * + col0 )
----

query I rowsort
SELECT DISTINCT + col0 * col0 - + col0 AS col1 FROM tab1 WHERE NOT - + 20 + + col2 IS NULL
----
2550
7140
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT DISTINCT - COUNT( * ) * + 42 AS col2 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT - COUNT ( * ) * + 42 AS col2 FROM tab1
----
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 * - col2 col1 FROM tab1
----
5782
6664
9408

query I rowsort
SELECT ALL - - col0 FROM tab2 WHERE NOT + + 77 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 10 IS NOT NULL
----

query I rowsort
SELECT col1 * 19 + - col1 FROM tab1 AS cor0
----
252
846
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT DISTINCT - COUNT( DISTINCT + + ( + 63 ) ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT - COUNT ( DISTINCT + + ( + 63 ) ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT 81 + - col1 FROM tab0 cor0
----
0
60
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2145
SELECT - CAST( NULL AS SIGNED ) / + COUNT( * ) AS col1 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2145
SELECT - CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col1 FROM tab2, tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - ( + 55 ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query III rowsort label-2147
SELECT COUNT( * ) AS col2, - SUM( + + col0 ) AS col2, - COUNT( * ) + - COUNT( DISTINCT - + col2 ) col1 FROM tab0
----
3
-199
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2147
SELECT COUNT ( * ) AS col2, - SUM ( + + col0 ) AS col2, - COUNT ( * ) + - COUNT ( DISTINCT - + col2 ) col1 FROM tab0
----
3
-199
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2148
SELECT 51 * - CAST( 68 AS SIGNED ) * COUNT( * ) FROM tab0 AS cor0
----
-10404

skipif mysql # not compatible
query I rowsort label-2148
SELECT 51 * - CAST ( 68 AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0
----
-10404

query II rowsort
SELECT ALL + + ( + 6 ) + + col1 AS col0, - col0 + col0 AS col2 FROM tab0 AS cor0
----
27
0
7
0
87
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2150
SELECT DISTINCT + col2 + + 88 DIV col1 AS col1, 12 - - - col1 FROM tab2 AS cor0
----
24
-39
41
-65
59
-55

skipif mysql # not compatible
query II rowsort label-2150
SELECT DISTINCT + col2 + + 88 / col1 AS col1, 12 - - - col1 FROM tab2 AS cor0
----
24
-39
41
-65
59
-55

query I rowsort
SELECT DISTINCT - col1 FROM tab1 cor0 WHERE NOT ( col1 ) >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2152
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2152
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 48 * col2 AS col1 FROM tab1 AS cor0
----
-2832
-3264
-4608

query I rowsort
SELECT 6 + - - 86 FROM tab0
----
92
92
92

query I rowsort
SELECT ALL + col1 + + - 15 + + ( + 70 ) * - 91 AS col0 FROM tab0
----
-6304
-6364
-6384

query I rowsort
SELECT - 60 + 69 FROM tab2
----
9
9
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2157
SELECT DISTINCT - col0 + + col2 + - 8 DIV + - col1 + - col0 DIV col0 FROM tab2
----
-18
-24
-25

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT - col0 + + col2 + - 8 / + - col1 + - col0 / col0 FROM tab2
----
-18
-24
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2158
SELECT ALL + 58 + - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
11
44
53

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + 58 + - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
11
44
53

query I rowsort
SELECT - ( + 53 ) FROM tab0 AS cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT ALL + ( - ( + COUNT( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL + ( - ( + COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2161
SELECT ALL + col2 * + 90 * CAST( - + 2 AS SIGNED ) FROM tab2
----
-10440
-4140
-7200

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + col2 * + 90 * CAST ( - + 2 AS INTEGER ) FROM tab2
----
-10440
-4140
-7200

query I rowsort
SELECT DISTINCT col2 - - ( - - 53 ) * col1 FROM tab2
----
2726
3609
4121

query I rowsort
SELECT + 58 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT + + 11 AS col1 FROM tab2 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT - + MAX( ALL - col1 ) * COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2165
SELECT - + MAX ( ALL - col1 ) * COUNT ( * ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 47 col2 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT + 33 AS col2 FROM tab1 cor0
----
33
33
33

query I rowsort
SELECT DISTINCT + ( 14 ) FROM tab2 cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2169
SELECT DISTINCT - + col0 AS col0, - col2 * - CAST( col2 AS DECIMAL ) FROM tab1 WHERE 87 IN ( + col0 * + - ( - + col1 ) / col0 + - 7 / - ( - col1 ) + + 71 + + ( CAST( + col0 AS SIGNED ) ), + col0, - col2, - + CAST( col2 AS DECIMAL ) / + col2 + col2 - + col0, + col2, + ( + ( - 72 ) ) )
----

skipif mysql # not compatible
query II rowsort label-2169
SELECT DISTINCT - + col0 AS col0, - col2 * - CAST ( col2 AS REAL ) FROM tab1 WHERE 87 IN ( + col0 * + - ( - + col1 ) / col0 + - 7 / - ( - col1 ) + + 71 + + ( CAST ( + col0 AS INTEGER ) ), + col0, - col2, - + CAST ( col2 AS REAL ) / + col2 + col2 - + col0, + col2, + ( + ( - 72 ) ) )
----

query I rowsort
SELECT + col0 * + + ( + col2 ) * + col1 FROM tab1
----
25075
290836
68544

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT DISTINCT - col2 DIV 92 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT - col2 / 92 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT - COUNT( * ) * + MIN( ALL + col0 ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-2172
SELECT - COUNT ( * ) * + MIN ( ALL + col0 ) FROM tab0
----
-45

query I rowsort
SELECT DISTINCT - 92 FROM tab2 WHERE NOT ( - 79 / - col0 + + 77 ) IS NULL
----
-92

query I rowsort
SELECT col2 * - 69 - col1 * - col2 AS col1 FROM tab0
----
-480
-6732
564

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT ( - col1 * + col1 ) IS NULL
----
51
85
91

query I rowsort
SELECT ALL - 99 * 56 FROM tab1
----
-5544
-5544
-5544

query I rowsort
SELECT ALL + ( col0 ) * + col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT - AVG ( ALL col0 ) * 93 FROM tab1 WHERE 21 - 6 <= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 74 ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 col0 FROM tab1
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT - 34 * - 31 - - CAST( - col2 AS SIGNED ) * col1 AS col0 FROM tab2 WHERE 31 * - 46 - ( 51 ) * col1 NOT BETWEEN ( NULL ) AND 56
----

skipif mysql # not compatible
query I rowsort label-2181
SELECT - 34 * - 31 - - CAST ( - col2 AS INTEGER ) * col1 AS col0 FROM tab2 WHERE 31 * - 46 - ( 51 ) * col1 NOT BETWEEN ( NULL ) AND 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL 3 * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL 3 * COUNT ( * ) FROM tab0
----
9

query III rowsort
SELECT * FROM tab1 WHERE - col1 <> - 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 92 * + col1 FROM tab2
----
4692
6164
7084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2185
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) - ( + col0 ) / - 84 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2185
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) - ( + col0 ) / - 84 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 12 * + col0 AS col1 FROM tab2
----
-552
-768
-900

query I rowsort
SELECT DISTINCT 22 AS col0 FROM tab1 WHERE 96 + col1 IS NOT NULL
----
22

query I rowsort
SELECT + 82 + 24 FROM tab2
----
106
106
106

query I rowsort
SELECT DISTINCT ( + col2 ) + - col1 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT COUNT( * ) * + MIN( 61 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
183

skipif mysql # not compatible
query I rowsort label-2190
SELECT COUNT ( * ) * + MIN ( 61 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT - 72 * COUNT( * ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-2191
SELECT - 72 * COUNT ( * ) FROM tab0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT - 6 * + COUNT( * ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-2192
SELECT - 6 * + COUNT ( * ) FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT DISTINCT SUM( col0 ) * 15 FROM tab2 WHERE col2 IN ( - 98 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT SUM ( col0 ) * 15 FROM tab2 WHERE col2 IN ( - 98 * col2 )
----
NULL

query I rowsort
SELECT + 62 * - col1 AS col1 FROM tab2
----
-3162
-4154
-4774

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT - COUNT( 13 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2195
SELECT - COUNT ( 13 ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + - 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT ALL + COUNT( + 47 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL + COUNT ( + 47 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - ( col2 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 61 * col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2202
SELECT ALL CAST( 7 AS SIGNED ) AS col1 FROM tab2
----
7
7
7

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL CAST ( 7 AS INTEGER ) AS col1 FROM tab2
----
7
7
7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( + col2 ) AND 41
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2204
SELECT + 77 DIV 10 - col0 FROM tab1
----
-44
-78
-84

skipif mysql # not compatible
query I rowsort label-2204
SELECT + 77 / 10 - col0 FROM tab1
----
-44
-78
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ALL COUNT( 88 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL COUNT ( 88 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT - COUNT( * ) * - 12 FROM tab1 WHERE + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2206
SELECT - COUNT ( * ) * - 12 FROM tab1 WHERE + col2 >= NULL
----
0

query I rowsort
SELECT - 55 + - col2 AS col0 FROM tab2
----
-113
-78
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT ALL 66 + COUNT( * ) * + 92 AS col2 FROM tab0
----
342

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL 66 + COUNT ( * ) * + 92 AS col2 FROM tab0
----
342

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT COUNT( * ) AS col0 FROM tab2 cor0 WHERE ( - 26 ) IN ( 28 )
----
0

skipif mysql # not compatible
query I rowsort label-2209
SELECT COUNT ( * ) AS col0 FROM tab2 cor0 WHERE ( - 26 ) IN ( 28 )
----
0

query I rowsort
SELECT DISTINCT + col2 + ( - 97 ) FROM tab2 AS cor0
----
-39
-57
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-2211
SELECT DISTINCT + col1 DIV col1 + + col1 FROM tab2 cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT + col1 / col1 + + col1 FROM tab2 cor0
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT ALL - col2 + + ( - col1 ) * col1 FROM tab1 AS cor0
----
-2277
-292
-84

query I rowsort
SELECT - 70 + - 64 FROM tab1 AS cor0
----
-134
-134
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT + SUM( 3 ) - + 92 / + 28 col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - ( col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2215
SELECT + SUM ( 3 ) - + 92 / + 28 col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - ( col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT ALL ( - ( + COUNT( - col0 ) ) ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2216
SELECT ALL ( - ( + COUNT ( - col0 ) ) ) col2 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 - col0 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * + 44 AS col1 FROM tab1 AS cor0
----
2244
3740
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT DISTINCT + ( - COUNT( ALL col0 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT + ( - COUNT ( ALL col0 ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + + col2 * + 28 FROM tab0 AS cor0
----
1316
2772
280

query I rowsort
SELECT + col0 / 98 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT + SUM( - col2 ) * - ( - 30 ) AS col2 FROM tab2 AS cor0
----
-3630

skipif mysql # not compatible
query I rowsort label-2222
SELECT + SUM ( - col2 ) * - ( - 30 ) AS col2 FROM tab2 AS cor0
----
-3630

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2223
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + CAST( + ( + 44 ) * + col1 AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-2223
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + CAST ( + ( + 44 ) * + col1 AS REAL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT - MAX( ALL col1 ) col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2224
SELECT - MAX ( ALL col1 ) col1 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 28 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 * 50 FROM tab2
----
-2550
-3350
-3850

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2227
SELECT * FROM tab1 WHERE NOT ( - CAST( + col1 AS SIGNED ) * + 66 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2227
SELECT * FROM tab1 WHERE NOT ( - CAST ( + col1 AS INTEGER ) * + 66 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( - col2 ) * col0 + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2229
SELECT COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2229
SELECT COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT - 98 FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( col0 - + col2 / + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 * + col0 col0 FROM tab0
----
-1653
-1843
-285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2232
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT 96 * 54 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT - + COUNT( + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2235
SELECT - + COUNT ( + col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 5 * col0 FROM tab1 cor0 WHERE ( col2 * - + 96 ) NOT IN ( - 28 + 71 * - col1 )
----
255
425
455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2237
SELECT + 27 / SUM( ALL - col1 ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT + 27 / SUM ( ALL - col1 ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - col1 - col2 AS col2 FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT ALL - 60 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 - + 10 FROM tab0 AS cor0 WHERE NOT NULL <> 8
----

query I rowsort
SELECT ALL + + ( - ( col2 ) ) * ( 89 ) FROM tab0 AS cor0
----
-4183
-8811
-890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT DISTINCT col0 - - 58 * - ( + CAST( NULL AS SIGNED ) ) + + col0 * col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT col0 - - 58 * - ( + CAST ( NULL AS INTEGER ) ) + + col0 * col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * 38 FROM tab2 AS cor0 WHERE NOT ( col2 ) IN ( col1 - - 43 )
----
1520
2204
874

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT - SUM( DISTINCT - 16 ) + - 46 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2244
SELECT - SUM ( DISTINCT - 16 ) + - 46 FROM tab1 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT DISTINCT + ( - COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT + ( - COUNT ( * ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT COUNT( * ) + + + MAX( DISTINCT + col1 ) AS col0 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-2246
SELECT COUNT ( * ) + + + MAX ( DISTINCT + col1 ) AS col0 FROM tab1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2247
SELECT - col0 FROM tab2 WHERE + CAST( 18 AS SIGNED ) * + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2247
SELECT - col0 FROM tab2 WHERE + CAST ( 18 AS INTEGER ) * + col2 IS NULL
----

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE ( col2 * + + 82 ) NOT IN ( - ( ( col2 ) ) )
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 * - ( - - 65 ) * + 50 BETWEEN 50 AND - 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT + col2 DIV + + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2250
SELECT + col2 / + + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col2 + + col1 AND col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 43 NOT IN ( + + col1 )
----

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT + + 87 * - col1 IS NULL
----
-14
-47
-5

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, - 75 + 22 + col1 col1 FROM tab1
----
-59
-48
-68
-6
-96
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT + MAX( + col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2256
SELECT + MAX ( + col2 ) AS col1 FROM tab0
----
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 NOT BETWEEN ( NULL ) AND - ( + 90 )
----

query I rowsort
SELECT + 86 * - col2 + + col0 AS col2 FROM tab1 AS cor0
----
-4989
-5757
-8205

query I rowsort
SELECT col1 * - col2 + col1 * - 87 FROM tab0 cor0
----
-10854
-186
-2037

query I rowsort
SELECT DISTINCT - 55 AS col2 FROM tab2 cor0
----
-55

query I rowsort
SELECT col2 + - 57 * + col1 * + col0 AS col2 FROM tab1 AS cor0
----
-24166
-243721
-40602

query I rowsort
SELECT ALL + - AVG ( + col2 ) AS col1 FROM tab0 WHERE - 0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT SUM( + 74 ) AS col1 FROM tab2 WHERE NOT + 34 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2263
SELECT SUM ( + 74 ) AS col1 FROM tab2 WHERE NOT + 34 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - + 28 * col1 * - + 3 AS col0 FROM tab0
----
102060
153468
8148

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 - + - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 24, ( + 94 ) + 56 AS col2 FROM tab2
----
24
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT - COUNT( + 39 ) + + 25 AS col0 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT - COUNT ( + 39 ) + + 25 AS col0 FROM tab1
----
22

query III rowsort
SELECT + 97 AS col2, + col1, col1 AS col1 FROM tab2
----
9 values hashing to 507048ad0c9e1f9a4d6951cb35a64264

query I rowsort
SELECT ALL - col2 + + + 53 AS col0 FROM tab0
----
-46
43
6

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 43 + - 31 * + col0 - - col0 - col2 >= col1 * - col2
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT + col0 + - 8 DIV + col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2271
SELECT + col0 + - 8 / + col0 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL + col2 + + 93 AS col0 FROM tab2
----
116
133
151

query I rowsort
SELECT DISTINCT + 91 * - col1 + 53 AS col2 FROM tab1
----
-1221
-402
-4224

query I rowsort
SELECT ALL + + 96 + col0 * + + 84 FROM tab0 AS cor0
----
1356
7404
8244

query I rowsort
SELECT ALL - 33 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-33
-33
-33

query I rowsort
SELECT DISTINCT + ( ( col1 ) ) + col1 AS col0 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # DIV for integer division: 
query I rowsort label-2277
SELECT DISTINCT + 33 DIV col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT + 33 / col0 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL col0 AS col1, + 52 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
52
87
52
97
52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( 61, 9 )
----

query I rowsort
SELECT DISTINCT + + 48 FROM tab0 cor0
----
48

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

query II rowsort
SELECT col2 * + col1 * + col1, col1 AS col0 FROM tab2 AS cor0
----
237160
77
260362
67
59823
51

query II rowsort
SELECT ALL col2 AS col0, 43 AS col0 FROM tab0
----
10
43
47
43
99
43

query I rowsort
SELECT - col0 * - - col2 AS col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT - col0 * col0 + + col2 FROM tab1 WHERE - - col1 + - ( + col0 ) * - - col2 * + 22 IS NULL
----

query I rowsort
SELECT + 23 * + col0 AS col2 FROM tab0
----
2001
2231
345

query III rowsort
SELECT * FROM tab0 WHERE 88 * + 39 IS NULL
----

query I rowsort
SELECT + 72 * + + col0 FROM tab1
----
3672
6120
6552

onlyif mysql # DIV for integer division: 
query I rowsort label-2289
SELECT col1 DIV + col2 - - - col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2289
SELECT col1 / + col2 - - - col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT DISTINCT + COUNT( DISTINCT + 60 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT + COUNT ( DISTINCT + 60 ) FROM tab0
----
1

query II rowsort
SELECT DISTINCT 77 AS col0, 9 * - - col1 FROM tab0
----
77
189
77
729
77
9

query I rowsort
SELECT DISTINCT - col0 - + 8 FROM tab0 AS cor0 WHERE ( 70 ) NOT BETWEEN col2 AND + - col1 / - col1
----
-105
-23
-95

query I rowsort
SELECT 43 FROM tab1 WHERE NOT ( NOT - col2 IS NULL )
----

query I rowsort
SELECT DISTINCT + ( - + 55 ) + 41 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2295
SELECT * FROM tab0 AS cor0 WHERE - ( CAST( NULL AS DECIMAL ) ) IS NULL OR NOT NULL IN ( - 15, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2295
SELECT * FROM tab0 AS cor0 WHERE - ( CAST ( NULL AS REAL ) ) IS NULL OR NOT NULL IN ( - 15, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT col2 * + + col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT + col1 * + ( + + 75 ) AS col2 FROM tab1 AS cor0
----
1050
3525
375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 47 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2301
SELECT ALL - col1 DIV - ( - 27 ) AS col2 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL - col1 / - ( - 27 ) AS col2 FROM tab0 AS cor0
----
-3
0
0

query II rowsort
SELECT DISTINCT col2 + ( - col2 ), col2 FROM tab0
----
0
10
0
47
0
99

query II rowsort
SELECT ALL - ( + 23 ) + 29 AS col1, 53 FROM tab2
----
6
53
6
53
6
53

query I rowsort
SELECT - 29 + - col0 * - + col0 + + + col0 FROM tab2 AS cor0
----
2133
4131
5671

query I rowsort
SELECT DISTINCT - col1 + - 57 AS col1 FROM tab0 AS cor0
----
-138
-58
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2306
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE ( NULL ) > - col1 * - CAST( col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE ( NULL ) > - col1 * - CAST ( col0 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT ALL - + 65 - - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 / + col1 >= NULL
----
-65

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL - + 65 - - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 / + col1 >= NULL
----
-65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col0 / - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2 * + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2310
SELECT + - CAST( NULL AS DECIMAL ) * + 61 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT + - CAST ( NULL AS REAL ) * + 61 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 94, + col2 FROM tab2
----
94
23
94
40
94
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT DISTINCT + COUNT( * ) + + 8 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT + COUNT ( * ) + + 8 FROM tab1 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT DISTINCT - + 86 * + + SUM( + col1 ) + + COUNT( * ) + + COUNT( * ) - - 87 AS col2 FROM tab0 AS cor0
----
-8765

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT - + 86 * + + SUM ( + col1 ) + + COUNT ( * ) + + COUNT ( * ) - - 87 AS col2 FROM tab0 AS cor0
----
-8765

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT + COUNT( * ) - + 92 AS col1 FROM tab2 cor0
----
-89

skipif mysql # not compatible
query I rowsort label-2314
SELECT + COUNT ( * ) - + 92 AS col1 FROM tab2 cor0
----
-89

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE - 29 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2316
SELECT + 64 - - col0 + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + + col0 * + + col2 * + 15 * + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT + 64 - - col0 + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + + col0 * + + col2 * + 15 * + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 - + 67 FROM tab0 AS cor0
----
-52
20
30

query I rowsort
SELECT col1 + 31 FROM tab2 AS cor0
----
108
82
98

query I rowsort
SELECT ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NULL IN ( col1, - col0 * - 58 - - 19 + col1, - 3 / - col2 + col1 + + ( 29 ) )
----

query II rowsort
SELECT DISTINCT + + col0, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query II rowsort
SELECT ALL + col2, + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL + col1 - + col1 - + 14 AS col2 FROM tab1
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2323
SELECT - col2 - col1 FROM tab0 WHERE - col0 / - - 2 + - ( CAST( NULL AS SIGNED ) ) IS NULL
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-2323
SELECT - col2 - col1 FROM tab0 WHERE - col0 / - - 2 + - ( CAST ( NULL AS INTEGER ) ) IS NULL
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2324
SELECT DISTINCT CAST( - 83 AS SIGNED ) FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT CAST ( - 83 AS INTEGER ) FROM tab0
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-2325
SELECT ALL + 76 col2, + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
76
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2325
SELECT ALL + 76 col2, + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
76
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + + col1 * col1 + - + 22 * - - col0
----

query II rowsort
SELECT - 74 * - col1, col1 FROM tab1
----
1036
14
3478
47
370
5

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( col1 * - - col0 * - col0 + + 7 * ( 32 ) >= ( - 29 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * - - col1 AS col2 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT + col0 * - 26 AS col0 FROM tab2
----
-1196
-1664
-1950

query III rowsort
SELECT DISTINCT - 65 * - col0 AS col2, 61, + 3 AS col0 FROM tab1 AS cor0
----
9 values hashing to d9df694ccff950d5163cbd4459910a80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT + 70 - + MIN( - col0 ) FROM tab0 AS cor0 WHERE NOT col0 IN ( ( col1 ) * 1 )
----
167

skipif mysql # not compatible
query I rowsort label-2333
SELECT + 70 - + MIN ( - col0 ) FROM tab0 AS cor0 WHERE NOT col0 IN ( ( col1 ) * 1 )
----
167

onlyif mysql # aggregate syntax: 
query II rowsort label-2334
SELECT ALL + MAX( DISTINCT + 22 ), COUNT( * ) AS col2 FROM tab0 cor0
----
22
3

skipif mysql # not compatible
query II rowsort label-2334
SELECT ALL + MAX ( DISTINCT + 22 ), COUNT ( * ) AS col2 FROM tab0 cor0
----
22
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2335
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 WHERE col1 + - col1 + - col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE col1 + - col1 + - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2337
SELECT DISTINCT 60 DIV - + 22 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT 60 / - + 22 FROM tab1
----
-2

query I rowsort
SELECT + 39 * - - col1 FROM tab2
----
1989
2613
3003

query I rowsort
SELECT + 92 * - 80 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 + - - col0 IS NULL
----
-7360
-7360
-7360

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT DISTINCT SUM( - col1 ) AS col0 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT SUM ( - col1 ) AS col0 FROM tab0 cor0
----
-103

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - + 58 / + 13 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + + 14 AS col0 FROM tab1 AS cor0
----
14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 col0 FROM tab0
----
225
7569
9409

query I rowsort
SELECT DISTINCT - col1 + + - 55 * col2 FROM tab2
----
-1316
-2277
-3257

query I rowsort
SELECT ALL col1 + ( - 93 ) AS col0 FROM tab1
----
-46
-79
-88

query I rowsort
SELECT - ( - ( - col1 ) ) * - - col2 FROM tab2 WHERE - col2 IN ( + col2 )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NULL < - col0
----

query I rowsort
SELECT DISTINCT + col0 + + 46 + + 22 AS col1 FROM tab0
----
155
165
83

query I rowsort
SELECT ALL + ( - col0 ) AS col0 FROM tab2 WHERE - col2 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + + 2 IS NULL
----

query I rowsort
SELECT + - 91 * + col0 - 45 * - col1 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 AND + 74 * col0 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + col2 col2, + col1 * + + 6 * - - 62 FROM tab1 AS cor0
----
110
5208
115
17484
64
1860

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 42 NOT BETWEEN ( - 76 ) AND NULL
----

query I rowsort
SELECT ALL + ( + col2 ) + col1 + - 49 FROM tab0
----
-18
51
79

query I rowsort
SELECT ALL 13 + col2 FROM tab0 AS cor0
----
112
23
60

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE ( - + col2 ) IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col0 * 43 + 46 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - + 92 AS col2, col1 AS col0 FROM tab0 AS cor0
----
-92
1
-92
21
-92
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT DISTINCT + MIN( col0 ) + 33 AS col0 FROM tab1 cor0
----
84

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT + MIN ( col0 ) + 33 AS col0 FROM tab1 cor0
----
84

query I rowsort
SELECT DISTINCT 89 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL <> 20
----

query II rowsort
SELECT - + col1 AS col1, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT ALL MAX( - ( + col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL MAX ( - ( + col0 ) ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT 1 * + 58 AS col1 FROM tab0
----
58
58
58

query I rowsort
SELECT - 98 * + 52 * + col1 FROM tab2
----
-259896
-341432
-392392

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT DISTINCT - 16 * + MIN( DISTINCT - col1 ) FROM tab1
----
752

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT - 16 * + MIN ( DISTINCT - col1 ) FROM tab1
----
752

query I rowsort
SELECT 50 * + - col2 FROM tab1
----
-2950
-3400
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT - COUNT( * ) col1 FROM tab0 WHERE NOT 85 * + col0 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2370
SELECT - COUNT ( * ) col1 FROM tab0 WHERE NOT 85 * + col0 IS NULL
----
-3

query I rowsort
SELECT - col2 * + - ( + col2 ) * col1 * + - col2 + col2 + - - col0 * + - 89 FROM tab0 AS cor0
----
-28733
-8410951
-978833

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT DISTINCT + MIN( ALL + + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT + MIN ( ALL + + col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT 94 * col2 FROM tab1 AS cor0
----
5546
6392
9024

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 * col2 * - + col1 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( NULL = ( NULL ) ) )
----

query I rowsort
SELECT ALL + col2 + + col2 FROM tab2 AS cor0 WHERE ( NULL ) <= col0 + col0
----

query I rowsort
SELECT + ( - col0 ) * + - ( + ( - - col2 ) ) FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL - ( - + col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ( + 16 ) AS col0 FROM tab2 AS cor0
----
16
16
16

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2382
SELECT + + col0 * + CAST( 25 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2175
2425
375

skipif mysql # not compatible
query I rowsort label-2382
SELECT + + col0 * + CAST ( 25 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2175
2425
375

query I rowsort
SELECT + ( + + col2 ) AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT + - col2 * - - ( - - col1 ) FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2385
SELECT ALL + CAST( NULL AS SIGNED ) - + - 6 + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL + CAST ( NULL AS INTEGER ) - + - 6 + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col0 AS col1, + 49 FROM tab0
----
15
49
87
49
97
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT ALL ( COUNT( * ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2387
SELECT ALL ( COUNT ( * ) ) col2 FROM tab1
----
3

query I rowsort
SELECT - col0 * + col0 + col1 FROM tab0
----
-144
-7548
-9408

query I rowsort
SELECT col1 + - + ( 33 ) AS col1 FROM tab1
----
-19
-28
14

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 23 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 AND 2 - + ( - 23 ) + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2392
SELECT + CAST( NULL AS SIGNED ) * col2 - col1 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2392
SELECT + CAST ( NULL AS INTEGER ) * col2 - col1 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2393
SELECT - ( 24 ) DIV - - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2393
SELECT - ( 24 ) / - - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT - COUNT( col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2394
SELECT - COUNT ( col2 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL + COUNT( ALL + col1 ) AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL + COUNT ( ALL + col1 ) AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2396
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 92 + - CAST( 71 AS DECIMAL ) * 94 + - 97
----

skipif mysql # not compatible
query III rowsort label-2396
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 92 + - CAST ( 71 AS REAL ) * 94 + - 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2397
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 0 * - col0 * + CAST( col1 AS SIGNED ) NOT BETWEEN + - col0 AND 67
----

skipif mysql # not compatible
query III rowsort label-2397
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 0 * - col0 * + CAST ( col1 AS INTEGER ) NOT BETWEEN + - col0 AND 67
----

query I rowsort
SELECT DISTINCT - col2 * ( - + 85 ) * - col0 + + 63 AS col2 FROM tab0
----
-59862
-73887
-816192

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL - 50 * + + SUM( - - col0 ) FROM tab2
----
-9250

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL - 50 * + + SUM ( - - col0 ) FROM tab2
----
-9250

query I rowsort
SELECT DISTINCT 48 * 1 AS col0 FROM tab1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2401
SELECT ALL CAST( NULL AS SIGNED ) * - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - 69 FROM tab0 AS cor0
----
-3243
-6831
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + ( 51 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2403
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + ( 51 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT ALL 27 * + COUNT( + col0 ) * - SUM( ALL - - 14 ) FROM tab2 AS cor0
----
-3402

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL 27 * + COUNT ( + col0 ) * - SUM ( ALL - - 14 ) FROM tab2 AS cor0
----
-3402

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2405
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) < - 67
----

skipif mysql # not compatible
query III rowsort label-2405
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) < - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT + - COUNT( ALL - 47 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2406
SELECT + - COUNT ( ALL - 47 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT + ( + - ( + col2 ) ) AS col1 FROM tab1
----
-59
-68
-96

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 7 + + - 75 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL + col2 * + + col0 AS col2 FROM tab0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT col2 * + - col0 + col0 FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT ALL col1 + - 65 AS col1 FROM tab0
----
-44
-64
16

query I rowsort
SELECT + + col2 + - + col0 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN - ( - 7 ) AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 39 > NULL
----

query I rowsort
SELECT ALL + col1 * - col1 * + col0 * ( - + col0 ) AS col2 FROM tab0 AS cor0
----
1476225
3337929
9409

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2417
SELECT ALL CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL CAST ( - CAST ( NULL AS REAL ) AS REAL ) + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col0 + - col2 * col1 AS col2 FROM tab2 WHERE NOT col0 + - col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT 69 DIV + col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2419
SELECT 69 / + col0 FROM tab2
----
0
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2420
SELECT DISTINCT - col1 DIV col1, 1 AS col0 FROM tab2
----
-1
1

skipif mysql # not compatible
query II rowsort label-2420
SELECT DISTINCT - col1 / col1, 1 AS col0 FROM tab2
----
-1
1

query I rowsort
SELECT - ( col2 ) * + - 34 * + col1 * - col2 * 35 + + col0 AS col1 FROM tab0
----
-11663093
-212925495
-2498913

query I rowsort
SELECT col0 * + 41 AS col0 FROM tab0
----
3567
3977
615

query I rowsort
SELECT ALL + col1 + + - col2 + - col1 AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL col1 + col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT ALL SUM( + - 38 ) + - COUNT( * ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL SUM ( + - 38 ) + - COUNT ( * ) FROM tab2
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2426
SELECT ALL + col2 AS col1 FROM tab0 WHERE NOT + CAST( + col2 AS SIGNED ) + ( + col1 ) + + col2 NOT BETWEEN + 24 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL + col2 AS col1 FROM tab0 WHERE NOT + CAST ( + col2 AS INTEGER ) + ( + col1 ) + + col2 NOT BETWEEN + 24 AND NULL
----

query I rowsort
SELECT DISTINCT ( - 2 ) + col2 AS col2 FROM tab2
----
21
38
56

query I rowsort
SELECT ALL col1 - 26 AS col1 FROM tab0 AS cor0
----
-25
-5
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2429
SELECT * FROM tab1 AS cor0 WHERE CAST( 17 AS SIGNED ) + + 91 * + + col0 > col1 + - + col2 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2429
SELECT * FROM tab1 AS cor0 WHERE CAST ( 17 AS INTEGER ) + + 91 * + + col0 > col1 + - + col2 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( col2 ) + + 37 - - col0 FROM tab1 AS cor0
----
181
184
196

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT + COUNT( * ) - - COUNT( * ) col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2431
SELECT + COUNT ( * ) - - COUNT ( * ) col2 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT - - COUNT( * ) + + 29 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2432
SELECT - - COUNT ( * ) + + 29 FROM tab0 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2433
SELECT CAST( + + col1 AS SIGNED ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2433
SELECT CAST ( + + col1 AS INTEGER ) AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT ( - col1 ) * + - 18 FROM tab1 cor0
----
252
846
90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 24 NOT IN ( col1, + col2 / + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 41 FROM tab0 cor0 WHERE NOT ( NULL ) < NULL
----

query II rowsort
SELECT ALL col2 AS col1, + col2 + + col0 AS col2 FROM tab0 AS cor0
----
10
97
47
62
99
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, + col0 AS col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2440
SELECT col1 DIV + - 10 AS col0 FROM tab1 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2440
SELECT col1 / + - 10 AS col0 FROM tab1 cor0
----
-1
-4
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2441
SELECT + col1, - col0 DIV - + 83 FROM tab1 AS cor0
----
14
0
47
1
5
1

skipif mysql # not compatible
query II rowsort label-2441
SELECT + col1, - col0 / - + 83 FROM tab1 AS cor0
----
14
0
47
1
5
1

query I rowsort
SELECT - 53 * - - col2 FROM tab0 AS cor0
----
-2491
-5247
-530

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col2 * col0, - 97, col0, + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL COUNT( * ) * - + 32 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL COUNT ( * ) * - + 32 FROM tab1
----
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT 96 / + - col2 * 26 - + col1 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2446
SELECT ALL - COUNT( * ) DIV COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL - COUNT ( * ) / COUNT ( * ) FROM tab1
----
-1

query I rowsort
SELECT + - 19 - - 70 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT - COUNT( * ) FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2448
SELECT - COUNT ( * ) FROM tab0, tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT DISTINCT - MAX( DISTINCT col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT - MAX ( DISTINCT col1 ) AS col1 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2450
SELECT + 11 * + AVG ( ALL - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2450
SELECT + 11 * + AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + - 53 AS col0 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT + COUNT( * ) * - 96 AS col1 FROM tab0 cor0
----
-288

skipif mysql # not compatible
query I rowsort label-2452
SELECT + COUNT ( * ) * - 96 AS col1 FROM tab0 cor0
----
-288

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL = + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 89 + - + col0 = NULL
----

query I rowsort
SELECT DISTINCT - ( 25 ) - + - 62 AS col0 FROM tab2 AS cor0
----
37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 < NULL
----

query I rowsort
SELECT ALL - 7 - 36 AS col1 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT ( - col2 ) FROM tab1 WHERE + - col1 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2459
SELECT col2 + + 79 - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT col2 + + 79 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT - COUNT( * ) * - MAX( - + 96 ) FROM tab2 WHERE NULL IS NULL
----
-288

skipif mysql # not compatible
query I rowsort label-2460
SELECT - COUNT ( * ) * - MAX ( - + 96 ) FROM tab2 WHERE NULL IS NULL
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2461
SELECT DISTINCT + CAST( - - ( + col1 ) AS SIGNED ) AS col2 FROM tab1 WHERE NOT ( + 92 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT + CAST ( - - ( + col1 ) AS INTEGER ) AS col2 FROM tab1 WHERE NOT ( + 92 ) = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2462
SELECT 27 DIV + - MIN( + 47 ) + - COUNT( - col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2462
SELECT 27 / + - MIN ( + 47 ) + - COUNT ( - col1 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2463
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - CAST( + CAST( - ( - 21 ) AS SIGNED ) AS DECIMAL ) / - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - CAST ( + CAST ( - ( - 21 ) AS INTEGER ) AS REAL ) / - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT COUNT( * ) + + - 94 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-2464
SELECT COUNT ( * ) + + - 94 FROM tab0
----
-91

query I rowsort
SELECT DISTINCT - - col1 + - - col1 AS col2 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT ALL ( col2 ) + + + col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT DISTINCT + - ( + COUNT( * ) ) * - 18 + - 71 AS col0 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT + - ( + COUNT ( * ) ) * - 18 + - 71 AS col0 FROM tab0 AS cor0
----
-17

query II rowsort
SELECT DISTINCT col2 * col1 * + col2, + ( + 36 ) AS col2 FROM tab1
----
129024
36
17405
36
217328
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2469
SELECT + col1 DIV + - col0 * - 82 - - col1 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2469
SELECT + col1 / + - col0 * - 82 - - col1 AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2470
SELECT DISTINCT col0 DIV + CAST( - col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2470
SELECT DISTINCT col0 / + CAST ( - col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2471
SELECT ALL * FROM tab2 cor0 WHERE + col1 IS NULL OR NOT NULL NOT IN ( + col2 + 57, - 57 * - 55, - CAST( NULL AS SIGNED ) / - col0 * - + col2 * - col2, - 77 * + col0 * - + 13 )
----

skipif mysql # not compatible
query III rowsort label-2471
SELECT ALL * FROM tab2 cor0 WHERE + col1 IS NULL OR NOT NULL NOT IN ( + col2 + 57, - 57 * - 55, - CAST ( NULL AS INTEGER ) / - col0 * - + col2 * - col2, - 77 * + col0 * - + 13 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 >= + col2 * 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT - MAX( ALL - col2 ) * - COUNT( * ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-2473
SELECT - MAX ( ALL - col2 ) * - COUNT ( * ) FROM tab0
----
-30

query II rowsort
SELECT ALL - 80 AS col1, - col0 * + ( 30 ) * + + col2 AS col2 FROM tab2
----
-80
-130500
-80
-31740
-80
-76800

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 47 / + 99 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT - MIN( - 89 ) col2 FROM tab1
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2476
SELECT - MIN ( - 89 ) col2 FROM tab1
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 20 * + ( - 13 ) col2, 69 col1 FROM tab1
----
-260
69
-260
69
-260
69

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 18 NOT BETWEEN + col2 * + col0 + + col0 AND NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT DISTINCT + COUNT( * ) * + MIN( + col0 ) col1 FROM tab1 AS cor0 WHERE NOT - col2 = col1
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2480
SELECT DISTINCT + COUNT ( * ) * + MIN ( + col0 ) col1 FROM tab1 AS cor0 WHERE NOT - col2 = col1
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2481
SELECT - + CAST( - + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2481
SELECT - + CAST ( - + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ( + 14 ) + + 63 FROM tab2 AS cor0
----
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2483
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2483
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 59 + - 13 AS col0 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT ALL 55 * + 57 FROM tab0 AS cor0 WHERE 13 IS NOT NULL
----
3135
3135
3135

query I rowsort
SELECT - col0 * + + col2 + + col0 + + 50 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT col0 * 29 DIV ( col2 ) AS col0 FROM tab2
----
37
46
58

skipif mysql # not compatible
query I rowsort label-2487
SELECT col0 * 29 / ( col2 ) AS col0 FROM tab2
----
37
46
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2488
SELECT DISTINCT CAST( NULL AS SIGNED ), col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-2488
SELECT DISTINCT CAST ( NULL AS INTEGER ), col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query II rowsort
SELECT - col1, col2 AS col2 FROM tab1
----
-14
96
-47
68
-5
59

query I rowsort
SELECT ALL - 72 * col0 FROM tab2
----
-3312
-4608
-5400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2491
SELECT + COUNT( * ) - + CAST( NULL AS SIGNED ) + COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2491
SELECT + COUNT ( * ) - + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + ( - + 27 ) - col1 FROM tab0
----
-108
-28
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 10 col0 FROM tab2
----
230
400
580

query I rowsort
SELECT - + 67 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-67
-67
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col2 FROM tab1 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2496
SELECT ALL col1 * - + CAST( NULL AS SIGNED ) - - + col2 + + 7 + + 85 FROM tab1 cor0 WHERE - col2 - + - col0 * - 97 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL col1 * - + CAST ( NULL AS INTEGER ) - - + col2 + + 7 + + 85 FROM tab1 cor0 WHERE - col2 - + - col0 * - 97 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL col1 AS col0, - col1 + - col0, + col2 FROM tab0 AS cor0
----
9 values hashing to e9a9c87caf7915af463411ee163aa714

query I rowsort
SELECT ALL 8 + - 53 FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT + + col2, + col2 + col1 FROM tab1 AS cor0
----
59
64
68
115
96
110

query II rowsort
SELECT - ( col2 ) + - - 73, - col0 + + col0 AS col1 FROM tab2 WHERE NOT + col0 < NULL
----

query I rowsort
SELECT ALL 65 * - + col1 FROM tab2
----
-3315
-4355
-5005

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT DISTINCT col1 DIV + - col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT col1 / + - col1 FROM tab2
----
-1

query I rowsort
SELECT ALL + + ( - col1 ) * + - col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT + + col2 AS col2 FROM tab2 cor0 WHERE NOT ( NOT - + col2 * - col1 * col1 + - ( + - col2 ) * + - col1 * - - 98 BETWEEN + - col0 AND 86 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col1 col1, + 93 AS col0, + 40 col2 FROM tab0 AS cor0
----
9 values hashing to 1d3260708f9d752eaa629685e459d5c8

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT + 25 DIV col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2506
SELECT + 25 / col2 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT + - 20 * + + col2 FROM tab1 AS cor0
----
-1180
-1360
-1920

query II rowsort
SELECT ALL - col0, + col2 AS col1 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT - + 30 AS col1 FROM tab2 AS cor0
----
-30
-30
-30

query I rowsort
SELECT + ( + col1 ) * + 40 FROM tab2
----
2040
2680
3080

query II rowsort
SELECT DISTINCT + ( + 14 ) AS col0, + 82 FROM tab0
----
14
82

query II rowsort
SELECT DISTINCT - 38 + + 71 AS col0, - ( + + 72 ) AS col2 FROM tab2
----
33
-72

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2513
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - ( - ( - col2 ) ) AND - CAST( NULL AS DECIMAL ) * - col0
----

skipif mysql # not compatible
query III rowsort label-2513
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - ( - ( - col2 ) ) AND - CAST ( NULL AS REAL ) * - col0
----

query I rowsort
SELECT + 17 + - - 45 AS col2 FROM tab0
----
62
62
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2515
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) + - COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE NULL <> - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) * + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 WHERE NULL <> - 44
----
NULL

query II rowsort
SELECT - col0 + - - col0, - 62 AS col1 FROM tab2 AS cor0
----
0
-62
0
-62
0
-62

query I rowsort
SELECT DISTINCT + ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT col1 + + col0 * ( - col2 ) AS col1 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT DISTINCT 81 FROM tab2 WHERE ( NOT NULL NOT BETWEEN + 29 AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2520
SELECT DISTINCT + col0 + col0 * - 0 DIV - col2 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT + col0 + col0 * - 0 / - col2 AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT - col2 - + 90 * + - 55 AS col0 FROM tab1 AS cor0
----
4854
4882
4891

query I rowsort
SELECT + 21 - 72 AS col1 FROM tab2 AS cor0
----
-51
-51
-51

query I rowsort
SELECT - - 16 - + 99 FROM tab1 AS cor0
----
-83
-83
-83

query I rowsort
SELECT + - col2 - + ( col1 ) FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT ALL + - col0 + + + 67 FROM tab2 AS cor0
----
-8
21
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2526
SELECT 62 DIV - col1 + - col2 + - - col2 DIV + + col0 col2 FROM tab2 AS cor0
----
-24
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2526
SELECT 62 / - col1 + - col2 + - - col2 / + + col0 col2 FROM tab2 AS cor0
----
-24
-40
-58

query I rowsort
SELECT DISTINCT - col1 - + + col1 AS col1 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT 61 - + + 39 FROM tab2 WHERE NULL BETWEEN NULL AND + col1 * - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 + - col0 + + col2 * - col2 >= NULL
----

query I rowsort
SELECT DISTINCT 89 * col1 * - + col2 FROM tab0
----
-18690
-338823
-8811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2531
SELECT ( - CAST( NULL AS SIGNED ) ) * + + col0 * 14 + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2531
SELECT ( - CAST ( NULL AS INTEGER ) ) * + + col0 * 14 + col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col0 ) IN ( 20 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 39 / + col0 BETWEEN - 23 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 61 AS col1 FROM tab2
----
-61
-61
-61

query I rowsort
SELECT - ( + col2 ) * + + col0 + + col1 FROM tab2 AS cor0
----
-1007
-2483
-4283

query I rowsort
SELECT - 79 AS col0 FROM tab2 cor0
----
-79
-79
-79

query II rowsort
SELECT ALL + 36, - col0 AS col0 FROM tab2 AS cor0 WHERE + ( - ( + - 19 ) ) IS NULL
----

query I rowsort
SELECT - - col1 * 30 * 4 AS col2 FROM tab1 AS cor0 WHERE NOT 86 + + col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col0 FROM tab0
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 49 col0 FROM tab0 cor0
----
-49
-49
-49

query I rowsort
SELECT ALL ( 81 ) FROM tab2 AS cor0
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2543
SELECT + 97 DIV col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2543
SELECT + 97 / col0 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col2 * + - col1 + + - col2 FROM tab2 cor0
----
-1196
-3120
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT DISTINCT - COUNT( * ) + + 40 + + - COUNT( * ) AS col0 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT - COUNT ( * ) + + 40 + + - COUNT ( * ) AS col0 FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT ALL + SUM( + 16 ) * + COUNT( ALL + 96 ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL + SUM ( + 16 ) * + COUNT ( ALL + 96 ) FROM tab1
----
144

onlyif mysql # DIV for integer division: 
query II rowsort label-2547
SELECT ALL 80 + ( - col0 ) + + - col1 AS col1, col1 DIV - 92 FROM tab0
----
-16
0
-18
0
-28
0

skipif mysql # not compatible
query II rowsort label-2547
SELECT ALL 80 + ( - col0 ) + + - col1 AS col1, col1 / - 92 FROM tab0
----
-16
0
-18
0
-28
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT DISTINCT - 9 * - COUNT( * ) AS col0 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT - 9 * - COUNT ( * ) AS col0 FROM tab0
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-2549
SELECT - col2 col2, + ( - - 23 ) DIV + col0 * + col2 + 62 AS col1 FROM tab2
----
-23
62
-40
62
-58
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2549
SELECT - col2 col2, + ( - - 23 ) / + col0 * + col2 + 62 AS col1 FROM tab2
----
-23
62
-40
62
-58
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2550
SELECT MIN( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2550
SELECT MIN ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT 44 + 95 * + + 9 + + + col1 AS col0, + ( + + col2 ) + + col0 * - col0 FROM tab0 AS cor0
----
900
-9310
920
-7559
980
-178

query II rowsort
SELECT DISTINCT - + col1, + col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 + + col1 * + 40 col1 FROM tab2 AS cor0
----
2078
2718
3118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2554
SELECT ALL + col2 * CAST( NULL AS SIGNED ), + col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-2554
SELECT ALL + col2 * CAST ( NULL AS INTEGER ), + col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2555
SELECT col2 + + 69, + CAST( NULL AS SIGNED ) AS col0, + col0 AS col1 FROM tab1
----
9 values hashing to b73a5d954caf297a1a47e087d9fe4e26

skipif mysql # not compatible
query III rowsort label-2555
SELECT col2 + + 69, + CAST ( NULL AS INTEGER ) AS col0, + col0 AS col1 FROM tab1
----
9 values hashing to b73a5d954caf297a1a47e087d9fe4e26

onlyif mysql # DIV for integer division: 
query I rowsort label-2556
SELECT DISTINCT + 99 DIV - col2 col1 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2556
SELECT DISTINCT + 99 / - col2 col1 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT DISTINCT - 34 * - COUNT( * ) + - 84 FROM tab2 cor0
----
18

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT - 34 * - COUNT ( * ) + - 84 FROM tab2 cor0
----
18

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 5 + - col1 FROM tab0 AS cor0 WHERE col2 > NULL
----

query I rowsort
SELECT - + 29 AS col0 FROM tab0 AS cor0
----
-29
-29
-29

query II rowsort
SELECT + col0 * + - col1 AS col1, 86 * col0 + col1 AS col2 FROM tab2 cor0
----
-2346
4007
-4928
5581
-5025
6517

query I rowsort
SELECT col1 * + - col2 + - + ( - col0 ) - + + col1 AS col2 FROM tab1 AS cor0
----
-1307
-215
-3152

query I rowsort
SELECT DISTINCT - col2 - col0 - - + col1 AS col2 FROM tab1
----
-112
-133
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT - MAX( DISTINCT - + 67 ) AS col1 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-2564
SELECT - MAX ( DISTINCT - + 67 ) AS col1 FROM tab0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL SUM( + + col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL SUM ( + + col2 ) AS col2 FROM tab0
----
156

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2567
SELECT DISTINCT MIN( - col1 ) DIV - - 91 * COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT MIN ( - col1 ) / - - 91 * COUNT ( * ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 3 AS col0, col0 * - col2 col0 FROM tab2
----
3
-1058
3
-2560
3
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-2569
SELECT ALL ( COUNT( * ) ) - - 6 AS col2, - 55 FROM tab0 WHERE col0 * + col2 + col0 IS NOT NULL
----
9
-55

skipif mysql # not compatible
query II rowsort label-2569
SELECT ALL ( COUNT ( * ) ) - - 6 AS col2, - 55 FROM tab0 WHERE col0 * + col2 + col0 IS NOT NULL
----
9
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT - COUNT( ALL col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2570
SELECT - COUNT ( ALL col2 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT - MIN( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2571
SELECT - MIN ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT 96 + - 7 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT DISTINCT 36 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2574
SELECT ALL - col1 + - + 40 DIV - col2 FROM tab0 AS cor0
----
-1
-17
-81

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL - col1 + - + 40 / - col2 FROM tab0 AS cor0
----
-1
-17
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT ALL COUNT( * ) * - + 96 + + 74 col1 FROM tab1 AS cor0
----
-214

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2575
SELECT ALL COUNT ( * ) * - + 96 + + 74 col1 FROM tab1 AS cor0
----
-214

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + col0
----

query I rowsort
SELECT + col0 * - - col2 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col0 FROM tab0 cor0
----
85
85
85

query I rowsort
SELECT + 30 + + + col2 + + + col1 + ( + - col1 ) * - col2 * + col2 FROM tab2 AS cor0 WHERE + ( + + 66 ) - col1 NOT BETWEEN - - 35 AND - + col0
----
123347
225543
27083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 56 * + col2 AS col0, + col1 + + + col1 col1 FROM tab2 AS cor0 WHERE - col0 < 65
----
1288
102
2240
154
3248
134

onlyif mysql # DIV for integer division: 
query I rowsort label-2581
SELECT - col2 DIV - 53 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2581
SELECT - col2 / - 53 AS col0 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2582
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE - col0 IS NOT NULL
----
-3

query I rowsort
SELECT ALL - 43 + - - col2 FROM tab1
----
16
25
53

query I rowsort
SELECT ALL + 60 + 79 FROM tab2
----
139
139
139

query I rowsort
SELECT DISTINCT - col1 + + - 7 FROM tab0
----
-28
-8
-88

query I rowsort
SELECT ALL + 16 + col1 AS col0 FROM tab2
----
67
83
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT COUNT( * ) + 18 AS col1 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2587
SELECT COUNT ( * ) + 18 AS col1 FROM tab1 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2588
SELECT - col2 DIV + col0 + col0 + - - 85 AS col1 FROM tab0 AS cor0
----
172
181
97

skipif mysql # not compatible
query I rowsort label-2588
SELECT - col2 / + col0 + col0 + - - 85 AS col1 FROM tab0 AS cor0
----
172
181
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2589
SELECT ALL - CAST( NULL AS SIGNED ) / - col1 - + + 50 + - 72 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL - CAST ( NULL AS INTEGER ) / - col1 - + + 50 + - 72 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT + CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT + CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 <> + col2 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT - SUM( DISTINCT 76 ) FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2592
SELECT - SUM ( DISTINCT 76 ) FROM tab1 AS cor0
----
-76

query I rowsort
SELECT DISTINCT col0 * col0 * + - col1 * + col2 + col1 + + + col2 FROM tab1 AS cor0
----
-2131311
-26465961
-3495634

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2595
SELECT - CAST( 2 AS SIGNED ) * col0 + col0, col2 AS col0 FROM tab0
----
-15
47
-87
10
-97
99

skipif mysql # not compatible
query II rowsort label-2595
SELECT - CAST ( 2 AS INTEGER ) * col0 + col0, col2 AS col0 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT ALL - ( + - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL - ( + - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + col0 * + - 54 - col0 * col1 AS col1 FROM tab0
----
-2025
-5335
-6525

query I rowsort
SELECT ALL 85 + - + col0 FROM tab0 AS cor0
----
-12
-2
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT + COUNT( * ) + - 78 col1 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2599
SELECT + COUNT ( * ) + - 78 col1 FROM tab1 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT DISTINCT + COUNT( * ) - - COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT - + 22 + - col2 AS col1 FROM tab0 cor0
----
-121
-32
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col2 FROM tab1 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2603
SELECT ALL - 16 DIV - COUNT( * ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL - 16 / - COUNT ( * ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT - COUNT( - 31 ) AS col2 FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2604
SELECT - COUNT ( - 31 ) AS col2 FROM tab0, tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT + MIN( ALL + 89 ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-2605
SELECT + MIN ( ALL + 89 ) FROM tab1
----
89

query I rowsort
SELECT - - col2 + col1 / col2 FROM tab1 WHERE NOT + 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT ALL + + COUNT( * ) + - + 2 * + 9 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL + + COUNT ( * ) + - + 2 * + 9 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT 53 FROM tab0 WHERE NOT col1 < + + 38
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 + 57 col0 FROM tab0 AS cor0
----
138
138
138

query II rowsort
SELECT ALL + col2 * - + col1 + - 24 AS col1, col2 - - 20 AS col0 FROM tab2 AS cor0
----
-1197
43
-3104
60
-3910
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT DISTINCT + COUNT( * ) + - SUM( DISTINCT 3 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT + COUNT ( * ) + - SUM ( DISTINCT 3 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT - col2 + col2 DIV + 16 AS col0 FROM tab0 cor0 WHERE ( NOT NULL IS NOT NULL )
----
-10
-45
-93

skipif mysql # not compatible
query I rowsort label-2612
SELECT - col2 + col2 / + 16 AS col0 FROM tab0 cor0 WHERE ( NOT NULL IS NOT NULL )
----
-10
-45
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2613
SELECT DISTINCT + - col0 + + + 22 * + col0 + col2 * ( - 36 ) * col0 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST( + 59 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT + - col0 + + + 22 * + col0 + col2 * ( - 36 ) * col0 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( + 59 AS INTEGER ) <= NULL
----

query I rowsort
SELECT ( - col2 ) * + col1 - + col0 * col2 FROM tab2 AS cor0
----
-2231
-5640
-8236

onlyif mysql # DIV for integer division: 
query I rowsort label-2615
SELECT col2 DIV + - 63 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2615
SELECT col2 / + - 63 AS col2 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2616
SELECT MAX( ( + col1 ) ) DIV + + 4 AS col1, + 10 AS col1 FROM tab1
----
11
10

skipif mysql # not compatible
query II rowsort label-2616
SELECT MAX ( ( + col1 ) ) / + + 4 AS col1, + 10 AS col1 FROM tab1
----
11
10

query II rowsort
SELECT col0 * col2 AS col2, col2 AS col2 FROM tab0
----
705
47
870
10
9603
99

query I rowsort
SELECT DISTINCT col1 * - col0 + - col1 AS col0 FROM tab1
----
-430
-4324
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-2619
SELECT ALL + 30 DIV col2 + + - 61 FROM tab1 WHERE 46 DIV + col0 * + - ( + col0 ) * - col1 IS NOT NULL
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL + 30 / col2 + + - 61 FROM tab1 WHERE 46 / + col0 * + - ( + col0 ) * - col1 IS NOT NULL
----
-61
-61
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - - 51 + + col2 col1 FROM tab1
----
2697
4394
4709

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT ALL + ( - COUNT( * ) ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL + ( - COUNT ( * ) ) AS col2 FROM tab0 cor0
----
-3

query II rowsort
SELECT - - col2 + - col1, 4 - + col1 AS col2 FROM tab2 AS cor0
----
-28
-47
-37
-73
-9
-63

query I rowsort
SELECT - col1 + + col1 + - col0 * + col0 FROM tab0
----
-225
-7569
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 * - - col2 col1 FROM tab1 AS cor0
----
236
272
384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT ALL col1 * - CAST( NULL AS SIGNED ) * + + 48 - 88 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) * + + 48 - 88 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2626
SELECT DISTINCT + col0 DIV + + col2 FROM tab0 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT + col0 / + + col2 FROM tab0 AS cor0
----
0
8

query II rowsort
SELECT - 81 AS col2, - col2 FROM tab1 AS cor0
----
-81
-59
-81
-68
-81
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT DISTINCT SUM( DISTINCT - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT SUM ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL 15 * col2 + 70 * - + col1 AS col2 FROM tab1 AS cor0
----
-2270
460
535

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT DISTINCT - MAX( ALL + + 4 ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2630
SELECT DISTINCT - MAX ( ALL + + 4 ) FROM tab1 AS cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 * + 2 col1 FROM tab2
----
-188
-188
-188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2632
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2632
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT 43, 27 AS col0 FROM tab0
----
43
27
43
27
43
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT - SUM( 21 ) AS col1 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-2634
SELECT - SUM ( 21 ) AS col1 FROM tab1
----
-63

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2636
SELECT ALL 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-2636
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + + col1 * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + 8 IS NULL
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT - - col0 DIV + 53 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2638
SELECT - - col0 / + 53 FROM tab2 cor0
----
0
1
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 66 = - 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + 94 FROM tab0 AS cor0
----
94
94
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - + 72 > NULL )
----

query II rowsort
SELECT col1 * col0 * + + col2 + - 16, col2 FROM tab0 AS cor0
----
18254
10
57089
47
9587
99

query I rowsort
SELECT ALL 46 + - col0 FROM tab1
----
-39
-45
-5

query II rowsort
SELECT DISTINCT - + col1 + col0, col2 FROM tab0 AS cor0
----
-66
47
66
10
96
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 6 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN - - col1 AND 1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT + COUNT( * ) * + + 73 + 64 - + - 48 AS col1 FROM tab0 AS cor0
----
331

skipif mysql # not compatible
query I rowsort label-2647
SELECT + COUNT ( * ) * + + 73 + 64 - + - 48 AS col1 FROM tab0 AS cor0
----
331

query I rowsort
SELECT DISTINCT - - ( - 44 ) * + 27 FROM tab1 cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE NOT + + 55 > NULL
----

query II rowsort
SELECT + ( + 38 ) + + - col2, col0 FROM tab1
----
-21
85
-30
91
-58
51

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE col2 BETWEEN - col2 * - - 81 - col1 - + + 78 AND - + col0
----

query II rowsort
SELECT col2, + col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT ALL 56 AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
56
56
56

query II rowsort
SELECT + - col2 AS col2, col1 AS col2 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT ( + col1 ) * - 20 FROM tab2 WHERE ( NULL ) NOT IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT 0 DIV - 30 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2656
SELECT 0 / - 30 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2657
SELECT - col1 DIV - ( 66 ) FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2657
SELECT - col1 / - ( 66 ) FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT DISTINCT + MIN( - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2658
SELECT DISTINCT + MIN ( - col0 ) FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT COUNT( + 81 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2659
SELECT COUNT ( + 81 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL + col1 * + col2 + 24 AS col0 FROM tab1
----
1368
319
3220

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 34 >= - ( + 5 )
----

query I rowsort
SELECT - 60 + 0 * + ( col0 + + col2 * - col0 ) FROM tab1 WHERE col1 + 43 IS NOT NULL
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT DISTINCT SUM( DISTINCT + 25 ) * COUNT( * ) col1 FROM tab0 WHERE NULL IS NULL
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2663
SELECT DISTINCT SUM ( DISTINCT + 25 ) * COUNT ( * ) col1 FROM tab0 WHERE NULL IS NULL
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2664
SELECT DISTINCT + CAST( 86 AS SIGNED ) FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT + CAST ( 86 AS INTEGER ) FROM tab0
----
86

query I rowsort
SELECT + col0 - col0 * col0 AS col1 FROM tab1
----
-2550
-7140
-8190

query I rowsort
SELECT col2 FROM tab2 WHERE ( NULL ) >= ( NULL )
----

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE ( NULL ) <> ( NULL )
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( col2 ) = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT DISTINCT MAX( col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT MAX ( col0 ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT COUNT( - ( - 49 ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2670
SELECT COUNT ( - ( - 49 ) ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT - MIN( col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2671
SELECT - MIN ( col0 ) AS col0 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL MIN( + 69 ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL MIN ( + 69 ) FROM tab1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT - 83 - COUNT( * ) FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-2673
SELECT - 83 - COUNT ( * ) FROM tab1
----
-86

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 ) IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT DISTINCT MIN( DISTINCT 22 ) * MAX( col1 + - col2 * - col0 ) + MIN( DISTINCT col2 ) AS col2 FROM tab2
----
97197

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT MIN ( DISTINCT 22 ) * MAX ( col1 + - col2 * - col0 ) + MIN ( DISTINCT col2 ) AS col2 FROM tab2
----
97197

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col2 - - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * col2 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + 58 ) FROM tab0 cor0
----
58
58
58

query I rowsort
SELECT ALL col1 * + col1 + 29 FROM tab0 AS cor0
----
30
470
6590

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT ALL + ( + col2 ) * - col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT + col0 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) * 29 ) >= + 97
----

skipif mysql # not compatible
query I rowsort label-2684
SELECT + col0 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) * 29 ) >= + 97
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 * + 48 col2 FROM tab2
----
4368
4368
4368

query I rowsort
SELECT ALL + 49 FROM tab0 WHERE col1 * + 53 IS NULL
----

query I rowsort
SELECT col1 + - 71 FROM tab1
----
-24
-57
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT ( 49 ) + + MIN( - col0 ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-2688
SELECT ( 49 ) + + MIN ( - col0 ) FROM tab0
----
-48

query I rowsort
SELECT ALL + 31 + 20 AS col1 FROM tab2 WHERE NULL IS NULL
----
51
51
51

query I rowsort
SELECT + 18 + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-33
-49
-59

query I rowsort
SELECT col1 + 86 AS col0 FROM tab2 AS cor0 WHERE ( - 98 ) IS NOT NULL
----
137
153
163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 * - col0 col0 FROM tab0 AS cor0
----
-240
-7656
-9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2693
SELECT DISTINCT + col2 * - col2 + - 35 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT + col2 * - col2 + - 35 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 98 + + col2 AS col2 FROM tab0 AS cor0
----
108
145
197

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE ( + 17 ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2696
SELECT - + 50 DIV COUNT( * ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2696
SELECT - + 50 / COUNT ( * ) FROM tab0 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT DISTINCT + 29 + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 31 IS NOT NULL
----
29

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT + 29 + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 31 IS NOT NULL
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT DISTINCT + COUNT( * ) + + 22 AS col2 FROM tab2 cor0
----
25

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT + COUNT ( * ) + + 22 AS col2 FROM tab2 cor0
----
25

query I rowsort
SELECT DISTINCT + ( + 5 ) AS col2 FROM tab0 AS cor0
----
5

query I rowsort
SELECT + ( + col1 ) * - 5 AS col2 FROM tab2
----
-255
-335
-385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2701
SELECT - MIN( DISTINCT - - 60 ) DIV - COUNT( * ) AS col2 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-2701
SELECT - MIN ( DISTINCT - - 60 ) / - COUNT ( * ) AS col2 FROM tab1
----
20

query I rowsort
SELECT + 42 * + col0 FROM tab2
----
1932
2688
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT MIN( - + col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2703
SELECT MIN ( - + col0 ) AS col2 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT MAX( DISTINCT col2 ) AS col0 FROM tab2 WHERE 47 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT MAX ( DISTINCT col2 ) AS col0 FROM tab2 WHERE 47 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT col2 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT col2 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * col0 - 28 FROM tab2
----
2088
4068
5597

query I rowsort
SELECT + col1 - - + 95 + + col2 FROM tab0
----
126
195
223

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT - col2 - col2 + - 59 AS col1 FROM tab1
----
-177
-195
-251

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2710
SELECT * FROM tab2 AS cor0 WHERE - col2 / CAST( col0 AS SIGNED ) + col0 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2710
SELECT * FROM tab2 AS cor0 WHERE - col2 / CAST ( col0 AS INTEGER ) + col0 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT ALL - 59 - - SUM( col1 ) FROM tab1 cor0
----
7

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL - 59 - - SUM ( col1 ) FROM tab1 cor0
----
7

query I rowsort
SELECT DISTINCT + 1 + 13 + + 46 * ( ( - col0 ) * - ( 82 ) ) FROM tab0 AS cor0
----
328178
365898
56594

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT MIN( - - col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2713
SELECT MIN ( - - col1 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2714
SELECT ALL * FROM tab2 AS cor0 WHERE ( 73 + + ( - CAST( NULL AS SIGNED ) ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2714
SELECT ALL * FROM tab2 AS cor0 WHERE ( 73 + + ( - CAST ( NULL AS INTEGER ) ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2715
SELECT SUM( - col2 ) * CAST( NULL AS SIGNED ) / 58 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2715
SELECT SUM ( - col2 ) * CAST ( NULL AS INTEGER ) / 58 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 + - col2 * col2 AND - 53 * col0
----

query I rowsort
SELECT DISTINCT - + 95 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-95

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2719
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 + + 98 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 19, 42 + + col2 col2 FROM tab2 AS cor0
----
19
100
19
65
19
82

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2723
SELECT DISTINCT + CAST( - + 75 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT + CAST ( - + 75 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT DISTINCT - ( - + 6 ) * - + col2 * col0 + col0 FROM tab0 AS cor0
----
-4215
-5133
-57521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2725
SELECT - + COUNT( * ) AS col0, 49 + + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
-3
52

skipif mysql # not compatible
query II rowsort label-2725
SELECT - + COUNT ( * ) AS col0, 49 + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
-3
52

query II rowsort
SELECT DISTINCT col2 * - col2, + col0 FROM tab2
----
-1600
64
-3364
75
-529
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2727
SELECT ALL 68 DIV - col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL 68 / - col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL - + ( col1 ) AS col1 FROM tab2 WHERE + - 9 IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT DISTINCT + col0 * - - col2, + col0 FROM tab2
----
1058
46
2560
64
4350
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT COUNT( * ) FROM tab1 WHERE NOT ( - 34 ) IN ( 52 )
----
3

skipif mysql # not compatible
query I rowsort label-2730
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( - 34 ) IN ( 52 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( col2 ) AS col1, col2 col1 FROM tab1
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab0 WHERE NOT + 59 - - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL 66 + + 26 + - col2 * col0 AS col2 FROM tab0
----
-613
-778
-9511

query II rowsort
SELECT DISTINCT - col1 * + col1, col2 AS col0 FROM tab0
----
-1
99
-441
10
-6561
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2735
SELECT + 81 DIV + - 90 + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2735
SELECT + 81 / + - 90 + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - col2 + col2 col2 FROM tab2 AS cor0
----
-1560
-3306
-506

query I rowsort
SELECT col1 + 28 + - + col0 AS col0 FROM tab1 AS cor0
----
-16
-52
-9

query I rowsort
SELECT DISTINCT - 92 * + col2 AS col2 FROM tab1 AS cor0
----
-5428
-6256
-8832

query I rowsort
SELECT DISTINCT + 23 * + col1 + + 32 FROM tab1 cor0
----
1113
147
354

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2740
SELECT - col2 AS col2, 7 * CAST( + - CAST( - + 18 AS DECIMAL ) AS SIGNED ) AS col0 FROM tab2
----
-23
126
-40
126
-58
126

skipif mysql # not compatible
query II rowsort label-2740
SELECT - col2 AS col2, 7 * CAST ( + - CAST ( - + 18 AS REAL ) AS INTEGER ) AS col0 FROM tab2
----
-23
126
-40
126
-58
126

query I rowsort
SELECT DISTINCT - - col1 + - 14 + 7 - + col1 AS col1 FROM tab2 AS cor0
----
-7

query I rowsort
SELECT ALL - col0 * 85 * - col1 FROM tab0 AS cor0
----
103275
155295
8245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2743
SELECT + CAST( - col0 AS SIGNED ) - + col1 * - - col1 AS col2 FROM tab0 AS cor0
----
-528
-6576
-98

skipif mysql # not compatible
query I rowsort label-2743
SELECT + CAST ( - col0 AS INTEGER ) - + col1 * - - col1 AS col2 FROM tab0 AS cor0
----
-528
-6576
-98

query I rowsort
SELECT + - col2 + + 43 + + col2 * + 89 * + col2 AS col2 FROM tab2 AS cor0
----
142403
299381
47101

query I rowsort
SELECT - 47 + - col1 + + col2 FROM tab0 AS cor0
----
-58
-81
51

query I rowsort
SELECT ALL + + col1 + - - col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT COUNT( - ( - 11 ) ) FROM tab2 WHERE + - col2 NOT IN ( col1 * + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-2747
SELECT COUNT ( - ( - 11 ) ) FROM tab2 WHERE + - col2 NOT IN ( col1 * + col2 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2748
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2748
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2749
SELECT DISTINCT MAX( ALL ( + CAST( NULL AS SIGNED ) ) ) + + CAST( - 98 AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT MAX ( ALL ( + CAST ( NULL AS INTEGER ) ) ) + + CAST ( - 98 AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 * + - col2 + - col1 FROM tab1
----
-4910
-5020
-6235

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + col1 * col0 col0 FROM tab1 WHERE col1 <> - 60
----
430
4324
728

query I rowsort
SELECT + 24 * - 14 * + 35 AS col0 FROM tab0
----
-11760
-11760
-11760

query I rowsort
SELECT ALL + - 79 * - 33 + + 28 AS col2 FROM tab0 AS cor0
----
2635
2635
2635

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT + SUM( DISTINCT + + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2754
SELECT + SUM ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
185

query II rowsort
SELECT ALL 47 AS col0, 9 FROM tab0 AS cor0
----
47
9
47
9
47
9

query I rowsort
SELECT ALL - col0 + + col1 - 41 AS col0 FROM tab2 WHERE NULL NOT BETWEEN - - 48 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT SUM( DISTINCT - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2757
SELECT SUM ( DISTINCT - col1 ) FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT + MIN( + 17 ) col1 FROM tab0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2758
SELECT + MIN ( + 17 ) col1 FROM tab0
----
17

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + - + col2 = NULL
----

query I rowsort
SELECT - + col1 * - 70 + col1 FROM tab2 AS cor0
----
3621
4757
5467

query I rowsort
SELECT - - ( - col0 ) * - 73 - - 9 AS col2 FROM tab2 AS cor0
----
3367
4681
5484

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) BETWEEN 20 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 56 * - + ( + - col0 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 / - col0 NOT IN ( 10 )
----

query I rowsort
SELECT DISTINCT - 0 * - col2 * - col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2766
SELECT col2 DIV - 44 FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( - + col0 )
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2766
SELECT col2 / - 44 FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( - + col0 )
----
-1
-1
-2

query I rowsort
SELECT - + col1 + + + col0 FROM tab2 WHERE NOT + col1 IS NULL
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT + ( SUM( + - col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2768
SELECT + ( SUM ( + - col2 ) ) FROM tab0
----
-156

query II rowsort
SELECT - 31 * + col2 * + 31 AS col1, + col2 + + col2 AS col2 FROM tab2
----
-22103
46
-38440
80
-55738
116

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2770
SELECT + col2 AS col2, + CAST( NULL AS DECIMAL ) + col2 AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2770
SELECT + col2 AS col2, + CAST ( NULL AS REAL ) + col2 AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT DISTINCT + col2 + + + col1 FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2772
SELECT ALL CAST( - ( - - SUM( 15 ) ) AS SIGNED ) FROM tab2 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL CAST ( - ( - - SUM ( 15 ) ) AS INTEGER ) FROM tab2 cor0
----
-45

query I rowsort
SELECT + - col1 AS col0 FROM tab2 cor0 WHERE col0 * - 84 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 26 / 75 IN ( 98 + col1 + - 3, + 92 + - + ( + col1 ) / - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT - col1 DIV col0 + 19 AS col0 FROM tab2
----
18
18
19

skipif mysql # not compatible
query I rowsort label-2775
SELECT - col1 / col0 + 19 AS col0 FROM tab2
----
18
18
19

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - col2 + - + 65 * + ( + col1 ) AS col1 FROM tab2 AS cor0
----
-3292
-4297
-4965

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2778
SELECT - CAST( + - SUM( ALL + col2 ) AS SIGNED ) AS col1 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-2778
SELECT - CAST ( + - SUM ( ALL + col2 ) AS INTEGER ) AS col1 FROM tab2 cor0
----
121

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2779
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) - SUM( + - col0 ) + - + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT + + CAST ( NULL AS REAL ) - SUM ( + - col0 ) + - + COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2780
SELECT DISTINCT + - CAST( - SUM( - + 69 ) AS SIGNED ) col2 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2780
SELECT DISTINCT + - CAST ( - SUM ( - + 69 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
-207

query I rowsort
SELECT ALL - col1 - - col2 - col0 FROM tab0
----
-49
-98
1

query I rowsort
SELECT - col1 * 33 - col2 * + col0 FROM tab2
----
-2741
-5101
-6561

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * - - 25 IS NULL AND NOT - col1 IS NOT NULL
----

query I rowsort
SELECT - + col0 * + 55 FROM tab0 WHERE - col2 IS NOT NULL
----
-4785
-5335
-825

query I rowsort
SELECT 74 * - - 64 AS col1 FROM tab0
----
4736
4736
4736

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + 24 - - 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2787
SELECT - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT ALL + MAX( 4 ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL + MAX ( 4 ) FROM tab1 AS cor0
----
4

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT ALL MIN( DISTINCT 48 ) AS col2 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL MIN ( DISTINCT 48 ) AS col2 FROM tab1 AS cor0
----
48

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 + + col1 * - col2 + + col0 + - ( col1 ) + - 43 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE - 87 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 + + + 53 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - ( + - col1 ) + - 91 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - ( + - col1 ) + - 91 IS NULL
----
0

query II rowsort
SELECT ALL + 22 AS col0, col0 FROM tab2 AS cor0
----
22
46
22
64
22
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2796
SELECT CAST( - + 54 AS SIGNED ) AS col0 FROM tab1 cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-2796
SELECT CAST ( - + 54 AS INTEGER ) AS col0 FROM tab1 cor0
----
-54
-54
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2797
SELECT + col1 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2797
SELECT + col1 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

query II rowsort
SELECT + + 72, col1 AS col2 FROM tab2 AS cor0
----
72
51
72
67
72
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT DISTINCT - MIN( DISTINCT - + col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2799
SELECT DISTINCT - MIN ( DISTINCT - + col2 ) AS col0 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2800
SELECT CAST( NULL AS SIGNED ) + + - col2, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2800
SELECT CAST ( NULL AS INTEGER ) + + - col2, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT - CAST( col1 AS SIGNED ) FROM tab1 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2801
SELECT - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT ALL MAX( + - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL MAX ( + - col1 ) FROM tab1
----
-5

query I rowsort
SELECT ALL - + 84 - + col0 + 3 * + - col1 + 52 FROM tab0 AS cor0
----
-132
-182
-290

query I rowsort
SELECT DISTINCT - 47 + + col1 + + col0 AS col1 FROM tab1 AS cor0
----
18
43
91

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE ( NOT col0 + - + col2 - + - 68 NOT IN ( col2 + col0 / - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2806
SELECT DISTINCT + col1 + - col0 + - + CAST( 23 AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
1147
164
2181

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT + col1 + - col0 + - + CAST ( 23 AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
1147
164
2181

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT - + SUM( DISTINCT col2 ) FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT - + SUM ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT 98 + - 39 * - + col1 + - 21 AS col1 FROM tab1 AS cor0
----
1910
272
623

query I rowsort
SELECT ALL 8 - - - 67 FROM tab2 AS cor0
----
-59
-59
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2810
SELECT CAST( NULL AS SIGNED ) + CAST( - + AVG ( + CAST( NULL AS SIGNED ) ) AS SIGNED ), - 70 AS col0 FROM tab2 AS cor0
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-2810
SELECT CAST ( NULL AS INTEGER ) + CAST ( - + AVG ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ), - 70 AS col0 FROM tab2 AS cor0
----
NULL
-70

query II rowsort
SELECT col2 AS col1, col0 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( + col1 * + + 26 * ( - 85 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * 64 col0, + 19 * 2 AS col2 FROM tab0
----
-3008
38
-6336
38
-640
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2813
SELECT 36 * + CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-2813
SELECT 36 * + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2814
SELECT ALL + ( + col1 ) / + 1 + - 53 col1 FROM tab0 WHERE NOT - col0 + - 10 * - ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2814
SELECT ALL + ( + col1 ) / + 1 + - 53 col1 FROM tab0 WHERE NOT - col0 + - 10 * - ( CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * ( + 74 ) FROM tab0
----
-1110
-6438
-7178

query I rowsort
SELECT - + 21 FROM tab0 cor0
----
-21
-21
-21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> col0
----

query I rowsort
SELECT col0 * + + 97 FROM tab1
----
4947
8245
8827

query I rowsort
SELECT - AVG ( - - col2 ) FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN - col1 * + 41 AND NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2820
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) ) BETWEEN ( NULL ) AND col2 * - ( col0 )
----

skipif mysql # not compatible
query III rowsort label-2820
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) ) BETWEEN ( NULL ) AND col2 * - ( col0 )
----

query I rowsort
SELECT 8 + ( - col2 ) FROM tab1 cor0
----
-51
-60
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-2822
SELECT - COUNT( - 79 ) + - + 66, 57 AS col0 FROM tab1 AS cor0
----
-69
57

skipif mysql # not compatible
query II rowsort label-2822
SELECT - COUNT ( - 79 ) + - + 66, 57 AS col0 FROM tab1 AS cor0
----
-69
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2823
SELECT DISTINCT - 19 DIV + col1 AS col1 FROM tab0 AS cor0
----
-19
0

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT - 19 / + col1 AS col1 FROM tab0 AS cor0
----
-19
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2824
SELECT ALL + COUNT( * ) DIV 71 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL + COUNT ( * ) / 71 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT ALL - + SUM( 80 ) AS col0 FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL - + SUM ( 80 ) AS col0 FROM tab1 AS cor0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT DISTINCT - MAX( ALL col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT - MAX ( ALL col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + - 89 FROM tab2 cor0
----
-89

query III rowsort
SELECT + 17 AS col1, col0, - col0 * 57 + - col2 FROM tab2
----
9 values hashing to a3ccc148cc9122ee36b3a778cf063e52

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ALL + 1 + - COUNT( * ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + 1 + - COUNT ( * ) FROM tab1
----
-2

query II rowsort
SELECT + col0, 22 FROM tab2
----
46
22
64
22
75
22

query II rowsort
SELECT DISTINCT + 1 AS col2, - ( col0 ) FROM tab1
----
1
-51
1
-85
1
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT DISTINCT + 68 + + COUNT( DISTINCT - - col1 ) AS col1 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT + 68 + + COUNT ( DISTINCT - - col1 ) AS col1 FROM tab0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2833
SELECT CAST( + 76 AS SIGNED ) + + - col2 AS col0 FROM tab0
----
-23
29
66

skipif mysql # not compatible
query I rowsort label-2833
SELECT CAST ( + 76 AS INTEGER ) + + - col2 AS col0 FROM tab0
----
-23
29
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT ALL MIN( col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL MIN ( col0 ) FROM tab1
----
51

query I rowsort
SELECT ALL + col2 * + 43 AS col0 FROM tab0
----
2021
4257
430

query II rowsort
SELECT ALL + 23 AS col1, - col1 FROM tab2
----
23
-51
23
-67
23
-77

query II rowsort
SELECT ALL + - col1 AS col0, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT + SUM( DISTINCT + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2839
SELECT + SUM ( DISTINCT + col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT 80 * + + col0 * col1 FROM tab2
----
187680
394240
402000

query II rowsort
SELECT 20 * 30 AS col2, + 38 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 46 * col0 AS col0 FROM tab2
----
2116
2944
3450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2843
SELECT ALL CAST( + + col0 AS SIGNED ) + + + col2 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL CAST ( + + col0 AS INTEGER ) + + + col2 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT DISTINCT + - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT + - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
-6

query II rowsort
SELECT col2 * col0 AS col2, - 56 * - col1 FROM tab2 AS cor0
----
1058
2856
2560
4312
4350
3752

query I rowsort
SELECT col2 * - ( col1 ) AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2847
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NULL ) > CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2847
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NULL ) > CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT - + col1 * - - col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2849
SELECT col0 * - CAST( + + col1 AS SIGNED ) + + + col2 + + 13 * - - ( + 78 ) FROM tab2
----
-1309
-3874
-3953

skipif mysql # not compatible
query I rowsort label-2849
SELECT col0 * - CAST ( + + col1 AS INTEGER ) + + + col2 + + 13 * - - ( + 78 ) FROM tab2
----
-1309
-3874
-3953

query III rowsort
SELECT * FROM tab1 WHERE + col0 * + - 24 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 / + col2 * - - 71 + - + col0 + col2 AS col0 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL - 72 * + col1 FROM tab2
----
-3672
-4824
-5544

query I rowsort
SELECT - 68 + + + col1 * - col1 AS col1 FROM tab1
----
-2277
-264
-93

query II rowsort
SELECT DISTINCT - col2 * - col1 + - 52, 70 AS col1 FROM tab0
----
158
70
3755
70
47
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2855
SELECT ALL COUNT( * ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 * + + col2 - + 42 FROM tab2 cor0
----
1131
3038
3844

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT DISTINCT + COUNT( * ) - + 92 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT + COUNT ( * ) - + 92 FROM tab2 AS cor0
----
-89

query II rowsort
SELECT ALL - ( + col2 ), 76 AS col2 FROM tab1 WHERE NOT ( NOT ( NULL ) > col1 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 13 * col1 col0 FROM tab1 AS cor0
----
-182
-611
-65

query II rowsort
SELECT DISTINCT - 22 AS col1, + col0 FROM tab2 AS cor0
----
-22
46
-22
64
-22
75

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= - 34
----

query II rowsort
SELECT DISTINCT col2 AS col2, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query II rowsort
SELECT col1, + 4 AS col2 FROM tab1 AS cor0
----
14
4
47
4
5
4

query I rowsort
SELECT DISTINCT + - ( - - col0 ) FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 8 * col2 * 89 * - col2 * col1 FROM tab0
----
-127397448
-1495200
-6978312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2867
SELECT ALL COUNT( ALL - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2868
SELECT - col1 * + col0 AS col0, - col0 DIV 45 DIV + - ( - + 50 ) AS col2 FROM tab0
----
-1215
0
-1827
0
-97
0

skipif mysql # not compatible
query II rowsort label-2868
SELECT - col1 * + col0 AS col0, - col0 / 45 / + - ( - + 50 ) AS col2 FROM tab0
----
-1215
0
-1827
0
-97
0

query I rowsort
SELECT DISTINCT + col0 * - - 24 FROM tab0
----
2088
2328
360

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * - col2 NOT IN ( + ( col1 ), - col0 )
----

query I rowsort
SELECT + col0 * col2 * + col0 * - col0 FROM tab0
----
-158625
-6585030
-90354627

query I rowsort
SELECT ALL + 12 * + 55 AS col2 FROM tab0
----
660
660
660

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT - - MIN( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2873
SELECT - - MIN ( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2874
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 * - col1 * - ( - col0 ) FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT DISTINCT - + col1 + - col2 - - + 93 AS col0 FROM tab0 AS cor0
----
-35
-7
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT ALL + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col2 + + + 94 - ( col0 ) * - col1 FROM tab1 AS cor0
----
4439
578
904

query I rowsort
SELECT ALL - - 58 * - 60 FROM tab0 AS cor0
----
-3480
-3480
-3480

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - 60 IS NOT NULL
----

query II rowsort
SELECT ALL - col0 * + col1 AS col1, col2 * - col0 FROM tab1
----
-425
-5015
-4277
-6188
-714
-4896

query I rowsort
SELECT 86 * + + 62 * col2 FROM tab1
----
314588
362576
511872

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT 78 * MAX( + - col2 ) * + + COUNT( * ) * + 6 AS col2 FROM tab1
----
-82836

skipif mysql # not compatible
query I rowsort label-2884
SELECT 78 * MAX ( + - col2 ) * + + COUNT ( * ) * + 6 AS col2 FROM tab1
----
-82836

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2885
SELECT - col0 DIV - CAST( + col2 AS SIGNED ) FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2885
SELECT - col0 / - CAST ( + col2 AS INTEGER ) FROM tab1
----
0
1
1

query I rowsort
SELECT - - col1 * + col1 AS col2 FROM tab2 WHERE col1 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT DISTINCT + 23 + + COUNT( + - col2 ) + + SUM( + ( - + 63 ) ) AS col2 FROM tab2
----
-163

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT + 23 + + COUNT ( + - col2 ) + + SUM ( + ( - + 63 ) ) AS col2 FROM tab2
----
-163

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2888
SELECT + CAST( NULL AS SIGNED ) + - col0 * + col1 * + - 12, col0 * 2 AS col0 FROM tab0 AS cor0
----
NULL
174
NULL
194
NULL
30

skipif mysql # not compatible
query II rowsort label-2888
SELECT + CAST ( NULL AS INTEGER ) + - col0 * + col1 * + - 12, col0 * 2 AS col0 FROM tab0 AS cor0
----
NULL
174
NULL
194
NULL
30

query I rowsort
SELECT ALL + + 65 AS col1 FROM tab0 AS cor0
----
65
65
65

query II rowsort
SELECT + col2 AS col0, - 39 AS col0 FROM tab0 AS cor0
----
10
-39
47
-39
99
-39

query I rowsort
SELECT - 87 * - col1 FROM tab1 AS cor0 WHERE NOT + col1 - 44 - col0 NOT IN ( + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT + 41 DIV col1 + + col2 FROM tab1 AS cor0
----
67
68
98

skipif mysql # not compatible
query I rowsort label-2892
SELECT + 41 / col1 + + col2 FROM tab1 AS cor0
----
67
68
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2893
SELECT DISTINCT - - col2 * - + CAST( - CAST( - + col0 AS DECIMAL ) AS SIGNED ) - - - col2 AS col1 FROM tab2 AS cor0
----
-1081
-2600
-4408

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT - - col2 * - + CAST ( - CAST ( - + col0 AS REAL ) AS INTEGER ) - - - col2 AS col1 FROM tab2 AS cor0
----
-1081
-2600
-4408

query I rowsort
SELECT + ( - 98 ) FROM tab1 AS cor0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT + 77 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2896
SELECT - 48 AS col2, col0 DIV + 31 AS col2 FROM tab1
----
-48
1
-48
2
-48
2

skipif mysql # not compatible
query II rowsort label-2896
SELECT - 48 AS col2, col0 / + 31 AS col2 FROM tab1
----
-48
1
-48
2
-48
2

query II rowsort
SELECT DISTINCT - col2 AS col2, - 6 FROM tab2
----
-23
-6
-40
-6
-58
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2898
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 86 * - col0 + + col1 * + CAST( col2 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2898
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 86 * - col0 + + col1 * + CAST ( col2 AS INTEGER ) < NULL
----

query II rowsort
SELECT - col0 + - - col1, col2 FROM tab2 AS cor0
----
-8
58
13
40
5
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT ALL MAX( + - 73 ) AS col0 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL MAX ( + - 73 ) AS col0 FROM tab1
----
-73

query I rowsort
SELECT DISTINCT - col0 + + col0 + + - 45 FROM tab0 AS cor0
----
-45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + ( + col1 ) / + col1 * - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2903
SELECT CAST( NULL AS SIGNED ) + - - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2903
SELECT CAST ( NULL AS INTEGER ) + - - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 38 * col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 38 * col0 = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2905
SELECT - col1 + - 24 AS col0, CAST( + 95 AS SIGNED ) AS col0 FROM tab1 cor0
----
-29
95
-38
95
-71
95

skipif mysql # not compatible
query II rowsort label-2905
SELECT - col1 + - 24 AS col0, CAST ( + 95 AS INTEGER ) AS col0 FROM tab1 cor0
----
-29
95
-38
95
-71
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, col2 col0 FROM tab2
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT + 45 * + 9 AS col0 FROM tab0
----
405

query I rowsort
SELECT DISTINCT col2 * + col0 + + col0 + 67 FROM tab1 WHERE NOT + col1 + col2 IS NULL
----
5014
5167
6346

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 / 89 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2911
SELECT - col2 DIV col0 + + - col0 FROM tab1
----
-52
-85
-91

skipif mysql # not compatible
query I rowsort label-2911
SELECT - col2 / col0 + + - col0 FROM tab1
----
-52
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 27 * + 4 + + 27 - + 56 - + col2 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2913
SELECT DISTINCT * FROM tab2 WHERE - + col1 * + + col0 - CAST( + + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2913
SELECT DISTINCT * FROM tab2 WHERE - + col1 * + + col0 - CAST ( + + col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT DISTINCT + MIN( DISTINCT - 81 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT + MIN ( DISTINCT - 81 ) FROM tab0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2915
SELECT + CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2915
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT - MIN( - - 35 ) * - + 9 FROM tab1 AS cor0
----
315

skipif mysql # not compatible
query I rowsort label-2917
SELECT - MIN ( - - 35 ) * - + 9 FROM tab1 AS cor0
----
315

query II rowsort
SELECT - col2 AS col0, - col1 * + col2 * + col0 * + col0 FROM tab2 AS cor0
----
-23
-2482068
-40
-12615680
-58
-21858750

query II rowsort
SELECT 27 AS col2, col2 AS col1 FROM tab1 cor0
----
27
59
27
68
27
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = + 5
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 = col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col1 AS col1, col2 + + ( - col2 ) col1, - col0 FROM tab0 AS cor0 WHERE ( - 36 ) BETWEEN col1 + - col0 AND NULL
----

query I rowsort
SELECT ALL col1 * + + col1 FROM tab1 cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT DISTINCT MIN( DISTINCT + + 99 ) AS col1 FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT MIN ( DISTINCT + + 99 ) AS col1 FROM tab1 cor0
----
99

query I rowsort
SELECT ALL + 67 * 48 AS col1 FROM tab1
----
3216
3216
3216

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT ALL - COUNT( ALL + + 50 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL - COUNT ( ALL + + 50 ) AS col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
10
28
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2928
SELECT - col1 DIV + col0 + - 34 AS col1 FROM tab1 AS cor0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-2928
SELECT - col1 / + col0 + - 34 AS col1 FROM tab1 AS cor0
----
-34
-34
-34

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * col1 / col1 = - - ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT - + SUM( + 53 ) AS col1 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-2930
SELECT - + SUM ( + 53 ) AS col1 FROM tab1 AS cor0
----
-159

query II rowsort
SELECT - col1, + col2 AS col1 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT ALL SUM( col2 ) col1 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2932
SELECT ALL SUM ( col2 ) col1 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query II rowsort label-2933
SELECT COUNT( * ), 95 AS col2 FROM tab1
----
3
95

skipif mysql # not compatible
query II rowsort label-2933
SELECT COUNT ( * ), 95 AS col2 FROM tab1
----
3
95

query I rowsort
SELECT ALL + + col0 * col1 + ( 78 ) * - 40 FROM tab0 WHERE col2 IS NULL
----

query I rowsort
SELECT col0 * + + col2 AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT ALL COUNT( * ) FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL COUNT ( * ) FROM tab0, tab1 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 IS NOT NULL )
----

query I rowsort
SELECT col1 * + + col2 AS col0 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL + col1 + + - 44 * - col0 AS col0 FROM tab2
----
2075
2893
3367

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 2 AS col2, 57 * + col1 + - col2 col2 FROM tab0
----
-2
-42
-2
1187
-2
4570

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2941
SELECT DISTINCT + col1 * - col2 + - CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2941
SELECT DISTINCT + col1 * - col2 + - CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT ALL + COUNT( - 72 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL + COUNT ( - 72 ) FROM tab0
----
3

query I rowsort
SELECT - col2 + - - col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2944
SELECT ALL col1 + 79 AS col1, - 62 + + ( - CAST( + 26 AS SIGNED ) ) + - col2 col1 FROM tab1
----
126
-156
84
-147
93
-184

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2944
SELECT ALL col1 + 79 AS col1, - 62 + + ( - CAST ( + 26 AS INTEGER ) ) + - col2 col1 FROM tab1
----
126
-156
84
-147
93
-184

query I rowsort
SELECT + col0 + - - ( - - 25 ) FROM tab0
----
112
122
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2946
SELECT 45 DIV col1 * + 27 + + col1 + col2 + + col0 DIV col0 * + 13 DIV - 79 * + - col2 AS col1 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-2946
SELECT 45 / col1 * + 27 + + col1 + col2 + + col0 / col0 * + 13 / - 79 * + - col2 AS col1 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT ( col2 ) + - 18 FROM tab0
----
-8
29
81

query I rowsort
SELECT ALL 50 + 47 AS col1 FROM tab0
----
97
97
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col2 * + + 69
----

query I rowsort
SELECT ALL - - col2 + + + col2 + + + col0 AS col1 FROM tab0 cor0
----
107
109
295

query I rowsort
SELECT ALL col2 + col0 + + col2 AS col1 FROM tab1 cor0
----
203
227
243

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT COUNT( + + 74 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2952
SELECT COUNT ( + + 74 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 70 + + - col1 * col2 * - col0 FROM tab2 AS cor0 WHERE + 54 * - + col1 - col0 IS NOT NULL
----
197050
291380
53888

query I rowsort
SELECT - + 90 AS col0 FROM tab1 AS cor0 WHERE 14 IS NOT NULL
----
-90
-90
-90

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE - col1 NOT IN ( - col0, 19 * - col2, col1, - + col1, - 1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT - COUNT( * ) FROM tab1 WHERE 87 + col2 * col1 * - - ( - + col1 ) BETWEEN - col0 AND - col0 + - - 3
----
0

skipif mysql # not compatible
query I rowsort label-2956
SELECT - COUNT ( * ) FROM tab1 WHERE 87 + col2 * col1 * - - ( - + col1 ) BETWEEN - col0 AND - col0 + - - 3
----
0

query I rowsort
SELECT col1 - - + col1 + col2 FROM tab2
----
125
192
194

onlyif mysql # DIV for integer division: 
query I rowsort label-2958
SELECT DISTINCT - ( - - col1 ) DIV + + col1 col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2958
SELECT DISTINCT - ( - - col1 ) / + + col1 col0 FROM tab2 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2959
SELECT DISTINCT - + col1 / col1 + + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT - + col1 / col1 + + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 19 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-19
-19
-19

query I rowsort
SELECT DISTINCT + ( + - col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT COUNT( - 51 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2962
SELECT COUNT ( - 51 ) FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2963
SELECT * FROM tab0 AS cor0 WHERE NOT col1 IN ( + CAST( NULL AS DECIMAL ), - col0 * - col0 * - + 80, 52, 49 )
----

skipif mysql # not compatible
query III rowsort label-2963
SELECT * FROM tab0 AS cor0 WHERE NOT col1 IN ( + CAST ( NULL AS REAL ), - col0 * - col0 * - + 80, 52, 49 )
----

query I rowsort
SELECT - 33 FROM tab2 AS cor0 WHERE NOT col1 + col2 IS NULL
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT - MAX( + + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2965
SELECT - MAX ( + + col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT + ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2968
SELECT DISTINCT - - col0 DIV + col1 + + 65 AS col2 FROM tab0 AS cor0
----
162
65
69

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT - - col0 / + col1 + + 65 AS col2 FROM tab0 AS cor0
----
162
65
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT + col2 DIV + col2 + col0 + - 5 AS col0 FROM tab0 AS cor0 WHERE NOT - 7 * - 32 * - col2 + + col2 IS NULL
----
11
83
93

skipif mysql # not compatible
query I rowsort label-2969
SELECT + col2 / + col2 + col0 + - 5 AS col0 FROM tab0 AS cor0 WHERE NOT - 7 * - 32 * - col2 + + col2 IS NULL
----
11
83
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT DISTINCT - - SUM( + + 95 ) AS col0 FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT - - SUM ( + + 95 ) AS col0 FROM tab1 AS cor0
----
285

onlyif mysql # DIV for integer division: 
query I rowsort label-2971
SELECT - col1 DIV - - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2971
SELECT - col1 / - - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT + - MIN( ALL - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2972
SELECT + - MIN ( ALL - col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT - col0 + - col1 + + col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-49
-98
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2974
SELECT - 82 DIV 17 * + 53 AS col0, + col0 AS col2 FROM tab2 AS cor0
----
-212
46
-212
64
-212
75

skipif mysql # not compatible
query II rowsort label-2974
SELECT - 82 / 17 * + 53 AS col0, + col0 AS col2 FROM tab2 AS cor0
----
-212
46
-212
64
-212
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT 40 * - COUNT( ALL - col0 ) FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-2975
SELECT 40 * - COUNT ( ALL - col0 ) FROM tab0 AS cor0
----
-120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 * - col1 col1 FROM tab1
----
201019
2125
9996

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - col1 * col0 / + - 0 BETWEEN NULL AND 12 + 65
----

query I rowsort
SELECT + col0 + - col1 - + 22 FROM tab1 AS cor0
----
15
22
58

query I rowsort
SELECT + + ( - + col1 ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2980
SELECT - + 29 DIV - 72 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2980
SELECT - + 29 / - 72 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2981
SELECT ALL 5 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col1 * + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL 5 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col1 * + + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2982
SELECT ALL - col1 DIV + + col1 + col2 * + 1 * col2 + - + 50 * 52 + + col0 * + + col2 AS col1 FROM tab2
----
-1014
1559
5113

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL - col1 / + + col1 + col2 * + 1 * col2 + - + 50 * 52 + + col0 * + + col2 AS col1 FROM tab2
----
-1014
1559
5113

query I rowsort
SELECT col0 - + + col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT DISTINCT - 78 + + - 95 AS col1 FROM tab2 AS cor0
----
-173

query I rowsort
SELECT col2 * - - 54 - + col0 FROM tab1 AS cor0
----
3101
3581
5133

query I rowsort
SELECT 54 FROM tab2 AS cor0 WHERE + ( + col1 ) IS NULL
----

query I rowsort
SELECT 83 + - col0 AS col2 FROM tab1 AS cor0
----
-2
-8
32

query I rowsort
SELECT col2 + + 1 FROM tab2 cor0
----
24
41
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - - col2 col0 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT ( + + 17 ) + + 76 AS col1 FROM tab0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT - ( - + 94 ) * + - COUNT( * ) - - - SUM( DISTINCT col0 ) AS col1 FROM tab0
----
-481

skipif mysql # not compatible
query I rowsort label-2991
SELECT - ( - + 94 ) * + - COUNT ( * ) - - - SUM ( DISTINCT col0 ) AS col1 FROM tab0
----
-481

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT - - 79 * + MIN( DISTINCT 97 ) FROM tab0 AS cor0
----
7663

skipif mysql # not compatible
query I rowsort label-2993
SELECT - - 79 * + MIN ( DISTINCT 97 ) FROM tab0 AS cor0
----
7663

query II rowsort
SELECT + col0 AS col1, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT + + MAX( + + col0 ) * + - COUNT( ALL col1 ) FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-2995
SELECT + + MAX ( + + col0 ) * + - COUNT ( ALL col1 ) FROM tab0 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT + MAX( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2996
SELECT + MAX ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT - 88 * + + col1 + - col2 AS col2 FROM tab2 cor0
----
-4511
-5954
-6816

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT - COUNT( - 5 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2998
SELECT - COUNT ( - 5 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col2 / - + 57 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT + SUM( DISTINCT + - ( - - ( - - col0 ) ) ) * - ( - + 75 ) FROM tab0 AS cor0
----
-14925

skipif mysql # not compatible
query I rowsort label-3000
SELECT + SUM ( DISTINCT + - ( - - ( - - col0 ) ) ) * - ( - + 75 ) FROM tab0 AS cor0
----
-14925

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT 21 + - 29 IN ( - 11 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT ALL ( + ( + COUNT( * ) ) ) * - 10 * - + 10 col0 FROM tab0
----
300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3002
SELECT ALL ( + ( + COUNT ( * ) ) ) * - 10 * - + 10 col0 FROM tab0
----
300

onlyif mysql # DIV for integer division: 
query II rowsort label-3003
SELECT col1 AS col0, + 93 DIV - - ( - col0 ) AS col1 FROM tab0
----
1
0
21
-1
81
-6

skipif mysql # not compatible
query II rowsort label-3003
SELECT col1 AS col0, + 93 / - - ( - col0 ) AS col1 FROM tab0
----
1
0
21
-1
81
-6

query I rowsort
SELECT ALL + 67 * - col1 FROM tab0
----
-1407
-5427
-67

query III rowsort
SELECT * FROM tab0 WHERE + + col1 - + col2 IN ( + col2 / - + 4 * - col2, col0, - - col2 )
----

query I rowsort
SELECT - + col1 FROM tab2 WHERE - + col1 * + - 42 + - 0 IS NULL
----

query II rowsort
SELECT - col0 AS col2, - 58 AS col1 FROM tab0
----
-15
-58
-87
-58
-97
-58

query I rowsort
SELECT + col0 * - 42 AS col2 FROM tab2
----
-1932
-2688
-3150

onlyif mysql # DIV for integer division: 
query I rowsort label-3009
SELECT ALL + 41 + 45 DIV - col0 AS col0 FROM tab1
----
41
41
41

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL + 41 + 45 / - col0 AS col0 FROM tab1
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col0, ( 7 ) AS col2 FROM tab1 AS cor0
----
51
7
85
7
91
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT ALL + - COUNT( + col1 ) + - 25 AS col0 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL + - COUNT ( + col1 ) + - 25 AS col0 FROM tab2 AS cor0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3012
SELECT DISTINCT COUNT( ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) ) + - COUNT( + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT COUNT ( ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) + - COUNT ( + col1 ) FROM tab0
----
-3

query I rowsort
SELECT + 6 + - - 26 * + - 65 FROM tab0
----
-1684
-1684
-1684

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3014
SELECT - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT ALL - col2 + + - col0 AS col0 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT ALL - + col1 * col1 - - - 36 FROM tab2 cor0
----
-2637
-4525
-5965

onlyif mysql # DIV for integer division: 
query II rowsort label-3017
SELECT DISTINCT - + ( - col1 ), + 67 DIV + 51 + - col1 AS col2 FROM tab1 AS cor0
----
14
-13
47
-46
5
-4

skipif mysql # not compatible
query II rowsort label-3017
SELECT DISTINCT - + ( - col1 ), + 67 / + 51 + - col1 AS col2 FROM tab1 AS cor0
----
14
-13
47
-46
5
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT ALL COUNT( * ) - 64 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL COUNT ( * ) - 64 FROM tab2 AS cor0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3019
SELECT ALL + - COUNT( * ) - CAST( NULL AS SIGNED ) + CAST( 88 AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL + - COUNT ( * ) - CAST ( NULL AS INTEGER ) + CAST ( 88 AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3020
SELECT ALL - - MIN( ALL - - col1 ) / + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL - - MIN ( ALL - - col1 ) / + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col2, col2 AS col1 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3022
SELECT - - CAST( COUNT( * ) AS SIGNED ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3022
SELECT - - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT 98 * 54 FROM tab1
----
5292
5292
5292

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT + COUNT( + + 85 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3024
SELECT + COUNT ( + + 85 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT DISTINCT + MIN( ALL + col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT + MIN ( ALL + col2 ) AS col1 FROM tab2
----
23

query I rowsort
SELECT - + col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT - - COUNT( - - 42 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3028
SELECT - - COUNT ( - - 42 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NULL BETWEEN NULL AND ( NULL ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3030
SELECT + MAX( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT + MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT - MAX( + col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3031
SELECT - MAX ( + col2 ) AS col0 FROM tab0
----
-99

query II rowsort
SELECT + col0 AS col0, - col1 AS col1 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT + MIN( + col1 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3033
SELECT + MIN ( + col1 ) FROM tab2 cor0
----
51

query II rowsort
SELECT ALL + - col1 AS col0, 27 FROM tab2 AS cor0
----
-51
27
-67
27
-77
27

query II rowsort
SELECT + col1 AS col1, + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query II rowsort
SELECT ALL + 82 AS col0, + 12 + + col1 AS col2 FROM tab2 AS cor0
----
82
63
82
79
82
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 24 AS col1, - 58 col1 FROM tab2 AS cor0
----
24
-58
24
-58
24
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + + 17 * + col0 col0 FROM tab2 AS cor0
----
-17986
-43520
-73950

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT ALL COUNT( * ) * + + 29 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL COUNT ( * ) * + + 29 FROM tab1 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3040
SELECT + 30, COUNT( col0 ) col0 FROM tab0 cor0
----
30
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3040
SELECT + 30, COUNT ( col0 ) col0 FROM tab0 cor0
----
30
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL 47 * + SUM( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-10669

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL 47 * + SUM ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-10669

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3042
SELECT col0 col1, 99 * + ( CAST( - 97 AS SIGNED ) ) * + - CAST( + + 2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
19206
87
19206
97
19206

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3042
SELECT col0 col1, 99 * + ( CAST ( - 97 AS INTEGER ) ) * + - CAST ( + + 2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
19206
87
19206
97
19206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + col1, - col1 col2 FROM tab0
----
-98
-1
11
-21
34
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT 38 - + - MIN( DISTINCT + ( - 47 ) ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3044
SELECT 38 - + - MIN ( DISTINCT + ( - 47 ) ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT col2 * - col0 AS col2, + col2 - + - ( + 36 ) AS col0 FROM tab1
----
-4896
132
-5015
95
-6188
104

onlyif mysql # DIV for integer division: 
query I rowsort label-3046
SELECT DISTINCT + col2 * + + col1 + + col0 + + col1 DIV + col0 FROM tab2
----
1220
3145
3961

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT + col2 * + + col1 + + col0 + + col1 / + col0 FROM tab2
----
1220
3145
3961

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 / + 10 * + col2 = - 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT DISTINCT + - ( CAST( + - col2 AS SIGNED ) ) + + + ( + col2 ) FROM tab1 AS cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT + - ( CAST ( + - col2 AS INTEGER ) ) + + + ( + col2 ) FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT - - col1 * 21 FROM tab2 AS cor0
----
1071
1407
1617

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3050
SELECT - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 89 + - - ( - 29 ) * - col0 * col0 AS col1 FROM tab1
----
209436
240060
75340

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT 84 - - COUNT( * ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-3052
SELECT 84 - - COUNT ( * ) FROM tab1
----
87

query I rowsort
SELECT ALL - 96 + + col0 FROM tab0
----
-81
-9
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 64 ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-64

query I rowsort
SELECT + + ( + col0 ) + - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT + COUNT( * ) + + + 64 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-3056
SELECT + COUNT ( * ) + + + 64 FROM tab1 AS cor0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3057
SELECT - - col0 + + - col1 - + CAST( - col2 AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
124
41
67

skipif mysql # not compatible
query I rowsort label-3057
SELECT - - col0 + + - col1 - + CAST ( - col2 AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
124
41
67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 94 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + col1 ) AS col0 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT - - 11 * - + 54 FROM tab2 AS cor0
----
-594
-594
-594

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3061
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( col2 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3061
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( col2 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + - col2, col1 + - 24 + ( - 3 ) * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 80 ) col1 FROM tab0
----
80
80
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3064
SELECT + MIN( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE NOT 59 / 28 * - col2 * 90 + + + 74 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT + MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE NOT 59 / 28 * - col2 * 90 + + + 74 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 col1 FROM tab2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT ALL ( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 5 * + 19 + - 70 + - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-34
-43
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3068
SELECT + SUM( ALL CAST( - - col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3068
SELECT + SUM ( ALL CAST ( - - col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT 44 * col1 AS col2 FROM tab0 AS cor0
----
3564
44
924

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > - + 5
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( 6 IS NULL )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT ( + + col1 ) + col1 FROM tab0
----
162
2
42

query I rowsort
SELECT - 71 AS col1 FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT 1 AS col1, + col1 * ( + 0 ) AS col0 FROM tab0
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT - COUNT( * ) + - 50 AS col2 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-3075
SELECT - COUNT ( * ) + - 50 AS col2 FROM tab1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3076
SELECT - col1 + 0 + - ( + ( - CAST( + col0 AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-3076
SELECT - col1 + 0 + - ( + ( - CAST ( + col0 AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # DIV for integer division: 
query II rowsort label-3077
SELECT DISTINCT col1 + + + ( + 51 ) DIV col0 + + col0, - 18 AS col2 FROM tab2 AS cor0
----
141
-18
142
-18
98
-18

skipif mysql # not compatible
query II rowsort label-3077
SELECT DISTINCT col1 + + + ( + 51 ) / col0 + + col0, - 18 AS col2 FROM tab2 AS cor0
----
141
-18
142
-18
98
-18

query I rowsort
SELECT ALL - 11 * + col1 FROM tab0 AS cor0
----
-11
-231
-891

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / + col1 BETWEEN + 42 * + col1 AND + 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT DISTINCT + SUM( ALL + - 57 ) col0 FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3080
SELECT DISTINCT + SUM ( ALL + - 57 ) col0 FROM tab1 AS cor0
----
-171

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3081
SELECT 43 * - CAST( NULL AS DECIMAL ) * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3081
SELECT 43 * - CAST ( NULL AS REAL ) * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 41 * + col1 FROM tab1
----
1927
205
574

onlyif mysql # aggregate syntax: 
query II rowsort label-3083
SELECT ALL 67 col1, - COUNT( * ) AS col2 FROM tab2
----
67
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3083
SELECT ALL 67 col1, - COUNT ( * ) AS col2 FROM tab2
----
67
-3

query I rowsort
SELECT ( - - 87 ) * - col2 AS col1 FROM tab1
----
-5133
-5916
-8352

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT DISTINCT MAX( 45 ) col0 FROM tab0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3085
SELECT DISTINCT MAX ( 45 ) col0 FROM tab0
----
45

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT + col0 DIV - + col2 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3087
SELECT + col0 / - + col2 AS col1 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT + 66 + + col2 + 16 + - + col2 AS col1 FROM tab0 AS cor0
----
82

query I rowsort
SELECT ALL + + 83 - + 14 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT + col1 * - - 45 * - col1 AS col0 FROM tab1
----
-1125
-8820
-99405

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT - COUNT( + + col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3091
SELECT - COUNT ( + + col2 ) FROM tab0
----
-3

query I rowsort
SELECT + ( + - ( + 41 ) ) + 4 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT col1 / col2 AS col1 FROM tab1 WHERE NOT NULL > - ( - col2 )
----

query I rowsort
SELECT ALL + 15 FROM tab0 AS cor0 WHERE NOT 51 BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT DISTINCT - - COUNT( * ) * COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT - - COUNT ( * ) * COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT ALL - 73 DIV + 89 + + 63 * - 81 AS col2 FROM tab1 AS cor0
----
-5103
-5103
-5103

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL - 73 / + 89 + + 63 * - 81 AS col2 FROM tab1 AS cor0
----
-5103
-5103
-5103

query I rowsort
SELECT DISTINCT + ( - - col0 ) * - - col0 - - col0 AS col0 FROM tab2 AS cor0
----
2162
4160
5700

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT ALL col2 DIV col2 * + + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL col2 / col2 * + + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT + MIN( ALL - 17 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-17

skipif mysql # not compatible
query I rowsort label-3099
SELECT + MIN ( ALL - 17 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-17

query I rowsort
SELECT - col0 * + 21 FROM tab0 AS cor0
----
-1827
-2037
-315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, col2 * col1 AS col2 FROM tab1
----
51
1344
85
295
91
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL - MIN( DISTINCT 47 ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL - MIN ( DISTINCT 47 ) FROM tab2
----
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3103
SELECT * FROM tab0 WHERE NOT 15 + + 81 * col0 <= + CAST( col1 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3103
SELECT * FROM tab0 WHERE NOT 15 + + 81 * col0 <= + CAST ( col1 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - + col1 * - col1 * ( col1 )
----

query I rowsort
SELECT DISTINCT + ( - 83 ) * col1 * - col0 AS col1 FROM tab2 AS cor0
----
194718
409024
417075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3106
SELECT DISTINCT + CAST( - - SUM( - col0 ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-227

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT + CAST ( - - SUM ( - col0 ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3107
SELECT - COUNT( * ) DIV + + 13 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3107
SELECT - COUNT ( * ) / + + 13 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 99 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT ALL COUNT( 26 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL COUNT ( 26 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL + col1 + 17 AS col0 FROM tab0
----
18
38
98

query I rowsort
SELECT ALL - 85 * - col2 AS col0 FROM tab2
----
1955
3400
4930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT ALL - CAST( NULL AS SIGNED ) * AVG ( DISTINCT col1 ) FROM tab2 WHERE 81 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL - CAST ( NULL AS INTEGER ) * AVG ( DISTINCT col1 ) FROM tab2 WHERE 81 >= NULL
----
NULL

query I rowsort
SELECT ALL ( 2 ) * + col2 AS col1 FROM tab1
----
118
136
192

query I rowsort
SELECT ALL - 3 * - col2 FROM tab0
----
141
297
30

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col2 - ( col2 ) * 56 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT 15 * + COUNT( * ) - + COUNT( * ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-3116
SELECT 15 * + COUNT ( * ) - + COUNT ( * ) FROM tab2
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3117
SELECT ALL + 85 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 WHERE NOT ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL + 85 * - CAST ( NULL AS REAL ) AS col2 FROM tab2 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3118
SELECT ALL * FROM tab1 WHERE NOT NULL < ( + CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3118
SELECT ALL * FROM tab1 WHERE NOT NULL < ( + CAST ( col2 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 15 * - col1 FROM tab1
----
210
705
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT DISTINCT - MIN( ALL col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT - MIN ( ALL col0 ) AS col1 FROM tab0
----
-15

query I rowsort
SELECT + 46 * - col0 FROM tab1
----
-2346
-3910
-4186

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT + MAX( col0 ) * 80 FROM tab0
----
7760

skipif mysql # not compatible
query I rowsort label-3122
SELECT + MAX ( col0 ) * 80 FROM tab0
----
7760

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3123
SELECT * FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3123
SELECT * FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT ALL - 30 + - 16 FROM tab2
----
-46
-46
-46

query I rowsort
SELECT - ( + col0 ) * + col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT + 70 * - col1 AS col2 FROM tab2
----
-3570
-4690
-5390

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 74 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * 85 FROM tab2
----
4335
5695
6545

onlyif mysql # DIV for integer division: 
query I rowsort label-3129
SELECT DISTINCT + ( + 80 ) DIV + 71 - col2 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT + ( + 80 ) / + 71 - col2 FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT MAX( + 66 ) AS col0 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3130
SELECT MAX ( + 66 ) AS col0 FROM tab0 AS cor0
----
66

query I rowsort
SELECT ALL col2 - 30 AS col0 FROM tab1 cor0
----
29
38
66

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + + 97 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3133
SELECT DISTINCT MAX( CAST( NULL AS SIGNED ) ) - 85 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT MAX ( CAST ( NULL AS INTEGER ) ) - 85 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT DISTINCT + COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3135
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col2 * 7 + col2 * col0 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN ( NULL ) AND col0 * - 24
----
10296
1034
940

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ALL + COUNT( * ) * - 38 AS col0 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL + COUNT ( * ) * - 38 AS col0 FROM tab2
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT + 19 DIV + 56 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3138
SELECT + 19 / + 56 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 FROM tab0 cor0 WHERE - 44 IS NOT NULL
----
15
87
97

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 + + col0 / col1 ) IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT + - MAX( ( + ( + 88 ) ) ) FROM tab1 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-3141
SELECT + - MAX ( ( + ( + 88 ) ) ) FROM tab1 cor0
----
-88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 57 + col0 * - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3143
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3143
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * + 56 * 72 FROM tab2
----
185472
258048
302400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3145
SELECT DISTINCT col0 col0 FROM tab0 WHERE 92 / col1 IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3145
SELECT DISTINCT col0 col0 FROM tab0 WHERE 92 / col1 IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT DISTINCT + COUNT( + col1 ) * + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT + COUNT ( + col1 ) * + COUNT ( * ) FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab2 WHERE ( NULL ) >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 * 37 + + 5 IN ( 54 )
----

query I rowsort
SELECT + + col1 * - ( + ( col2 ) ) * - col1 FROM tab2 AS cor0
----
237160
260362
59823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3150
SELECT DISTINCT CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT ALL + ( - ( - COUNT( * ) ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL + ( - ( - COUNT ( * ) ) ) FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 col0 FROM tab0 AS cor0
----
7
7
7

query I rowsort
SELECT - ( - 34 ) AS col0 FROM tab1 AS cor0
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3154
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 98 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 98 AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 + - col2 ) <= - 43
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3156
SELECT + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col0 + + col2 + + ( 9 ) + 23 * col1 FROM tab0 AS cor0
----
1904
34
415

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 61 NOT BETWEEN + col2 AND ( + 76 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 70 col2 FROM tab1 cor0
----
70
70
70

query II rowsort
SELECT + col0, + col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT - + col2 - + ( + - col2 ) FROM tab1 cor0
----
0

query I rowsort
SELECT - 33 AS col2 FROM tab0 AS cor0 WHERE 98 IS NULL
----

query II rowsort
SELECT ALL - + col0 AS col2, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - col2 - 0
----

query I rowsort
SELECT DISTINCT - col0 * 79 * + 34 FROM tab2
----
-123556
-171904
-201450

query I rowsort
SELECT ALL 0 + 99 AS col1 FROM tab1
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL SUM( + + col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL SUM ( + + col0 ) AS col0 FROM tab2
----
185

query I rowsort
SELECT - col2 / 24 FROM tab2 WHERE + col2 * col1 NOT BETWEEN col0 * - col0 AND NULL
----

query I rowsort
SELECT + 31 - + + 65 + - + 85 AS col0 FROM tab2
----
-119
-119
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT COUNT( * ) - - MIN( DISTINCT - + col1 ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-3170
SELECT COUNT ( * ) - - MIN ( DISTINCT - + col1 ) FROM tab0
----
-78

query I rowsort
SELECT DISTINCT col2 + + ( + col2 ) FROM tab0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3172
SELECT - col2 - - col2 + - 71 + - CAST( col0 AS SIGNED ) * col1 * col1 FROM tab2
----
-119717
-336746
-379527

skipif mysql # not compatible
query I rowsort label-3172
SELECT - col2 - - col2 + - 71 + - CAST ( col0 AS INTEGER ) * col1 * col1 FROM tab2
----
-119717
-336746
-379527

query I rowsort
SELECT DISTINCT - 81 AS col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT DISTINCT - - SUM( DISTINCT col2 ) - - COUNT( * ) FROM tab0 cor0
----
159

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT - - SUM ( DISTINCT col2 ) - - COUNT ( * ) FROM tab0 cor0
----
159

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT COUNT( * ) * - + 13 FROM tab0 AS cor0 WHERE NOT NULL = ( 84 )
----
0

skipif mysql # not compatible
query I rowsort label-3176
SELECT COUNT ( * ) * - + 13 FROM tab0 AS cor0 WHERE NOT NULL = ( 84 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT + MIN( DISTINCT + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3177
SELECT + MIN ( DISTINCT + col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL 84 * + + col2 AS col2 FROM tab0
----
3948
8316
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3179
SELECT 68 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3179
SELECT 68 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3180
SELECT CAST( COUNT( * ) AS SIGNED ) FROM tab1 WHERE NOT - 58 * + ( - 91 ) * + ( + 29 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3180
SELECT CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NOT - 58 * + ( - 91 ) * + ( + 29 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col0 FROM tab1 AS cor0 WHERE NOT col1 / + col2 + + - 47 / - col0 + + col2 / + 5 IS NULL
----
-3
-3
-3

query I rowsort
SELECT - col2 * - 22 * + - 23 + 55 + - col2 AS col0 FROM tab1 AS cor0
----
-29858
-34421
-48617

query I rowsort
SELECT - ( + 14 ) FROM tab2 cor0
----
-14
-14
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-3184
SELECT ALL - col2, + col1 DIV ( + + col0 ) * + ( ( ( + col2 ) ) ) AS col1 FROM tab0 AS cor0
----
-10
0
-47
235
-99
0

skipif mysql # not compatible
query II rowsort label-3184
SELECT ALL - col2, + col1 / ( + + col0 ) * + ( ( ( + col2 ) ) ) AS col1 FROM tab0 AS cor0
----
-10
0
-47
235
-99
0

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT + 23 = + col1
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT DISTINCT - COUNT( ALL - 57 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3186
SELECT DISTINCT - COUNT ( ALL - 57 ) col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 47 BETWEEN ( + - col0 ) AND ( NULL ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) > ( ( - col0 ) )
----

query II rowsort
SELECT + col0, 39 FROM tab1
----
51
39
85
39
91
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3190
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + + col2 IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - col2 ) + 72 FROM tab2 WHERE NOT NULL NOT IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3193
SELECT ALL + col2 * 57 AS col1, + col0 + 41 DIV - 89 AS col1 FROM tab0
----
2679
15
5643
97
570
87

skipif mysql # not compatible
query II rowsort label-3193
SELECT ALL + col2 * 57 AS col1, + col0 + 41 / - 89 AS col1 FROM tab0
----
2679
15
5643
97
570
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT ALL SUM( DISTINCT 75 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL SUM ( DISTINCT 75 ) AS col1 FROM tab2
----
75

query I rowsort
SELECT ALL 40 AS col0 FROM tab2 WHERE - + 16 * + col1 NOT IN ( col2 )
----
40
40
40

query I rowsort
SELECT DISTINCT - - 10 AS col1 FROM tab1 WHERE NOT ( + col2 ) <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL - 99 + + MAX( DISTINCT - col2 ) * 86 AS col1 FROM tab0 cor0
----
-959

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL - 99 + + MAX ( DISTINCT - col2 ) * 86 AS col1 FROM tab0 cor0
----
-959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3198
SELECT 59 * - col1 + col0 * ( + 69 ) + + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-3663
4785
6635

skipif mysql # not compatible
query I rowsort label-3198
SELECT 59 * - col1 + col0 * ( + 69 ) + + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-3663
4785
6635

query I rowsort
SELECT - col2 + - - col1 + - col2 AS col2 FROM tab2 AS cor0
----
-3
-49
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 58 <= ( NULL )
----

query I rowsort
SELECT - col0 + + 65 * + col0 FROM tab0 AS cor0
----
5568
6208
960

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3202
SELECT * FROM tab0 AS cor0 WHERE col0 * - col2 * + CAST( 87 AS SIGNED ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3202
SELECT * FROM tab0 AS cor0 WHERE col0 * - col2 * + CAST ( 87 AS INTEGER ) <= ( NULL )
----

query II rowsort
SELECT col2 AS col0, - col0 FROM tab0 cor0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3204
SELECT DISTINCT - 92 DIV COUNT( + 59 ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT - 92 / COUNT ( + 59 ) FROM tab2
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT DISTINCT 76 + - + col1 + - + col2 FROM tab2
----
-41
-49
2

query I rowsort
SELECT DISTINCT - col1 * - ( + col0 ) + 33 FROM tab2 AS cor0
----
2379
4961
5058

onlyif mysql # DIV for integer division: 
query I rowsort label-3208
SELECT - + 48 DIV - + col2 - col0 FROM tab2 AS cor0
----
-44
-63
-75

skipif mysql # not compatible
query I rowsort label-3208
SELECT - + 48 / - + col2 - col0 FROM tab2 AS cor0
----
-44
-63
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3209
SELECT CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE col0 = - 47
----

skipif mysql # not compatible
query I rowsort label-3209
SELECT CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE col0 = - 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT ( - + 50 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3210
SELECT ( - + 50 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 82 IS NOT NULL
----

query I rowsort
SELECT + col0 + ( + + col1 ) AS col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT DISTINCT + + 62 * - - 96 FROM tab2 cor0 WHERE - ( + 18 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 32 ) * - col2 / + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3215
SELECT ALL col0 * - - col2 DIV + - col2 - 89 FROM tab0
----
-104
-176
-186

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL col0 * - - col2 / + - col2 - 89 FROM tab0
----
-104
-176
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT DISTINCT CAST( - 85 AS SIGNED ) AS col2 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT CAST ( - 85 AS INTEGER ) AS col2 FROM tab0
----
-85

query I rowsort
SELECT - col0 * col2 * + col1 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT DISTINCT MIN( + - 45 ) AS col1 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT MIN ( + - 45 ) AS col1 FROM tab2
----
-45

query I rowsort
SELECT + col0 * - col2 FROM tab0 WHERE - col0 IS NOT NULL
----
-705
-870
-9603

query I rowsort
SELECT - ( - - col1 ) AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3221
SELECT - + CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3221
SELECT - + CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col2 * + + 79 FROM tab0 AS cor0
----
3713
7821
790

query I rowsort
SELECT + - ( + 74 ) FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT - ( + + 7 ) AS col1 FROM tab0 cor0
----
-7
-7
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3225
SELECT - 49 * - COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3225
SELECT - 49 * - COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col2 FROM tab2 AS cor0
----
87
87
87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 = ( 25 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 49 AS col0 FROM tab0 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT ALL SUM( ALL 52 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL SUM ( ALL 52 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT ALL + col1 * - col0 * 9 FROM tab2
----
-21114
-44352
-45225

onlyif mysql # aggregate syntax: 
query II rowsort label-3231
SELECT COUNT( * ) col1, COUNT( * ) * - 17 FROM tab1
----
3
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3231
SELECT COUNT ( * ) col1, COUNT ( * ) * - 17 FROM tab1
----
3
-51

query II rowsort
SELECT + 1, col0 + - + 27 + col1 - + 98 AS col2 FROM tab0
----
1
-17
1
-27
1
-29

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE + - col2 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT - SUM( ALL 92 ) FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-3234
SELECT - SUM ( ALL 92 ) FROM tab0
----
-276

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( - col1 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3236
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE 47 * + ( + col2 ) + - 5 BETWEEN NULL AND CAST( - 66 AS SIGNED ) + + col0
----

skipif mysql # not compatible
query I rowsort label-3236
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE 47 * + ( + col2 ) + - 5 BETWEEN NULL AND CAST ( - 66 AS INTEGER ) + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3237
SELECT DISTINCT + COUNT( * ) DIV 28 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT + COUNT ( * ) / 28 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col0 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT MIN( - 4 ) + 60 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-3239
SELECT MIN ( - 4 ) + 60 FROM tab2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-3240
SELECT - 44 AS col0, - ( 42 ) - + ( - COUNT( * ) ) + + COUNT( DISTINCT - 41 ) AS col2 FROM tab0 cor0
----
-44
-38

skipif mysql # not compatible
query II rowsort label-3240
SELECT - 44 AS col0, - ( 42 ) - + ( - COUNT ( * ) ) + + COUNT ( DISTINCT - 41 ) AS col2 FROM tab0 cor0
----
-44
-38

query II rowsort
SELECT DISTINCT ( - - ( col1 ) ) + - col0, 60 + + 48 AS col2 FROM tab0 AS cor0
----
-66
108
-96
108
66
108

onlyif mysql # DIV for integer division: 
query I rowsort label-3242
SELECT ALL + col1 DIV - - col2 AS col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL + col1 / - - col2 AS col1 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT + col1 * - col0 - - col1 * + col2 FROM tab0 AS cor0
----
-1617
2
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL - 64 - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL - 64 - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT + ( - 37 ) - - 52 - + 98 + + + 48 AS col1 FROM tab1
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL - SUM( col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL - SUM ( col2 ) AS col2 FROM tab1
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 - - - col1 col1 FROM tab0
----
-41
19
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3248
SELECT - 58 - CAST( NULL AS SIGNED ) * - COUNT( - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3248
SELECT - 58 - CAST ( NULL AS INTEGER ) * - COUNT ( - col1 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3249
SELECT ALL - 9 / - + col2 FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL - 9 / - + col2 FROM tab1 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - col2 ) * col1 + - col0 - + + 14 * - col0 + ( + - col0 ) * + 97 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 / - + 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col1 * + col2 AS col2, col2 AS col0 FROM tab1
----
1344
96
295
59
3196
68

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 > ( - col2 * - 13 * + - 78 + - + col0 - + + col2 + - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 53 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3256
SELECT DISTINCT * FROM tab2 cor0 WHERE - - 30 * - - CAST( + 11 AS SIGNED ) BETWEEN NULL AND - - col0 OR NOT + 72 * + + 78 * - CAST( NULL AS SIGNED ) * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3256
SELECT DISTINCT * FROM tab2 cor0 WHERE - - 30 * - - CAST ( + 11 AS INTEGER ) BETWEEN NULL AND - - col0 OR NOT + 72 * + + 78 * - CAST ( NULL AS INTEGER ) * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3257
SELECT * FROM tab0 AS cor0 WHERE NOT ( + ( - - col0 ) ) NOT BETWEEN - col1 * col0 * + + 53 AND + + 47 * - col2 * - CAST( + col0 AS SIGNED ) * - 99 / + col2 - - col2
----

skipif mysql # not compatible
query III rowsort label-3257
SELECT * FROM tab0 AS cor0 WHERE NOT ( + ( - - col0 ) ) NOT BETWEEN - col1 * col0 * + + 53 AND + + 47 * - col2 * - CAST ( + col0 AS INTEGER ) * - 99 / + col2 - - col2
----

query I rowsort
SELECT DISTINCT + ( + ( ( + col2 ) ) ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3259
SELECT ALL 82 col1 FROM tab2 WHERE NULL NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3259
SELECT ALL 82 col1 FROM tab2 WHERE NULL NOT IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

query I rowsort
SELECT col2 + 23 * col2 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1128
2376
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT DISTINCT - CAST( - 34 AS SIGNED ) + - + 54 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-20

skipif mysql # not compatible
query I rowsort label-3262
SELECT DISTINCT - CAST ( - 34 AS INTEGER ) + - + 54 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3263
SELECT ALL 8, + CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to eccf7163f1d4d0bd912af77ca7117db5

skipif mysql # not compatible
query II rowsort label-3263
SELECT ALL 8, + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to eccf7163f1d4d0bd912af77ca7117db5

query I rowsort
SELECT 1 * - + col1 + + col2 AS col0 FROM tab0 AS cor0
----
-11
-34
98

query II rowsort
SELECT DISTINCT - col2, + col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 / + col0 - - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 84 * - col2 FROM tab1 AS cor0
----
-4956
-5712
-8064

query I rowsort
SELECT DISTINCT + col2 * + 85 AS col2 FROM tab1
----
5015
5780
8160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 + ( col1 ) col1 FROM tab1
----
-6
3
36

query I rowsort
SELECT ALL ( col2 ) * + ( + - col2 ) * + ( + ( + + col1 ) ) + + col0 AS col2 FROM tab1
----
-128973
-17320
-217237

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 IS NULL
----

query I rowsort
SELECT - + col2 + - - col2 + + - 55 FROM tab2 AS cor0
----
-55
-55
-55

query I rowsort
SELECT DISTINCT - 95 FROM tab0 cor0 WHERE NOT - col2 NOT IN ( col2, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT 21 * - 52 + + ( + COUNT( * ) ) + + ( 72 ) FROM tab2 cor0
----
-1017

skipif mysql # not compatible
query I rowsort label-3274
SELECT 21 * - 52 + + ( + COUNT ( * ) ) + + ( 72 ) FROM tab2 cor0
----
-1017

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT + COUNT( * ) FROM tab0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
3

skipif mysql # not compatible
query I rowsort label-3275
SELECT + COUNT ( * ) FROM tab0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
3

query I rowsort
SELECT ALL + 17 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query III rowsort
SELECT * FROM tab1 WHERE 61 = - + col0
----

query I rowsort
SELECT - col2 - - + 85 FROM tab1
----
-11
17
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT + - CAST( NULL AS SIGNED ) + - col1 * 56 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT + - CAST ( NULL AS INTEGER ) + - col1 * 56 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + col0 * 27 * - col2 * col0 FROM tab1 AS cor0
----
-11509340
-15203825
-6741741

query I rowsort
SELECT DISTINCT col1 + + 4 + + + col1 + - col1 - - 38 AS col1 FROM tab0 AS cor0
----
123
43
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3282
SELECT ( - 54 ) * col1 DIV col2 + - col1 + - col2 col2 FROM tab2 AS cor0
----
-187
-193
-220

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3282
SELECT ( - 54 ) * col1 / col2 + - col1 + - col2 col2 FROM tab2 AS cor0
----
-187
-193
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT ALL + COUNT( * ) + + 51 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL + COUNT ( * ) + + 51 FROM tab0 AS cor0
----
54

query I rowsort
SELECT - - 36 + + 98 + col0 * ( + col0 ) * col1 * ( - col2 ) FROM tab0 AS cor0
----
-1589356
-856441
-931357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3285
SELECT ALL CAST( + 38 AS SIGNED ) FROM tab0 AS cor0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL CAST ( + 38 AS INTEGER ) FROM tab0 AS cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT COUNT( DISTINCT - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3286
SELECT COUNT ( DISTINCT - col2 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL - 59 * + + ( 11 ) AS col2 FROM tab2
----
-649
-649
-649

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT + COUNT( * ) * + 17 AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3288
SELECT + COUNT ( * ) * + 17 AS col1 FROM tab1
----
51

query I rowsort
SELECT DISTINCT - 71 AS col2 FROM tab2
----
-71

query II rowsort
SELECT ALL + 55 AS col2, col0 AS col1 FROM tab1 WHERE NOT - col0 + + + col1 + col2 IS NOT NULL
----

query I rowsort
SELECT - 56 * 51 FROM tab1
----
-2856
-2856
-2856

query III rowsort
SELECT * FROM tab0 WHERE NOT 14 <= - 15 / 13 + col2
----
87
21
10

query II rowsort
SELECT 76, + col0 AS col0 FROM tab1
----
76
51
76
85
76
91

query I rowsort
SELECT DISTINCT - - 13 * - - col0 FROM tab2 AS cor0
----
598
832
975

onlyif mysql # DIV for integer division: 
query I rowsort label-3295
SELECT 85 DIV + + col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3295
SELECT 85 / + + col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3296
SELECT ALL 45 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL 45 / + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT MAX( ALL col2 ) + 56 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT MAX ( ALL col2 ) + 56 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT DISTINCT + + col1 AS col1, - col0 + col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT DISTINCT COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3299
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND 14 + - 77
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3301
SELECT ALL - 71 DIV - 45 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL - 71 / - 45 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT col1 + + 47 * + + ( col2 ) AS col1 FROM tab1 AS cor0
----
2778
3243
4526

query I rowsort
SELECT + + col2 * + 41 + + col2 AS col2 FROM tab0 cor0
----
1974
4158
420

query I rowsort
SELECT - col0 * - + col2 + + 29 FROM tab1 AS cor0
----
4925
5044
6217

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT DISTINCT + ( MIN( DISTINCT + 88 ) ) FROM tab1 cor0
----
88

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT + ( MIN ( DISTINCT + 88 ) ) FROM tab1 cor0
----
88

query I rowsort
SELECT col2 + - 11 * + col2 FROM tab1 cor0 WHERE + col2 + - col0 IS NOT NULL
----
-590
-680
-960

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3307
SELECT + col2 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT + col2 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - + 71 / + + col1 AS col2 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL SUM( DISTINCT + + col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL SUM ( DISTINCT + + col0 ) AS col1 FROM tab1
----
227

query I rowsort
SELECT ALL + col1 + - - col2 AS col2 FROM tab0
----
100
128
31

query II rowsort
SELECT col2 AS col1, col0 * + 69 + - col2 FROM tab1
----
59
5806
68
6211
96
3423

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3312
SELECT CAST( NULL AS SIGNED ) AS col0, - 88 + + - col2 + col1 AS col1 FROM tab2
----
NULL
-51
NULL
-60
NULL
-79

skipif mysql # not compatible
query II rowsort label-3312
SELECT CAST ( NULL AS INTEGER ) AS col0, - 88 + + - col2 + col1 AS col1 FROM tab2
----
NULL
-51
NULL
-60
NULL
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 col1 FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT DISTINCT - ( + MAX( ALL - 49 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
49

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT - ( + MAX ( ALL - 49 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3315
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * ) + - MAX( + ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + - MAX ( + ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT DISTINCT - MIN( ALL + + 35 ) + + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-26

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT - MIN ( ALL + + 35 ) + + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-26

query I rowsort
SELECT DISTINCT col2 * ( + - 30 ) AS col1 FROM tab1
----
-1770
-2040
-2880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT ALL - CAST( NULL AS SIGNED ) + 32 + col0 + ( col1 ) - + 53 * - col0 * + 39 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL - CAST ( NULL AS INTEGER ) + 32 + col0 + ( col1 ) - + 53 * - col0 * + 39 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3319
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) + + - ( + + ( - COUNT( * ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) + + - ( + + ( - COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * - ( - col2 ) * + + col0 FROM tab1 AS cor0 WHERE + 50 IS NOT NULL
----
-25075
-290836
-68544

query II rowsort
SELECT DISTINCT + ( + + col0 ) AS col0, col1 AS col2 FROM tab2 cor0
----
46
51
64
77
75
67

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 * + 84 * col1 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT + COUNT( - + 51 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3324
SELECT + COUNT ( - + 51 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - 85 AS col1 FROM tab2 AS cor0
----
85

query I rowsort
SELECT ALL - - 72 FROM tab2 cor0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3328
SELECT CAST( - col1 AS SIGNED ) * 14 AS col0, col0 * + col2 - 18 - - 82 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-196
NULL
-658
NULL
-70
NULL

skipif mysql # not compatible
query II rowsort label-3328
SELECT CAST ( - col1 AS INTEGER ) * 14 AS col0, col0 * + col2 - 18 - - 82 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-196
NULL
-658
NULL
-70
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3329
SELECT DISTINCT col2 * - CAST( col0 AS SIGNED ) FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT col2 * - CAST ( col0 AS INTEGER ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL SUM( DISTINCT - 73 ) * SUM( - col0 ) * + COUNT( * ) + - - COUNT( * ) col1 FROM tab1
----
49716

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3330
SELECT ALL SUM ( DISTINCT - 73 ) * SUM ( - col0 ) * + COUNT ( * ) + - - COUNT ( * ) col1 FROM tab1
----
49716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * - 12 col2 FROM tab2
----
-264
-264
-264

query I rowsort
SELECT - 62 * - col1 AS col2 FROM tab0 AS cor0 WHERE NOT - 52 IS NOT NULL
----

query I rowsort
SELECT ALL + + 70 * - - 64 + + ( - col2 ) FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3334
SELECT ALL col1 AS col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3334
SELECT ALL col1 AS col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( + 91 IS NOT NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 + + - col1 col2 FROM tab2
----
22
32
48

query I rowsort
SELECT ALL - - 81 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT ALL 83 + - col1 + + col0 / 28 + col0 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL 83 + - col1 + + col0 / 28 + col0 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col0 * + 84 * - 38 FROM tab0 cor0
----
-277704
-309624
-47880

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT ALL + MIN( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL + MIN ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT + - col0 * + col1 * col2 AS col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

query II rowsort
SELECT DISTINCT col2, - col0 AS col2 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT - COUNT( * ) * + + 34 AS col2 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-3344
SELECT - COUNT ( * ) * + + 34 AS col2 FROM tab1 AS cor0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT + MAX( ALL + ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3345
SELECT + MAX ( ALL + ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT - - col2 * + col2 + - 22 AS col2 FROM tab0 AS cor0
----
2187
78
9779

query I rowsort
SELECT ALL + col1 + - 38 + col0 AS col2 FROM tab2 AS cor0
----
103
104
59

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT ( + col0 ) + + 68 DIV + col2 AS col1 FROM tab0 cor0
----
16
93
97

skipif mysql # not compatible
query I rowsort label-3349
SELECT ( + col0 ) + + 68 / + col2 AS col1 FROM tab0 cor0
----
16
93
97

query I rowsort
SELECT - col2 + + 24 + - 1 AS col2 FROM tab2
----
-17
-35
0

query III rowsort
SELECT * FROM tab0 WHERE + + 36 * + col0 <= NULL
----

query I rowsort
SELECT DISTINCT + 30 * + 91 FROM tab2
----
2730

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE - col1 > NULL
----

query I rowsort
SELECT DISTINCT + 98 + col1 FROM tab0
----
119
179
99

query I rowsort
SELECT DISTINCT - 65 + - 40 AS col0 FROM tab2 AS cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL - COUNT( DISTINCT + 78 ) - COUNT( * ) col0 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3356
SELECT ALL - COUNT ( DISTINCT + 78 ) - COUNT ( * ) col0 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT ALL + - 12 FROM tab1 AS cor0 WHERE col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT - - SUM( ALL + - 3 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3358
SELECT - - SUM ( ALL + - 3 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-27

query I rowsort
SELECT + col2 - + - 19 FROM tab0
----
118
29
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col1 col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query II rowsort
SELECT DISTINCT + - col0, 49 AS col0 FROM tab2 AS cor0
----
-46
49
-64
49
-75
49

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 25 BETWEEN ( + 53 / + - col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 - col0 + - col1 * + 90 >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3365
SELECT col0 * - - 72, col0 DIV + col0 + col0 AS col1 FROM tab1
----
3672
52
6120
86
6552
92

skipif mysql # not compatible
query II rowsort label-3365
SELECT col0 * - - 72, col0 / + col0 + col0 AS col1 FROM tab1
----
3672
52
6120
86
6552
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT COUNT( * ) * - SUM( ALL col0 ) FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-3366
SELECT COUNT ( * ) * - SUM ( ALL col0 ) FROM tab2
----
-555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3367
SELECT DISTINCT - 37 * + CAST( + - col2 AS SIGNED ) FROM tab2
----
1480
2146
851

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT - 37 * + CAST ( + - col2 AS INTEGER ) FROM tab2
----
1480
2146
851

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT DISTINCT + MIN( - 53 ) FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT + MIN ( - 53 ) FROM tab2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3369
SELECT - - CAST( - 85 AS SIGNED ) FROM tab0 cor0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-3369
SELECT - - CAST ( - 85 AS INTEGER ) FROM tab0 cor0
----
-85
-85
-85

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 * col1 - col0 * - col1 * ( - ( - 29 ) ) >= col0 / col0 + + col2 + col1 / + 88 + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / - + 28 * - col2 NOT BETWEEN + 83 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3372
SELECT DISTINCT + 54 DIV + col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT + 54 / + col2 FROM tab0
----
0
1
5

query I rowsort
SELECT + 1 + 10 AS col1 FROM tab1
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3374
SELECT DISTINCT + col0 * - - 77 + - - col1 * + CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3374
SELECT DISTINCT + col0 * - - 77 + - - col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL < + 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT ALL + - 17 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL + - 17 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2, 22 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 54 = - 63
----

query I rowsort
SELECT 33 FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3382
SELECT ALL + ( col0 ) * + 81 + + col2 + + - col0 * - col0 + + 46 DIV + col1 FROM tab2 cor0
----
11758
5865
9320

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL + ( col0 ) * + 81 + + col2 + + - col0 * - col0 + + 46 / + col1 FROM tab2 cor0
----
11758
5865
9320

query I rowsort
SELECT ALL - col1 * - - col1 FROM tab2 cor0
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT 99 * + 85 * - col1 AS col1 FROM tab0 WHERE NOT ( + col0 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE - col2 * - col2 NOT BETWEEN col0 + col1 * + col0 * - col1 AND NULL
----

query II rowsort
SELECT col0, col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3387
SELECT ALL CAST( - + col1 AS SIGNED ) DIV - - 16 - col1 AS col0 FROM tab0
----
-1
-22
-86

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL CAST ( - + col1 AS INTEGER ) / - - 16 - col1 AS col0 FROM tab0
----
-1
-22
-86

query I rowsort
SELECT DISTINCT 14 + + - 54 AS col0 FROM tab2
----
-40

query II rowsort
SELECT 82 - col1 AS col1, col0 * - col2 + - col2 FROM tab2
----
15
-4408
31
-1081
5
-2600

query I rowsort
SELECT - col2 - - 15 FROM tab1
----
-44
-53
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3391
SELECT - CAST( NULL AS SIGNED ) - + CAST( + col2 AS SIGNED ) + - + col0 * - col0 / - col1 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3391
SELECT - CAST ( NULL AS INTEGER ) - + CAST ( + col2 AS INTEGER ) + - + col0 * - col0 / - col1 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL - 93 + + COUNT( * ) * - + ( - MIN( - 9 ) ) FROM tab0 cor0
----
-120

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL - 93 + + COUNT ( * ) * - + ( - MIN ( - 9 ) ) FROM tab0 cor0
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3393
SELECT DISTINCT + col0 - col2 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT + col0 - col2 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3394
SELECT + COUNT( * ) + + 94 - + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3394
SELECT + COUNT ( * ) + + 94 - + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT ALL MIN( + col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL MIN ( + col1 ) AS col2 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT MAX( - + col2 ) FROM tab1 AS cor0 WHERE NOT 80 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3396
SELECT MAX ( - + col2 ) FROM tab1 AS cor0 WHERE NOT 80 = NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3397
SELECT col0 DIV + + 3 AS col1 FROM tab2 AS cor0
----
15
21
25

skipif mysql # not compatible
query I rowsort label-3397
SELECT col0 / + + 3 AS col1 FROM tab2 AS cor0
----
15
21
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT DISTINCT ( - MAX( - col0 ) ) * + 14 FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT ( - MAX ( - col0 ) ) * + 14 FROM tab0 AS cor0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT ALL + MIN( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL + MIN ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-3400
SELECT COUNT( * ), + 58 AS col2 FROM tab2
----
3
58

skipif mysql # not compatible
query II rowsort label-3400
SELECT COUNT ( * ), + 58 AS col2 FROM tab2
----
3
58

query I rowsort
SELECT - col0 * - 25 FROM tab0
----
2175
2425
375

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT ALL + COUNT( + + 32 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL + COUNT ( + + 32 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT DISTINCT col1 AS col1, + 18 FROM tab1
----
14
18
47
18
5
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT - - COUNT( * ) AS col0 FROM tab1 WHERE NOT + col0 + - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3404
SELECT - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col0 + - col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL SUM( - 34 ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL SUM ( - 34 ) FROM tab0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT ALL - - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL - - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT + COUNT( * ) + - - ( - COUNT( * ) ) + + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT + COUNT ( * ) + - - ( - COUNT ( * ) ) + + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT + 91 * - 10 - 98 - + col0 AS col0 FROM tab0 WHERE + - ( - col1 ) IS NULL
----

query I rowsort
SELECT ALL 78 + col2 AS col0 FROM tab1
----
137
146
174

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT - - ( + COUNT( ALL 62 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3410
SELECT - - ( + COUNT ( ALL 62 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE - col0 > NULL
----

query I rowsort
SELECT 99 - 27 FROM tab0 AS cor0
----
72
72
72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 74 / + col1 > NULL
----

query I rowsort
SELECT ALL col0 + + ( 21 ) * col2 AS col2 FROM tab2 AS cor0
----
1293
529
904

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL COUNT( * ) * - - 84 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL COUNT ( * ) * - - 84 FROM tab1 AS cor0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT + - 86 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-3416
SELECT + - 86 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3417
SELECT 69 + - - CAST( - 3 AS SIGNED ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3417
SELECT 69 + - - CAST ( - 3 AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
78

query I rowsort
SELECT ALL + 97 * col2 FROM tab1 AS cor0
----
5723
6596
9312

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= 51
----

query I rowsort
SELECT - + col0 + - 61 + - col0 FROM tab2 AS cor0
----
-153
-189
-211

query I rowsort
SELECT 50 + - col1 FROM tab2 cor0
----
-1
-17
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3422
SELECT DISTINCT - - col2 * - CAST( NULL AS SIGNED ) + - 61 * - 88 - - col2 * - col0 * + - col2 + + - 98 * - 96 * - col0 * 11 / - col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT - - col2 * - CAST ( NULL AS INTEGER ) + - 61 * - 88 - - col2 * - col0 * + - col2 + + - 98 * - 96 * - col0 * 11 / - col1 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-3423
SELECT - 91, - 87 AS col2, - - MAX( - - col1 ) AS col1 FROM tab1 WHERE ( NOT col2 <> NULL )
----
-91
-87
NULL

skipif mysql # not compatible
query III rowsort label-3423
SELECT - 91, - 87 AS col2, - - MAX ( - - col1 ) AS col1 FROM tab1 WHERE ( NOT col2 <> NULL )
----
-91
-87
NULL

query I rowsort
SELECT ALL + + col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, col2 AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT MIN( ALL + + ( col1 ) ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3426
SELECT MIN ( ALL + + ( col1 ) ) AS col1 FROM tab1
----
5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT DISTINCT COUNT( col1 ) + + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT COUNT ( col1 ) + + COUNT ( * ) AS col1 FROM tab2
----
6

query I rowsort
SELECT - col1 * - + 49 AS col1 FROM tab2
----
2499
3283
3773

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT ALL + - ( 19 ) + - COUNT( * ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL + - ( 19 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-3431
SELECT - - col0 DIV + col1 + + + ( col2 ) col0 FROM tab1 AS cor0
----
69
76
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3431
SELECT - - col0 / + col1 + + + ( col2 ) col0 FROM tab1 AS cor0
----
69
76
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3432
SELECT ( - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3432
SELECT ( - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + ( 60 ) FROM tab1 cor0
----
60
60
60

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 88 NOT BETWEEN - - col0 / - - col2 + + col2 * - - 56 AND - col0 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL ( MIN( ALL 17 ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3435
SELECT ALL ( MIN ( ALL 17 ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3436
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT DISTINCT + COUNT( + col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT + COUNT ( + col2 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3438
SELECT DISTINCT - COUNT( * ) DIV + 75 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT - COUNT ( * ) / + 75 AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT + col1, col1 * - - col2 AS col2 FROM tab0 AS cor0
----
1
99
21
210
81
3807

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3440
SELECT - col2, CAST( col0 AS SIGNED ) - - col0 AS col0 FROM tab0 AS cor0
----
-10
174
-47
30
-99
194

skipif mysql # not compatible
query II rowsort label-3440
SELECT - col2, CAST ( col0 AS INTEGER ) - - col0 AS col0 FROM tab0 AS cor0
----
-10
174
-47
30
-99
194

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT DISTINCT - MAX( ALL + 91 ) AS col2 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT - MAX ( ALL + 91 ) AS col2 FROM tab0
----
-91

query I rowsort
SELECT DISTINCT + 19 + - 83 AS col1 FROM tab2
----
-64

query I rowsort
SELECT + ( + col2 ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col2 + - - col1
----

query I rowsort
SELECT DISTINCT + 68 AS col0 FROM tab1
----
68

query I rowsort
SELECT ALL ( - 10 ) FROM tab0
----
-10
-10
-10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 61 + col2 * 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT SUM( DISTINCT 55 ) + COUNT( * ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3448
SELECT SUM ( DISTINCT 55 ) + COUNT ( * ) FROM tab1 AS cor0
----
58

query I rowsort
SELECT ALL 64 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 * - ( + 38 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 83 * col2 + + - 13 FROM tab0 cor0
----
-3914
-8230
-843

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3452
SELECT ALL * FROM tab0 AS cor0 WHERE + 15 * col1 BETWEEN - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3452
SELECT ALL * FROM tab0 AS cor0 WHERE + 15 * col1 BETWEEN - - CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col2 * - + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT - - ( + + SUM( ALL - + col1 ) ) * - - MAX( + - col0 ) col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 / - 16 + - - 19 / - + col2 AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3454
SELECT - - ( + + SUM ( ALL - + col1 ) ) * - - MAX ( + - col0 ) col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 / - 16 + - - 19 / - + col2 AND NULL
----
NULL

query I rowsort
SELECT col0 * - ( - + 13 ) * + + col2 AS col1 FROM tab2 AS cor0
----
13754
33280
56550

query I rowsort
SELECT + ( col1 ) - + - col2 / + col1 FROM tab1 WHERE NULL > + 9
----

query I rowsort
SELECT col1 * - ( - 58 ) - col0 AS col2 FROM tab0
----
-39
1131
4683

query I rowsort
SELECT - 75 - + - col0 AS col2 FROM tab1
----
-24
10
16

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3459
SELECT + CAST( NULL AS SIGNED ) - col2 + + 38 + CAST( col1 AS SIGNED ) - + 59 * - col1 * + col0 / + col0 FROM tab2 WHERE NULL = + 63 + - + CAST( + ( - + ( 71 ) ) AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-3459
SELECT + CAST ( NULL AS INTEGER ) - col2 + + 38 + CAST ( col1 AS INTEGER ) - + 59 * - col1 * + col0 / + col0 FROM tab2 WHERE NULL = + 63 + - + CAST ( + ( - + ( 71 ) ) AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3460
SELECT ALL * FROM tab2 WHERE + col2 - + CAST( NULL AS SIGNED ) + + ( - col2 ) * + 78 IS NOT NULL AND NULL IS NULL
----

skipif mysql # not compatible
query III rowsort label-3460
SELECT ALL * FROM tab2 WHERE + col2 - + CAST ( NULL AS INTEGER ) + + ( - col2 ) * + 78 IS NOT NULL AND NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT 57 + + 40 * - COUNT( * ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-3461
SELECT 57 + + 40 * - COUNT ( * ) FROM tab0
----
-63

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - + col0 IS NOT NULL )
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - col0
----

query I rowsort
SELECT + 56 * + - col2 AS col1 FROM tab1 cor0
----
-3304
-3808
-5376

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT CAST( + + CAST( - + col0 AS SIGNED ) AS SIGNED ) * + col0 AS col0 FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-3467
SELECT CAST ( + + CAST ( - + col0 AS INTEGER ) AS INTEGER ) * + col0 AS col0 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT col2 * - - 56 AS col2 FROM tab0
----
2632
5544
560

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT + col0 NOT BETWEEN - col1 AND col0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 * - 18 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9cc77a5f1bc643a947b8c416f454170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3471
SELECT DISTINCT col1 * - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 + + col2 IS NULL
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT col1 * - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 + + col2 IS NULL
----
-210
-3807
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3472
SELECT DISTINCT + 45 DIV + MIN( ALL col1 ) FROM tab0 cor0
----
45

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT + 45 / + MIN ( ALL col1 ) FROM tab0 cor0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3473
SELECT DISTINCT - 33, - COUNT( * ) AS col2 FROM tab2 cor0
----
-33
-3

skipif mysql # not compatible
query II rowsort label-3473
SELECT DISTINCT - 33, - COUNT ( * ) AS col2 FROM tab2 cor0
----
-33
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IN ( + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IN ( + - col2 )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 18 * ( - 46 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3476
SELECT + COUNT( * ), 21 * - 77 AS col0 FROM tab0
----
3
-1617

skipif mysql # not compatible
query II rowsort label-3476
SELECT + COUNT ( * ), 21 * - 77 AS col0 FROM tab0
----
3
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT + - COUNT( * ) FROM tab2 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3477
SELECT + - COUNT ( * ) FROM tab2 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT ALL - 58 * - + col2 * + 66 FROM tab1
----
225852
260304
367488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3479
SELECT ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE col2 * + 27 - + 43 NOT BETWEEN ( - - col2 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3479
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE col2 * + 27 - + 43 NOT BETWEEN ( - - col2 ) AND NULL
----

query I rowsort
SELECT ALL - + 85 + 47 AS col2 FROM tab1 AS cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3481
SELECT DISTINCT - 55, COUNT( * ) AS col2 FROM tab0 cor0
----
-55
3

skipif mysql # not compatible
query II rowsort label-3481
SELECT DISTINCT - 55, COUNT ( * ) AS col2 FROM tab0 cor0
----
-55
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3482
SELECT - + ( CAST( NULL AS SIGNED ) ) / - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3482
SELECT - + ( CAST ( NULL AS INTEGER ) ) / - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 4 AS col0 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT + ( - 79 ) - - col1 + - col0 * - col0 * - + col1 * col0 FROM tab2 AS cor0
----
-20185090
-28265637
-4964164

query I rowsort
SELECT ALL - col2 * col1 + + - 94 FROM tab2 AS cor0 WHERE + 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT DISTINCT + 1 + + - COUNT( * ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT + 1 + + - COUNT ( * ) FROM tab2 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT + SUM( col0 ) + - MIN( - 82 ) AS col1 FROM tab1 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-3487
SELECT + SUM ( col0 ) + - MIN ( - 82 ) AS col1 FROM tab1 AS cor0
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL + + 47 - - COUNT( + 91 ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL + + 47 - - COUNT ( + 91 ) FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT COUNT( + 29 ) + - - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3489
SELECT COUNT ( + 29 ) + - - COUNT ( * ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 90 * + 57 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3491
SELECT DISTINCT + - CAST( col2 AS SIGNED ) - + 58 FROM tab0 AS cor0
----
-105
-157
-68

skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) - + 58 FROM tab0 AS cor0
----
-105
-157
-68

query I rowsort
SELECT ALL + - col0 + 54 * col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
1196
2096
3057

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 - col1 <> + ( + - 42 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3494
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) - 80 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) - 80 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + col1 + + - col1 * col1 FROM tab2
----
-2550
-4422
-5852

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN col1 * col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3497
SELECT ALL 16 - + CAST( - 30 AS SIGNED ) * col1 AS col2 FROM tab2
----
1546
2026
2326

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL 16 - + CAST ( - 30 AS INTEGER ) * col1 AS col2 FROM tab2
----
1546
2026
2326

query II rowsort
SELECT + 91 AS col2, - col1 * - col2 + + - col2 AS col1 FROM tab0 AS cor0
----
91
0
91
200
91
3760

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 IS NOT NULL AND NOT ( NULL ) NOT BETWEEN - 63 / - col2 AND ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3500
SELECT + CAST( + 46 AS SIGNED ) + - - col2 FROM tab0 AS cor0 WHERE NOT + col0 - col0 - - col2 NOT BETWEEN - - col2 AND - - 31
----
56

skipif mysql # not compatible
query I rowsort label-3500
SELECT + CAST ( + 46 AS INTEGER ) + - - col2 FROM tab0 AS cor0 WHERE NOT + col0 - col0 - - col2 NOT BETWEEN - - col2 AND - - 31
----
56

query I rowsort
SELECT ALL 70 * 94 FROM tab2
----
6580
6580
6580

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT DISTINCT MAX( - + col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT MAX ( - + col0 ) FROM tab0
----
-15

query I rowsort
SELECT DISTINCT + + 84 AS col2 FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT - + 92 + - 88 + - COUNT( * ) * + 17 FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-3504
SELECT - + 92 + - 88 + - COUNT ( * ) * + 17 FROM tab1 AS cor0
----
-231

query I rowsort
SELECT col0 * + - 91 + + 90 + - col1 AS col1 FROM tab2 AS cor0
----
-4147
-5811
-6802

onlyif mysql # DIV for integer division: 
query I rowsort label-3506
SELECT col2 DIV + + 58 + - 51 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-3506
SELECT col2 / + + 58 + - 51 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-50
-50
-50

query II rowsort
SELECT ALL col2 * - col2 AS col0, 66 FROM tab0 cor0
----
-100
66
-2209
66
-9801
66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - 27 <= ( NULL )
----

query I rowsort
SELECT DISTINCT - + 46 FROM tab2 cor0
----
-46

query III rowsort
SELECT * FROM tab0 WHERE NULL = - 31
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3511
SELECT DISTINCT * FROM tab0 WHERE + + col0 / col2 BETWEEN NULL AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3511
SELECT DISTINCT * FROM tab0 WHERE + + col0 / col2 BETWEEN NULL AND - - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT col1 AS col2, + 27 AS col2 FROM tab0
----
1
27
21
27
81
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3513
SELECT DISTINCT - 92 * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3513
SELECT DISTINCT - 92 * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3514
SELECT + col0 DIV + - col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3514
SELECT + col0 / + - col0 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3515
SELECT ALL - 99 DIV - ( 23 ) AS col2 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL - 99 / - ( 23 ) AS col2 FROM tab2
----
4
4
4

query II rowsort
SELECT col0 AS col2, + col2 + - - col2 AS col1 FROM tab1
----
51
192
85
118
91
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT DISTINCT + COUNT( * ) + + - 85 AS col1 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT + COUNT ( * ) + + - 85 AS col1 FROM tab0
----
-82

query I rowsort
SELECT + - ( + + 73 ) FROM tab0 AS cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT DISTINCT SUM( ALL - - col0 ) + - 75 * + COUNT( * ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT SUM ( ALL - - col0 ) + - 75 * + COUNT ( * ) FROM tab0 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ALL - 3 * - + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL - 3 * - + COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT ( - 34 ) + + col1 - + col2 + + + ( - col1 ) FROM tab2
----
-57
-74
-92

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + 92 ) = NULL
----

query I rowsort
SELECT - + ( - - col0 ) FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - 64 + - col0 AS col0 FROM tab0 AS cor0
----
-151
-161
-79

query I rowsort
SELECT DISTINCT - col0 - + col1 + - - col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col1 col2 FROM tab1 AS cor0
----
-110
-115
-64

query II rowsort
SELECT ALL + - col0 AS col2, col1 * + col1 FROM tab0 AS cor0
----
-15
6561
-87
441
-97
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) BETWEEN NULL AND + col2
----

query I rowsort
SELECT + - 51 + + col1 AS col2 FROM tab0 WHERE NOT ( + col0 ) NOT BETWEEN + 67 * + 53 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 47 BETWEEN + col1 AND + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3531
SELECT + COUNT( * ) * + + CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3531
SELECT + COUNT ( * ) * + + CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT DISTINCT ( ( + MIN( ALL + + 27 ) ) ) AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT ( ( + MIN ( ALL + + 27 ) ) ) AS col0 FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT COUNT( ALL + 52 ) * + 9 FROM tab1, tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3533
SELECT COUNT ( ALL + 52 ) * + 9 FROM tab1, tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT - COUNT( - col2 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3534
SELECT - COUNT ( - col2 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 88 AS col1 FROM tab2 WHERE NOT + col2 * - col2 * col0 < - 2 + + + col2 + 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT ALL + + MIN( + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL + + MIN ( + col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col2 FROM tab0
----
53

query II rowsort
SELECT DISTINCT + col2 AS col1, 83 AS col1 FROM tab2 AS cor0
----
23
83
40
83
58
83

query I rowsort
SELECT - 33 * col0 FROM tab0 AS cor0
----
-2871
-3201
-495

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( 39 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3542
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) * - 18 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - 18 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT 2 AS col0, 72 FROM tab0 AS cor0
----
2
72
2
72
2
72

query II rowsort
SELECT DISTINCT - - col0 * + col1 + - - col1 * + col1 AS col2, - col1 AS col1 FROM tab0 AS cor0
----
2268
-21
7776
-81
98
-1

query I rowsort
SELECT DISTINCT + - col0 * - ( - + 24 ) FROM tab2 AS cor0
----
-1104
-1536
-1800

query I rowsort
SELECT 99 + 73 + - col0 + - col2 * 0 + - 16 FROM tab1
----
105
65
71

query I rowsort
SELECT ALL col1 * - 66 AS col1 FROM tab2
----
-3366
-4422
-5082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3548
SELECT + AVG ( ALL + col2 ) + MIN( DISTINCT - + col1 ) AS col2 FROM tab0 WHERE + CAST( - - col2 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT + AVG ( ALL + col2 ) + MIN ( DISTINCT - + col1 ) AS col2 FROM tab0 WHERE + CAST ( - - col2 AS INTEGER ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3549
SELECT ALL - ( 42 ) DIV + 58 * - 66 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL - ( 42 ) / + 58 * - 66 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3550
SELECT ALL CAST( NULL AS SIGNED ) / + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL CAST ( NULL AS INTEGER ) / + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab0 WHERE + col1 * 86 IS NOT NULL
----
22

query I rowsort
SELECT ALL - col1 + - + col0 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT 36 * - - col1 * + - ( - - col1 ) + + 79 * - + 16 FROM tab0
----
-1300
-17140
-237460

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT MAX( + - col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3554
SELECT MAX ( + - col0 ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT 58 FROM tab1 cor0
----
58
58
58

query I rowsort
SELECT ALL - + ( - col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3557
SELECT DISTINCT 72 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT 72 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - col0 - + col1 + + col0 AS col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3559
SELECT - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT DISTINCT COUNT( * ) + 7 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT COUNT ( * ) + 7 FROM tab0
----
10

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT - + 67 + - - col0 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3562
SELECT - CAST( NULL AS SIGNED ) / 42 + + col0 AS col1, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3562
SELECT - CAST ( NULL AS INTEGER ) / 42 + + col0 AS col1, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, 17 FROM tab1 cor0
----
-59
17
-68
17
-96
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT MAX( ALL 48 ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3564
SELECT MAX ( ALL 48 ) FROM tab1 AS cor0
----
48

query I rowsort
SELECT ALL col2 * + 48 FROM tab0 cor0
----
2256
4752
480

query I rowsort
SELECT - + col0 * + + col0 AS col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3567
SELECT DISTINCT + COUNT( * ) DIV - ( + MIN( ALL + + ( + + col0 ) ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT + COUNT ( * ) / - ( + MIN ( ALL + + ( + + col0 ) ) ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 61 BETWEEN col0 AND NULL
----
87
21
10
97
1
99

query II rowsort
SELECT ALL - 28, + 0 + - + col1 AS col2 FROM tab0
----
-28
-1
-28
-21
-28
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT + 12 DIV + col1 FROM tab0
----
0
0
12

skipif mysql # not compatible
query I rowsort label-3570
SELECT + 12 / + col1 FROM tab0
----
0
0
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, 91 FROM tab1
----
-59
91
-68
91
-96
91

query I rowsort
SELECT + 43 * + + col1 FROM tab1
----
2021
215
602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, + col2 + + 35 + - col2 AS col0 FROM tab0
----
1
35
21
35
81
35

query I rowsort
SELECT DISTINCT - col2 / + - 86 * + ( - col2 ) * + col1 + - - col1 + + - 80 * 21 + - col2 * col1 FROM tab2 cor0 WHERE NOT NULL < 75
----

query I rowsort
SELECT - - col2 * + 8 AS col1 FROM tab2 AS cor0
----
184
320
464

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 32 * - col1 + - col2 FROM tab0
----
-131
-2639
-682

onlyif mysql # DIV for integer division: 
query I rowsort label-3578
SELECT col0 DIV + col2 + + col2 + + + col1 AS col2 FROM tab0
----
100
128
39

skipif mysql # not compatible
query I rowsort label-3578
SELECT col0 / + col2 + + col2 + + + col1 AS col2 FROM tab0
----
100
128
39

query II rowsort
SELECT DISTINCT + 77 * - col1, + col1 + 95 AS col1 FROM tab1
----
-1078
109
-3619
142
-385
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT - ( - COUNT( * ) ) + 75 FROM tab0 cor0
----
78

skipif mysql # not compatible
query I rowsort label-3580
SELECT - ( - COUNT ( * ) ) + 75 FROM tab0 cor0
----
78

query II rowsort
SELECT ALL + ( col0 ) AS col2, col1 * col0 FROM tab2 AS cor0
----
46
2346
64
4928
75
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL - - 21 * + - 99 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-2076

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL - - 21 * + - 99 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-2076

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3583
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 11 >= + CAST( NULL AS SIGNED ) + 28
----

skipif mysql # not compatible
query III rowsort label-3583
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 11 >= + CAST ( NULL AS INTEGER ) + 28
----

query I rowsort
SELECT ALL 96 * col0 FROM tab0
----
1440
8352
9312

onlyif mysql # DIV for integer division: 
query I rowsort label-3585
SELECT DISTINCT 83 + col2 DIV + col2 + + - col0 + col1 FROM tab2
----
76
89
97

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT 83 + col2 / + col2 + + - col0 + col1 FROM tab2
----
76
89
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3586
SELECT 68 DIV + - col1 FROM tab1
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-3586
SELECT 68 / + - col1 FROM tab1
----
-1
-13
-4

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + ( - + ( - col2 ) ) * + col1 + - col2 )
----

query II rowsort
SELECT ALL col2 + - - ( col0 ) AS col0, - 4 AS col1 FROM tab0
----
196
-4
62
-4
97
-4

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 IN ( col0 * - 13 + - + col1 + + + 2, + col1 * - col0 * 32 - - - col1, 36 * - 7 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT - 83 - + - SUM( DISTINCT col1 ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-3590
SELECT - 83 - + - SUM ( DISTINCT col1 ) FROM tab1
----
-17

query III rowsort
SELECT * FROM tab2 WHERE + col2 + col0 + col2 * + 71 <= - + ( - 20 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3592
SELECT - 79 AS col0 FROM tab1 AS cor0 WHERE col0 <> - - col2 * - CAST( - col0 AS SIGNED ) * - col1
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-3592
SELECT - 79 AS col0 FROM tab1 AS cor0 WHERE col0 <> - - col2 * - CAST ( - col0 AS INTEGER ) * - col1
----
-79
-79
-79

query I rowsort
SELECT ALL col1 + 18 FROM tab1 cor0
----
23
32
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT COUNT( * ) AS col0 FROM tab2 WHERE - 81 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3594
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE - 81 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT + 82 * SUM( + col2 * + col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT + 82 * SUM ( + col2 * + col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 37 BETWEEN 8 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 - + col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
17
23
24

query I rowsort
SELECT DISTINCT - 55 * + col2 AS col2 FROM tab2
----
-1265
-2200
-3190

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT + COUNT( * ) col1 FROM tab1 WHERE NOT - col0 IN ( + 54 + - 19 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3599
SELECT + COUNT ( * ) col1 FROM tab1 WHERE NOT - col0 IN ( + 54 + - 19 )
----
3

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT ALL MAX( DISTINCT 26 ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL MAX ( DISTINCT 26 ) FROM tab1
----
26

query I rowsort
SELECT col0 * - col0 + + 62 FROM tab2
----
-2054
-4034
-5563

query I rowsort
SELECT ALL - AVG ( ALL - col1 ) AS col2 FROM tab1 WHERE NOT 68 = NULL
----
NULL

query I rowsort
SELECT ALL - 94 / col1 AS col2 FROM tab1 WHERE NOT 54 IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE 39 = - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 71 - - 10 IS NULL
----

query I rowsort
SELECT DISTINCT 88 + col1 AS col1 FROM tab1
----
102
135
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3608
SELECT ALL * FROM tab2 WHERE NULL BETWEEN - 14 AND ( col1 + col0 * CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3608
SELECT ALL * FROM tab2 WHERE NULL BETWEEN - 14 AND ( col1 + col0 * CAST ( + col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3609
SELECT SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3609
SELECT SUM ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT SUM( DISTINCT + col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3610
SELECT SUM ( DISTINCT + col2 ) AS col2 FROM tab2
----
121

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 8 + - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( col0 ) + col2 >= ( col0 * 68 + 55 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT + 57 - MAX( col2 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3613
SELECT + 57 - MAX ( col2 ) FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3614
SELECT - 13 - - ( 28 ) DIV + col2 FROM tab0
----
-11
-13
-13

skipif mysql # not compatible
query I rowsort label-3614
SELECT - 13 - - ( 28 ) / + col2 FROM tab0
----
-11
-13
-13

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 * + 78 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT + COUNT( + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3617
SELECT + COUNT ( + col0 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT DISTINCT + SUM( DISTINCT col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT + SUM ( DISTINCT col1 ) FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT MIN( DISTINCT 14 ) AS col1 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-3619
SELECT MIN ( DISTINCT 14 ) AS col1 FROM tab1
----
14

query I rowsort
SELECT ALL col0 * + col2 + - col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + col0 + + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
108
96
98

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col2 ) = + 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( 60 ) + - col0 FROM tab2 AS cor0
----
-106
-124
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT ALL ( + COUNT( * ) ) * 0 col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3624
SELECT ALL ( + COUNT ( * ) ) * 0 col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT ALL SUM( DISTINCT + ( - 87 ) ) AS col1 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL SUM ( DISTINCT + ( - 87 ) ) AS col1 FROM tab0 AS cor0
----
-87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * - 6 NOT BETWEEN NULL AND - 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT DISTINCT COUNT( DISTINCT - col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT COUNT ( DISTINCT - col2 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> 49 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT DISTINCT ( 90 ) + COUNT( * ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT ( 90 ) + COUNT ( * ) FROM tab1
----
93

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE ( - col2 * col0 ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT col1 * - col1 FROM tab2 WHERE - col2 <> ( 29 * col1 )
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3633
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 5 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 5 AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 68 * - 60 NOT BETWEEN NULL AND + col1 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3635
SELECT ALL + - col0 + col1 DIV 27 FROM tab2 AS cor0
----
-45
-62
-73

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL + - col0 + col1 / 27 FROM tab2 AS cor0
----
-45
-62
-73

query I rowsort
SELECT 80 * + col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 53 + - col2 )
----

query I rowsort
SELECT DISTINCT 94 + - 49 AS col2 FROM tab1 AS cor0
----
45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 > ( 19 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - col1 ) FROM tab2 AS cor0 WHERE 32 NOT IN ( - 68 )
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3640
SELECT ALL + - CAST( NULL AS SIGNED ) + 7 * - 57 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL + - CAST ( NULL AS INTEGER ) + 7 * - 57 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3641
SELECT + col1 + - CAST( ( CAST( 66 AS SIGNED ) ) AS SIGNED ) FROM tab2 AS cor0
----
-15
1
11

skipif mysql # not compatible
query I rowsort label-3641
SELECT + col1 + - CAST ( ( CAST ( 66 AS INTEGER ) ) AS INTEGER ) FROM tab2 AS cor0
----
-15
1
11

query I rowsort
SELECT + col1 + 95 AS col0 FROM tab2 AS cor0
----
146
162
172

onlyif mysql # DIV for integer division: 
query I rowsort label-3643
SELECT 22 * col0 + 11 DIV - col1 AS col0 FROM tab0 AS cor0
----
1914
2123
330

skipif mysql # not compatible
query I rowsort label-3643
SELECT 22 * col0 + 11 / - col1 AS col0 FROM tab0 AS cor0
----
1914
2123
330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( - 61 )
----

skipif mysql # not compatible
query I rowsort label-3644
SELECT CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( - 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL + 78 + ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + 42 ) + + col1 * 34 AND ( NULL )
----
78

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL + 78 + ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + 42 ) + + col1 * 34 AND ( NULL )
----
78

query I rowsort
SELECT ALL - - ( 99 ) FROM tab1 AS cor0
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3647
SELECT + CAST( + 51 AS SIGNED ) + + col0 * + col1 AS col2 FROM tab2
----
2397
4979
5076

skipif mysql # not compatible
query I rowsort label-3647
SELECT + CAST ( + 51 AS INTEGER ) + + col0 * + col1 AS col2 FROM tab2
----
2397
4979
5076

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 > + 82 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 74 col0 FROM tab0
----
161
171
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL COUNT( * ) * - 50 AS col1 FROM tab2 WHERE NOT NULL IN ( col0 * ( 89 * col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL COUNT ( * ) * - 50 AS col1 FROM tab2 WHERE NOT NULL IN ( col0 * ( 89 * col0 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT + 0 * + MAX( 10 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3651
SELECT + 0 * + MAX ( 10 ) AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( col0 * col0 ) <= + 96
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3653
SELECT ALL - 52 DIV - 64 * - 9 + - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL - 52 / - 64 * - 9 + - COUNT ( * ) FROM tab1
----
-3

query I rowsort
SELECT ALL 66 + col1 FROM tab0
----
147
67
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3655
SELECT SUM( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 20 < NULL AND NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 99 - - col2 AS col1 FROM tab1 AS cor0
----
-3
-31
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT DISTINCT - 39 - + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT - 39 - + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-42

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT + COUNT( * ) / + MAX( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 22 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3660
SELECT + COUNT ( * ) / + MAX ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 22 AND NULL
----
NULL

query II rowsort
SELECT - + col1 AS col2, - col2 AS col1 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query II rowsort
SELECT col2 AS col2, + 84 * - - 4 FROM tab0 cor0
----
10
336
47
336
99
336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT + - ( CAST( - - col1 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3663
SELECT + - ( CAST ( - - col1 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE - col2 + + 49 + col1 * + col2 BETWEEN + col1 AND + col1 + col0
----
1

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 + + 49 + col1 * + col2 BETWEEN + col1 AND + col1 + col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3665
SELECT ALL * FROM tab0 cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3665
SELECT ALL * FROM tab0 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT - + MAX( + 24 ) AS col2 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3666
SELECT - + MAX ( + 24 ) AS col2 FROM tab2 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT - + 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-3667
SELECT - + MIN ( + col2 ) col1 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( col0 ) AND ( + 61 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 >= - col1
----

query I rowsort
SELECT ALL + ( - - ( + ( - col0 ) ) ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3671
SELECT DISTINCT * FROM tab0 WHERE - - CAST( NULL AS SIGNED ) < + col1 * col2
----

skipif mysql # not compatible
query III rowsort label-3671
SELECT DISTINCT * FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) < + col1 * col2
----

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT ( + COUNT( * ) ) FROM tab2 WHERE NOT + 78 + + 8 >= + col1 * col0
----
3

skipif mysql # not compatible
query I rowsort label-3673
SELECT ( + COUNT ( * ) ) FROM tab2 WHERE NOT + 78 + + 8 >= + col1 * col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT COUNT( ALL - - col0 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3674
SELECT COUNT ( ALL - - col0 ) col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( + - ( - + ( + col0 ) ) ) IN ( 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT SUM( col2 ) AS col2 FROM tab1 WHERE NOT col1 BETWEEN ( 18 * col1 ) AND 75 + - 28 / col0
----
223

skipif mysql # not compatible
query I rowsort label-3676
SELECT SUM ( col2 ) AS col2 FROM tab1 WHERE NOT col1 BETWEEN ( 18 * col1 ) AND 75 + - 28 / col0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT MAX( ALL col1 ) * ( - 17 ) FROM tab1
----
-799

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT MAX ( ALL col1 ) * ( - 17 ) FROM tab1
----
-799

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3678
SELECT DISTINCT CAST( NULL AS SIGNED ) / + SUM( - 49 ) * + 73 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + SUM ( - 49 ) * + 73 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 + - 72 AS col2 FROM tab0
----
-25
-62
27

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 * + 57 )
----

query I rowsort
SELECT - col0 * col0 + + col2 - ( + 44 ) AS col1 FROM tab2 AS cor0
----
-2137
-4100
-5611

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT MIN( DISTINCT + 88 ) * 93 FROM tab2 cor0
----
8184

skipif mysql # not compatible
query I rowsort label-3682
SELECT MIN ( DISTINCT + 88 ) * 93 FROM tab2 cor0
----
8184

onlyif mysql # DIV for integer division: 
query I rowsort label-3683
SELECT - 47 DIV + 41 DIV 1 + + + col0 AS col0 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-3683
SELECT - 47 / + 41 / 1 + + + col0 AS col0 FROM tab0
----
14
86
96

query II rowsort
SELECT col0 + - - col1 - + col1 AS col0, 57 * col1 FROM tab1
----
51
798
85
285
91
2679

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 WHERE NULL = NULL
----

query I rowsort
SELECT + col2 + + - col2 + + ( - 36 ) * + col0 FROM tab0
----
-3132
-3492
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT 62 * + + col0 DIV - + col0 + + col2 AS col2 FROM tab2
----
-22
-39
-4

skipif mysql # not compatible
query I rowsort label-3687
SELECT 62 * + + col0 / - + col0 + + col2 AS col2 FROM tab2
----
-22
-39
-4

query I rowsort
SELECT - col2 + - + 29 * + + col0 - + + col0 AS col2 FROM tab0 AS cor0
----
-2620
-3009
-497

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT - SUM( + 37 ) * - - 97 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT - SUM ( + 37 ) * - - 97 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 + + - ( - ( 65 ) ) + - col2 * 51 col0 FROM tab2 AS cor0
----
-1042
-1909
-2827

query III rowsort
SELECT * FROM tab0 WHERE + - 14 NOT BETWEEN ( - ( - 9 ) ) AND 29
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 - col1 col0 FROM tab0
----
144
7548
9408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT + CAST( NULL AS SIGNED ) - - - 83 - + 27 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT + CAST ( NULL AS INTEGER ) - - - 83 - + 27 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 5 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT DISTINCT - CAST( col2 AS SIGNED ) + - + 12 AS col2 FROM tab0
----
-111
-22
-59

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + - + 12 AS col2 FROM tab0
----
-111
-22
-59

query II rowsort
SELECT ALL - col2 AS col2, - col2 AS col2 FROM tab1 WHERE NOT NULL BETWEEN + - 70 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 col1 FROM tab0
----
65

query I rowsort
SELECT col1 - 96 AS col1 FROM tab1
----
-49
-82
-91

query I rowsort
SELECT + 9 - + col2 FROM tab2
----
-14
-31
-49

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NOT ( NOT ( 87 + - - 35 ) NOT IN ( col1 ) )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3701
SELECT ALL col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 - - - col2 AS col0 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3703
SELECT 74 DIV ( 44 ) * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 * 41 ) IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3703
SELECT 74 / ( 44 ) * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 * 41 ) IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3704
SELECT + 11 AS col0, 82 DIV + + 3 + + + COUNT( * ) FROM tab0 AS cor0
----
11
30

skipif mysql # not compatible
query II rowsort label-3704
SELECT + 11 AS col0, 82 / + + 3 + + + COUNT ( * ) FROM tab0 AS cor0
----
11
30

query I rowsort
SELECT - col2 * 69 FROM tab2
----
-1587
-2760
-4002

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 22 IN ( + 78 * + + 96 )
----

query I rowsort
SELECT DISTINCT - + col0 * col1 * col2 FROM tab2 cor0
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3708
SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( col1 + col2 * + + col1 * + CAST( 18 AS SIGNED ) = NULL ) )
----

skipif mysql # not compatible
query III rowsort label-3708
SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( col1 + col2 * + + col1 * + CAST ( 18 AS INTEGER ) = NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL <> 9
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 col0 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT - 48 * 47 FROM tab1 AS cor0
----
-2256
-2256
-2256

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT COUNT( DISTINCT col1 ) col1 FROM tab0 AS cor0 WHERE NOT - col2 < - col2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3712
SELECT COUNT ( DISTINCT col1 ) col1 FROM tab0 AS cor0 WHERE NOT - col2 < - col2
----
3

query I rowsort
SELECT ALL col1 * + + col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL col1 + - col0 * + col1 FROM tab1 WHERE NOT ( + col2 + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT DISTINCT MIN( 32 ) + 79 AS col0 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT MIN ( 32 ) + 79 AS col0 FROM tab0
----
111

query I rowsort
SELECT ( + + 8 ) AS col0 FROM tab0
----
8
8
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3717
SELECT ALL + col0 DIV - 8 FROM tab2
----
-5
-8
-9

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL + col0 / - 8 FROM tab2
----
-5
-8
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + - 66 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3719
SELECT DISTINCT - COUNT( * ), 67 col0 FROM tab2 AS cor0
----
-3
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3719
SELECT DISTINCT - COUNT ( * ), 67 col0 FROM tab2 AS cor0
----
-3
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT - - MAX( ALL + 17 ) AS col0 FROM tab2 cor0
----
17

skipif mysql # not compatible
query I rowsort label-3720
SELECT - - MAX ( ALL + 17 ) AS col0 FROM tab2 cor0
----
17

query I rowsort
SELECT DISTINCT - 57 + + col2 * - + col1 FROM tab1 AS cor0
----
-1401
-3253
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL + + MIN( DISTINCT - col1 ) - - COUNT( * ) col0 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3722
SELECT ALL + + MIN ( DISTINCT - col1 ) - - COUNT ( * ) col0 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT DISTINCT 82 * + col0 + col2 + 54 + + 60 + col1 FROM tab1 AS cor0
----
4406
7148
7691

query I rowsort
SELECT col0 + + + col0 AS col1 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT + ( - col0 ) + - 32 * - col0 * + col0 AS col1 FROM tab1 AS cor0
----
231115
264901
83181

query I rowsort
SELECT - ( - + 48 ) + 61 + col0 FROM tab0 AS cor0
----
124
196
206

query I rowsort
SELECT - 19 + + + 43 AS col0 FROM tab0 AS cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col1 FROM tab0 cor0
----
19

query I rowsort
SELECT - + col0 + 90 FROM tab0 cor0
----
-7
3
75

query II rowsort
SELECT ALL col0 AS col2, - 5 FROM tab0
----
15
-5
87
-5
97
-5

query II rowsort
SELECT DISTINCT col0, + 44 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 BETWEEN - - 0 AND - 59 - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3734
SELECT CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 AS col0, - col0 FROM tab2
----
51
-46
67
-75
77
-64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <= - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( + 81 * - col1 ) < + col2 )
----

query I rowsort
SELECT DISTINCT 86 + + 59 * + + col1 - + - col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
3141
4114
4693

query I rowsort
SELECT + 0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query II rowsort
SELECT + - col1 * 52 AS col1, col0 + - + 23 FROM tab1 AS cor0
----
-2444
68
-260
62
-728
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT ALL ( + MAX( + + col0 ) ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL ( + MAX ( + + col0 ) ) AS col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT - 26 * col2 FROM tab1 AS cor0
----
-1534
-1768
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT - + MIN( ALL - 46 ) * - - COUNT( * ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-3743
SELECT - + MIN ( ALL - 46 ) * - - COUNT ( * ) FROM tab2 AS cor0
----
138

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + + col0 - - - col2
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT + col2 <= 92
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT DISTINCT - - ( - COUNT( DISTINCT - 88 ) ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - - ( - COUNT ( DISTINCT - 88 ) ) FROM tab1 cor0
----
-1

query I rowsort
SELECT ALL 19 * 90 FROM tab2 AS cor0
----
1710
1710
1710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3748
SELECT + MIN( - CAST( NULL AS SIGNED ) ) + + + 34 FROM tab0 AS cor0 WHERE NOT ( - col0 ) = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) + + + 34 FROM tab0 AS cor0 WHERE NOT ( - col0 ) = ( NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * col0 col0, 71 AS col1 FROM tab2
----
2346
71
4928
71
5025
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3750
SELECT DISTINCT - CAST( - - col0 AS DECIMAL ) * + col0 AS col0 FROM tab0 WHERE - col2 - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT - CAST ( - - col0 AS REAL ) * + col0 AS col0 FROM tab0 WHERE - col2 - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT DISTINCT + 78 + + MAX( + + col2 ) AS col0 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT + 78 + + MAX ( + + col2 ) AS col0 FROM tab0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE col0 IS NULL
----
0

query I rowsort
SELECT ALL 91 + ( + + col1 ) AS col1 FROM tab0
----
112
172
92

query I rowsort
SELECT + 58 * - + col2 * + 93 AS col0 FROM tab0
----
-253518
-534006
-53940

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> - col1
----

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 WHERE - - col2 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - - col2 + - 33 AS col1 FROM tab2 cor0
----
-10
25
7

query I rowsort
SELECT 17 AS col2 FROM tab0 AS cor0 WHERE NULL <> - 15 + - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT DISTINCT + MIN( DISTINCT - col2 ) - - ( - - COUNT( * ) ) * - - COUNT( * ) AS col0 FROM tab1 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT + MIN ( DISTINCT - col2 ) - - ( - - COUNT ( * ) ) * - - COUNT ( * ) AS col0 FROM tab1 cor0
----
-87

query I rowsort
SELECT ALL + - col1 + - 18 AS col2 FROM tab1 cor0
----
-23
-32
-65

query I rowsort
SELECT ALL col2 - 27 AS col1 FROM tab0 AS cor0
----
-17
20
72

query I rowsort
SELECT - col1 - 28 FROM tab0 AS cor0
----
-109
-29
-49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( ( NULL ) IS NOT NULL ) )
----

query I rowsort
SELECT 73 - - - 3 + + col2 + - col1 FROM tab0
----
168
36
59

query I rowsort
SELECT col2 * + 56 AS col1 FROM tab1
----
3304
3808
5376

query I rowsort
SELECT 98 * 84 AS col1 FROM tab2
----
8232
8232
8232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3767
SELECT COUNT( * ) DIV COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3767
SELECT COUNT ( * ) / COUNT ( * ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= + ( + - 12 ) + - col2
----

query I rowsort
SELECT DISTINCT + col1 + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 11 AND + - 21
----

query I rowsort
SELECT ALL - 57 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query II rowsort
SELECT DISTINCT - + 73, + 4 AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-73
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT DISTINCT MAX( + - col2 ) AS col1 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT MAX ( + - col2 ) AS col1 FROM tab1 cor0
----
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 > - 51
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3775
SELECT + MIN( ALL - + CAST( NULL AS SIGNED ) ) * + - MIN( ALL ( + col2 ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3775
SELECT + MIN ( ALL - + CAST ( NULL AS INTEGER ) ) * + - MIN ( ALL ( + col2 ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT - MIN( ALL - + 58 ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3776
SELECT - MIN ( ALL - + 58 ) FROM tab1 AS cor0
----
58

query I rowsort
SELECT - - col2 * + + 55 AS col0 FROM tab2 AS cor0
----
1265
2200
3190

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( + col1 ) IN ( - col1 + + 35 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * - + col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT - 42 AS col2 FROM tab0 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT + - MAX( - col0 ) AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-3781
SELECT + - MAX ( - col0 ) AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
15

query III rowsort
SELECT - col1 AS col0, - col0 AS col1, - col1 FROM tab1
----
9 values hashing to 0a524d9d39670f50796a0832b6103370

query I rowsort
SELECT col2 + - col2 - - - 24 * col1 AS col1 FROM tab2
----
-1224
-1608
-1848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3784
SELECT + 92 * - col2 + CAST( + 16 AS SIGNED ) col1 FROM tab0
----
-4308
-904
-9092

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3784
SELECT + 92 * - col2 + CAST ( + 16 AS INTEGER ) col1 FROM tab0
----
-4308
-904
-9092

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = - 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT DISTINCT 89 + + - MIN( DISTINCT + col1 ) * COUNT( * ) FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT 89 + + - MIN ( DISTINCT + col1 ) * COUNT ( * ) FROM tab0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT COUNT( + + 34 ) AS col2 FROM tab0 AS cor0 WHERE + ( + col1 ) - - col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3787
SELECT COUNT ( + + 34 ) AS col2 FROM tab0 AS cor0 WHERE + ( + col1 ) - - col1 = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3788
SELECT ALL + - col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL + - col0 / col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 29 * + 24 * + + col0 * + col2 * + col1 FROM tab0 AS cor0
----
12715920
39745080
6683688

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT - MAX( - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3790
SELECT - MAX ( - col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL col0 * + col2 - + col1 + + col0 FROM tab0 AS cor0
----
639
936
9699

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE 28 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3792
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE 28 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 - - col1 * col0, - 95 col0 FROM tab0 cor0
----
0
-95
1200
-95
1740
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT + MAX( ALL - col1 ) + - COUNT( * ) * 98 AS col2 FROM tab1 cor0
----
-299

skipif mysql # not compatible
query I rowsort label-3794
SELECT + MAX ( ALL - col1 ) + - COUNT ( * ) * 98 AS col2 FROM tab1 cor0
----
-299

query I rowsort
SELECT DISTINCT - 67 + - col2 FROM tab1 AS cor0
----
-126
-135
-163

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3796
SELECT * FROM tab0 cor0 WHERE CAST( - + col1 AS DECIMAL ) = col2
----

skipif mysql # not compatible
query III rowsort label-3796
SELECT * FROM tab0 cor0 WHERE CAST ( - + col1 AS REAL ) = col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( 10 * ( + col0 ) * 34 ) AND - 79 * - 59
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3798
SELECT ALL + 99 - - + 78 DIV - COUNT( * ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL + 99 - - + 78 / - COUNT ( * ) FROM tab1 AS cor0
----
73

query I rowsort
SELECT DISTINCT - + col2 * - col2 + col2 + 8 AS col0 FROM tab2 AS cor0
----
1648
3430
560

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT + ( + + COUNT( * ) ) AS col0 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT + ( + + COUNT ( * ) ) AS col0 FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT ( - MIN( - col1 ) ) AS col0 FROM tab1 WHERE NOT ( + col1 + + 37 - - col2 ) IS NULL
----
47

skipif mysql # not compatible
query I rowsort label-3802
SELECT ( - MIN ( - col1 ) ) AS col0 FROM tab1 WHERE NOT ( + col1 + + 37 - - col2 ) IS NULL
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT ALL - MAX( + + 73 ) AS col2 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL - MAX ( + + 73 ) AS col2 FROM tab1
----
-73

query I rowsort
SELECT DISTINCT ( - 90 ) * 75 AS col0 FROM tab2
----
-6750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3805
SELECT ALL 80 DIV + + COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL 80 / + + COUNT ( * ) FROM tab2
----
26

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab2 WHERE NOT + - col1 * + 15 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 38 * + + col1 * + - col1 * - 28 col2 FROM tab1 AS cor0
----
208544
2350376
26600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3808
SELECT ALL - CAST( - + 21 AS SIGNED ) col2 FROM tab1 cor0
----
21
21
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3808
SELECT ALL - CAST ( - + 21 AS INTEGER ) col2 FROM tab1 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
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-3809
SELECT DISTINCT + - MIN ( ALL - + col2 ) col2 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3810
SELECT - 85 * + col0 + - col0 + - col0 + + col0 + + col1 + + + col0 * - CAST( NULL AS SIGNED ) * - - col0 AS col1, ( col0 ) AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3810
SELECT - 85 * + col0 + - col0 + - col0 + + col0 + + col1 + + + col0 * - CAST ( NULL AS INTEGER ) * - - col0 AS col1, ( col0 ) AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 cor0 WHERE NOT - 19 IS NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3812
SELECT DISTINCT - 59 * 29 + + + 33 - + col0 DIV col1 * col0 + - col2 FROM tab2 cor0
----
-1701
-1718
-1811

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT - 59 * 29 + + + 33 - + col0 / col1 * col0 + - col2 FROM tab2 cor0
----
-1701
-1718
-1811

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT - SUM( + col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3813
SELECT - SUM ( + col1 ) AS col2 FROM tab2
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, + 32 FROM tab1
----
51
32
85
32
91
32

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL - - ( + - COUNT( * ) ) FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL - - ( + - COUNT ( * ) ) FROM tab0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT ALL COUNT( DISTINCT 95 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL COUNT ( DISTINCT 95 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3818
SELECT CAST( + - col1 AS SIGNED ) AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3818
SELECT CAST ( + - col1 AS INTEGER ) AS col1 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 <= - - 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT COUNT( col1 ) * - 75 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-3820
SELECT COUNT ( col1 ) * - 75 FROM tab0
----
-225

query I rowsort
SELECT DISTINCT + 89 + col2 FROM tab1
----
148
157
185

query I rowsort
SELECT 97 - + + 86 * ( - 78 ) FROM tab1
----
6805
6805
6805

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT 18 <= - 24
----
-1
-21
-81

query I rowsort
SELECT 73 * col2 + - col0 AS col2 FROM tab2
----
1633
2856
4159

query III rowsort
SELECT * FROM tab1 WHERE - col2 = - col0 * + - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3826
SELECT DISTINCT COUNT( * ) * 39 DIV + + ( - 98 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT COUNT ( * ) * 39 / + + ( - 98 ) FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT + + 5 + 70 + - 7 - + - 13 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE + 5 IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3827
SELECT + + 5 + 70 + - 7 - + - 13 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE + 5 IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3828
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( 70 AS SIGNED ) * - col0 + + 77 NOT IN ( - col2 * - col0 - + + CAST( - 69 AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-3828
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( 70 AS INTEGER ) * - col0 + + 77 NOT IN ( - col2 * - col0 - + + CAST ( - 69 AS INTEGER ) + col0 )
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT 2 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3830
SELECT - COUNT( * ), COUNT( * ) col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3830
SELECT - COUNT ( * ), COUNT ( * ) col2 FROM tab1 AS cor0
----
-3
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 50 + + 46 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col0 * 36 FROM tab2 AS cor0 WHERE NOT - col2 * - 58 IS NULL
----
-1656
-2304
-2700

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT ALL - col2 DIV + 90 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL - col2 / + 90 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col0 col0 FROM tab2 cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3835
SELECT + - col0 AS col2, - CAST( NULL AS SIGNED ) col1 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-3835
SELECT + - col0 AS col2, - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT - - col0 * - 7 AS col1 FROM tab2 AS cor0 WHERE NOT 23 IS NULL
----
-322
-448
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT ALL + + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3838
SELECT ALL CAST( + 78 AS SIGNED ) FROM tab1
----
78
78
78

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL CAST ( + 78 AS INTEGER ) FROM tab1
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT ALL 90 * + COUNT( * ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL 90 * + COUNT ( * ) FROM tab0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT - SUM( DISTINCT - 61 ) * - 91 FROM tab2
----
-5551

skipif mysql # not compatible
query I rowsort label-3840
SELECT - SUM ( DISTINCT - 61 ) * - 91 FROM tab2
----
-5551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3841
SELECT + COUNT( * ) * COUNT( * ), - 51 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT - col1 = - col0 * - col1 + - 46 * + - col1 + - col0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3841
SELECT + COUNT ( * ) * COUNT ( * ), - 51 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT - col1 = - col0 * - col1 + - 46 * + - col1 + - col0
----
9
NULL

query II rowsort
SELECT - col2 * + - col0, 60 * col1 AS col2 FROM tab2
----
1058
3060
2560
4620
4350
4020

query I rowsort
SELECT DISTINCT col1 * col0 * 37 FROM tab1
----
15725
158249
26418

onlyif mysql # DIV for integer division: 
query II rowsort label-3844
SELECT ALL col2 DIV - col1 AS col2, col2 FROM tab0
----
-99
99
0
10
0
47

skipif mysql # not compatible
query II rowsort label-3844
SELECT ALL col2 / - col1 AS col2, col2 FROM tab0
----
-99
99
0
10
0
47

query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab0 cor0
----
84

query I rowsort
SELECT + - ( + 75 ) AS col0 FROM tab1 AS cor0
----
-75
-75
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 53
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <> ( - 64 + - - col2 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT ( + MAX( ALL - - col2 ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3849
SELECT ( + MAX ( ALL - - col2 ) ) FROM tab2
----
58

query I rowsort
SELECT DISTINCT col0 + + 96 FROM tab1
----
147
181
187

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT 74 * - COUNT( * ) FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-3851
SELECT 74 * - COUNT ( * ) FROM tab1
----
-222

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 16 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + + + 88 * - 92 / col2 + + 57 * + col2 * + 4 * col0 IS NOT NULL AND col2 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3854
SELECT MAX( DISTINCT + col1 ) * + 11 + - - ( 44 ) * + 72 AS col0, + 35 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
4015
105

skipif mysql # not compatible
query II rowsort label-3854
SELECT MAX ( DISTINCT + col1 ) * + 11 + - - ( 44 ) * + 72 AS col0, + 35 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
4015
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT ALL MIN( + + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL MIN ( + + col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT - col2 + + + col2 + col1 AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT + 42 + + COUNT( * ) - COUNT( * ) col0 FROM tab2
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3857
SELECT + 42 + + COUNT ( * ) - COUNT ( * ) col0 FROM tab2
----
42

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE - col2 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - col0 >= + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 77, + col2 * + 62 AS col0 FROM tab2 WHERE - col2 IS NOT NULL
----
77
1426
77
2480
77
3596

onlyif mysql # aggregate syntax: 
query II rowsort label-3861
SELECT DISTINCT ( COUNT( * ) ) + - - COUNT( ALL - 64 ) AS col2, - COUNT( * ) FROM tab2
----
6
-3

skipif mysql # not compatible
query II rowsort label-3861
SELECT DISTINCT ( COUNT ( * ) ) + - - COUNT ( ALL - 64 ) AS col2, - COUNT ( * ) FROM tab2
----
6
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT DISTINCT 89 - + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT 89 - + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3863
SELECT ALL - CAST( NULL AS SIGNED ) - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL - CAST ( NULL AS INTEGER ) - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT - - SUM( - 10 ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3864
SELECT - - SUM ( - 10 ) FROM tab2 AS cor0
----
-30

query I rowsort
SELECT col2 - + - 45 AS col2 FROM tab0 AS cor0
----
144
55
92

query II rowsort
SELECT ALL 76 AS col0, + col1 AS col2 FROM tab0
----
76
1
76
21
76
81

query I rowsort
SELECT DISTINCT 68 AS col0 FROM tab0 WHERE + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT - col2 DIV - + 96 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3868
SELECT - col2 / - + 96 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3869
SELECT ALL - - COUNT( * ) * + 62 + + + 68 AS col1, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
254
-3

skipif mysql # not compatible
query II rowsort label-3869
SELECT ALL - - COUNT ( * ) * + 62 + + + 68 AS col1, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
254
-3

query I rowsort
SELECT - + ( - col0 ) * ( + - ( + + 79 ) ) * + col2 + - - col1 AS col1 FROM tab1 AS cor0
----
-386770
-396180
-488805

query I rowsort
SELECT DISTINCT - 64 AS col2 FROM tab2 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT DISTINCT - MAX( ALL - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT - MAX ( ALL - col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT - MIN( 99 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3873
SELECT - MIN ( 99 ) AS col2 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT + - ( + - COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3875
SELECT + - ( + - COUNT ( * ) ) FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0, - col2 col0 FROM tab2 cor0
----
-46
-23
-64
-40
-75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL + MAX( 55 ) AS col0 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL + MAX ( 55 ) AS col0 FROM tab0 AS cor0
----
55

query I rowsort
SELECT DISTINCT + col1 + + + col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + 34 FROM tab2 WHERE NULL IS NULL
----
34
34
34

query I rowsort
SELECT ALL - 22 * + 69 AS col2 FROM tab1
----
-1518
-1518
-1518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3882
SELECT ALL 87 * + - CAST( NULL AS SIGNED ) / - - MIN( + - col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL 87 * + - CAST ( NULL AS INTEGER ) / - - MIN ( + - col2 ) FROM tab1
----
NULL

query I rowsort
SELECT - 54 * col0 FROM tab0
----
-4698
-5238
-810

onlyif mysql # DIV for integer division: 
query I rowsort label-3884
SELECT DISTINCT - col2 DIV 64 * + col1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT - col2 / 64 * + col1 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT - 72 * - COUNT( * ) AS col2 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-3885
SELECT - 72 * - COUNT ( * ) AS col2 FROM tab2
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3886
SELECT - col2, col0 * - CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
-59
7225
-68
8281
-96
2601

skipif mysql # not compatible
query II rowsort label-3886
SELECT - col2, col0 * - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
-59
7225
-68
8281
-96
2601

query I rowsort
SELECT + col0 * + + 36 FROM tab1
----
1836
3060
3276

query II rowsort
SELECT ALL + col1 AS col1, col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT DISTINCT + COUNT( - - 72 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT + COUNT ( - - 72 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3890
SELECT DISTINCT - + 78 * - 52 * - + ( + COUNT( * ) ) col0, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-12168
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3890
SELECT DISTINCT - + 78 * - 52 * - + ( + COUNT ( * ) ) col0, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-12168
3

query I rowsort
SELECT + 19 AS col1 FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT DISTINCT - MIN( DISTINCT - ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT - MIN ( DISTINCT - ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT MAX( - + col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT MAX ( - + col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col0 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3894
SELECT - 21 AS col0, - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-21
-9

skipif mysql # not compatible
query II rowsort label-3894
SELECT - 21 AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-21
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT - 30 * + + 2 + - COUNT( * ) FROM tab0 WHERE ( col1 + 74 IS NOT NULL )
----
-63

skipif mysql # not compatible
query I rowsort label-3895
SELECT - 30 * + + 2 + - COUNT ( * ) FROM tab0 WHERE ( col1 + 74 IS NOT NULL )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ALL - 93 * + 92 * - + 75 + + + 0 * MIN( col1 ) AS col0 FROM tab1
----
641700

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL - 93 * + 92 * - + 75 + + + 0 * MIN ( col1 ) AS col0 FROM tab1
----
641700

query I rowsort
SELECT ALL - - col2 + + + col0 + - col0 AS col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 BETWEEN 53 - - - col1 AND + 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 + col0 * col1 * 35 * + + 4 col2 FROM tab1 AS cor0
----
59500
598780
99960

query I rowsort
SELECT ALL 36 * + col0 FROM tab0 AS cor0
----
3132
3492
540

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 42 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - col1 - + - 48 + + + 74 col2 FROM tab2 AS cor0
----
2723
4611
6051

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT ALL col2 * + - 94 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL col2 * + - 94 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - - col0 col2 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN - 19 AND + ( 34 )
----
15
81
47

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 IN ( col2, col0, - + 37 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3907
SELECT + COUNT( * ) DIV + + 90 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3907
SELECT + COUNT ( * ) / + + 90 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT COUNT( DISTINCT - + 9 ) - + COUNT( ALL + - col2 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-3908
SELECT COUNT ( DISTINCT - + 9 ) - + COUNT ( ALL + - col2 ) FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT ALL - 38 + + - ( COUNT( * ) ) AS col1 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL - 38 + + - ( COUNT ( * ) ) AS col1 FROM tab0
----
-41

query I rowsort
SELECT + 25 - + col1 FROM tab1
----
-22
11
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3911
SELECT DISTINCT - 27 DIV - - 35 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT - 27 / - - 35 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3912
SELECT DISTINCT - - col1 + - col2 + - - col0 DIV + col2 FROM tab2 AS cor0
----
10
30
38

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT - - col1 + - col2 + - - col0 / + col2 FROM tab2 AS cor0
----
10
30
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - 13 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3913
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - 13 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT DISTINCT - COUNT( * ) + + - 80 AS col0 FROM tab2 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT - COUNT ( * ) + + - 80 AS col0 FROM tab2 cor0
----
-83

query II rowsort
SELECT ALL - col1, + col1 AS col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 - - - 2 col1 FROM tab0 AS cor0
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3917
SELECT - CAST( + 10 AS SIGNED ) AS col1 FROM tab0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-3917
SELECT - CAST ( + 10 AS INTEGER ) AS col1 FROM tab0
----
-10
-10
-10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 38 + + + col1, col0 )
----

query I rowsort
SELECT - - col1 * - col1 * col2 FROM tab2 AS cor0
----
-237160
-260362
-59823

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0, col2, - + col2 )
----

query I rowsort
SELECT DISTINCT ( ( + 75 ) ) FROM tab2 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 + - - col0 + + 8 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 <> col1
----

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 cor0 WHERE NOT + 90 IN ( 33, + 16 + - col0, - 35, - 62, + - col2, - - col2, col2 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT DISTINCT + MAX( - 28 ) * - + ( 93 ) * - MIN( - - 97 ) + + + 14 * - - 27 FROM tab0 AS cor0
----
-252210

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT + MAX ( - 28 ) * - + ( 93 ) * - MIN ( - - 97 ) + + + 14 * - - 27 FROM tab0 AS cor0
----
-252210

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT DISTINCT + + MIN( + col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT + + MIN ( + col2 ) AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL col2 * + 71 AS col2 FROM tab2
----
1633
2840
4118

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT SUM( ALL 93 ) col0 FROM tab0
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3928
SELECT SUM ( ALL 93 ) col0 FROM tab0
----
279

query I rowsort
SELECT - + 34 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 10 + 30 AS col0 FROM tab1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT + SUM( DISTINCT + 93 ) AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-3931
SELECT + SUM ( DISTINCT + 93 ) AS col2 FROM tab1
----
93

query I rowsort
SELECT DISTINCT ( - ( - col2 ) ) AS col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT ALL SUM( DISTINCT + + col1 ) + - - COUNT( * ) FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL SUM ( DISTINCT + + col1 ) + - - COUNT ( * ) FROM tab0
----
106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 + 21 col0 FROM tab2
----
32
32
32

query I rowsort
SELECT + 49 + 64 AS col1 FROM tab0 AS cor0
----
113
113
113

query I rowsort
SELECT ALL + + col0 * - 28 FROM tab0 AS cor0
----
-2436
-2716
-420

query I rowsort
SELECT ALL + + col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3938
SELECT DISTINCT - 78 * + + col1 + - - col0 + 91 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3938
SELECT DISTINCT - 78 * + + col1 + - - col0 + 91 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3939
SELECT - CAST( NULL AS DECIMAL ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT - CAST ( NULL AS REAL ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 * + 42 + + 9 col2 FROM tab2 AS cor0
----
2865
2865
2865

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT 78 + + SUM( col0 ) AS col2 FROM tab0 AS cor0
----
277

skipif mysql # not compatible
query I rowsort label-3941
SELECT 78 + + SUM ( col0 ) AS col2 FROM tab0 AS cor0
----
277

query II rowsort
SELECT DISTINCT - col2, col2 AS col1 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT - col2 + - ( + - col0 ) FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT ALL - col1 * + + 52 * col1 AS col2 FROM tab1
----
-10192
-114868
-1300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3945
SELECT DISTINCT col0 * - + CAST( NULL AS SIGNED ) * - - 70 * + - col1 + + col0 * - col0 + col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT col0 * - + CAST ( NULL AS INTEGER ) * - - 70 * + - col1 + + col0 * - col0 + col1 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + + 66 - 9 + + - col2 * + col1 FROM tab0 AS cor0
----
-153
-3750
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3947
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * 81 / 56 + + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3947
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * 81 / 56 + + CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT + MIN( ALL - - 89 ) col0 FROM tab1
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3948
SELECT + MIN ( ALL - - 89 ) col0 FROM tab1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3949
SELECT - CAST( NULL AS SIGNED ) * + - 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT - CAST ( NULL AS INTEGER ) * + - 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3950
SELECT col2 * + - CAST( - - 70 AS SIGNED ) FROM tab1 AS cor0
----
-4130
-4760
-6720

skipif mysql # not compatible
query I rowsort label-3950
SELECT col2 * + - CAST ( - - 70 AS INTEGER ) FROM tab1 AS cor0
----
-4130
-4760
-6720

query II rowsort
SELECT - 95, - col2 * + + 90 AS col0 FROM tab2 AS cor0
----
-95
-2070
-95
-3600
-95
-5220

query II rowsort
SELECT DISTINCT - - col1 AS col1, + 56 + ( 51 ) FROM tab1 AS cor0
----
14
107
47
107
5
107

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND + col0 - col2
----

query II rowsort
SELECT + col1 AS col0, ( - 51 ) * 85 + + col0 + - - col1 FROM tab2 AS cor0
----
51
-4238
67
-4193
77
-4194

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT - - SUM( - 41 ) col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3955
SELECT - - SUM ( - 41 ) col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-3956
SELECT ALL + col1 DIV + col2 * - col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL + col1 / + col2 * - col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT ALL + 44 + COUNT( * ) AS col1 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL + 44 + COUNT ( * ) AS col1 FROM tab2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ALL 45 * MIN( ALL + - col1 ) + - + COUNT( * ) AS col2 FROM tab2
----
-3468

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL 45 * MIN ( ALL + - col1 ) + - + COUNT ( * ) AS col2 FROM tab2
----
-3468

query I rowsort
SELECT ALL 61 + + 60 AS col1 FROM tab0
----
121
121
121

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - 10 + + col2 + col2 - col2 - + col0 AND + col2
----

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE col0 < NULL
----

query I rowsort
SELECT col0 * + col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT DISTINCT - - MIN( DISTINCT + + col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT - - MIN ( DISTINCT + + col2 ) FROM tab0 cor0
----
10

query I rowsort
SELECT + col2 + - 42 AS col2 FROM tab0
----
-32
5
57

query I rowsort
SELECT - col1 + - 27 AS col1 FROM tab2
----
-104
-78
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT + MAX( DISTINCT - - 41 ) AS col2 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3966
SELECT + MAX ( DISTINCT - - 41 ) AS col2 FROM tab1 AS cor0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3967
SELECT ALL COUNT( ALL - CAST( NULL AS SIGNED ) ) + + SUM( DISTINCT + col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + + SUM ( DISTINCT + col1 ) FROM tab1 cor0
----
66

query I rowsort
SELECT + - col0 + + - ( col2 ) + - col0 - - col2 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND - col1 + + 94 - 97
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 12 / 98 * - + col0 * - + col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3970
SELECT DISTINCT - col0 * - CAST( NULL AS DECIMAL ) + + col1 - + col0 * + + col2 * + 64 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT - col0 * - CAST ( NULL AS REAL ) + + col1 - + col0 * + + col2 * + 64 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 69 * - col2 - + 38 * + col2 AS col1 FROM tab1 cor0
----
-10272
-6313
-7276

query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab0
----
58

query I rowsort
SELECT - col2 * - col2 - - - 66 AS col1 FROM tab0
----
2143
34
9735

query III rowsort
SELECT * FROM tab1 WHERE - 62 + - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - 54 - + - 15 FROM tab1
----
-2523
-255
-741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, - col1 * + - col1 AS col1 FROM tab1
----
14
196
47
2209
5
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3977
SELECT DISTINCT col2 + + col1 DIV 92 AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT col2 + + col1 / 92 AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT - col0 * + - col0 * + col0 FROM tab2
----
262144
421875
97336

query I rowsort
SELECT DISTINCT + col1 * - 12 AS col0 FROM tab0
----
-12
-252
-972

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3981
SELECT + AVG ( + + ( + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT + AVG ( + + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT + + SUM( 42 ) FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-3982
SELECT + + SUM ( 42 ) FROM tab2 AS cor0
----
126

query I rowsort
SELECT col1 + + - 25 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3984
SELECT ALL + - 43 AS col2, - CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT 94 BETWEEN col1 AND - 36
----
-43
NULL
-43
NULL
-43
NULL

skipif mysql # not compatible
query II rowsort label-3984
SELECT ALL + - 43 AS col2, - CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT 94 BETWEEN col1 AND - 36
----
-43
NULL
-43
NULL
-43
NULL

query I rowsort
SELECT DISTINCT + + 68 AS col0 FROM tab2 AS cor0
----
68

query I rowsort
SELECT ALL 33 AS col1 FROM tab2 cor0
----
33
33
33

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - col0 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3988
SELECT - col0 DIV - 35 col1 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3988
SELECT - col0 / - 35 col1 FROM tab1 AS cor0
----
1
2
2

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 0 ) col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE NOT col0 * + 30 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col0 FROM tab0
----
40
40
40

query I rowsort
SELECT 31 + ( 69 ) AS col2 FROM tab1
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT ALL 89 + - COUNT( * ) FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL 89 + - COUNT ( * ) FROM tab0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 77 * + col2 + + col2 - - col2 col1, + col0 FROM tab2
----
-1725
46
-3000
64
-4350
75

query II rowsort
SELECT ALL - col2 * + - 8 + - - col0 AS col1, col0 FROM tab2
----
230
46
384
64
539
75

query II rowsort
SELECT DISTINCT col1 * - - 2 AS col1, - ( - + 47 ) * + 65 AS col1 FROM tab2 WHERE - ( col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 + + + col2 * + - 3 FROM tab0
----
-198
-20
-94

query I rowsort
SELECT ALL + col2 * + + col2 + - - col1 FROM tab2
----
1677
3431
580

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= - + 15 + + col1
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE col1 * - + col0 NOT IN ( - col1 )
----
23
40
58

query I rowsort
SELECT + 61 AS col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
61
61
61

query I rowsort
SELECT col2 * + + col0 * - col0 - - col2 FROM tab1 AS cor0
----
-249600
-426216
-563040

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4004
SELECT col1, 44 + - col1 * - - col2 FROM tab2 AS cor0 WHERE NULL <> + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-4004
SELECT col1, 44 + - col1 * - - col2 FROM tab2 AS cor0 WHERE NULL <> + CAST ( col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL MIN( + + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 * + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL MIN ( + + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 * + col2 AND NULL
----
NULL

query I rowsort
SELECT col2 + + - 89 FROM tab0
----
-42
-79
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4007
SELECT DISTINCT col0 + + CAST( - ( - 3 ) AS SIGNED ), col1 FROM tab2 AS cor0
----
49
51
67
77
78
67

skipif mysql # not compatible
query II rowsort label-4007
SELECT DISTINCT col0 + + CAST ( - ( - 3 ) AS INTEGER ), col1 FROM tab2 AS cor0
----
49
51
67
77
78
67

query I rowsort
SELECT DISTINCT - + ( col0 ) - + col0 AS col0 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4009
SELECT DISTINCT - 4 + + 8, SUM( + col0 ) DIV - - 51 FROM tab1 AS cor0
----
4
4

skipif mysql # not compatible
query II rowsort label-4009
SELECT DISTINCT - 4 + + 8, SUM ( + col0 ) / - - 51 FROM tab1 AS cor0
----
4
4

query I rowsort
SELECT ALL + col2 - - + col2 + + 89 FROM tab0 AS cor0
----
109
183
287

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( ( - col1 ) ) col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT DISTINCT - 81 - ( COUNT( * ) ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT - 81 - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT DISTINCT + SUM( DISTINCT - + 97 ) * + COUNT( * ) AS col2 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT + SUM ( DISTINCT - + 97 ) * + COUNT ( * ) AS col2 FROM tab2
----
-291

query I rowsort
SELECT - 62 * + 47 FROM tab0
----
-2914
-2914
-2914

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 17 ) col0 FROM tab0
----
-17
-17
-17

query I rowsort
SELECT + col1 * + 95 + + col2 AS col1 FROM tab1 cor0
----
1426
4533
534

query II rowsort
SELECT col0 AS col1, col1 FROM tab2 AS cor0 WHERE NOT + 4 / - ( + 17 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 - col0 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 44 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 52 col1 FROM tab1 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4021
SELECT - + col1 col1, - CAST( NULL AS DECIMAL ) * - 84 AS col1 FROM tab0 cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4021
SELECT - + col1 col1, - CAST ( NULL AS REAL ) * - 84 AS col1 FROM tab0 cor0
----
-1
NULL
-21
NULL
-81
NULL

query II rowsort
SELECT DISTINCT + 67, + ( ( col1 ) ) AS col2 FROM tab2 AS cor0
----
67
51
67
67
67
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 46 IS NOT NULL
----

query I rowsort
SELECT ALL - 1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col0 + - - 50 + + col2 FROM tab1
----
194
197
209

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ALL + - COUNT( * ) FROM tab1 WHERE - col2 - ( - + col0 ) * col1 >= + - col2
----
-3

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL + - COUNT ( * ) FROM tab1 WHERE - col2 - ( - + col0 ) * col1 >= + - col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT - ( + COUNT( * ) ) FROM tab0 WHERE 95 - - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4027
SELECT - ( + COUNT ( * ) ) FROM tab0 WHERE 95 - - col1 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL + MIN( ALL - col1 ) + - + 74 AS col0 FROM tab0
----
-155

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + MIN ( ALL - col1 ) + - + 74 AS col0 FROM tab0
----
-155

onlyif mysql # aggregate syntax: 
query II rowsort label-4029
SELECT DISTINCT + 55 + - 39 col2, 94 - - - ( ( - - COUNT( + col0 ) ) ) col1 FROM tab0
----
16
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4029
SELECT DISTINCT + 55 + - 39 col2, 94 - - - ( ( - - COUNT ( + col0 ) ) ) col1 FROM tab0
----
16
91

query I rowsort
SELECT - - col1 * - col0 - + + 26 + 88 + + - col0 AS col0 FROM tab0 AS cor0
----
-1168
-132
-1852

query I rowsort
SELECT ALL col2 + - col2 + 22 - + col1 AS col0 FROM tab2 AS cor0
----
-29
-45
-55

query II rowsort
SELECT DISTINCT ( + col1 ) AS col0, + col1 FROM tab2 cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL 99 * - 94 * 4 FROM tab1
----
-37224
-37224
-37224

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4034
SELECT col0, CAST( - + 3 AS SIGNED ) AS col1 FROM tab0
----
15
-3
87
-3
97
-3

skipif mysql # not compatible
query II rowsort label-4034
SELECT col0, CAST ( - + 3 AS INTEGER ) AS col1 FROM tab0
----
15
-3
87
-3
97
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4035
SELECT DISTINCT 72 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT 72 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - 4 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT DISTINCT - - 25 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
25

query II rowsort
SELECT - - col1 AS col0, - 38 AS col1 FROM tab2 cor0
----
51
-38
67
-38
77
-38

query I rowsort
SELECT ALL + 56 + - 56 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 22 * - col2 AS col0 FROM tab0 AS cor0
----
1034
2178
220

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4041
SELECT ALL * FROM tab2 AS cor0 WHERE - 95 / col2 <> 82 / - + CAST( 43 AS SIGNED ) + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4041
SELECT ALL * FROM tab2 AS cor0 WHERE - 95 / col2 <> 82 / - + CAST ( 43 AS INTEGER ) + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + + col2 AS col0 FROM tab2 cor0
----
116
46
80

query I rowsort
SELECT ALL col2 * + col0 * col1 - - col0 AS col2 FROM tab1 AS cor0
----
25160
290927
68595

onlyif mysql # DIV for integer division: 
query I rowsort label-4044
SELECT DISTINCT - - col2 + + 63 DIV col1 * + - 76 FROM tab2 AS cor0
----
-53
40
58

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT - - col2 + + 63 / col1 * + - 76 FROM tab2 AS cor0
----
-53
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4045
SELECT DISTINCT - 82 - - col1 - - CAST( NULL AS DECIMAL ) * + col1 * + col2 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT - 82 - - col1 - - CAST ( NULL AS REAL ) * + col1 * + col2 AS col1 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * - 84 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 14 FROM tab0 AS cor0
----
-14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 51 AND + 13 * - 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT ( - MAX( ( + + col0 ) ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4049
SELECT ( - MAX ( ( + + col0 ) ) ) FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col0 ) col0 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4051
SELECT DISTINCT col0 * + CAST( - + col0 AS SIGNED ) * col2 AS col2, 7 + + col1 - - + col2 col2 FROM tab1
----
-249696
117
-426275
71
-563108
122

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4051
SELECT DISTINCT col0 * + CAST ( - + col0 AS INTEGER ) * col2 AS col2, 7 + + col1 - - + col2 col2 FROM tab1
----
-249696
117
-426275
71
-563108
122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 * - 63 col2 FROM tab0
----
-13230
-239841
-6237

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT COUNT( ALL - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4053
SELECT COUNT ( ALL - col1 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * col0 + - 77 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NULL NOT BETWEEN + 82 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT - COUNT( - - 62 ) col2 FROM tab1 WHERE NOT + 21 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4056
SELECT - COUNT ( - - 62 ) col2 FROM tab1 WHERE NOT + 21 IS NULL
----
-3

query I rowsort
SELECT ALL ( - col2 ) * + 5 FROM tab1 AS cor0
----
-295
-340
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT ALL + COUNT( * ) * - - 77 AS col0 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL + COUNT ( * ) * - - 77 AS col0 FROM tab2
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT + col1 DIV + 37 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4059
SELECT + col1 / + 37 FROM tab2
----
1
1
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT DISTINCT - + SUM( DISTINCT - 61 ) + - - 67 FROM tab0 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT - + SUM ( DISTINCT - 61 ) + - - 67 FROM tab0 AS cor0
----
128

query I rowsort
SELECT DISTINCT ( - col1 ) + 1 FROM tab2 AS cor0
----
-50
-66
-76

query I rowsort
SELECT DISTINCT + 40 * - - col2 + 10 AS col2 FROM tab2 AS cor0
----
1610
2330
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 + + 14 - + col1 col0, - col0 FROM tab2 AS cor0
----
-14
-46
-23
-64
5
-75

query I rowsort
SELECT ALL 24 * + - col0 FROM tab2 AS cor0
----
-1104
-1536
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT COUNT( * ) col2 FROM tab2 WHERE - 0 NOT BETWEEN + col0 * + col0 AND + 42 * - col1 + + col0 * + - col0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4066
SELECT COUNT ( * ) col2 FROM tab2 WHERE - 0 NOT BETWEEN + col0 * + col0 AND + 42 * - col1 + + col0 * + - col0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 * + ( - col2 ) col1 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT - ( + 64 ) + - - 54 FROM tab1
----
-10
-10
-10

query I rowsort
SELECT DISTINCT - col0 + 35 * - col0 AS col1 FROM tab2
----
-1656
-2304
-2700

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE + - col1 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT + - ( MIN( ALL 25 ) ) FROM tab1 WHERE col1 IS NOT NULL
----
-25

skipif mysql # not compatible
query I rowsort label-4071
SELECT + - ( MIN ( ALL 25 ) ) FROM tab1 WHERE col1 IS NOT NULL
----
-25

query I rowsort
SELECT ALL + 19 + - + col1 + + col2 * 56 AS col1 FROM tab0 cor0
----
2570
5562
558

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 BETWEEN NULL AND + 93
----

query I rowsort
SELECT ALL + col1 * col2 + - - col0 FROM tab0 AS cor0
----
196
297
3822

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> - 89 * + 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT DISTINCT - ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT - - SUM( + - 41 ) AS col0 FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT - - SUM ( + - 41 ) AS col0 FROM tab2 AS cor0
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4078
SELECT ALL - col1 * + 69 * - CAST( - 18 AS SIGNED ) + col1 + + - 50 AS col2 FROM tab1 AS cor0 WHERE - col2 < - - col1
----
-17424
-58377
-6255

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL - col1 * + 69 * - CAST ( - 18 AS INTEGER ) + col1 + + - 50 AS col2 FROM tab1 AS cor0 WHERE - col2 < - - col1
----
-17424
-58377
-6255

onlyif mysql # DIV for integer division: 
query II rowsort label-4079
SELECT DISTINCT + ( + col1 ), 17 DIV - - ( - + ( - col1 ) ) FROM tab0 AS cor0
----
1
17
21
0
81
0

skipif mysql # not compatible
query II rowsort label-4079
SELECT DISTINCT + ( + col1 ), 17 / - - ( - + ( - col1 ) ) FROM tab0 AS cor0
----
1
17
21
0
81
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 4 AND - 58 + - - col1 + + - 60 + - col1 * - 50
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4081
SELECT ALL 55 DIV + - col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL 55 / + - col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL + 76 + ( col0 ) AS col1 FROM tab1 WHERE NOT NULL IN ( + col1, + col2, + col0 * - col1 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT + ( + - COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4083
SELECT + ( + - COUNT ( * ) ) FROM tab1
----
-3

query II rowsort
SELECT ALL col1, + col1 AS col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT DISTINCT SUM( col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT SUM ( col0 ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT - COUNT( * ) * - 36 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-4086
SELECT - COUNT ( * ) * - 36 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 7 col1 FROM tab2 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT 2 + COUNT( * ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4088
SELECT 2 + COUNT ( * ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT COUNT( * ) + + 7 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-4089
SELECT COUNT ( * ) + + 7 FROM tab2
----
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - 34 = - col2 / 85 - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4092
SELECT col1 FROM tab2 WHERE - CAST( NULL AS SIGNED ) <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4092
SELECT col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) <= - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 19 > ( NULL )
----

query I rowsort
SELECT + 61 - 24 FROM tab0
----
37
37
37

query I rowsort
SELECT DISTINCT + col0 / 85 FROM tab1 WHERE NULL >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT + COUNT( * ) * + 83 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-4096
SELECT + COUNT ( * ) * + 83 FROM tab2
----
249

query I rowsort
SELECT + col1 * 5 FROM tab0
----
105
405
5

query I rowsort
SELECT DISTINCT - col1 + + ( col1 ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT DISTINCT MIN( DISTINCT col1 ) * COUNT( * ) AS col1 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT MIN ( DISTINCT col1 ) * COUNT ( * ) AS col1 FROM tab1
----
15

query I rowsort
SELECT DISTINCT ( 96 ) * 43 FROM tab0
----
4128

onlyif mysql # DIV for integer division: 
query I rowsort label-4101
SELECT DISTINCT col0 DIV + 95 + col1 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT col0 / + 95 + col1 AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT ( 55 ) AS col0 FROM tab2
----
55

query I rowsort
SELECT ALL ( - 0 ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4104
SELECT ALL - CAST( - 66 AS DECIMAL ) / col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - CAST ( - 66 AS REAL ) / col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4105
SELECT CAST( NULL AS SIGNED ) - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4105
SELECT CAST ( NULL AS INTEGER ) - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT 99 - + 80 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT COUNT( * ) - + 26 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-4107
SELECT COUNT ( * ) - + 26 FROM tab0
----
-23

query I rowsort
SELECT ( - 36 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL + COUNT( DISTINCT col1 ) * + COUNT( - 52 ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL + COUNT ( DISTINCT col1 ) * + COUNT ( - 52 ) AS col0 FROM tab2
----
9

query III rowsort
SELECT * FROM tab1 WHERE col0 * col0 + 6 BETWEEN ( - col2 * col1 ) AND 8 * col2 + + 16
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL + COUNT( col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL + COUNT ( col2 ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4113
SELECT - col2 DIV 16 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4113
SELECT - col2 / 16 FROM tab2
----
-1
-2
-3

query I rowsort
SELECT ( col2 ) * 34 AS col2 FROM tab2
----
1360
1972
782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 19 col1 FROM tab1 AS cor0 WHERE - col1 + col1 IS NOT NULL
----
115
78
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 cor0 WHERE ( col2 - 72 ) < + col1 + 79 * 11
----
0

skipif mysql # not compatible
query I rowsort label-4116
SELECT COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE ( col2 - 72 ) < + col1 + 79 * 11
----
0

query I rowsort
SELECT - 9 FROM tab0 AS cor0 WHERE col1 * col2 BETWEEN ( - col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 49 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * - col1 - 79 AS col2 FROM tab2 AS cor0
----
-1252
-3159
-3965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4120
SELECT ( + col1 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT ( + col1 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 * + col1 col0 FROM tab0
----
2187
27
567

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL + COUNT( 99 ) + - 54 FROM tab1 AS cor0 CROSS JOIN tab0
----
-45

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL + COUNT ( 99 ) + - 54 FROM tab1 AS cor0 CROSS JOIN tab0
----
-45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col1 = NULL
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 <= + col1 * ( col1 )
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE NOT - 91 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 81 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4127
SELECT DISTINCT + 89 AS col2 FROM tab0 AS cor0 WHERE col0 - col2 DIV - 53 <= + col0
----
89

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT + 89 AS col2 FROM tab0 AS cor0 WHERE col0 - col2 / - 53 <= + col0
----
89

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( + col1 * col1 ) IS NULL
----
1
21
81

query I rowsort
SELECT col1 + 41 / - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT - col2 * - 95 AS col0 FROM tab2
----
2185
3800
5510

query I rowsort
SELECT - ( + + 71 ) AS col1 FROM tab0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT ALL MAX( + col2 ) * + 14 FROM tab0
----
1386

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL MAX ( + col2 ) * + 14 FROM tab0
----
1386

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT DISTINCT + MIN( col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT + MIN ( col2 ) FROM tab2
----
23

query III rowsort
SELECT * FROM tab2 WHERE NOT + 93 BETWEEN - col2 AND 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND + 52
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4137
SELECT DISTINCT CAST( + CAST( COUNT( * ) AS DECIMAL ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT CAST ( + CAST ( COUNT ( * ) AS REAL ) AS INTEGER ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 WHERE NOT 91 + 44 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4139
SELECT ALL - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT + COUNT( * ) * - 99 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4140
SELECT + COUNT ( * ) * - 99 FROM tab1 AS cor0
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4141
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 WHERE ( - 96 * - 95 ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( - 96 * - 95 ) <= NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 40 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE - col2 <= - col0 + 61
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4144
SELECT DISTINCT 60 + 39 DIV - col2 AS col2 FROM tab1 cor0
----
60

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT 60 + 39 / - col2 AS col2 FROM tab1 cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 81 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 81 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + col2 - col2 + - col2 AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - - col0 * - 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + col1 + - col1 AND + 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 55 + + 33 + + 14 FROM tab1 cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT 8 * 28 + - col1 * + col0 FROM tab1 WHERE NOT + 86 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - col0
----

query I rowsort
SELECT - col0 * 89 + - col2 + + 71 + + 53 * 83 AS col0 FROM tab2
----
-1266
-2263
353

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT DISTINCT + 32 - + COUNT( * ) FROM tab2 WHERE NOT - - 94 IN ( 89 )
----
29

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT + 32 - + COUNT ( * ) FROM tab2 WHERE NOT - - 94 IN ( 89 )
----
29

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - 95 * - col2
----

query I rowsort
SELECT DISTINCT + col1 + + - col1 FROM tab2
----
0

query I rowsort
SELECT ALL - + col2 FROM tab1 WHERE NOT col2 IS NULL
----
-59
-68
-96

query II rowsort
SELECT DISTINCT - col0 + - 39, - col1 + - - 14 * - col0 AS col0 FROM tab0
----
-126
-1239
-136
-1359
-54
-291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4158
SELECT - CAST( NULL AS SIGNED ) * + col2 FROM tab2 WHERE col0 + 55 <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4158
SELECT - CAST ( NULL AS INTEGER ) * + col2 FROM tab2 WHERE col0 + 55 <= ( NULL )
----

query I rowsort
SELECT + 57 FROM tab0 WHERE NULL IN ( - col0 + - - 82 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 - 2 col2, ( 4 ) FROM tab1 AS cor0
----
12
4
3
4
45
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT - 25 - - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-4161
SELECT - 25 - - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL MIN( DISTINCT + col2 ) - COUNT( * ) col0 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4162
SELECT ALL MIN ( DISTINCT + col2 ) - COUNT ( * ) col0 FROM tab0 AS cor0
----
7

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE - col1 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 37 * - col0 - 74 + + 7 * + col1 NOT BETWEEN - 37 AND ( - ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT COUNT( * ) * - 60 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-4165
SELECT COUNT ( * ) * - 60 FROM tab0
----
-180

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 2 / col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4167
SELECT DISTINCT COUNT( * ) DIV + MAX( ALL - 42 ) + 81 col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4167
SELECT DISTINCT COUNT ( * ) / + MAX ( ALL - 42 ) + 81 col0 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT ALL + MAX( + col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL + MAX ( + col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT - - ( - 78 ) AS col2 FROM tab2 AS cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT - + ( + col0 ) * + 95 - col2 AS col2 FROM tab2 AS cor0
----
-4393
-6120
-7183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4171
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 87 <> NULL
----

query II rowsort
SELECT col2, - 6 FROM tab0
----
10
-6
47
-6
99
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT COUNT( ALL + col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4174
SELECT COUNT ( ALL + col1 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT DISTINCT - col1 AS col1, - col0 FROM tab0
----
-1
-97
-21
-87
-81
-15

query II rowsort
SELECT col0, + col0 * + - 29 AS col2 FROM tab0
----
15
-435
87
-2523
97
-2813

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT ALL + MAX( 11 ) AS col2 FROM tab1 WHERE NOT ( NOT 99 IN ( - col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL + MAX ( 11 ) AS col2 FROM tab1 WHERE NOT ( NOT 99 IN ( - col2 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT - 7 * - + 19 * - COUNT( * ) AS col0 FROM tab0
----
-399

skipif mysql # not compatible
query I rowsort label-4178
SELECT - 7 * - + 19 * - COUNT ( * ) AS col0 FROM tab0
----
-399

query II rowsort
SELECT ALL - 15, + ( col1 ) * col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + - col0
----

query I rowsort
SELECT + - col0 / - col1 FROM tab1 AS cor0 WHERE NOT 17 IS NOT NULL
----

query I rowsort
SELECT + col0 * - col1 * + col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

query II rowsort
SELECT DISTINCT - 16 AS col0, - col1 AS col1 FROM tab2 AS cor0
----
-16
-51
-16
-67
-16
-77

query I rowsort
SELECT ALL - + 57 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4184
SELECT col2 + CAST( 82 AS SIGNED ) FROM tab1 WHERE + 60 IN ( - - col2 )
----

skipif mysql # not compatible
query I rowsort label-4184
SELECT col2 + CAST ( 82 AS INTEGER ) FROM tab1 WHERE + 60 IN ( - - col2 )
----

query II rowsort
SELECT col0 AS col1, + col1 * + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
1215
87
1827
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 col2 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT DISTINCT ( + 21 ) AS col0 FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT ALL + MAX( DISTINCT + - ( + + 67 ) ) FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL + MAX ( DISTINCT + - ( + + 67 ) ) FROM tab0 AS cor0
----
-67

query I rowsort
SELECT + 74 - + - col1 FROM tab2 AS cor0 WHERE 36 - col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + 54 col2 FROM tab2
----
-14
-31
4

query I rowsort
SELECT col1 - col2 + + + 95 * col1 AS col0 FROM tab0
----
-3
2006
7729

query III rowsort
SELECT * FROM tab0 WHERE + col1 / - col0 + col2 + + 13 / - - col1 NOT BETWEEN - col1 + + col2 * col1 AND 11 + 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + col1 + 28 * + col1 FROM tab0 WHERE NOT + col0 + - ( col1 ) + - col2 < ( + col2 )
----
378

onlyif mysql # DIV for integer division: 
query I rowsort label-4194
SELECT 23 + - + 10 * + ( + col1 ) DIV + col1 FROM tab1
----
13
13
13

skipif mysql # not compatible
query I rowsort label-4194
SELECT 23 + - + 10 * + ( + col1 ) / + col1 FROM tab1
----
13
13
13

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab2 WHERE NOT + + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT COUNT( ALL + + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT COUNT ( ALL + + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT DISTINCT + MIN( col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT + MIN ( col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, 44 AS col1 FROM tab1 cor0
----
-51
44
-85
44
-91
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT + COUNT( ALL + 99 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4199
SELECT + COUNT ( ALL + 99 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4200
SELECT COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4200
SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
3

query II rowsort
SELECT + col1 AS col0, + col2 FROM tab0 cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL MIN( + 38 ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL MIN ( + 38 ) FROM tab0
----
38

query I rowsort
SELECT - + 80 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT 20 * + + 73 FROM tab2
----
1460
1460
1460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT ALL col2 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL col2 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - col1 * + col1 * - + col1, 33 col2 FROM tab2 AS cor0
----
20151121
33
35153041
33
6765201
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4208
SELECT ALL + + col2 DIV - + 94 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4208
SELECT ALL + + col2 / - + 94 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT ALL - - SUM( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL - - SUM ( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL COUNT( * ) * + 27 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4210
SELECT ALL COUNT ( * ) * + 27 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4211
SELECT col0 * CAST( + - col1 AS SIGNED ) FROM tab2 cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-4211
SELECT col0 * CAST ( + - col1 AS INTEGER ) FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT - 1 AS col1 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4213
SELECT COUNT( ( - col1 ) ), 60 col2 FROM tab1
----
3
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4213
SELECT COUNT ( ( - col1 ) ), 60 col2 FROM tab1
----
3
60

query I rowsort
SELECT DISTINCT + 35 * + col1 FROM tab0
----
2835
35
735

query I rowsort
SELECT ALL col2 * col0 + 44 AS col0 FROM tab2
----
1102
2604
4394

query I rowsort
SELECT ALL + 91 * - + col1 * - 93 AS col0 FROM tab0
----
177723
685503
8463

query III rowsort
SELECT * FROM tab1 WHERE NOT + 11 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4219
SELECT - col2 * - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-4219
SELECT - col2 * - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT - + 70 AS col2 FROM tab0 cor0
----
-70

query I rowsort
SELECT + 58 * + 77 AS col1 FROM tab1 AS cor0 WHERE ( + col1 / + + col0 IS NULL )
----

query I rowsort
SELECT DISTINCT col2 + + - col2 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - 15 + + + col2 AS col2 FROM tab1 AS cor0
----
111
74
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT - CAST( NULL AS SIGNED ) + - + col1 + CAST( col2 AS SIGNED ) * col1 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-4224
SELECT - CAST ( NULL AS INTEGER ) + - + col1 + CAST ( col2 AS INTEGER ) * col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4225
SELECT - CAST( NULL AS SIGNED ) + AVG ( ALL - 27 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4225
SELECT - CAST ( NULL AS INTEGER ) + AVG ( ALL - 27 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + - - 31 FROM tab2 AS cor0
----
54
71
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT DISTINCT + ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT + ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 72 + + 12 AS col0 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT col1 - - - col0 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 <= + - col2
----
85
5
59
91
47
68

query I rowsort
SELECT + + col2 + - ( - - 3 ) FROM tab2 AS cor0
----
20
37
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4232
SELECT + col2 + + CAST( - col0 AS SIGNED ) col1 FROM tab0 cor0
----
-77
2
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4232
SELECT + col2 + + CAST ( - col0 AS INTEGER ) col1 FROM tab0 cor0
----
-77
2
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4233
SELECT DISTINCT + COUNT( * ) - - + CAST( + COUNT( * ) AS SIGNED ) + 90 AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT + COUNT ( * ) - - + CAST ( + COUNT ( * ) AS INTEGER ) + 90 AS col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT - - col2 * - - col2 * col1 + - 96 - - col2 FROM tab1 cor0
----
129024
17368
217300

query II rowsort
SELECT - col2 * - - col1, col0 + + col1 AS col1 FROM tab0
----
-210
108
-3807
96
-99
98

query I rowsort
SELECT ALL col1 - - - col1 FROM tab0
----
0
0
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT DISTINCT + CAST( - + CAST( - + col1 AS SIGNED ) AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT + CAST ( - + CAST ( - + col1 AS INTEGER ) AS INTEGER ) FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4239
SELECT ALL - + CAST( NULL AS SIGNED ) * - - col1 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL - + CAST ( NULL AS INTEGER ) * - - col1 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + 78 FROM tab1 AS cor0 WHERE NOT + col2 < ( NULL )
----

query II rowsort
SELECT col0 AS col2, col0 AS col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT DISTINCT COUNT( ALL col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT COUNT ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT DISTINCT - + SUM( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT - + SUM ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT - col1 = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4244
SELECT - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT - col1 = ( NULL )
----
0

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 cor0 WHERE NOT col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 * - + col0 col2 FROM tab2 AS cor0
----
-3818
-5312
-6225

query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab2 AS cor0 WHERE ( ( 12 ) + + col2 ) NOT BETWEEN NULL AND 82
----

query III rowsort
SELECT * FROM tab1 WHERE + - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4249
SELECT + MIN( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT + MIN ( CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ( - - 12 ) AS col1 FROM tab1
----
12
12
12

query I rowsort
SELECT DISTINCT + 74 + 38 AS col0 FROM tab1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT DISTINCT SUM( ALL + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT SUM ( ALL + col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT + col0 + - 84 FROM tab2 AS cor0
----
-20
-38
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT - SUM( ALL + 91 ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-4254
SELECT - SUM ( ALL + 91 ) FROM tab1 AS cor0
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 * - col2 - - col0 col1 FROM tab1 AS cor0
----
-1213
-1405
-2061

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4256
SELECT DISTINCT + col1 / + - col0 + + CAST( - col1 AS DECIMAL ) + + CAST( + col1 AS SIGNED ) + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT + col1 / + - col0 + + CAST ( - col1 AS REAL ) + + CAST ( + col1 AS INTEGER ) + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * col0 NOT BETWEEN - 76 AND + + 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 46 col2 FROM tab0 AS cor0
----
-133
-143
-61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 45 + - col1 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT + + col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( col2 * - - col0, + col0 * + 79, + CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4260
SELECT + + col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( col2 * - - col0, + col0 * + 79, + CAST ( + col1 AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 32 <= NULL
----

query I rowsort
SELECT - col2 * + + col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT ALL 60 DIV + - 44 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL 60 / + - 44 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT 45 * - col0 / + + col1 + + col2 AS col1 FROM tab2 WHERE NOT - col2 NOT BETWEEN + col1 AND - 75
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4265
SELECT + col0 DIV 89 * 1 * + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4265
SELECT + col0 / 89 * 1 * + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT - 44 IS NULL
----
51
85
91

query I rowsort
SELECT ALL col1 * - col1 + + 66 AS col0 FROM tab0 WHERE NULL <> col1 * + - col0 + - 60
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4268
SELECT DISTINCT + col0, + CAST( NULL AS SIGNED ) + - + col2 + 48 + + ( 70 ) * col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-4268
SELECT DISTINCT + col0, + CAST ( NULL AS INTEGER ) + - + col2 + 48 + + ( 70 ) * col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT + 7 * + + col1 AS col0 FROM tab1
----
329
35
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 88 NOT BETWEEN 62 AND NULL
----

query II rowsort
SELECT ALL - col1, + col0 * 28 AS col0 FROM tab2 AS cor0
----
-51
1288
-67
2100
-77
1792

query I rowsort
SELECT - ( col1 ) * - col2 * + 54 AS col2 FROM tab2 AS cor0
----
166320
209844
63342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 col2 FROM tab0
----
69

query II rowsort
SELECT ALL - 86 * + 29 AS col1, col2 AS col1 FROM tab1
----
-2494
59
-2494
68
-2494
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4275
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( CAST( - col1 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4275
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( CAST ( - col1 AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 36 BETWEEN NULL AND col1 / + ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 * - col2 AS col1, col2 AS col2 FROM tab1 cor0
----
3481
59
4624
68
9216
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT MIN( + - col1 ) col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4278
SELECT MIN ( + - col1 ) col0 FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4279
SELECT ALL + col1 * - col0 + + col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5024

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL + col1 * - col0 + + col0 / + col1 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5024

query I rowsort
SELECT + ( - col2 ) * - - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 * + 27 - - col2 + 7 + + col0 + - col2 * col1 col1, col0 - 94 AS col2 FROM tab1 AS cor0
----
-573
-3
187
-43
2151
-9

query II rowsort
SELECT DISTINCT + + 4 * + col1 AS col1, 19 * + col1 AS col2 FROM tab0 AS cor0
----
324
1539
4
19
84
399

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 46 + - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT ALL - CAST( - 91 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL - CAST ( - 91 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4285
SELECT CAST( NULL AS SIGNED ) + + - 0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4285
SELECT CAST ( NULL AS INTEGER ) + + - 0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT COUNT( * ) * 84 + + ( + 92 ) * COUNT( * ) AS col2 FROM tab1
----
528

skipif mysql # not compatible
query I rowsort label-4286
SELECT COUNT ( * ) * 84 + + ( + 92 ) * COUNT ( * ) AS col2 FROM tab1
----
528

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 + - col0 + - col1 + + 0 / + 50 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4288
SELECT - col1 + + + ( 26 ) DIV + col0 AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4288
SELECT - col1 + + + ( 26 ) / + col0 AS col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col2 + - col2 + 60 * - col2 FROM tab0
----
-2820
-5940
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT 28 * MIN( + 85 ) + + 3 AS col0 FROM tab2, tab2 AS cor0
----
2383

skipif mysql # not compatible
query I rowsort label-4290
SELECT 28 * MIN ( + 85 ) + + 3 AS col0 FROM tab2, tab2 AS cor0
----
2383

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE + 92 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 71 col2 FROM tab2
----
1633
2840
4118

query I rowsort
SELECT ALL - col2 + - + 56 FROM tab2 AS cor0
----
-114
-79
-96

query I rowsort
SELECT + - col0 AS col2 FROM tab2 AS cor0 WHERE + col0 + col0 < + - col2
----

query I rowsort
SELECT DISTINCT + - col1 * + + 65 AS col2 FROM tab0 AS cor0
----
-1365
-5265
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4296
SELECT DISTINCT - CAST( - + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT - CAST ( - + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 + + 48 col0 FROM tab0
----
125
16
46

query I rowsort
SELECT - col0 + + - col2 AS col0 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN 92 AND - col2 * 68
----
-144
-147
-159

query I rowsort
SELECT ALL - col2 + - + col0 AS col0 FROM tab0 cor0
----
-196
-62
-97

query I rowsort
SELECT + 67 + + col1 - - - col0 AS col0 FROM tab1 AS cor0
----
-13
23
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4301
SELECT + ( + 33 ) DIV COUNT( * ) FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4301
SELECT + ( + 33 ) / COUNT ( * ) FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT COUNT( * ) * + 74 * + COUNT( * ) AS col2 FROM tab1 cor0
----
666

skipif mysql # not compatible
query I rowsort label-4302
SELECT COUNT ( * ) * + 74 * + COUNT ( * ) AS col2 FROM tab1 cor0
----
666

query II rowsort
SELECT + ( - + col2 ), col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4304
SELECT ALL col2 * col1 DIV + col1 AS col2 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL col2 * col1 / + col1 AS col2 FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT - + MAX( + col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4305
SELECT - + MAX ( + col2 ) AS col2 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 26 AS col2, + 69 * + col2 FROM tab1
----
26
4071
26
4692
26
6624

query II rowsort
SELECT ( + col2 ) * 38 AS col1, + 61 FROM tab2
----
1520
61
2204
61
874
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4309
SELECT - CAST( - AVG ( ALL - - 14 ) AS SIGNED ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-4309
SELECT - CAST ( - AVG ( ALL - - 14 ) AS INTEGER ) FROM tab1
----
14

query I rowsort
SELECT - col2 * + + 56 FROM tab1
----
-3304
-3808
-5376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 13 col0, col1 AS col2 FROM tab0
----
13
1
13
21
13
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4312
SELECT * FROM tab0 WHERE NOT ( - + col1 * + + CAST( NULL AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-4312
SELECT * FROM tab0 WHERE NOT ( - + col1 * + + CAST ( NULL AS INTEGER ) ) = NULL
----

query I rowsort
SELECT ALL - 16 * + col1 * + col1 AS col1 FROM tab1 AS cor0
----
-3136
-35344
-400

query I rowsort
SELECT - + col1 * - col2 * - + ( - - col0 ) AS col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT ALL + - col0 * + 67 AS col2 FROM tab0 AS cor0
----
-1005
-5829
-6499

onlyif mysql # DIV for integer division: 
query I rowsort label-4316
SELECT DISTINCT 17 DIV 23 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT 17 / 23 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4317
SELECT + col2 DIV + 56 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4317
SELECT + col2 / + 56 AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL SUM( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL SUM ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT + 2 AS col0 FROM tab1 cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT + - CAST( NULL AS SIGNED ) * + + 13 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4320
SELECT + - CAST ( NULL AS INTEGER ) * + + 13 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-4321
SELECT DISTINCT 80 DIV 43 FROM tab2, tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT 80 / 43 FROM tab2, tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ALL - COUNT( * ) + 58 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL - COUNT ( * ) + 58 FROM tab2 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4323
SELECT ALL - COUNT( * ) AS col1, SUM( ALL - 13 ) AS col2 FROM tab1 AS cor0
----
-3
-39

skipif mysql # not compatible
query II rowsort label-4323
SELECT ALL - COUNT ( * ) AS col1, SUM ( ALL - 13 ) AS col2 FROM tab1 AS cor0
----
-3
-39

query II rowsort
SELECT - 72, + 18 AS col1 FROM tab0 AS cor0
----
-72
18
-72
18
-72
18

query I rowsort
SELECT - col0 * + col0 + - 88 FROM tab2 AS cor0
----
-2204
-4184
-5713

query I rowsort
SELECT + 66 * 44 AS col0 FROM tab0 AS cor0
----
2904
2904
2904

query I rowsort
SELECT - 31 AS col2 FROM tab1 AS cor0 WHERE col1 * - 14 - - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 51 AS col0, col0 col1 FROM tab2 AS cor0
----
-51
46
-51
64
-51
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 36 * - - 61 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * + + col2 * col0 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT col2 - + 12 + + 7 - - col0 * + col2 FROM tab1
----
4987
5069
6251

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT ( + + 44 ) - + - 15 + - ( + col0 ) DIV - + col0 FROM tab0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-4332
SELECT ( + + 44 ) - + - 15 + - ( + col0 ) / - + col0 FROM tab0
----
60
60
60

query II rowsort
SELECT ALL col2 + + ( - + 3 ), col0 * + + col1 AS col1 FROM tab1
----
56
425
65
4277
93
714

query I rowsort
SELECT ALL + ( ( + col2 ) ) + + col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT DISTINCT - + MIN( ALL - + 70 ) FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT - + MIN ( ALL - + 70 ) FROM tab1 AS cor0
----
70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * + col2 NOT IN ( + col1 + - - 36, + 49 * - col2, ( - ( - 97 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4337
SELECT DISTINCT - ( col1 ) * - - 80 - + - ( + col0 ) AS col0, + 95 + ( - - CAST( NULL AS SIGNED ) ) + - col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1069
NULL
-315
NULL
-3669
NULL

skipif mysql # not compatible
query II rowsort label-4337
SELECT DISTINCT - ( col1 ) * - - 80 - + - ( + col0 ) AS col0, + 95 + ( - - CAST ( NULL AS INTEGER ) ) + - col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1069
NULL
-315
NULL
-3669
NULL

query I rowsort
SELECT ALL - - ( - 26 ) FROM tab0 cor0
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 62 col0, + 32 + - col2 * 83 FROM tab1
----
-62
-4865
-62
-5612
-62
-7936

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND - ( - - 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT 52 * - 14 * - - SUM( ALL + + col0 ) * MAX( ALL - + col1 ) + - SUM( DISTINCT + col0 ) + COUNT( * ) - + 0 AS col1 FROM tab0
----
144676

skipif mysql # not compatible
query I rowsort label-4341
SELECT 52 * - 14 * - - SUM ( ALL + + col0 ) * MAX ( ALL - + col1 ) + - SUM ( DISTINCT + col0 ) + COUNT ( * ) - + 0 AS col1 FROM tab0
----
144676

query II rowsort
SELECT 64 AS col1, col0 FROM tab2
----
64
46
64
64
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4343
SELECT DISTINCT - SUM( DISTINCT + + col0 ) * + 27 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT - SUM ( DISTINCT + + col0 ) * + 27 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4344
SELECT ALL + SUM( ALL + 4 ) DIV - ( - ( - 82 ) ) col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4344
SELECT ALL + SUM ( ALL + 4 ) / - ( - ( - 82 ) ) col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE + 0 IS NULL
----

query II rowsort
SELECT ALL 54, 50 AS col1 FROM tab1 AS cor0
----
54
50
54
50
54
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT 87 * - MIN( DISTINCT + col1 ) AS col0 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-4347
SELECT 87 * - MIN ( DISTINCT + col1 ) AS col0 FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT DISTINCT 67 * + - SUM( 66 ) FROM tab2
----
-13266

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT 67 * + - SUM ( 66 ) FROM tab2
----
-13266

query I rowsort
SELECT 28 * - col0 AS col0 FROM tab0
----
-2436
-2716
-420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT DISTINCT - 20 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT - 20 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 * - ( - + col2 ) AS col1 FROM tab0
----
100
2209
9801

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 16 IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4353
SELECT - + MIN( ALL col2 ) DIV + 50 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4353
SELECT - + MIN ( ALL col2 ) / + 50 AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 84 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4355
SELECT - CAST( 41 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-4355
SELECT - CAST ( 41 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-41
-41
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-4356
SELECT + ( ( + col1 ) ) DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4356
SELECT + ( ( + col1 ) ) / - col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4357
SELECT DISTINCT - col1 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT - col1 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4358
SELECT COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT DISTINCT - 74 * - MAX( - - col0 ) AS col1 FROM tab0
----
7178

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT - 74 * - MAX ( - - col0 ) AS col1 FROM tab0
----
7178

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT + - 25 + - COUNT( * ) * - 17 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4360
SELECT + - 25 + - COUNT ( * ) * - 17 FROM tab0 AS cor0
----
26

query I rowsort
SELECT ALL - - ( 86 ) AS col2 FROM tab2 cor0
----
86
86
86

query I rowsort
SELECT ALL + + col2 * ( - 29 ) + - col2 FROM tab0 AS cor0
----
-1410
-2970
-300

onlyif mysql # DIV for integer division: 
query I rowsort label-4363
SELECT 7 DIV - 3 + + - col0 AS col2 FROM tab0 AS cor0
----
-17
-89
-99

skipif mysql # not compatible
query I rowsort label-4363
SELECT 7 / - 3 + + - col0 AS col2 FROM tab0 AS cor0
----
-17
-89
-99

query II rowsort
SELECT col2 + - + col0 * 93 AS col0, col2 FROM tab0 AS cor0
----
-1348
47
-8081
10
-8922
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4365
SELECT + 67 AS col2 FROM tab0 AS cor0 WHERE ( - 51 + CAST( NULL AS SIGNED ) + + col0 * + col0 + ( - + col1 ) / + col2 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-4365
SELECT + 67 AS col2 FROM tab0 AS cor0 WHERE ( - 51 + CAST ( NULL AS INTEGER ) + + col0 * + col0 + ( - + col1 ) / + col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4366
SELECT ALL + 45, + MIN( + col2 ) AS col2 FROM tab2
----
45
23

skipif mysql # not compatible
query II rowsort label-4366
SELECT ALL + 45, + MIN ( + col2 ) AS col2 FROM tab2
----
45
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, - 80 col1 FROM tab1
----
51
-80
85
-80
91
-80

query III rowsort
SELECT * FROM tab0 WHERE 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE ( + col2 / - 43 ) BETWEEN col1 / - 65 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 86 * - col2 - + 71 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 86 * - col2 - + 71 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 69 AS col2 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
-69

query I rowsort
SELECT + 79 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT ALL 92 * COUNT( * ) FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL 92 * COUNT ( * ) FROM tab1
----
276

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * - col1 BETWEEN col2 + col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 7 AS col1 FROM tab2 AS cor0
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT COUNT( DISTINCT 32 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4376
SELECT COUNT ( DISTINCT 32 ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4377
SELECT - 2 DIV + col2 AS col0, - col2 FROM tab2 AS cor0
----
0
-23
0
-40
0
-58

skipif mysql # not compatible
query II rowsort label-4377
SELECT - 2 / + col2 AS col0, - col2 FROM tab2 AS cor0
----
0
-23
0
-40
0
-58

query I rowsort
SELECT ( - + 64 ) * + col1 FROM tab1 AS cor0
----
-3008
-320
-896

query II rowsort
SELECT - - col2, col0 FROM tab0 AS cor0 WHERE NOT - col0 <= - 15 + + + 49
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 2 = NULL
----

query I rowsort
SELECT - col1 * - + ( + 82 ) AS col2 FROM tab1
----
1148
3854
410

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT ALL MIN( - 77 ) FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL MIN ( - 77 ) FROM tab0
----
-77

query I rowsort
SELECT - 38 FROM tab0 WHERE NOT - 64 = - - col0
----
-38
-38
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4384
SELECT 62 AS col2, + COUNT( * ) DIV + 48 FROM tab0
----
62
0

skipif mysql # not compatible
query II rowsort label-4384
SELECT 62 AS col2, + COUNT ( * ) / + 48 FROM tab0
----
62
0

query II rowsort
SELECT col2 AS col0, + col1 AS col0 FROM tab0
----
10
21
47
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - 79 col1 FROM tab2
----
1817
3160
4582

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 72 < - col0
----
87
21
10
97
1
99

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT 51 IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4389
SELECT DISTINCT + - col0 AS col0, CAST( NULL AS SIGNED ) * col1 * + + col0 AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-4389
SELECT DISTINCT + - col0 AS col0, CAST ( NULL AS INTEGER ) * col1 * + + col0 AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4390
SELECT ALL - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL < col2
----

query I rowsort
SELECT + + 46 AS col1 FROM tab0 AS cor0
----
46
46
46

query II rowsort
SELECT ALL + + 57, + 35 + 54 AS col1 FROM tab1 AS cor0
----
57
89
57
89
57
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4394
SELECT - + 52 FROM tab0 AS cor0 WHERE NOT ( NOT + col1 + + - CAST( NULL AS SIGNED ) + col1 + + CAST( col1 AS SIGNED ) * + col2 * col2 * + - 5 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-4394
SELECT - + 52 FROM tab0 AS cor0 WHERE NOT ( NOT + col1 + + - CAST ( NULL AS INTEGER ) + col1 + + CAST ( col1 AS INTEGER ) * + col2 * col2 * + - 5 IS NOT NULL )
----

query I rowsort
SELECT + 16 + ( - 54 ) * - col0 + + col0 FROM tab2
----
2546
3536
4141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT col0 + + + col1 + - 4 * + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT col0 + + + col1 + - 4 * + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4397
SELECT ALL col2 DIV - col2 + col2 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL col2 / - col2 + col2 FROM tab2
----
22
39
57

query II rowsort
SELECT + col2 + + - 80, + col2 - 25 AS col0 FROM tab0
----
-33
22
-70
-15
19
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT DISTINCT - - col0 + - col0 - - ( + + col0 ) DIV - col0 col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4399
SELECT DISTINCT - - col0 + - col0 - - ( + + col0 ) / - col0 col1 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4400
SELECT ALL - col1 DIV col0 + - - 81 AS col1 FROM tab0 AS cor0
----
76
81
81

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL - col1 / col0 + - - 81 AS col1 FROM tab0 AS cor0
----
76
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT ALL - - COUNT( * ) * - MAX( DISTINCT + + col1 ) col1 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4401
SELECT ALL - - COUNT ( * ) * - MAX ( DISTINCT + + col1 ) col1 FROM tab2 AS cor0
----
-231

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT COUNT( * ) - - - 37 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-4403
SELECT COUNT ( * ) - - - 37 FROM tab0
----
-34

query III rowsort
SELECT * FROM tab0 WHERE - col2 BETWEEN + 14 AND ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - col2 <= - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 29 + col2 AS col0 FROM tab1
----
30
39
67

query I rowsort
SELECT col2 - 21 FROM tab1
----
38
47
75

query I rowsort
SELECT ALL col1 * - col0 + - + col0 * - col2 FROM tab0
----
-510
-957
9506

query I rowsort
SELECT ALL - 69 + - 30 * + col1 FROM tab2
----
-1599
-2079
-2379

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT DISTINCT MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
97

query II rowsort
SELECT ALL - + col1, + col0 * col2 * + + col0 * col2 AS col1 FROM tab2 AS cor0
----
-51
1119364
-67
18922500
-77
6553600

query I rowsort
SELECT DISTINCT + 5 + - col2 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT - col1 + ( + 36 ) * + + 81 - + col0 FROM tab0 cor0 WHERE NOT 68 * + 38 + col1 IS NULL
----
2808
2818
2820

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 46 <= + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4415
SELECT 96 DIV + 34 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4415
SELECT 96 / + 34 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT ALL 13 * + COUNT( * ) col2 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4416
SELECT ALL 13 * + COUNT ( * ) col2 FROM tab0 AS cor0
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-4417
SELECT DISTINCT col0, 44 DIV 64 col1 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4417
SELECT DISTINCT col0, 44 / 64 col1 FROM tab1 AS cor0
----
51
0
85
0
91
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 * col1 AND - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT ALL + col0 * + + CAST( - 68 AS SIGNED ) * + - col2 FROM tab0 AS cor0
----
47940
59160
653004

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL + col0 * + + CAST ( - 68 AS INTEGER ) * + - col2 FROM tab0 AS cor0
----
47940
59160
653004

query I rowsort
SELECT + col0 * + - col0 + + 80 FROM tab1 AS cor0
----
-2521
-7145
-8201

onlyif mysql # aggregate syntax: 
query II rowsort label-4421
SELECT + 91, COUNT( * ) AS col0 FROM tab0 AS cor0
----
91
3

skipif mysql # not compatible
query II rowsort label-4421
SELECT + 91, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
91
3

query I rowsort
SELECT ALL - ( 27 ) AS col1 FROM tab0
----
-27
-27
-27

query I rowsort
SELECT + 17 + - + col2 * + 81 * 17 FROM tab1 WHERE NOT + 79 BETWEEN + ( + - col1 ) AND + col0
----
-132175

query I rowsort
SELECT + col1 + - ( 65 ) * - 93 - col0 * - 88 + + + 80 FROM tab1
----
10627
13610
14180

query I rowsort
SELECT col2 * + + col1 + - + col1 FROM tab0
----
189
3726
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT + COUNT( * ) * - 81 + ( 98 ) AS col0 FROM tab1
----
-145

skipif mysql # not compatible
query I rowsort label-4426
SELECT + COUNT ( * ) * - 81 + ( 98 ) AS col0 FROM tab1
----
-145

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4427
SELECT DISTINCT - - 67 AS col1 FROM tab2 WHERE ( + col1 / + + 68 * + CAST( + - col2 AS DECIMAL ) ) BETWEEN 56 * + col1 + col2 AND - + col0
----

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT - - 67 AS col1 FROM tab2 WHERE ( + col1 / + + 68 * + CAST ( + - col2 AS REAL ) ) BETWEEN 56 * + col1 + col2 AND - + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4428
SELECT ALL - 12 * CAST( NULL AS DECIMAL ) + - 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - 12 * CAST ( NULL AS REAL ) + - 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT + COUNT( * ) * - 73 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-4429
SELECT + COUNT ( * ) * - 73 FROM tab1 AS cor0
----
-219

query II rowsort
SELECT ALL + 42 AS col2, - 25 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to 64c622b3b53adf83083e32d38d65def3

query I rowsort
SELECT ALL - + 29 + col0 * col1 * - 48 FROM tab2 AS cor0
----
-112637
-236573
-241229

query I rowsort
SELECT + col2 + + 38 AS col1 FROM tab0 AS cor0
----
137
48
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT DISTINCT + ( + 37 ) * - - COUNT( * ) * + - ( - 92 ) FROM tab1 cor0
----
10212

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT + ( + 37 ) * - - COUNT ( * ) * + - ( - 92 ) FROM tab1 cor0
----
10212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4434
SELECT + ( - col1 ) * + - col1 + + + CAST( + 36 AS SIGNED ) AS col1 FROM tab2 cor0 WHERE col1 <> + - col0
----
2637
4525
5965

skipif mysql # not compatible
query I rowsort label-4434
SELECT + ( - col1 ) * + - col1 + + + CAST ( + 36 AS INTEGER ) AS col1 FROM tab2 cor0 WHERE col1 <> + - col0
----
2637
4525
5965

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT COUNT( * ) + MIN( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4435
SELECT COUNT ( * ) + MIN ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT + + 52 + + COUNT( * ) - - 1 AS col1 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-4436
SELECT + + 52 + + COUNT ( * ) - - 1 AS col1 FROM tab0 AS cor0
----
56

query I rowsort
SELECT - + 36 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 4 - col2 AS col2 FROM tab2 AS cor0
----
-19
-36
-54

query I rowsort
SELECT ALL + col0 * 35 FROM tab2
----
1610
2240
2625

onlyif mysql # DIV for integer division: 
query I rowsort label-4440
SELECT - col1 DIV + 48 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4440
SELECT - col1 / + 48 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - - col2 col0 FROM tab1
----
110
115
64

query I rowsort
SELECT ALL ( + 95 ) AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
95
95
95

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NOT NULL AND NOT col2 IN ( - + 53 * - - col0, 16 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 98 BETWEEN + col0 AND - - col2
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4445
SELECT CAST( - COUNT( DISTINCT - - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4445
SELECT CAST ( - COUNT ( DISTINCT - - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + col1 ) col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT - 95 * - - 24 FROM tab2 cor0
----
-2280
-2280
-2280

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 < - 96
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4450
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) * 88 - + CAST( - col0 AS SIGNED ) IS NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) * 88 - + CAST ( - col0 AS INTEGER ) IS NULL
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 NOT IN ( + - col2, col0 * col0 * - col2 * - col0 + 8 - col0 * 5 + + col0, - + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 84 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 99 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT MAX( col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
58

skipif mysql # not compatible
query I rowsort label-4454
SELECT MAX ( col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT + COUNT( col1 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4455
SELECT + COUNT ( col1 ) col2 FROM tab0
----
3

query II rowsort
SELECT ALL - col2 AS col0, 43 * - col0 + col2 AS col1 FROM tab0
----
-10
-3731
-47
-598
-99
-4072

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL - COUNT( * ) + - ( + 93 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - COUNT ( * ) + - ( + 93 ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT ( + COUNT( * ) ) FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4458
SELECT ( + COUNT ( * ) ) FROM tab2, tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT DISTINCT + - col1 + + CAST( + ( - - col2 ) AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-100
-231
-3888

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT + - col1 + + CAST ( + ( - - col2 ) AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-100
-231
-3888

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4460
SELECT * FROM tab0 AS cor0 WHERE - col1 * + CAST( - 92 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-4460
SELECT * FROM tab0 AS cor0 WHERE - col1 * + CAST ( - 92 AS INTEGER ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, 64 AS col2 FROM tab1 AS cor0
----
59
64
68
64
96
64

query I rowsort
SELECT - - col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT ALL - 45 FROM tab2 WHERE NOT NULL >= ( - + 31 ) * + 78 * CAST( - 52 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL - 45 FROM tab2 WHERE NOT NULL >= ( - + 31 ) * + 78 * CAST ( - 52 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 83 FROM tab0 AS cor0 WHERE col1 - - 40 / col0 BETWEEN + - col0 AND NULL
----

query II rowsort
SELECT + ( - - col1 ) AS col1, 33 - col1 AS col0 FROM tab1 AS cor0
----
14
19
47
-14
5
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT COUNT( 57 ) AS col2 FROM tab0 cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4466
SELECT COUNT ( 57 ) AS col2 FROM tab0 cor0 WHERE NULL = NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > col2 * + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 42 >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4469
SELECT 76 * - col1 * + col2 - + - ( - CAST( NULL AS DECIMAL ) ) - + + ( + 41 ) + + - CAST( NULL AS SIGNED ) / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT 76 * - col1 * + col2 - + - ( - CAST ( NULL AS REAL ) ) - + + ( + 41 ) + + - CAST ( NULL AS INTEGER ) / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT DISTINCT + COUNT( * ) - - + 64 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT + COUNT ( * ) - - + 64 FROM tab0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT + COUNT( + col2 ) - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4471
SELECT + COUNT ( + col2 ) - + COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT ALL col2 - - + col0 FROM tab2
----
104
133
69

query II rowsort
SELECT ALL + 65, col0 AS col0 FROM tab1
----
65
51
65
85
65
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT COUNT( * ) + 91 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-4474
SELECT COUNT ( * ) + 91 FROM tab0
----
94

query I rowsort
SELECT col0 * + 88 AS col0 FROM tab1
----
4488
7480
8008

query II rowsort
SELECT ALL + 24 AS col1, col1 + + - col1 AS col2 FROM tab1
----
24
0
24
0
24
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > - + 61
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4478
SELECT COUNT( * ) DIV COUNT( + col2 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4478
SELECT COUNT ( * ) / COUNT ( + col2 ) AS col0 FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 - + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4480
SELECT ALL 10 * - CAST( - 72 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
720
720
720

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL 10 * - CAST ( - 72 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
720
720
720

onlyif mysql # DIV for integer division: 
query I rowsort label-4481
SELECT DISTINCT - 50 DIV + col2 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT - 50 / + col2 FROM tab0 AS cor0
----
-1
-5
0

query I rowsort
SELECT 73 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 78
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4483
SELECT ALL MAX( + col0 ) DIV + COUNT( * ) + 70 * 54 col0 FROM tab2 AS cor0
----
3805

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4483
SELECT ALL MAX ( + col0 ) / + COUNT ( * ) + 70 * 54 col0 FROM tab2 AS cor0
----
3805

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT + + MAX( + ( - 61 ) ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4484
SELECT + + MAX ( + ( - 61 ) ) FROM tab2 AS cor0
----
-61

query I rowsort
SELECT DISTINCT - 9 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4486
SELECT DISTINCT SUM( + col2 ) DIV 61 AS col1 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT SUM ( + col2 ) / 61 AS col1 FROM tab0
----
2

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4489
SELECT + - col1 DIV - + col2 AS col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4489
SELECT + - col1 / - + col2 AS col1 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT - + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4490
SELECT - + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 / col2 * - + 60 * 51 + - col2 - - col2 + - - col2 * col0 + + ( - - col1 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4492
SELECT + col0 + - CAST( + 64 AS SIGNED ) FROM tab1
----
-13
21
27

skipif mysql # not compatible
query I rowsort label-4492
SELECT + col0 + - CAST ( + 64 AS INTEGER ) FROM tab1
----
-13
21
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT ALL COUNT( * ) + - + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE 7 * col2 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col1 col0 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT - 41 + + col2 FROM tab0
----
-31
58
6

query I rowsort
SELECT ALL - - col2 + + 9 AS col2 FROM tab0 AS cor0
----
108
19
56

query I rowsort
SELECT + + col0 AS col1 FROM tab1 cor0 WHERE ( 74 * col0 BETWEEN NULL AND NULL )
----

query II rowsort
SELECT + - col2, col2 AS col1 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT - col0 - + 20 FROM tab1
----
-105
-111
-71

query I rowsort
SELECT - 80 - - 85 * col2 * + - col1 * + + col0 FROM tab1
----
-2131455
-24721140
-5826320

query I rowsort
SELECT ALL 99 + 81 + - - col1 AS col2 FROM tab0
----
181
201
261

query I rowsort
SELECT - col0 * + + ( - + col2 ) + - 2 AS col2 FROM tab2 AS cor0
----
1056
2558
4348

query I rowsort
SELECT - 29 * col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1363
-145
-406

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 34 IS NULL
----

query I rowsort
SELECT - col1 + + + col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4507
SELECT + + COUNT( + col2 ) + + + ( 18 ) DIV + MAX( + col1 ) AS col2, + COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4507
SELECT + + COUNT ( + col2 ) + + + ( 18 ) / + MAX ( + col1 ) AS col2, + COUNT ( * ) FROM tab1 AS cor0
----
3
3

query II rowsort
SELECT + 26 AS col0, + col1 AS col1 FROM tab1 AS cor0
----
26
14
26
47
26
5

query I rowsort
SELECT 11 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # aggregate syntax: 
query II rowsort label-4510
SELECT DISTINCT MAX( + - col2 ) AS col1, + ( 19 ) + COUNT( * ) AS col2 FROM tab0
----
-10
22

skipif mysql # not compatible
query II rowsort label-4510
SELECT DISTINCT MAX ( + - col2 ) AS col1, + ( 19 ) + COUNT ( * ) AS col2 FROM tab0
----
-10
22

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( NOT NULL < NULL )
----

query II rowsort
SELECT ALL col1 * 31, 78 AS col2 FROM tab1
----
1457
78
155
78
434
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL + MIN( - - col0 ) col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4513
SELECT ALL + MIN ( - - col0 ) col1 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT + 57 AS col2 FROM tab2 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT + COUNT( * ) * - + 32 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT + COUNT ( * ) * - + 32 FROM tab0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT ALL col1 DIV + col1 + - 71 DIV + ( 24 ) AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL col1 / + col1 + - 71 / + ( 24 ) AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + - 8 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT DISTINCT col2 + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT ALL + SUM( 60 ) FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL + SUM ( 60 ) FROM tab2 AS cor0
----
180

query I rowsort
SELECT 41 * 14 FROM tab2 AS cor0
----
574
574
574

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 47 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4523
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 3 * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 32 + + - 77 NOT BETWEEN col0 AND 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 3 * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 32 + + - 77 NOT BETWEEN col0 AND 59
----
NULL

query II rowsort
SELECT ALL - 15 AS col0, + 85 * - + col0 * + col2 FROM tab0 AS cor0
----
-15
-59925
-15
-73950
-15
-816255

query I rowsort
SELECT col1 * - + 89 FROM tab2
----
-4539
-5963
-6853

query I rowsort
SELECT ALL - col0 * - col0 + + + 91 AS col2 FROM tab0
----
316
7660
9500

query I rowsort
SELECT 89 + - 5 FROM tab2
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 * + col2 - + col1 col1 FROM tab2 AS cor0
----
1513
2643
3877

query I rowsort
SELECT + 44 + + col1 AS col0 FROM tab2
----
111
121
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT + - COUNT( * ) + - COUNT( * ) + + 45 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-4530
SELECT + - COUNT ( * ) + - COUNT ( * ) + + 45 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27

query I rowsort
SELECT + - 42 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 > - 34
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 33 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 58 - + 47 AS col0 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL - SUM( + col2 ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL - SUM ( + col2 ) FROM tab1 cor0
----
-223

query II rowsort
SELECT DISTINCT - col0 AS col2, - ( + 53 ) AS col2 FROM tab0 AS cor0
----
-15
-53
-87
-53
-97
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 14 col0 FROM tab1 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-4538
SELECT ALL + + COUNT( ALL - 33 ) * - - COUNT( * ) AS col0, - COUNT( * ) AS col0 FROM tab2 cor0
----
9
-3

skipif mysql # not compatible
query II rowsort label-4538
SELECT ALL + + COUNT ( ALL - 33 ) * - - COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab2 cor0
----
9
-3

query I rowsort
SELECT - col1 * - + ( + - 95 ) AS col1 FROM tab2
----
-4845
-6365
-7315

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL SUM( - ( ( + col1 ) ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL SUM ( - ( ( + col1 ) ) ) FROM tab0
----
-103

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( 36 ) AND col0 / + - 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT DISTINCT - MIN( - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT - MIN ( - col2 ) FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4543
SELECT ALL - col1 AS col0, + col2 + + col1 * CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
-14
-1248
-47
-3128
-5
-236

skipif mysql # not compatible
query II rowsort label-4543
SELECT ALL - col1 AS col0, + col2 + + col1 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
-14
-1248
-47
-3128
-5
-236

query I rowsort
SELECT - 28 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-28
-28
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4545
SELECT ALL + 96 * - CAST( NULL AS SIGNED ) * ( - - col1 ) * - 47 + 23 + - col2, col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4545
SELECT ALL + 96 * - CAST ( NULL AS INTEGER ) * ( - - col1 ) * - 47 + 23 + - col2, col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT MIN( ALL 71 ) FROM tab2 cor0
----
71

skipif mysql # not compatible
query I rowsort label-4546
SELECT MIN ( ALL 71 ) FROM tab2 cor0
----
71

query II rowsort
SELECT col2, + 34 FROM tab0 AS cor0
----
10
34
47
34
99
34

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 89 BETWEEN - col1 - - col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ( + - 1 ), col0 + + + col0 AS col2 FROM tab0 AS cor0
----
-1
174
-1
194
-1
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT + COUNT( * ) - 56 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-47

skipif mysql # not compatible
query I rowsort label-4550
SELECT + COUNT ( * ) - 56 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-4551
SELECT ALL ( - MAX( + col2 ) ) AS col2, SUM( ALL + col1 ) + - + 83 FROM tab0
----
-99
20

skipif mysql # not compatible
query II rowsort label-4551
SELECT ALL ( - MAX ( + col2 ) ) AS col2, SUM ( ALL + col1 ) + - + 83 FROM tab0
----
-99
20

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL - 40 + - COUNT( - - 73 ) FROM tab2 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL - 40 + - COUNT ( - - 73 ) FROM tab2 cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT DISTINCT + MAX( ALL - - 80 ) * - SUM( + col2 ) FROM tab0 AS cor0
----
-12480

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT + MAX ( ALL - - 80 ) * - SUM ( + col2 ) FROM tab0 AS cor0
----
-12480

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= 57
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 14 ) * - + col1 col0 FROM tab2 AS cor0
----
-1078
-714
-938

query I rowsort
SELECT - + col2 * - col1 + - col0 + + 21 FROM tab0 AS cor0
----
144
23
3813

query II rowsort
SELECT + col0 + + col0 AS col2, col0 FROM tab2 AS cor0
----
128
64
150
75
92
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - + col1 + - + 5, col2 col0 FROM tab1 AS cor0
----
-5
59
-5
68
-5
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = col1 + 55 + 31 + - col2 * col2
----

query I rowsort
SELECT ALL col1 * col1 + - 33 - + 73 FROM tab0
----
-105
335
6455

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( NULL <> + col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * 64 - - col1 IS NULL
----

query I rowsort
SELECT + ( - + 69 ) FROM tab2 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ALL 55 + 24 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT col1 * + 49 + - col0 + + col0 AS col1 FROM tab0 AS cor0
----
1029
3969
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4567
SELECT - 32 - - - col0 DIV + col1 - col1 DIV col0 FROM tab0 cor0
----
-129
-36
-37

skipif mysql # not compatible
query I rowsort label-4567
SELECT - 32 - - - col0 / + col1 - col1 / col0 FROM tab0 cor0
----
-129
-36
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4568
SELECT col2 DIV CAST( 29 AS SIGNED ) col0 FROM tab2
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4568
SELECT col2 / CAST ( 29 AS INTEGER ) col0 FROM tab2
----
0
1
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 >= + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4570
SELECT 26 DIV - COUNT( * ) AS col0 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-4570
SELECT 26 / - COUNT ( * ) AS col0 FROM tab0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT MIN( ALL + 19 ) AS col1 FROM tab1 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT MIN ( ALL + 19 ) AS col1 FROM tab1 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 15 col1 FROM tab0
----
0
72
82

query I rowsort
SELECT ALL col0 + col0 AS col1 FROM tab0 WHERE ( + col1 + col2 ) NOT IN ( 97 )
----
174
194
30

query I rowsort
SELECT + 48 * - col2 FROM tab0
----
-2256
-4752
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT NULL NOT IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT NULL NOT IN ( - col1 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( - 28 + 28 / + 84 ) <= ( NULL )
----

query I rowsort
SELECT ALL col1 * col1 FROM tab1 WHERE NOT + ( 68 ) * - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4578
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT col0 > NULL
----
0

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab1 WHERE - ( col1 ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 + - 67 AS col0 FROM tab2 WHERE NOT ( + 91 ) BETWEEN - 75 AND ( 93 )
----

query I rowsort
SELECT ALL + ( + 44 ) FROM tab1
----
44
44
44

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( + col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 / col0 col0 FROM tab1 WHERE col0 + - col2 * 53 IN ( col2 )
----

query I rowsort
SELECT ALL col1 * - 93 + + ( col1 ) FROM tab0
----
-1932
-7452
-92

query III rowsort
SELECT * FROM tab2 WHERE - ( 64 ) >= + 26
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + col1 ) BETWEEN 96 + col1 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT - MAX( 88 ) FROM tab2 WHERE NOT + col2 / + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT - MAX ( 88 ) FROM tab2 WHERE NOT + col2 / + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL COUNT( * ) + - COUNT( * ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4589
SELECT ALL COUNT ( * ) + - COUNT ( * ) col0 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4590
SELECT + COUNT( * ) * + ( - CAST( 16 AS SIGNED ) ) AS col1 FROM tab0 WHERE NOT + ( 81 ) / - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4590
SELECT + COUNT ( * ) * + ( - CAST ( 16 AS INTEGER ) ) AS col1 FROM tab0 WHERE NOT + ( 81 ) / - col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - ( col2 ) + - 32 * col2 AS col2 FROM tab1
----
-1947
-2244
-3168

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( col0 + ( col2 ) )
----

query I rowsort
SELECT + ( + ( - col2 ) ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT + 44 + + COUNT( * ) col1 FROM tab2
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4594
SELECT + 44 + + COUNT ( * ) col1 FROM tab2
----
47

query I rowsort
SELECT 42 * - 16 FROM tab0 AS cor0
----
-672
-672
-672

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * col0 + + 29 * - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) NOT BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * col0 BETWEEN NULL AND ( - ( + col2 ) )
----

query I rowsort
SELECT DISTINCT col2 + - ( - col0 ) FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4600
SELECT + MAX( + 25 ) DIV 33 FROM tab0 WHERE - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4600
SELECT + MAX ( + 25 ) / 33 FROM tab0 WHERE - col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col1 + 34 AS col0 FROM tab0
----
-47
13
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4602
SELECT - - MAX( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT - - MAX ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 89 col0 FROM tab1 AS cor0
----
-89
-89
-89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 44 BETWEEN NULL AND - 53 / - col0
----

query I rowsort
SELECT ALL + 45 * + col2 AS col0 FROM tab0 AS cor0
----
2115
4455
450

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 28 <= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4607
SELECT DISTINCT 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-4607
SELECT DISTINCT CAST ( - col2 AS INTEGER ) col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT col2 * - + col0 - + col1 FROM tab1
----
-4910
-5020
-6235

onlyif mysql # DIV for integer division: 
query I rowsort label-4609
SELECT ( col1 ) DIV + col0 - col2 AS col0 FROM tab0
----
-10
-42
-99

skipif mysql # not compatible
query I rowsort label-4609
SELECT ( col1 ) / + col0 - col2 AS col0 FROM tab0
----
-10
-42
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 - 94 col2 FROM tab2
----
1506
3270
435

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4611
SELECT DISTINCT CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT CAST ( + CAST ( NULL AS REAL ) AS REAL ) AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4612
SELECT ALL - col1 + - + 73 DIV - col1 FROM tab2
----
-50
-66
-77

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL - col1 + - + 73 / - col1 FROM tab2
----
-50
-66
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL COUNT( * ) FROM tab1 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL COUNT ( * ) FROM tab1 WHERE col2 IS NULL
----
0

query I rowsort
SELECT + col1 * 12 + - col2 AS col0 FROM tab2
----
589
746
884

query I rowsort
SELECT - + col0 + col0 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT DISTINCT + + 3 - + + MIN( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT + + 3 - + + MIN ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
2

query I rowsort
SELECT DISTINCT - col0 - + - col0 AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 ) NOT BETWEEN + col1 + - col2 AND col1 / + col0
----
15
81
47
87
21
10

query I rowsort
SELECT + col1 + col1 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4620
SELECT ALL MAX( - CAST( + col0 AS SIGNED ) ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL MAX ( - CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab2
----
-46

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 92 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4622
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4622
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT 67, col1 * 34 AS col0 FROM tab1
----
67
1598
67
170
67
476

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT DISTINCT + ( - MAX( DISTINCT - col1 ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT + ( - MAX ( DISTINCT - col1 ) ) AS col2 FROM tab0
----
1

query II rowsort
SELECT ALL 57 AS col0, 53 + col1 - - 98 * col0 FROM tab0
----
57
1604
57
8600
57
9560

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 + - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 51 * - col2 * + col2 + col0 * col0 FROM tab1 AS cor0
----
184756
244105
472617

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT DISTINCT SUM( col1 ) / COUNT( * ) AS col1 FROM tab0 WHERE - 96 > - + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT SUM ( col1 ) / COUNT ( * ) AS col1 FROM tab0 WHERE - 96 > - + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL + MAX( - col1 ) col1 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4631
SELECT ALL + MAX ( - col1 ) col1 FROM tab0
----
-1

query I rowsort
SELECT + ( - 18 ) AS col0 FROM tab0
----
-18
-18
-18

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 WHERE ( col2 + - - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 49 > ( col2 ) AND col2 * col1 IS NOT NULL
----

query I rowsort
SELECT + 20 * - + ( + - col2 ) FROM tab2 cor0
----
1160
460
800

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 71 ) < ( col0 )
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 col0 FROM tab2
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + - col0 col0 FROM tab0 cor0
----
-225
-7569
-9409

query I rowsort
SELECT + col0 * + 25 + + + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-1326
-5100
-6006

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * - col0 <> + - col0 AND NOT ( - col1 ) NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4641
SELECT * FROM tab2 AS cor0 WHERE col2 / + - col1 * CAST( NULL AS SIGNED ) * + 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4641
SELECT * FROM tab2 AS cor0 WHERE col2 / + - col1 * CAST ( NULL AS INTEGER ) * + 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT DISTINCT COUNT( * ) + - MAX( DISTINCT - 76 ) AS col2 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT COUNT ( * ) + - MAX ( DISTINCT - 76 ) AS col2 FROM tab2 AS cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4643
SELECT DISTINCT + 78 AS col0, ( + - 71 ) * + CAST( + 16 AS SIGNED ) FROM tab1 AS cor0
----
78
-1136

skipif mysql # not compatible
query II rowsort label-4643
SELECT DISTINCT + 78 AS col0, ( + - 71 ) * + CAST ( + 16 AS INTEGER ) FROM tab1 AS cor0
----
78
-1136

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT - 46 + + COUNT( * ) col2 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4644
SELECT - 46 + + COUNT ( * ) col2 FROM tab1 AS cor0
----
-43

query I rowsort
SELECT ALL 34 * col2 - + 87 * col0 - - - col1 AS col0 FROM tab2 AS cor0
----
-3271
-4285
-4620

query I rowsort
SELECT DISTINCT + + 37 * col2 AS col0 FROM tab1 AS cor0
----
2183
2516
3552

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( 87 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT DISTINCT - CAST( - col2 AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT - COUNT( ALL + col2 ) * 62 FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-4649
SELECT - COUNT ( ALL + col2 ) * 62 FROM tab1
----
-186

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) = NULL
----

query I rowsort
SELECT - + col1 FROM tab2 WHERE ( - col0 ) BETWEEN - col2 AND NULL
----

query I rowsort
SELECT col1 - 66 AS col1 FROM tab1 cor0
----
-19
-52
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT ALL - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4654
SELECT ALL - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT COUNT( * ) * MAX( DISTINCT col2 ) * 97 col1 FROM tab0
----
28809

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4655
SELECT COUNT ( * ) * MAX ( DISTINCT col2 ) * 97 col1 FROM tab0
----
28809

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4656
SELECT CAST( - col1 AS SIGNED ) * + + col0 AS col0 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-4656
SELECT CAST ( - col1 AS INTEGER ) * + + col0 AS col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4657
SELECT ALL 80 * + col1 AS col2, + CAST( NULL AS SIGNED ) FROM tab1
----
1120
NULL
3760
NULL
400
NULL

skipif mysql # not compatible
query II rowsort label-4657
SELECT ALL 80 * + col1 AS col2, + CAST ( NULL AS INTEGER ) FROM tab1
----
1120
NULL
3760
NULL
400
NULL

query I rowsort
SELECT - 57 * 41 + + col2 FROM tab1 AS cor0
----
-2241
-2269
-2278

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + - col2 * - + col1 + - + col1 FROM tab2 AS cor0
----
1122
3003
3819

query I rowsort
SELECT + 16 FROM tab2 AS cor0 WHERE NOT - col0 * + col0 / - - 64 * 34 * + col1 * - col1 NOT IN ( 52 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 79 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4663
SELECT ALL - col2 + - 16 AS col2 FROM tab2 WHERE col2 NOT IN ( CAST( + 53 AS SIGNED ), ( - col0 ) )
----
-39
-56
-74

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL - col2 + - 16 AS col2 FROM tab2 WHERE col2 NOT IN ( CAST ( + 53 AS INTEGER ), ( - col0 ) )
----
-39
-56
-74

query I rowsort
SELECT DISTINCT col0 + - 65 * col0 FROM tab1
----
-3264
-5440
-5824

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4665
SELECT + CAST( NULL AS DECIMAL ) col2, - col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4665
SELECT + CAST ( NULL AS REAL ) col2, - col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col1 AND col2 * 87
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT BETWEEN - - col1 + - + 97 AND ( NULL )
----

query II rowsort
SELECT DISTINCT - 83 AS col2, col1 FROM tab0
----
-83
1
-83
21
-83
81

query I rowsort
SELECT ALL col2 + col0 - - - col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT MAX( DISTINCT + + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4670
SELECT MAX ( DISTINCT + + col0 ) FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4671
SELECT 24 DIV 40 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4671
SELECT 24 / 40 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4672
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 72 col1 FROM tab0 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ALL - ( + COUNT( * ) ) - + 18 - - - 13 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-40

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL - ( + COUNT ( * ) ) - + 18 - - - 13 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-40

query I rowsort
SELECT + 15 * - + col2 + + col1 FROM tab0
----
-129
-1484
-624

query I rowsort
SELECT + + 18 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT 19 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4678
SELECT 73 + - col1 AS col1 FROM tab0 WHERE - - col1 * col2 BETWEEN ( + + col0 / + col0 ) AND ( ( - 72 ) + CAST( 33 AS SIGNED ) - - col2 / 82 )
----

skipif mysql # not compatible
query I rowsort label-4678
SELECT 73 + - col1 AS col1 FROM tab0 WHERE - - col1 * col2 BETWEEN ( + + col0 / + col0 ) AND ( ( - 72 ) + CAST ( 33 AS INTEGER ) - - col2 / 82 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4679
SELECT * FROM tab0 AS cor0 WHERE - CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4679
SELECT * FROM tab0 AS cor0 WHERE - CAST ( col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 93 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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-4683
SELECT DISTINCT + 6 - + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT + 6 - + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4684
SELECT ALL - MIN( DISTINCT + col0 ), 98 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-4684
SELECT ALL - MIN ( DISTINCT + col0 ), 98 * + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
-46
NULL

query I rowsort
SELECT ALL + + 63 - + + ( - col2 ) + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-2030
-3993
-5504

query I rowsort
SELECT ALL - col2 * 76 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT 66 - - ( - col1 ) AS col1 FROM tab2
----
-1
-11
15

query I rowsort
SELECT + 92 - + col0 FROM tab1
----
1
41
7

query I rowsort
SELECT ALL col2 * + - col0 AS col1 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT 15 + - + col0 - + col2 + col0 + + - ( + 95 ) AS col1 FROM tab0
----
-127
-179
-90

query I rowsort
SELECT DISTINCT 78 + 67 FROM tab1
----
145

query I rowsort
SELECT ALL col2 + + col2 + - - col2 FROM tab1
----
177
204
288

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 85 ) NOT BETWEEN - 39 AND - + col1 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT + COUNT( * ) * MAX( + col0 ) + - + 97 AS col1 FROM tab1 AS cor0
----
176

skipif mysql # not compatible
query I rowsort label-4694
SELECT + COUNT ( * ) * MAX ( + col0 ) + - + 97 AS col1 FROM tab1 AS cor0
----
176

query I rowsort
SELECT ALL 78 * - col1 AS col1 FROM tab0
----
-1638
-6318
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-4696
SELECT ALL - 90 AS col0, COUNT( * ) FROM tab0 WHERE col2 + 45 >= ( 5 )
----
-90
3

skipif mysql # not compatible
query II rowsort label-4696
SELECT ALL - 90 AS col0, COUNT ( * ) FROM tab0 WHERE col2 + 45 >= ( 5 )
----
-90
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 16 * + 49 <= NULL
----

query II rowsort
SELECT DISTINCT - - col1 AS col2, - ( - col1 ) + - - 96 * - ( + - col0 ) AS col2 FROM tab1 AS cor0
----
14
4910
47
8783
5
8165

query I rowsort
SELECT col0 * - col1 + + + col0 FROM tab2 cor0 WHERE NOT col2 + + - col2 + - col1 IS NULL
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT - ( - + COUNT( * ) ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4700
SELECT - ( - + COUNT ( * ) ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

query II rowsort
SELECT DISTINCT - + 1 AS col2, col2 FROM tab0 AS cor0
----
-1
10
-1
47
-1
99

query II rowsort
SELECT ALL col1 AS col0, + col0 * + col0 FROM tab2 AS cor0
----
51
2116
67
5625
77
4096

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT DISTINCT - MIN( ALL - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT - MIN ( ALL - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT ( + 78 ) FROM tab1 cor0 WHERE col1 * + 77 IS NOT NULL
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4705
SELECT col1 DIV 14 * + 68 * col0 * - col1 FROM tab0 AS cor0
----
-124236
-413100
0

skipif mysql # not compatible
query I rowsort label-4705
SELECT col1 / 14 * + 68 * col0 * - col1 FROM tab0 AS cor0
----
-124236
-413100
0

query I rowsort
SELECT - - 88 * + - col2 FROM tab1 AS cor0
----
-5192
-5984
-8448

query I rowsort
SELECT - ( - - col1 ) * - - col0 AS col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT 29 AS col0 FROM tab2 WHERE NOT col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( - col0 ) + - col1 - 64 * + col1 IN ( + - 99 + - - col1 + - 62 + + 62 + - 85 * - 64 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4710
SELECT col2 + - col2 col1, + CAST( 47 AS SIGNED ) FROM tab1
----
0
47
0
47
0
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4710
SELECT col2 + - col2 col1, + CAST ( 47 AS INTEGER ) FROM tab1
----
0
47
0
47
0
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4711
SELECT CAST( - COUNT( * ) AS SIGNED ) + + ( - - 80 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4711
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + ( - - 80 ) FROM tab2
----
77

query III rowsort
SELECT * FROM tab2 WHERE - col2 + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 * - col0, col0 col2 FROM tab0 AS cor0
----
-1215
15
-1827
87
-97
97

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( + 50 ) IS NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT 48 DIV - 92 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4715
SELECT 48 / - 92 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 = ( - ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT + - COUNT( * ) * 42 AS col2, - COUNT( * ) FROM tab1 AS cor0
----
-126
-3

skipif mysql # not compatible
query II rowsort label-4717
SELECT + - COUNT ( * ) * 42 AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
-126
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4718
SELECT ALL - CAST( - MIN( DISTINCT + col2 ) AS SIGNED ) - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
20

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL - CAST ( - MIN ( DISTINCT + col2 ) AS INTEGER ) - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4719
SELECT - ( col1 ) * + ( - CAST( NULL AS SIGNED ) ) * ( - 84 ) + + 39 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT - ( col1 ) * + ( - CAST ( NULL AS INTEGER ) ) * ( - 84 ) + + 39 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT ALL - CAST( - + col0 AS SIGNED ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL - CAST ( - + col0 AS INTEGER ) FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT + COUNT( DISTINCT + - 4 ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN - + col2 * - + col1 AND ( + 34 * - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4722
SELECT + COUNT ( DISTINCT + - 4 ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN - + col2 * - + col1 AND ( + 34 * - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT + col0 + - 94 AS col2 FROM tab0
----
-7
-79
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT DISTINCT + SUM( ALL + col1 ) + - - 76 FROM tab0 AS cor0
----
179

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT + SUM ( ALL + col1 ) + - - 76 FROM tab0 AS cor0
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT + - 7 + + ( MIN( - col1 ) ) AS col0 FROM tab2 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4725
SELECT + - 7 + + ( MIN ( - col1 ) ) AS col0 FROM tab2 cor0
----
-84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 66 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT + + col2 + - - col0 + - - 73 AS col0 FROM tab0 AS cor0
----
135
170
269

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 * 44 IS NULL
----

query I rowsort
SELECT 1 + + - col1 FROM tab2 AS cor0
----
-50
-66
-76

query I rowsort
SELECT + ( + 43 ) + col0 + + col0 + + + 31 * - col2 AS col1 FROM tab1 AS cor0
----
-1616
-1883
-2831

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ALL - ( + COUNT( * ) ) col1 FROM tab2 WHERE - - col0 BETWEEN col0 AND ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4733
SELECT ALL - ( + COUNT ( * ) ) col1 FROM tab2 WHERE - - col0 BETWEEN col0 AND ( NULL )
----
0

query I rowsort
SELECT 40 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
40
40
40

query I rowsort
SELECT 84 * + col0 FROM tab1
----
4284
7140
7644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4736
SELECT ALL MIN( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4737
SELECT DISTINCT - MIN( 40 ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
-40
3

skipif mysql # not compatible
query II rowsort label-4737
SELECT DISTINCT - MIN ( 40 ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
-40
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4738
SELECT DISTINCT col2 * + col2 * + CAST( 67 AS SIGNED ) FROM tab0
----
148003
656667
6700

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT col2 * + col2 * + CAST ( 67 AS INTEGER ) FROM tab0
----
148003
656667
6700

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT 80 * - ( - + MAX( ALL + col0 ) ) AS col0 FROM tab2 AS cor0
----
6000

skipif mysql # not compatible
query I rowsort label-4739
SELECT 80 * - ( - + MAX ( ALL + col0 ) ) AS col0 FROM tab2 AS cor0
----
6000

query I rowsort
SELECT - col2 * 17 * - ( col2 ) FROM tab1 cor0
----
156672
59177
78608

query I rowsort
SELECT ( + - 29 ) AS col0 FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT 45 * col2 AS col0 FROM tab1
----
2655
3060
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT DISTINCT - 31 * COUNT( * ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT - 31 * COUNT ( * ) FROM tab0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4744
SELECT SUM( + CAST( - 5 AS SIGNED ) ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-4744
SELECT SUM ( + CAST ( - 5 AS INTEGER ) ) FROM tab1
----
-15

query II rowsort
SELECT - col1 AS col2, col0 * - + col2 FROM tab1
----
-14
-4896
-47
-6188
-5
-5015

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - col0 * + col0
----

query II rowsort
SELECT DISTINCT - 99 + 62, col1 FROM tab1
----
-37
14
-37
47
-37
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4748
SELECT - CAST( NULL AS SIGNED ) AS col0, ( COUNT( DISTINCT 60 ) ) FROM tab1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4748
SELECT - CAST ( NULL AS INTEGER ) AS col0, ( COUNT ( DISTINCT 60 ) ) FROM tab1
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4749
SELECT DISTINCT col1 + - col1 + + + col2 * 76 DIV + 23 FROM tab0 AS cor0
----
155
327
33

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT col1 + - col1 + + + col2 * 76 / + 23 FROM tab0 AS cor0
----
155
327
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4750
SELECT ALL COUNT( * ) * - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL COUNT ( * ) * - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4751
SELECT DISTINCT CAST( col2 AS SIGNED ) * 35 FROM tab1 AS cor0
----
2065
2380
3360

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT CAST ( col2 AS INTEGER ) * 35 FROM tab1 AS cor0
----
2065
2380
3360

query I rowsort
SELECT ALL - col0 * - 40 + - - ( col2 ) * col2 * - + col2 * - 57 AS col2 FROM tab1 AS cor0
----
11710003
17926264
50431992

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab0 WHERE NULL <> - 38
----

query I rowsort
SELECT + col0 * + - 16 AS col1 FROM tab2
----
-1024
-1200
-736

query I rowsort
SELECT DISTINCT 79 + col0 + - + ( + col2 ) AS col0 FROM tab0
----
156
47
77

query III rowsort
SELECT * FROM tab1 WHERE + col1 + + col0 IS NULL
----

query I rowsort
SELECT ALL + 20 - + - 19 - - col1 + 35 FROM tab1
----
121
79
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4758
SELECT col0 * 64 DIV + 30 FROM tab1 cor0
----
108
181
194

skipif mysql # not compatible
query I rowsort label-4758
SELECT col0 * 64 / + 30 FROM tab1 cor0
----
108
181
194

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) > col2
----
51
14
96

query II rowsort
SELECT DISTINCT + - col1 * - col1 AS col0, + 0 FROM tab1 AS cor0
----
196
0
2209
0
25
0

query II rowsort
SELECT col0, - col1 AS col0 FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT col0 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT - COUNT( DISTINCT + - col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4764
SELECT - COUNT ( DISTINCT + - col1 ) FROM tab1
----
-3

query II rowsort
SELECT ALL 1, - col1 * 55 + + ( - - col0 ) + ( + - col1 ) AS col0 FROM tab1
----
1
-195
1
-2541
1
-733

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT - col2 * - + col0 * - 45 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4767
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE - col1 - - + 58 + - + CAST( - + 64 AS SIGNED ) <> - 36
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE - col1 - - + 58 + - + CAST ( - + 64 AS INTEGER ) <> - 36
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT - - col2 + - ( - col1 ) FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT + COUNT( * ) + + - 62 AS col2 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4770
SELECT + COUNT ( * ) + + - 62 AS col2 FROM tab0 AS cor0
----
-59

query I rowsort
SELECT + 39 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT DISTINCT + 98 * 28 * 55 AS col2, col1 + col2 * col0 FROM tab2
----
150920
1109
150920
2637
150920
4417

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4773
SELECT - COUNT( * ) + ( - - CAST( NULL AS DECIMAL ) ) + + SUM( - - 38 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT - COUNT ( * ) + ( - - CAST ( NULL AS REAL ) ) + + SUM ( - - 38 ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE 68 * + col1 IS NULL
----

query I rowsort
SELECT ALL + - col0 + + - col1 FROM tab2 WHERE NOT + col2 < col2
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT ALL + 38 + + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL + 38 + + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT ALL 89 + + ( + col2 ) DIV col0 + 85 * - 56 + - - col1 AS col0 FROM tab1
----
-4624
-4656
-4666

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL 89 + + ( + col2 ) / col0 + 85 * - 56 + - - col1 AS col0 FROM tab1
----
-4624
-4656
-4666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col1 FROM tab0
----
93
93
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND + col2 * 40 * + col1 + col1 / - ( - col0 ) + - ( + col2 ) + - + col1
----

query I rowsort
SELECT + ( + 52 ) * col1 FROM tab0 AS cor0
----
1092
4212
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= col1 + 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4782
SELECT ALL - - col0 * + col1 - 66 * + CAST( NULL AS SIGNED ) + col1 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL - - col0 * + col1 - 66 * + CAST ( NULL AS INTEGER ) + col1 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT DISTINCT SUM( + + 10 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT SUM ( + + 10 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + + col0 - + ( col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4785
SELECT DISTINCT + - 31 DIV + col1 AS col0 FROM tab1 AS cor0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT + - 31 / + col1 AS col0 FROM tab1 AS cor0
----
-2
-6
0

query I rowsort
SELECT ALL - 93 + - + col0 FROM tab1
----
-144
-178
-184

query I rowsort
SELECT col0 + - col0 * + 24 AS col2 FROM tab2
----
-1058
-1472
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL + 73 + - COUNT( * ) + - SUM( - - col0 ) FROM tab2 cor0
----
-115

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL + 73 + - COUNT ( * ) + - SUM ( - - col0 ) FROM tab2 cor0
----
-115

query I rowsort
SELECT DISTINCT + - col0 - col2 + - col0 * - col2 - ( + - col0 ) - + 94 AS col2 FROM tab1 AS cor0
----
4706
4862
6026

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 94, 40 col2 FROM tab2 AS cor0
----
94
40
94
40
94
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT - MAX( col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4791
SELECT - MAX ( col1 ) FROM tab0 cor0
----
-81

query I rowsort
SELECT ALL + col0 * + col0 + - col2 AS col2 FROM tab1 AS cor0
----
2505
7166
8213

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT + SUM( - ( - col2 ) ) * - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
-666

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT + SUM ( - ( - col2 ) ) * - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
-666

query II rowsort
SELECT ( - 46 ) AS col2, + col1 FROM tab0 AS cor0
----
-46
1
-46
21
-46
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4795
SELECT DISTINCT col1 DIV - 63 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT col1 / - 63 AS col2 FROM tab0 AS cor0
----
-1
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN - - col2 AND 80 OR NOT ( NULL ) >= ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4797
SELECT ALL - 10 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL - 10 / + col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, col1 col2 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT DISTINCT + MAX( 31 ) AS col1 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT + MAX ( 31 ) AS col1 FROM tab2
----
31

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT + COUNT( * ) * + COUNT( DISTINCT ( + col2 ) ) * + COUNT( * ) - 38 col1 FROM tab0
----
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4801
SELECT + COUNT ( * ) * + COUNT ( DISTINCT ( + col2 ) ) * + COUNT ( * ) - 38 col1 FROM tab0
----
-11

query I rowsort
SELECT col0 * + 1 AS col0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4803
SELECT CAST( + col1 AS SIGNED ), col2 FROM tab2
----
51
23
67
58
77
40

skipif mysql # not compatible
query II rowsort label-4803
SELECT CAST ( + col1 AS INTEGER ), col2 FROM tab2
----
51
23
67
58
77
40

query III rowsort
SELECT * FROM tab0 WHERE NOT - 7 <> - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4805
SELECT ALL - 37 * col0 * + col1, - CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab1
----
-15725
NULL
-158249
NULL
-26418
NULL

skipif mysql # not compatible
query II rowsort label-4805
SELECT ALL - 37 * col0 * + col1, - CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab1
----
-15725
NULL
-158249
NULL
-26418
NULL

query I rowsort
SELECT - 8 * col1 * - 15 * + + col1 FROM tab0 AS cor0
----
120
52920
787320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 col0 FROM tab2 cor0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4808
SELECT DISTINCT CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ( - col1 ) + 83 AS col1 FROM tab2
----
16
32
6

onlyif mysql # DIV for integer division: 
query II rowsort label-4810
SELECT DISTINCT col1, + 76 DIV col2 * - col2 DIV + + col2 FROM tab2
----
51
-3
67
-1
77
-1

skipif mysql # not compatible
query II rowsort label-4810
SELECT DISTINCT col1, + 76 / col2 * - col2 / + + col2 FROM tab2
----
51
-3
67
-1
77
-1

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 88 <= NULL
----

query II rowsort
SELECT 64 AS col0, - 30 AS col0 FROM tab0 AS cor0
----
64
-30
64
-30
64
-30

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col2 + col0 * + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4814
SELECT DISTINCT col0, 65 DIV - col1 AS col0 FROM tab1 cor0
----
51
-4
85
-13
91
-1

skipif mysql # not compatible
query II rowsort label-4814
SELECT DISTINCT col0, 65 / - col1 AS col0 FROM tab1 cor0
----
51
-4
85
-13
91
-1

query I rowsort
SELECT DISTINCT - ( - 37 ) * - ( col0 ) + - 14 + - - col1 AS col2 FROM tab0
----
-3212
-3602
-488

query I rowsort
SELECT ALL + 1 AS col2 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + + 28 col1, col1 AS col0 FROM tab2
----
-18
51
-36
77
-47
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4818
SELECT CAST( NULL AS SIGNED ) - + 91 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT CAST ( NULL AS INTEGER ) - + 91 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 0 - - col1 AS col0, - 25 col2 FROM tab2
----
51
-25
67
-25
77
-25

query I rowsort
SELECT DISTINCT + col1 + - 3 FROM tab1
----
11
2
44

query I rowsort
SELECT + col1 + + 53 AS col0 FROM tab2
----
104
120
130

query I rowsort
SELECT ALL - 4 + - + 55 AS col1 FROM tab0
----
-59
-59
-59

query I rowsort
SELECT 8 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 79
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4824
SELECT - 89, COUNT( * ) AS col1 FROM tab1
----
-89
3

skipif mysql # not compatible
query II rowsort label-4824
SELECT - 89, COUNT ( * ) AS col1 FROM tab1
----
-89
3

query I rowsort
SELECT ALL + 89 * - 74 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 722b96a181181a3d67f757cedc777219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4826
SELECT - CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT - CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4827
SELECT ALL CAST( - + ( + 77 ) AS SIGNED ) * - col2 + - 45 + - col2 FROM tab1 cor0
----
4439
5123
7251

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL CAST ( - + ( + 77 ) AS INTEGER ) * - col2 + - 45 + - col2 FROM tab1 cor0
----
4439
5123
7251

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT ALL 21 DIV - + col1 FROM tab0 AS cor0
----
-1
-21
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL 21 / - + col1 FROM tab0 AS cor0
----
-1
-21
0

query I rowsort
SELECT DISTINCT - 1 * + - 39 AS col2 FROM tab0 AS cor0
----
39

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT NULL >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4831
SELECT + + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4831
SELECT + + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT DISTINCT ( COUNT( * ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4832
SELECT DISTINCT ( COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT - 15 AS col2, + col2 AS col0 FROM tab2
----
-15
23
-15
40
-15
58

query II rowsort
SELECT - col0 AS col0, col2 AS col1 FROM tab2
----
-46
23
-64
40
-75
58

query I rowsort
SELECT ALL col2 * + 94 AS col0 FROM tab1
----
5546
6392
9024

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT - MIN( DISTINCT 19 ) FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-4836
SELECT - MIN ( DISTINCT 19 ) FROM tab1
----
-19

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE + ( + + col2 ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT - COUNT( 67 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4838
SELECT - COUNT ( 67 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT NULL IN ( + col1 / + col1 + - + 21, 48 )
----

query II rowsort
SELECT - col2 * + + 61 AS col2, col1 FROM tab0
----
-2867
81
-6039
1
-610
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL - 76 * - COUNT( * ) * 66 FROM tab0
----
15048

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL - 76 * - COUNT ( * ) * 66 FROM tab0
----
15048

query II rowsort
SELECT ALL ( - - col0 ) AS col0, 3 + + 67 * - col2 + + col0 AS col1 FROM tab1
----
51
-6378
85
-3865
91
-4462

query II rowsort
SELECT DISTINCT + - col2 AS col1, - col2 AS col0 FROM tab0 cor0
----
-10
-10
-47
-47
-99
-99

query II rowsort
SELECT + 52 AS col0, - col0 FROM tab0 AS cor0
----
52
-15
52
-87
52
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4845
SELECT col1 DIV + + col1 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4845
SELECT col1 / + + col1 AS col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT DISTINCT 59 + + 47 + - COUNT( * ) col2 FROM tab2
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4846
SELECT DISTINCT 59 + + 47 + - COUNT ( * ) col2 FROM tab2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT - MIN( - col0 ) col0 FROM tab2 AS cor0 WHERE + 18 IS NOT NULL
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4847
SELECT - MIN ( - col0 ) col0 FROM tab2 AS cor0 WHERE + 18 IS NOT NULL
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT - - 3 + + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4848
SELECT - - 3 + + - COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 19 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4850
SELECT - 75 col1, + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-75
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4850
SELECT - 75 col1, + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-75
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT ALL + SUM( - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL + SUM ( - col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT 69 * - 81 + - col0 - col0 FROM tab0 AS cor0
----
-5619
-5763
-5783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4853
SELECT DISTINCT MAX( ALL + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT MAX ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 60 * - col2 col1 FROM tab0 AS cor0
----
-2835
-6037
-687

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4855
SELECT - CAST( NULL AS SIGNED ) + + col1 + + 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT - CAST ( NULL AS INTEGER ) + + col1 + + 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4856
SELECT ALL - col1 AS col1, CAST( NULL AS SIGNED ) * col2 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-4856
SELECT ALL - col1 AS col1, CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT col2 DIV - col2 + - col0 AS col2 FROM tab1
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-4857
SELECT col2 / - col2 + - col0 AS col2 FROM tab1
----
-52
-86
-92

query II rowsort
SELECT ALL 34, + col0 FROM tab2
----
34
46
34
64
34
75

query I rowsort
SELECT ALL + + col1 FROM tab0 WHERE NOT + col1 * 55 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT DISTINCT ( col1 ) + + col0 + - 88 DIV + col1 AS col2 FROM tab0
----
10
104
95

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT ( col1 ) + + col0 + - 88 / + col1 AS col2 FROM tab0
----
10
104
95

query II rowsort
SELECT ALL 42 AS col0, + col1 AS col1 FROM tab0
----
42
1
42
21
42
81

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT - 82 - - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT - 82 - - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 9 * + + col2 - + col1 AS col1, ( - col0 ) AS col1 FROM tab1 AS cor0
----
526
-85
565
-91
850
-51

query I rowsort
SELECT + col0 - + - 8 AS col0 FROM tab0 AS cor0
----
105
23
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4866
SELECT + CAST( NULL AS SIGNED ) * col0 * + col2 + - col0 + - + 65 - col0 + - - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4866
SELECT + CAST ( NULL AS INTEGER ) * col0 * + col2 + - col0 + - + 65 - col0 + - - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 43 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
2193
3655
3913

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT ALL + 79 + - SUM( - col0 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL + 79 + - SUM ( - col0 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 - 51 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4870
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col1 * - CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4870
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col1 * - CAST ( + col1 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT DISTINCT + - 15 * - + col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT + - 15 * - + col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 4 AS col1 FROM tab0 cor0
----
4
4
4

query I rowsort
SELECT + 7 * col0 AS col1 FROM tab2 cor0
----
322
448
525

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT DISTINCT - - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
9

query II rowsort
SELECT DISTINCT + 2, 99 / col1 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT ALL - COUNT( * ) * + 92 + COUNT( * ) col0 FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4876
SELECT ALL - COUNT ( * ) * + 92 + COUNT ( * ) col0 FROM tab0 AS cor0
----
-273

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 8 <> col1 + + col1 * - - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 84 > + 41
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 BETWEEN + col0 AND + + 32 / - col2
----

query II rowsort
SELECT DISTINCT col2 AS col2, col2 * - 14 AS col0 FROM tab1
----
59
-826
68
-952
96
-1344

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4882
SELECT DISTINCT - AVG ( ALL + 89 ) / - CAST( NULL AS SIGNED ), 7 col1 FROM tab0
----
NULL
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4882
SELECT DISTINCT - AVG ( ALL + 89 ) / - CAST ( NULL AS INTEGER ), 7 col1 FROM tab0
----
NULL
7

query I rowsort
SELECT col0 * col0 * - 90 FROM tab1
----
-234090
-650250
-745290

query I rowsort
SELECT + col2 * - ( - col0 ) FROM tab2
----
1058
2560
4350

query I rowsort
SELECT + ( 38 ) * + + col2 FROM tab0
----
1786
3762
380

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT + - COUNT( * ) * 10 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4886
SELECT + - COUNT ( * ) * 10 FROM tab1 AS cor0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4887
SELECT 37 DIV - + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-4

skipif mysql # not compatible
query I rowsort label-4887
SELECT 37 / - + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4888
SELECT - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + + 93 col0 FROM tab1
----
-3
25
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4891
SELECT - col1 AS col2, col0 DIV - + col1 FROM tab2 cor0
----
-51
0
-67
-1
-77
0

skipif mysql # not compatible
query II rowsort label-4891
SELECT - col1 AS col2, col0 / - + col1 FROM tab2 cor0
----
-51
0
-67
-1
-77
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4892
SELECT DISTINCT 95 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT 95 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - ( - 17 ) AS col1, + col0 FROM tab1 AS cor0
----
17
51
17
85
17
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4894
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----
0

query I rowsort
SELECT + col2 - + - col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT DISTINCT col1 * - - col0 AS col2 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT COUNT( * ) - - COUNT( + 6 ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4897
SELECT COUNT ( * ) - - COUNT ( + 6 ) AS col0 FROM tab0
----
6

query I rowsort
SELECT 98 + + + col2 * - 23 FROM tab1
----
-1259
-1466
-2110

query I rowsort
SELECT 87 + col2 AS col2 FROM tab1
----
146
155
183

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE + col0 <> col2
----
-3

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE + col0 <> col2
----
-3

query II rowsort
SELECT 53, - 74 AS col2 FROM tab0
----
53
-74
53
-74
53
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4902
SELECT COUNT( * ) * - COUNT( * ) DIV ( + COUNT( * ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4902
SELECT COUNT ( * ) * - COUNT ( * ) / ( + COUNT ( * ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT - ( + - 56 ) FROM tab0
----
56
56
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4904
SELECT ALL - + COUNT( * ) - + - COUNT( * ) AS col1, + MAX( - - 79 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0
79

skipif mysql # not compatible
query II rowsort label-4904
SELECT ALL - + COUNT ( * ) - + - COUNT ( * ) AS col1, + MAX ( - - 79 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0
79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 13 * - col2 + + ( + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * 14 + + 52 * + col0 + - + col1, - 73 * - + 92 col0 FROM tab1 AS cor0 WHERE - 70 <> + col2
----
1294
6716
3589
6716
3733
6716

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT ALL + + 62 FROM tab2 AS cor0
----
62
62
62

query I rowsort
SELECT DISTINCT 12 + - col2 AS col2 FROM tab1
----
-47
-56
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL - 26 * MIN( - col2 ) col0 FROM tab1
----
2496

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4910
SELECT ALL - 26 * MIN ( - col2 ) col0 FROM tab1
----
2496

query III rowsort
SELECT * FROM tab1 WHERE NOT - 56 BETWEEN col0 AND + + 72 + 77 + - - 20 - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4912
SELECT CAST( NULL AS SIGNED ) + MAX( - col1 ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4912
SELECT CAST ( NULL AS INTEGER ) + MAX ( - col1 ) col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND - - col1
----

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT - col1 * + + CAST( NULL AS SIGNED ) + - - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT - col1 * + + CAST ( NULL AS INTEGER ) + - - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + + 43 ) AS col0 FROM tab2
----
43
43
43

query I rowsort
SELECT DISTINCT col2 + + col2 * + col1 AS col0 FROM tab2
----
1196
3120
3944

onlyif mysql # DIV for integer division: 
query I rowsort label-4918
SELECT DISTINCT - - col2 + + col2 DIV + - 51 FROM tab1 cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT - - col2 + + col2 / + - 51 FROM tab1 cor0
----
58
67
95

query I rowsort
SELECT DISTINCT + - 7 * col1 * + col2 FROM tab2 AS cor0
----
-21560
-27202
-8211

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT + COUNT( + col1 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4920
SELECT + COUNT ( + col1 ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4921
SELECT + + COUNT( * ) DIV 73 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4921
SELECT + + COUNT ( * ) / 73 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + col0 * col0 * + - 83 AS col1 FROM tab0 AS cor0
----
-18675
-628227
-780947

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT - COUNT( * ) * + 5 AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4923
SELECT - COUNT ( * ) * + 5 AS col2 FROM tab0
----
-15

query I rowsort
SELECT col2 * col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT col0 * 66 IS NULL
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4925
SELECT + COUNT( * ) / MAX( ALL - - CAST( NULL AS SIGNED ) ) + 71 / 32 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT + COUNT ( * ) / MAX ( ALL - - CAST ( NULL AS INTEGER ) ) + 71 / 32 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 3 * 55 col1 FROM tab0 cor0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT ALL 66 + COUNT( * ) AS col0 FROM tab1 cor0
----
69

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL 66 + COUNT ( * ) AS col0 FROM tab1 cor0
----
69

query I rowsort
SELECT - 7 * - 53 + col2 FROM tab2 AS cor0
----
394
411
429

query I rowsort
SELECT col2 + - - 30 FROM tab0 AS cor0
----
129
40
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4930
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 7 NOT BETWEEN + CAST( NULL AS SIGNED ) + + col1 AND - col0
----

skipif mysql # not compatible
query III rowsort label-4930
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 7 NOT BETWEEN + CAST ( NULL AS INTEGER ) + + col1 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4931
SELECT DISTINCT + col2 DIV + + col2 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT + col2 / + + col2 AS col1 FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 >= + 30
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4933
SELECT + 35 col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4933
SELECT + 35 col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT - 3 AS col2, 14 * - 9 FROM tab2
----
-3
-126
-3
-126
-3
-126

query I rowsort
SELECT DISTINCT ( + ( - + col2 ) ) AS col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL + 47 FROM tab1, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4937
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + COUNT( * ) / + MIN( - col1 ) * 86 * + + MAX( + - col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) / + MIN ( - col1 ) * 86 * + + MAX ( + - col0 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL - 92 * - + COUNT( * ) * 58 AS col0 FROM tab2
----
16008

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL - 92 * - + COUNT ( * ) * 58 AS col0 FROM tab2
----
16008

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT + + SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4939
SELECT + + SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT + + col1 + - 29 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * - - col1 >= - col1 * + 51 + - 39 * - col1
----
22
38
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4941
SELECT ALL CAST( NULL AS SIGNED ) * - 59 - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL CAST ( NULL AS INTEGER ) * - 59 - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4942
SELECT 77 DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4942
SELECT 77 / col1 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 3 col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE ( 31 ) < - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 79 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT DISTINCT + 92 + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
101

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT + 92 + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
101

query I rowsort
SELECT DISTINCT - 71 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4948
SELECT ALL MIN( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL MIN ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT - 37 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 29 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4951
SELECT col1 DIV + - col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4951
SELECT col1 / + - col1 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT ALL - CAST( - ( - + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL - CAST ( - ( - + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT ALL - 70 * + - COUNT( + 52 ) AS col1 FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL - 70 * + - COUNT ( + 52 ) AS col1 FROM tab2 AS cor0
----
210

query I rowsort
SELECT - col0 * + 18 FROM tab2 AS cor0
----
-1152
-1350
-828

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND + + 71
----

query I rowsort
SELECT ALL - col2 / + 16 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT ( - - col1 ) FROM tab2 WHERE NOT 74 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4958
SELECT DISTINCT * FROM tab2 WHERE + 73 * + ( + - CAST( NULL AS SIGNED ) ) + - col2 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-4958
SELECT DISTINCT * FROM tab2 WHERE + 73 * + ( + - CAST ( NULL AS INTEGER ) ) + - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * + - 74 FROM tab2
----
-1702
-2960
-4292

query II rowsort
SELECT ALL + col2 AS col2, 14 * + 60 AS col0 FROM tab1
----
59
840
68
840
96
840

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ALL 63 + COUNT( + + col0 ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL 63 + COUNT ( + + col0 ) FROM tab0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + - col1 col0 FROM tab0
----
-11
-34
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4963
SELECT DISTINCT - 26 + + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT - 26 + + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 84 + - - col2 FROM tab2 AS cor0
----
-26
-44
-61

query I rowsort
SELECT DISTINCT - col2 * + 1 FROM tab0 AS cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * col1 * - col2 col0, 58 AS col2 FROM tab2 AS cor0
----
237160
58
260362
58
59823
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL 4 * - COUNT( * ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL 4 * - COUNT ( * ) FROM tab2 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4968
SELECT ALL 61 / + ( + col0 ) / - ( col1 ) * + 85 + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * - col0 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 <> - + 62
----

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL 61 / + ( + col0 ) / - ( col1 ) * + 85 + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - col0 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 <> - + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT ALL + SUM( DISTINCT + + col2 ) + + 33 FROM tab1
----
256

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL + SUM ( DISTINCT + + col2 ) + + 33 FROM tab1
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT * FROM tab0 WHERE ( ( NULL ) < NULL )
----

query I rowsort
SELECT - ( col0 ) * - 65 FROM tab2
----
2990
4160
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL - 66 + MIN( DISTINCT + 53 ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - 66 + MIN ( DISTINCT + 53 ) FROM tab0 AS cor0
----
-13

query I rowsort
SELECT + ( + + 31 ) FROM tab1 AS cor0
----
31
31
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4975
SELECT ALL CAST( NULL AS SIGNED ), - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= + 37 / 94 + col2 / - - col2 + - + col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4975
SELECT ALL CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= + 37 / 94 + col2 / - - col2 + - + col0
----
NULL
0

query I rowsort
SELECT - - 26 AS col2 FROM tab2 WHERE NULL IS NULL
----
26
26
26

query III rowsort
SELECT * FROM tab0 WHERE NOT 87 * col1 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * col0 * col1 AS col1 FROM tab1
----
-25075
-290836
-68544

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT - COUNT( * ) * + 42 AS col2 FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-4980
SELECT - COUNT ( * ) * + 42 AS col2 FROM tab2
----
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 65 col2, 5 * + 61 FROM tab2 AS cor0
----
65
305
65
305
65
305

query I rowsort
SELECT + - ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4983
SELECT ALL 71 DIV - col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL 71 / - col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4984
SELECT + COUNT( * ) * + 7 AS col1, COUNT( * ) FROM tab1
----
21
3

skipif mysql # not compatible
query II rowsort label-4984
SELECT + COUNT ( * ) * + 7 AS col1, COUNT ( * ) FROM tab1
----
21
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4985
SELECT col2 DIV + 59 + + 99 col0 FROM tab0 AS cor0
----
100
99
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4985
SELECT col2 / + 59 + + 99 col0 FROM tab0 AS cor0
----
100
99
99

query I rowsort
SELECT + col2 * - - col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - col1, col0, + - col2, + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col2 + + col1 * col2 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT + 25 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4989
SELECT + 25 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, col0 * - 23 col2 FROM tab1 AS cor0
----
14
-1173
47
-2093
5
-1955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4991
SELECT DISTINCT 18 + - MIN( DISTINCT - 90 ) DIV - MAX( ALL + col0 ) - CAST( - 64 AS SIGNED ) AS col2, 82 FROM tab0
----
82
82

skipif mysql # not compatible
query II rowsort label-4991
SELECT DISTINCT 18 + - MIN ( DISTINCT - 90 ) / - MAX ( ALL + col0 ) - CAST ( - 64 AS INTEGER ) AS col2, 82 FROM tab0
----
82
82

query I rowsort
SELECT 78 * - 44 * - 81 + - 96 FROM tab0
----
277896
277896
277896

query I rowsort
SELECT + 19 + - - col2 FROM tab1
----
115
78
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4994
SELECT COUNT( * ) DIV + 65 + - 49 * - COUNT( * ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-4994
SELECT COUNT ( * ) / + 65 + - 49 * - COUNT ( * ) FROM tab2
----
147

query I rowsort
SELECT DISTINCT + 27 + + col2 + + ( 2 ) AS col2 FROM tab1 WHERE - col0 IS NOT NULL
----
125
88
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 * - 48 * + - col2 col0 FROM tab1
----
14219
153476
64608

query I rowsort
SELECT - 47 FROM tab2 cor0 WHERE NULL < col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4998
SELECT CAST( NULL AS SIGNED ) + - COUNT( DISTINCT - CAST( - col2 AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT - CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + + col0 + - col0 AS col0 FROM tab2
----
2070
4032
5550

query I rowsort
SELECT + col0 + - col0 - + - col1 * + 92 * - col2 + - - col1 * col1 FROM tab1 AS cor0
----
-123452
-27115
-291823

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 BETWEEN ( + ( - - 67 ) ) AND + col1
----

query I rowsort
SELECT col0 + - 16 * - + col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 12 col0 FROM tab0 cor0
----
3
75
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5004
SELECT ALL - + COUNT( * ) - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL - + COUNT ( * ) - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 51 ) col2 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
51
51
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5006
SELECT COUNT( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5006
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT + ( 38 ) AS col2 FROM tab1 AS cor0
----
38
38
38

onlyif mysql # DIV for integer division: 
query II rowsort label-5008
SELECT - 42 col0, - col2 DIV 43 FROM tab0 AS cor0
----
-42
-1
-42
-2
-42
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5008
SELECT - 42 col0, - col2 / 43 FROM tab0 AS cor0
----
-42
-1
-42
-2
-42
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5009
SELECT CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT CAST ( NULL AS REAL ) * col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT ALL - SUM( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL - SUM ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-227

query II rowsort
SELECT ALL ( + col2 ) AS col0, - col1 FROM tab0
----
10
-21
47
-81
99
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT - 8 + + col0 < - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5013
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-5013
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + col1 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query III rowsort label-5015
SELECT + ( - + col2 ) DIV + col1 + col2 AS col0, col0 col1, col1 + col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 3d652f3d466d81f04bf14e3700b045e0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5015
SELECT + ( - + col2 ) / + col1 + col2 AS col0, col0 col1, col1 + col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 3d652f3d466d81f04bf14e3700b045e0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5016
SELECT - 54 DIV COUNT( * ) * - - MAX( ALL + - col2 ) FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-5016
SELECT - 54 / COUNT ( * ) * - - MAX ( ALL + - col2 ) FROM tab0 AS cor0
----
180

query I rowsort
SELECT - 58 * + col1 - col0 FROM tab2 cor0
----
-3004
-3961
-4530

query I rowsort
SELECT DISTINCT col1 * col2 AS col0 FROM tab2 AS cor0 WHERE 53 > + 71 + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 37 > col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5020
SELECT ALL col2 DIV 84 + col1 FROM tab1
----
15
47
5

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL col2 / 84 + col1 FROM tab1
----
15
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5021
SELECT + COUNT( ALL + col0 ) * - COUNT( * ) DIV + 99 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5021
SELECT + COUNT ( ALL + col0 ) * - COUNT ( * ) / + 99 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - col2 * + - col1 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5023
SELECT ALL + ( col0 ) DIV - - 84 + - col2 + - ( - col1 ) * + col0 col1 FROM tab0 AS cor0
----
-1
1168
1818

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5023
SELECT ALL + ( col0 ) / - - 84 + - col2 + - ( - col1 ) * + col0 col1 FROM tab0 AS cor0
----
-1
1168
1818

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN NULL AND + + col2 - col1 / + 50
----
87
21
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5025
SELECT 74 DIV + COUNT( * ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-5025
SELECT 74 / + COUNT ( * ) FROM tab2 AS cor0
----
24

query I rowsort
SELECT DISTINCT + + ( - ( - col2 ) ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5027
SELECT CAST( - col2 AS SIGNED ) / + - 99 + - - col1, 99 AS col1 FROM tab0 WHERE + ( ( - col0 ) ) * col0 + col0 < NULL
----

skipif mysql # not compatible
query II rowsort label-5027
SELECT CAST ( - col2 AS INTEGER ) / + - 99 + - - col1, 99 AS col1 FROM tab0 WHERE + ( ( - col0 ) ) * col0 + col0 < NULL
----

query I rowsort
SELECT ALL - 65 * 27 FROM tab2
----
-1755
-1755
-1755

query I rowsort
SELECT ALL + col0 * + + col1 AS col1 FROM tab2
----
2346
4928
5025

query II rowsort
SELECT col0 AS col1, - 75 + - col2 + - - col2 * + - 37 AS col0 FROM tab2
----
46
-949
64
-1595
75
-2279

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5031
SELECT * FROM tab2 WHERE NULL <> + col1 * 86 * 90 * + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5031
SELECT * FROM tab2 WHERE NULL <> + col1 * 86 * 90 * + CAST ( NULL AS REAL )
----

query I rowsort
SELECT ( - - col0 ) * col1 + + 36 + 83 AS col0 FROM tab1
----
4396
544
833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT + col1 + - - col2 * 74 * + CAST( NULL AS SIGNED ) - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT + col1 + - - col2 * 74 * + CAST ( NULL AS INTEGER ) - + col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 82 + col0 + + col1 * 72 AS col1, 48 - 66 FROM tab2
----
3800
-18
4981
-18
5690
-18

query I rowsort
SELECT DISTINCT - 28 + col0 * + 25 * col1 * + - col2 FROM tab2
----
-1348978
-4928028
-7286278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5036
SELECT 6 + 72 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5036
SELECT 6 + 72 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT 52 * + MIN( ALL ( - col0 ) ) + - ( - + MIN( + - 1 ) ) AS col0 FROM tab2 AS cor0
----
-3901

skipif mysql # not compatible
query I rowsort label-5037
SELECT 52 * + MIN ( ALL ( - col0 ) ) + - ( - + MIN ( + - 1 ) ) AS col0 FROM tab2 AS cor0
----
-3901

query I rowsort
SELECT - + col2 AS col1 FROM tab0 AS cor0 WHERE - 56 / - 27 * 47 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5039
SELECT 80 + - CAST( MAX( DISTINCT + 33 ) AS SIGNED ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5039
SELECT 80 + - CAST ( MAX ( DISTINCT + 33 ) AS INTEGER ) FROM tab2 AS cor0
----
47

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT + 68 - + SUM( col2 ) AS col1 FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-5041
SELECT + 68 - + SUM ( col2 ) AS col1 FROM tab0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT - 89 - SUM( 82 ) col0 FROM tab1 AS cor0
----
-335

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5042
SELECT - 89 - SUM ( 82 ) col0 FROM tab1 AS cor0
----
-335

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT DISTINCT - ( COUNT( * ) ) * + 34 AS col2 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT - ( COUNT ( * ) ) * + 34 AS col2 FROM tab2 AS cor0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT DISTINCT + SUM( - ( - - 79 ) ) FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-5044
SELECT DISTINCT + SUM ( - ( - - 79 ) ) FROM tab0 AS cor0
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ALL SUM( DISTINCT - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL SUM ( DISTINCT - col0 ) FROM tab1
----
-227

query II rowsort
SELECT + col2, col2 AS col1 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT ALL + MIN( DISTINCT - - col1 ) col2 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5048
SELECT ALL + MIN ( DISTINCT - - col1 ) col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT DISTINCT MAX( DISTINCT 94 ) FROM tab2 WHERE NOT + 57 NOT BETWEEN NULL AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT MAX ( DISTINCT 94 ) FROM tab2 WHERE NOT + 57 NOT BETWEEN NULL AND - col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - col1 * + + 99 + - 6 + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 42 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT ALL col0 + col1 DIV col0 AS col1 FROM tab1 WHERE NOT - 63 IN ( + 60 )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL col0 + col1 / col0 AS col1 FROM tab1 WHERE NOT - 63 IN ( + 60 )
----
51
85
91

query I rowsort
SELECT col0 + col1 AS col1 FROM tab2 WHERE ( col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + col2 * ( col0 * col2 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 57 <> ( NULL )
----

query I rowsort
SELECT + ( col0 ) + - col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT ALL - 22 * ( col1 ) AS col2 FROM tab2
----
-1122
-1474
-1694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5058
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE + 32 + + 77 / 21 NOT IN ( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE + 32 + + 77 / 21 NOT IN ( CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT - col0 + col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT DISTINCT - 63 * COUNT( * ) FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT - 63 * COUNT ( * ) FROM tab1
----
-189

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE col0 IN ( col1 )
----

query I rowsort
SELECT - col1 * 69 AS col2 FROM tab0
----
-1449
-5589
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ( + COUNT( - 83 ) ) * COUNT( - 52 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5063
SELECT ( + COUNT ( - 83 ) ) * COUNT ( - 52 ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT COUNT( * ) * + MIN( ALL + 36 ) FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-5064
SELECT COUNT ( * ) * + MIN ( ALL + 36 ) FROM tab0
----
108

query I rowsort
SELECT ALL 73 FROM tab1 WHERE NULL NOT BETWEEN + 58 - - col0 * + 43 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT DISTINCT MAX( col0 ) col0 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5066
SELECT DISTINCT MAX ( col0 ) col0 FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( - col0 ) ) col0 FROM tab0
----
15
87
97

query I rowsort
SELECT col2 * + 89 AS col0 FROM tab0
----
4183
8811
890

query I rowsort
SELECT - 18 * 64 AS col0 FROM tab1
----
-1152
-1152
-1152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 * col0 + 64 col2 FROM tab2
----
340
448
514

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 / 63 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT ALL 97 * COUNT( * ) AS col2 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL 97 * COUNT ( * ) AS col2 FROM tab0
----
291

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE col2 BETWEEN NULL AND - 61
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5074
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5074
SELECT MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT - col1 * CAST( NULL AS SIGNED ) - col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT - col1 * CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 70 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-70
-70
-70

query I rowsort
SELECT DISTINCT - col2 - 73 * ( col0 + 9 ) FROM tab0 AS cor0
----
-1799
-7018
-7837

query I rowsort
SELECT ALL + col1 - ( - 3 ) FROM tab0 AS cor0
----
24
4
84

query I rowsort
SELECT col1 * col1 - col2 FROM tab0 AS cor0
----
-98
431
6514

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT col0 - - 71 DIV - col1 AS col1 FROM tab0 AS cor0
----
15
26
84

skipif mysql # not compatible
query I rowsort label-5080
SELECT col0 - - 71 / - col1 AS col1 FROM tab0 AS cor0
----
15
26
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5081
SELECT DISTINCT 66 DIV + ( 57 * col1 ) FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT 66 / + ( 57 * col1 ) FROM tab0
----
0
1

query I rowsort
SELECT ALL + 8 + + 69 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT - 85 * - col0 FROM tab0
----
1275
7395
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT DISTINCT MIN( - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT MIN ( - col1 ) AS col2 FROM tab1
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 / 33 col2 FROM tab0 AS cor0 WHERE NOT ( - col0 - col2 ) NOT BETWEEN + 32 AND NULL
----

query I rowsort
SELECT - + 72 AS col0 FROM tab1 cor0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT + SUM( 52 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5087
SELECT + SUM ( 52 ) FROM tab0 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( ( + 24 ) ) col2 FROM tab2 AS cor0
----
24

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE col2 >= col1 + 34
----
51
85

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 41 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 91 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 59 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 34 * 93 AS col2 FROM tab0
----
3162

query I rowsort
SELECT ALL ( - 99 ) AS col0 FROM tab2
----
-99
-99
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> ( 64 * + col1 + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 NOT IN ( 0 )
----

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 * 34 ) < ( - col2 )
----
10
47
99

query I rowsort
SELECT DISTINCT - - 23 AS col2 FROM tab0 AS cor0
----
23

query I rowsort
SELECT ALL - 57 AS col0 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT DISTINCT + MAX( DISTINCT + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT + MAX ( DISTINCT + col1 ) FROM tab0
----
81

query I rowsort
SELECT DISTINCT + 48 + + 12 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - col1 ) + ( - col2 ) AS col1 FROM tab0
----
-98
11
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5105
SELECT - col0 col0 FROM tab1 WHERE + 97 < col0 * CAST( NULL AS DECIMAL ) - ( 67 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5105
SELECT - col0 col0 FROM tab1 WHERE + 97 < col0 * CAST ( NULL AS REAL ) - ( 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT + + MAX( ALL col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5106
SELECT + + MAX ( ALL col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT - + MAX( DISTINCT + - 36 ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5107
SELECT - + MAX ( DISTINCT + - 36 ) FROM tab2 AS cor0
----
36

query I rowsort
SELECT col0 * + 43 AS col1 FROM tab2 cor0 WHERE col2 * - col2 <= ( 63 + - col2 )
----
1978
2752
3225

query I rowsort
SELECT + 39 * col0 FROM tab0 AS cor0
----
3393
3783
585

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + + ( col2 ) < ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5111
SELECT * FROM tab0 AS cor0 WHERE + 87 * CAST( NULL AS DECIMAL ) NOT IN ( 82 )
----

skipif mysql # not compatible
query III rowsort label-5111
SELECT * FROM tab0 AS cor0 WHERE + 87 * CAST ( NULL AS REAL ) NOT IN ( 82 )
----

query I rowsort
SELECT - ( + 32 ) - ( + col2 ) * 52 FROM tab0
----
-2476
-5180
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT COUNT( * ) - + ( COUNT( DISTINCT - - 66 ) ) AS col1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-5113
SELECT COUNT ( * ) - + ( COUNT ( DISTINCT - - 66 ) ) AS col1 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT - 89 - - MIN( DISTINCT + 98 ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5114
SELECT - 89 - - MIN ( DISTINCT + 98 ) AS col2 FROM tab0
----
9

query II rowsort
SELECT DISTINCT - ( 12 ), col1 AS col2 FROM tab0
----
-12
1
-12
21
-12
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5116
SELECT ALL * FROM tab2 WHERE NOT - 14 IN ( - CAST( + col0 AS SIGNED ) * - 48 ) AND NOT col1 - 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5116
SELECT ALL * FROM tab2 WHERE NOT - 14 IN ( - CAST ( + col0 AS INTEGER ) * - 48 ) AND NOT col1 - 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 + + 97 FROM tab1
----
12
46
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5118
SELECT - 14 + CAST( NULL AS SIGNED ) + + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT - 14 + CAST ( NULL AS INTEGER ) + + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5119
SELECT ALL + col2 - + col2, + col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
-1
0
-1
0
0

skipif mysql # not compatible
query II rowsort label-5119
SELECT ALL + col2 - + col2, + col1 / - col0 AS col0 FROM tab2 AS cor0
----
0
-1
0
-1
0
0

query I rowsort
SELECT ALL - ( - col0 ) + col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 8 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5124
SELECT DISTINCT CAST( + MAX( + - col2 ) AS SIGNED ) * - 79 + - 55 FROM tab0 AS cor0
----
735

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT CAST ( + MAX ( + - col2 ) AS INTEGER ) * - 79 + - 55 FROM tab0 AS cor0
----
735

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT + COUNT( DISTINCT col2 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5125
SELECT + COUNT ( DISTINCT col2 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - 71 FROM tab1 AS cor0 WHERE col1 <= - - col1
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-5127
SELECT + 78 AS col2, MAX( + 33 ) AS col0 FROM tab2
----
78
33

skipif mysql # not compatible
query II rowsort label-5127
SELECT + 78 AS col2, MAX ( + 33 ) AS col0 FROM tab2
----
78
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5128
SELECT + COUNT( * ) AS col2, + 86 + 5 AS col0 FROM tab0
----
3
91

skipif mysql # not compatible
query II rowsort label-5128
SELECT + COUNT ( * ) AS col2, + 86 + 5 AS col0 FROM tab0
----
3
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5129
SELECT - COUNT( * ) DIV - COUNT( * ) + - - SUM( + + col0 ) - 58 * + MAX( - 55 ) col1 FROM tab2
----
3376

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5129
SELECT - COUNT ( * ) / - COUNT ( * ) + - - SUM ( + + col0 ) - 58 * + MAX ( - 55 ) col1 FROM tab2
----
3376

query I rowsort
SELECT DISTINCT - col2 + - - 44 FROM tab0
----
-3
-55
34

query I rowsort
SELECT - 78 * + - col1 - + 19 AS col1 FROM tab0 AS cor0
----
1619
59
6299

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL - MIN( ALL + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL - MIN ( ALL + col2 ) FROM tab1 AS cor0
----
-59

query II rowsort
SELECT ALL 29 AS col1, col1 * + - 85 AS col1 FROM tab1 AS cor0
----
29
-1190
29
-3995
29
-425

query II rowsort
SELECT ALL - col0 AS col1, 93 AS col2 FROM tab0 AS cor0
----
-15
93
-87
93
-97
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL + + MAX( + + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL + + MAX ( + + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
75

query I rowsort
SELECT + col1 * - - ( + - col2 ) AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT DISTINCT - - ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT - - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE 81 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE - 62 / - col1 <= - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5140
SELECT COUNT( * ) DIV 80 FROM tab2 AS cor0 WHERE 89 < ( - col1 - + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-5140
SELECT COUNT ( * ) / 80 FROM tab2 AS cor0 WHERE 89 < ( - col1 - + 77 )
----
0

query I rowsort
SELECT DISTINCT + 55 * - + col1 FROM tab2 AS cor0
----
-2805
-3685
-4235

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 56 ) * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT DISTINCT + COUNT( + + col0 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5143
SELECT DISTINCT + COUNT ( + + col0 ) col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 + 8 + + 23 )
----

query I rowsort
SELECT ALL - - 9 - - ( - - 68 ) + - 29 AS col1 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT ALL - 12 + - 3 * + 34 FROM tab1
----
-114
-114
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-5147
SELECT col0 DIV + col0 AS col0 FROM tab2 WHERE - - col2 * col2 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5147
SELECT col0 / + col0 AS col0 FROM tab2 WHERE - - col2 * col2 IS NOT NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT DISTINCT - SUM( + col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT - SUM ( + col1 ) AS col0 FROM tab1
----
-66

query I rowsort
SELECT ALL + col1 * - + 79 FROM tab2 WHERE NOT - + 4 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT + 74 - col1 FROM tab1 AS cor0
----
27
60
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5151
SELECT + + 95 - - 85 DIV - col2 FROM tab2 AS cor0
----
92
93
94

skipif mysql # not compatible
query I rowsort label-5151
SELECT + + 95 - - 85 / - col2 FROM tab2 AS cor0
----
92
93
94

query II rowsort
SELECT DISTINCT ( - - 60 ) - - - 19 AS col2, - ( - col0 ) FROM tab0 AS cor0
----
41
15
41
87
41
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT ALL - MAX( - + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL - MAX ( - + col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5154
SELECT DISTINCT + - COUNT( * ) DIV + + MAX( - col0 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT + - COUNT ( * ) / + + MAX ( - col0 ) AS col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - - ( + ( - - 48 ) ) col0 FROM tab1 AS cor0 WHERE NOT ( 5 ) BETWEEN + col1 AND - - col2
----
-3
-43

query II rowsort
SELECT 98 AS col2, - col1 FROM tab1 AS cor0
----
98
-14
98
-47
98
-5

query I rowsort
SELECT + ( - 90 ) FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT - col2 + col2 FROM tab1 AS cor0 WHERE NOT - 13 IS NULL
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5159
SELECT ALL * FROM tab1 AS cor0 WHERE + 97 * CAST( 89 AS DECIMAL ) * - + col0 / col0 NOT BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query III rowsort label-5159
SELECT ALL * FROM tab1 AS cor0 WHERE + 97 * CAST ( 89 AS REAL ) * - + col0 / col0 NOT BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5160
SELECT * FROM tab2 cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) / + 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5160
SELECT * FROM tab2 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) / + 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5161
SELECT DISTINCT + CAST( + col1 AS SIGNED ), + col1 FROM tab0
----
1
1
21
21
81
81

skipif mysql # not compatible
query II rowsort label-5161
SELECT DISTINCT + CAST ( + col1 AS INTEGER ), + col1 FROM tab0
----
1
1
21
21
81
81

query II rowsort
SELECT ALL col0 * - - col2, - col1 AS col1 FROM tab2
----
1058
-51
2560
-77
4350
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5163
SELECT DISTINCT - 20 * 60 DIV - + col2 FROM tab0 cor0
----
12
120
25

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT - 20 * 60 / - + col2 FROM tab0 cor0
----
12
120
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT DISTINCT + + COUNT( * ) * + 43 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT + + COUNT ( * ) * + 43 FROM tab2 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT ALL 28 * COUNT( * ) + + 35 AS col1 FROM tab2 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL 28 * COUNT ( * ) + + 35 AS col1 FROM tab2 AS cor0
----
119

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * - + col0 / - 61 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5167
SELECT ALL - - 57 DIV + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL - - 57 / + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5168
SELECT + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT - 9 * - - 28 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-5169
SELECT - 9 * - - 28 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 81 col2 FROM tab1 AS cor0
----
-81
-81
-81

query I rowsort
SELECT ALL 65 AS col2 FROM tab0 cor0
----
65
65
65

query III rowsort
SELECT * FROM tab2 WHERE NOT + 15 * - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 col2 FROM tab1
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT DISTINCT COUNT( - - col1 ) * SUM( ALL - col2 ) AS col2 FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT COUNT ( - - col1 ) * SUM ( ALL - col2 ) AS col2 FROM tab0
----
-468

query I rowsort
SELECT ALL col2 + + + col2 * + + col2 FROM tab2
----
1640
3422
552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5176
SELECT COUNT( - CAST( + + col0 AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5176
SELECT COUNT ( - CAST ( + + col0 AS INTEGER ) ) FROM tab1
----
3

query I rowsort
SELECT ALL 63 + + + col2 AS col0 FROM tab1
----
122
131
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL MIN( ALL col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL MIN ( ALL col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT - MAX( - 90 ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5179
SELECT - MAX ( - 90 ) FROM tab1 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5180
SELECT * FROM tab1 cor0 WHERE - 37 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5180
SELECT * FROM tab1 cor0 WHERE - 37 NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT ALL - - COUNT( * ) + + ( + COUNT( * ) ) + + 85 AS col1 FROM tab2 AS cor0 WHERE NOT 30 IS NOT NULL
----
85

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL - - COUNT ( * ) + + ( + COUNT ( * ) ) + + 85 AS col1 FROM tab2 AS cor0 WHERE NOT 30 IS NOT NULL
----
85

query II rowsort
SELECT DISTINCT - 73 AS col0, - 62 FROM tab2 AS cor0
----
-73
-62

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - 14 ) > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - - 47 * - col1 - + 22 + - col1 * - col1 AS col2 FROM tab1 AS cor0
----
-22
-232
-484

query I rowsort
SELECT - 48 + + - col1 * - col1 AS col1 FROM tab1
----
-23
148
2161

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT 34 + col2 + + + 56 * + - 41 NOT IN ( col2 )
----

query I rowsort
SELECT - 79 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5189
SELECT DISTINCT + - ( + col2 ) * + - col0 * + + col2 col2 FROM tab2 WHERE NULL = + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5189
SELECT DISTINCT + - ( + col2 ) * + - col0 * + + col2 col2 FROM tab2 WHERE NULL = + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5190
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE - 59 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT col0 AS col0 FROM tab1 cor0 WHERE NULL IN ( col2, 14 * - col0 )
----

query I rowsort
SELECT ( ( col1 ) ) FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5194
SELECT * FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND NOT ( + + ( + - CAST( - col2 AS SIGNED ) ) - + col1 * + col2 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-5194
SELECT * FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND NOT ( + + ( + - CAST ( - col2 AS INTEGER ) ) - + col1 * + col2 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL + SUM( - col0 ) AS col2 FROM tab0 WHERE NOT ( + - 55 * + col0 + - col2 - col0 + + 89 * + col1 * - + 33 * - col0 * - - col2 ) IS NULL
----
-199

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL + SUM ( - col0 ) AS col2 FROM tab0 WHERE NOT ( + - 55 * + col0 + - col2 - col0 + + 89 * + col1 * - + 33 * - col0 * - - col2 ) IS NULL
----
-199

query I rowsort
SELECT DISTINCT - 40 AS col2 FROM tab0
----
-40

query I rowsort
SELECT ALL 94 + - - col1 AS col0 FROM tab2
----
145
161
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT - CAST( + - CAST( col1 AS SIGNED ) AS SIGNED ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT - CAST ( + - CAST ( col1 AS INTEGER ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 85 + - + 98 col0 FROM tab2
----
10
27
45

query I rowsort
SELECT + col0 + + + 4 * 81 AS col2 FROM tab2
----
370
388
399

query I rowsort
SELECT + col1 + col2 + - + ( + + col1 ) FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE + - col2 < NULL
----

query I rowsort
SELECT ALL + col1 * - col1 + - - col1 FROM tab1 AS cor0
----
-182
-20
-2162

query I rowsort
SELECT DISTINCT 17 AS col2 FROM tab0 cor0
----
17

query I rowsort
SELECT DISTINCT - - ( - ( ( col0 ) ) ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-5207
SELECT ALL - - COUNT( * ) AS col2, 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9
87

skipif mysql # not compatible
query II rowsort label-5207
SELECT ALL - - COUNT ( * ) AS col2, 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT + COUNT( * ) + COUNT( * ) + - 82 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-64

skipif mysql # not compatible
query I rowsort label-5208
SELECT + COUNT ( * ) + COUNT ( * ) + - 82 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-64

query I rowsort
SELECT + 44 + - 33 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = - 40
----

query I rowsort
SELECT DISTINCT col2 * + + col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT 16 * + 24 AS col1 FROM tab2 cor0
----
384
384
384

query II rowsort
SELECT + col1 AS col2, col2 + ( - - 15 ) * + col2 + - 76 FROM tab2 cor0 WHERE NOT ( NOT ( NOT ( NULL ) IS NOT NULL ) )
----
51
292
67
852
77
564

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT DISTINCT - - MAX( ALL + col1 ) * - 11 FROM tab1 AS cor0
----
-517

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT - - MAX ( ALL + col1 ) * - 11 FROM tab1 AS cor0
----
-517

query II rowsort
SELECT + col2 AS col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT 14 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5216
SELECT ALL - col0 AS col2, CAST( NULL AS SIGNED ) * - 69 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-5216
SELECT ALL - col0 AS col2, CAST ( NULL AS INTEGER ) * - 69 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5217
SELECT ( + CAST( + 62 AS SIGNED ) ) DIV col0 + + 32 + + + col2 AS col0 FROM tab0 AS cor0
----
131
42
83

skipif mysql # not compatible
query I rowsort label-5217
SELECT ( + CAST ( + 62 AS INTEGER ) ) / col0 + + 32 + + + col2 AS col0 FROM tab0 AS cor0
----
131
42
83

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 22 > + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 75 * - col1 * - col0 + - col1 - - col1 FROM tab2 AS cor0
----
175950
369600
376875

query II rowsort
SELECT + col1 + - col1, 92 + - - col0 + - 97 * - col2 AS col1 FROM tab1
----
0
5900
0
6779
0
9455

query I rowsort
SELECT - - col2 - + 57 AS col2 FROM tab2 WHERE NOT col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT MIN( 17 ) + COUNT( * ) col2 FROM tab0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5222
SELECT MIN ( 17 ) + COUNT ( * ) col2 FROM tab0
----
20

query I rowsort
SELECT ALL - 50 + col2 * + col2 AS col2 FROM tab1
----
3431
4574
9166

onlyif mysql # DIV for integer division: 
query I rowsort label-5224
SELECT DISTINCT col0 DIV - 15 + ( + col1 ) + + 94 AS col1 FROM tab1
----
105
135
94

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT col0 / - 15 + ( + col1 ) + + 94 AS col1 FROM tab1
----
105
135
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5225
SELECT + col1 + - - CAST( - col1 AS SIGNED ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5225
SELECT + col1 + - - CAST ( - col1 AS INTEGER ) FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 < + 61 / - 20 + + 0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 53 + col2 AS col0 FROM tab2
----
111
76
93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col2, + 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5229
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
3

query I rowsort
SELECT + - 36 * 25 FROM tab2 AS cor0
----
-900
-900
-900

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 21 ) <> + 42
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT CAST( NULL AS SIGNED ) + - + 99 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT CAST ( NULL AS INTEGER ) + - + 99 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 80 NOT IN ( - ( ( - col0 ) ) * - col2, col1, - + 49 + + 20 * - + 18 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5234
SELECT ALL + col0 + + col2 + col1 DIV - col1 FROM tab0 cor0
----
195
61
96

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL + col0 + + col2 + col1 / - col1 FROM tab0 cor0
----
195
61
96

query I rowsort
SELECT DISTINCT col0 - - col2 AS col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL - - col0 * col1 * + col0 + ( + ( - + 9 ) ) AS col2 FROM tab0 AS cor0
----
158940
18216
9400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5237
SELECT DISTINCT COUNT( + col0 ) + COUNT( * ) DIV + + 69 col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5237
SELECT DISTINCT COUNT ( + col0 ) + COUNT ( * ) / + + 69 col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5238
SELECT - col0 + CAST( + 19 AS SIGNED ) AS col0, col1 FROM tab2 AS cor0
----
-27
51
-45
77
-56
67

skipif mysql # not compatible
query II rowsort label-5238
SELECT - col0 + CAST ( + 19 AS INTEGER ) AS col0, col1 FROM tab2 AS cor0
----
-27
51
-45
77
-56
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT ALL COUNT( ALL - col1 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5239
SELECT ALL COUNT ( ALL - col1 ) col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 col0 FROM tab2 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT SUM( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5241
SELECT SUM ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT DISTINCT col0 - + + col1 AS col1 FROM tab0 AS cor0
----
-66
66
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 37 - col0 FROM tab2 cor0
----
-27
-38
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-5245
SELECT DISTINCT + col1 AS col2, - col1 * - 81 + + + 23 DIV - col1 AS col1 FROM tab1
----
14
1133
47
3807
5
401

skipif mysql # not compatible
query II rowsort label-5245
SELECT DISTINCT + col1 AS col2, - col1 * - 81 + + + 23 / - col1 AS col1 FROM tab1
----
14
1133
47
3807
5
401

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5246
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - col2 + 14 <> + col0
----

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col2 + 14 <> + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 53 col2, - 95 FROM tab0
----
53
-95
53
-95
53
-95

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT - - 94 * 56 + + - MIN( + col2 ) * + 25 AS col2 FROM tab0 WHERE NOT + col0 IS NULL
----
5014

skipif mysql # not compatible
query I rowsort label-5249
SELECT - - 94 * 56 + + - MIN ( + col2 ) * + 25 AS col2 FROM tab0 WHERE NOT + col0 IS NULL
----
5014

query II rowsort
SELECT DISTINCT - col2, - 89 AS col2 FROM tab1 AS cor0
----
-59
-89
-68
-89
-96
-89

query II rowsort
SELECT + - col1 AS col2, col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT - col2 - - 37 * col2 * + - col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT - - COUNT( - + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5253
SELECT - - COUNT ( - + col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= col2 / col1 * - col0 - col0
----

query I rowsort
SELECT ALL + + 8 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5256
SELECT ALL + col1 * - CAST( - col2 AS SIGNED ) AS col0 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL + col1 * - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT + col2 + - 19 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
21
39
4

query I rowsort
SELECT 52 AS col2 FROM tab1 cor0
----
52
52
52

query I rowsort
SELECT ALL - - ( 89 ) + + + ( + - col2 ) AS col1 FROM tab2 AS cor0
----
31
49
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT - COUNT( 98 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5261
SELECT - COUNT ( 98 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT DISTINCT - SUM( DISTINCT + 98 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-5262
SELECT DISTINCT - SUM ( DISTINCT + 98 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-294

query I rowsort
SELECT ALL ( col1 ) * - col2 * - ( - col2 ) FROM tab0 WHERE ( ( NULL ) <= 65 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT NULL <= col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT 82 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5266
SELECT * FROM tab2 WHERE + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5266
SELECT * FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5267
SELECT COUNT( * ), - COUNT( * ) AS col1 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-5267
SELECT COUNT ( * ), - COUNT ( * ) AS col1 FROM tab2
----
3
-3

query I rowsort
SELECT ALL 41 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query II rowsort
SELECT col0 AS col0, col0 * + col2 AS col1 FROM tab1
----
51
4896
85
5015
91
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT ALL - 24 + - COUNT( * ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL - 24 + - COUNT ( * ) FROM tab0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT SUM( - col0 ) + 11 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-5271
SELECT SUM ( - col0 ) + 11 FROM tab2 AS cor0
----
-174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5272
SELECT + COUNT( DISTINCT col0 ) + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5272
SELECT + COUNT ( DISTINCT col0 ) + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + - col1 * + + col1 col1 FROM tab0 AS cor0
----
308367
4410
99

query I rowsort
SELECT + 55 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL + col0 + + 56 AS col0 FROM tab2
----
102
120
131

query I rowsort
SELECT - col0 * - col1 + ( - 84 ) - + col0 + + col1 + + col2 FROM tab1 AS cor0
----
320
4217
689

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5277
SELECT DISTINCT - 63 - + - 71 * CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5277
SELECT DISTINCT - 63 - + - 71 * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + - col1 - + + 70 AS col1, - col0 FROM tab1 AS cor0
----
-117
-91
-75
-85
-84
-51

query II rowsort
SELECT DISTINCT - col2 * ( - 49 ) - 45, col1 AS col1 FROM tab2 cor0
----
1082
51
1915
77
2797
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT ALL MAX( + col2 ) + 88 FROM tab2 AS cor0 WHERE ( col0 ) NOT IN ( col2, col2 )
----
146

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL MAX ( + col2 ) + 88 FROM tab2 AS cor0 WHERE ( col0 ) NOT IN ( col2, col2 )
----
146

query I rowsort
SELECT DISTINCT + col2 * - ( - col1 ) * col2 - + col0 AS col1 FROM tab1 AS cor0
----
128973
17320
217237

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - ( + col2 ) FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5286
SELECT - CAST( + ( CAST( - - col2 AS SIGNED ) ) AS SIGNED ) * - col0 AS col1 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-5286
SELECT - CAST ( + ( CAST ( - - col2 AS INTEGER ) ) AS INTEGER ) * - col0 AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT 14 * - col0 * 21 FROM tab1
----
-14994
-24990
-26754

query II rowsort
SELECT ALL col0, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT + 29 * 8 AS col1 FROM tab1
----
232

query I rowsort
SELECT ALL + ( - 33 ) AS col2 FROM tab0
----
-33
-33
-33

query I rowsort
SELECT + 23 * - 8 FROM tab1
----
-184
-184
-184

query I rowsort
SELECT 62 * - col1 FROM tab2
----
-3162
-4154
-4774

query I rowsort
SELECT DISTINCT + ( + col1 ) + - col2 - col2 + + 63 + - col2 FROM tab2 AS cor0 WHERE NOT 99 IS NULL
----
-44
20
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5294
SELECT DISTINCT + CAST( NULL AS SIGNED ), 66 * + col1 * - 47 AS col1 FROM tab0 AS cor0
----
NULL
-251262
NULL
-3102
NULL
-65142

skipif mysql # not compatible
query II rowsort label-5294
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 66 * + col1 * - 47 AS col1 FROM tab0 AS cor0
----
NULL
-251262
NULL
-3102
NULL
-65142

query III rowsort
SELECT * FROM tab1 WHERE NOT + 17 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - col0 + + col1 * col1 AS col1 FROM tab0 AS cor0
----
-96
354
6546

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT SUM( - 62 ) FROM tab2 AS cor0 WHERE NOT NULL <= - col1 * - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT SUM ( - 62 ) FROM tab2 AS cor0 WHERE NOT NULL <= - col1 * - col2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = 23
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + 3 <> NULL
----

query I rowsort
SELECT 30 FROM tab0 cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5301
SELECT ALL - 60, + CAST( NULL AS SIGNED ) * 78 * - 7 * 35 + - col1 AS col2 FROM tab1 AS cor0
----
-60
NULL
-60
NULL
-60
NULL

skipif mysql # not compatible
query II rowsort label-5301
SELECT ALL - 60, + CAST ( NULL AS INTEGER ) * 78 * - 7 * 35 + - col1 AS col2 FROM tab1 AS cor0
----
-60
NULL
-60
NULL
-60
NULL

query I rowsort
SELECT - - 96 + - + 21 * - - col2 FROM tab0 cor0
----
-114
-1983
-891

query I rowsort
SELECT - + ( - - col0 ) + - col0 FROM tab1 AS cor0
----
-102
-170
-182

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 92 ) NOT IN ( - 41 * + + 5 * col2, - 61 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL - COUNT( * ) * - SUM( DISTINCT + col1 ) * ( 16 ) col2 FROM tab2 AS cor0
----
9360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5305
SELECT ALL - COUNT ( * ) * - SUM ( DISTINCT + col1 ) * ( 16 ) col2 FROM tab2 AS cor0
----
9360

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT + - 57 + + col2 DIV + - ( - - col0 ) + - col2 FROM tab1 AS cor0
----
-116
-125
-154

skipif mysql # not compatible
query I rowsort label-5306
SELECT + - 57 + + col2 / + - ( - - col0 ) + - col2 FROM tab1 AS cor0
----
-116
-125
-154

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5307
SELECT ALL 95 * - col2, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-2185
NULL
-3800
NULL
-5510
NULL

skipif mysql # not compatible
query II rowsort label-5307
SELECT ALL 95 * - col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-2185
NULL
-3800
NULL
-5510
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT 73 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT DISTINCT - COUNT( * ) + + 35 + + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 WHERE - col2 * 20 + 4 IS NULL
----
35

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT - COUNT ( * ) + + 35 + + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 WHERE - col2 * 20 + 4 IS NULL
----
35

query III rowsort
SELECT ALL * FROM tab0 WHERE + 52 BETWEEN - 46 AND col2
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5311
SELECT DISTINCT + col0 DIV - - CAST( - 20 AS SIGNED ) AS col2 FROM tab1
----
-2
-4

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT + col0 / - - CAST ( - 20 AS INTEGER ) AS col2 FROM tab1
----
-2
-4

query I rowsort
SELECT 92 + col2 AS col0 FROM tab0
----
102
139
191

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NULL > - ( - 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5314
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL 81 + + col0 FROM tab2
----
127
145
156

query I rowsort
SELECT DISTINCT - 28 + - col2 FROM tab2
----
-51
-68
-86

query I rowsort
SELECT DISTINCT + col0 * 14 + + + 2 * + 61 FROM tab0 AS cor0
----
1340
1480
332

query III rowsort
SELECT * FROM tab0 WHERE 93 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 BETWEEN + col1 + + ( - col2 ) AND + + ( - + 83 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5320
SELECT DISTINCT - 18 + - col2 + + 19 - + 53 * col1 * + 63 DIV + 63 FROM tab1
----
-2558
-323
-837

skipif mysql # not compatible
query I rowsort label-5320
SELECT DISTINCT - 18 + - col2 + + 19 - + 53 * col1 * + 63 / + 63 FROM tab1
----
-2558
-323
-837

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT SUM( - + col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5321
SELECT SUM ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT DISTINCT ( + MIN( ALL - col0 ) ) FROM tab1 AS cor0 WHERE + col1 + + 26 + + col1 * + - col1 + + col0 BETWEEN NULL AND ( 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT DISTINCT ( + MIN ( ALL - col0 ) ) FROM tab1 AS cor0 WHERE + col1 + + 26 + + col1 * + - col1 + + col0 BETWEEN NULL AND ( 20 )
----
NULL

query I rowsort
SELECT ALL - - col1 * + - col0 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query II rowsort label-5324
SELECT ALL - 91 DIV col2 * ( - - 59 ) * + ( - - col0 ) DIV - col0 + + + col0 + - - col2 AS col2, col1 AS col2 FROM tab0 AS cor0
----
121
81
196
1
628
21

skipif mysql # not compatible
query II rowsort label-5324
SELECT ALL - 91 / col2 * ( - - 59 ) * + ( - - col0 ) / - col0 + + + col0 + - - col2 AS col2, col1 AS col2 FROM tab0 AS cor0
----
121
81
196
1
628
21

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = ( - col0 ) + + col0
----

query II rowsort
SELECT ALL + col2 AS col1, 95 AS col1 FROM tab2 AS cor0
----
23
95
40
95
58
95

query I rowsort
SELECT - + ( + 96 ) FROM tab1 AS cor0
----
-96
-96
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - + col2 / col1 * + ( ( - - 3 ) ) < + 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT + MAX( + + 35 ) AS col0 FROM tab0, tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-5329
SELECT + MAX ( + + 35 ) AS col0 FROM tab0, tab2 AS cor0
----
35

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 65 + + + col1 + - col1 * col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5331
SELECT ALL - MAX( ALL + col0 ), - 36 AS col0 FROM tab0
----
-97
-36

skipif mysql # not compatible
query II rowsort label-5331
SELECT ALL - MAX ( ALL + col0 ), - 36 AS col0 FROM tab0
----
-97
-36

query I rowsort
SELECT 83 * 53 FROM tab1
----
4399
4399
4399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 col0 FROM tab0
----
57

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 80 NOT BETWEEN + + col1 + + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT + COUNT( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5335
SELECT + COUNT ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 18 AS col2 FROM tab1
----
-18

query I rowsort
SELECT - + col0 FROM tab0 cor0 WHERE + 43 <> + - col0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5338
SELECT DISTINCT + col1 + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
16
20
48

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT + col1 + col2 / col1 AS col0 FROM tab1 AS cor0
----
16
20
48

query I rowsort
SELECT ALL col0 * + col0 + - + col2 FROM tab0 AS cor0
----
178
7559
9310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5340
SELECT DISTINCT + COUNT( * ) DIV 10 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT + COUNT ( * ) / 10 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT col0 * + col1 IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + 88 * + 39 AS col1 FROM tab1 AS cor0 WHERE NOT NULL = col0
----

query I rowsort
SELECT DISTINCT + - col0 * + 67 * + col1 AS col1 FROM tab1 AS cor0
----
-28475
-286559
-47838

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col2 * + col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 55 + + col0 FROM tab1
----
-4
30
36

query I rowsort
SELECT + 23 + + 57 AS col1 FROM tab1
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT MIN( ALL - + col2 ) + - 61 FROM tab0
----
-160

skipif mysql # not compatible
query I rowsort label-5347
SELECT MIN ( ALL - + col2 ) + - 61 FROM tab0
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5348
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----
0

query I rowsort
SELECT - + col0 + + 0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT DISTINCT + 14 - - MAX( col1 ) AS col1 FROM tab0 cor0
----
95

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT + 14 - - MAX ( col1 ) AS col1 FROM tab0 cor0
----
95

query II rowsort
SELECT col0, 37 FROM tab2 AS cor0
----
46
37
64
37
75
37

query I rowsort
SELECT ALL + - 59 * - - col0 AS col1 FROM tab0 AS cor0
----
-5133
-5723
-885

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT DISTINCT - 74 * - - 27 + - COUNT( * ) FROM tab2 cor0
----
-2001

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT - 74 * - - 27 + - COUNT ( * ) FROM tab2 cor0
----
-2001

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL + COUNT( col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL + COUNT ( col2 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - ( - + col1 ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT - MIN( ALL - + col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5356
SELECT - MIN ( ALL - + col0 ) AS col2 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT + MIN( + - 70 ) col2 FROM tab0
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5357
SELECT + MIN ( + - 70 ) col2 FROM tab0
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col1 col0 FROM tab0
----
1
441
6561

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) <= col2 / - 93
----

query II rowsort
SELECT - col0 AS col0, col1 AS col0 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT ALL MIN( - 88 ) * MAX( DISTINCT + + col2 ) AS col1 FROM tab0
----
-8712

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL MIN ( - 88 ) * MAX ( DISTINCT + + col2 ) AS col1 FROM tab0
----
-8712

query I rowsort
SELECT col2 * - 12 AS col1 FROM tab0
----
-1188
-120
-564

onlyif mysql # DIV for integer division: 
query I rowsort label-5363
SELECT ALL + col2 DIV 26 * + col1 FROM tab1
----
10
42
94

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL + col2 / 26 * + col1 FROM tab1
----
10
42
94

query II rowsort
SELECT ALL col2, + 5 FROM tab2 cor0
----
23
5
40
5
58
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5365
SELECT + 38 DIV - - COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5365
SELECT + 38 / - - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 35 col1 FROM tab1 AS cor0 WHERE NOT col1 * - + col1 IS NULL
----
40
49
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5367
SELECT DISTINCT ( + col0 ) * + col0 + + CAST( NULL AS SIGNED ) * + col1 * + - col2 + + col0 * + + col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT ( + col0 ) * + col0 + + CAST ( NULL AS INTEGER ) * + col1 * + - col2 + + col0 * + + col1 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 55 + - col1 AS col0 FROM tab1
----
41
50
8

query I rowsort
SELECT ALL 25 * col2 + + col0 FROM tab2 AS cor0
----
1064
1525
621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5370
SELECT ALL - ( - + CAST( NULL AS SIGNED ) ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL - ( - + CAST ( NULL AS INTEGER ) ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT DISTINCT + + 55 * + 29 + + ( SUM( ALL + - col1 ) ) col2 FROM tab1 AS cor0
----
1529

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5371
SELECT DISTINCT + + 55 * + 29 + + ( SUM ( ALL + - col1 ) ) col2 FROM tab1 AS cor0
----
1529

onlyif mysql # DIV for integer division: 
query I rowsort label-5372
SELECT + 96 DIV + + col0 + - col2 + - - col0 AS col2 FROM tab0 AS cor0
----
-2
-26
78

skipif mysql # not compatible
query I rowsort label-5372
SELECT + 96 / + + col0 + - col2 + - - col0 AS col2 FROM tab0 AS cor0
----
-2
-26
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT DISTINCT SUM( + 21 ) AS col2 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT SUM ( + 21 ) AS col2 FROM tab0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL + MIN( - col0 ) + + COUNT( * ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL + MIN ( - col0 ) + + COUNT ( * ) AS col2 FROM tab2
----
-72

query I rowsort
SELECT ALL - - col0 + - - 24 AS col1 FROM tab0 cor0
----
111
121
39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 / col0 * col0 * - + 55 + - + 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - col0 * + + col0 AS col1 FROM tab1
----
-2601
-7225
-8281

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 52 IS NULL
----

query I rowsort
SELECT - 39 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5381
SELECT 34, CAST( NULL AS DECIMAL ) AS col2, + + col1 + - col2 col2 FROM tab1
----
9 values hashing to a6e2bd97c6c29b41597e96e53086bec0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5381
SELECT 34, CAST ( NULL AS REAL ) AS col2, + + col1 + - col2 col2 FROM tab1
----
9 values hashing to a6e2bd97c6c29b41597e96e53086bec0

query II rowsort
SELECT ALL - col2 AS col1, + ( + 72 ) FROM tab0 AS cor0
----
-10
72
-47
72
-99
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT + COUNT( - ( col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5383
SELECT + COUNT ( - ( col0 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5384
SELECT ALL + + COUNT( * ), COUNT( - col1 ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5384
SELECT ALL + + COUNT ( * ), COUNT ( - col1 ) AS col0 FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT + 91, 69 AS col2 FROM tab0 AS cor0
----
91
69
91
69
91
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5386
SELECT - 48, - MAX( + 95 ) AS col0 FROM tab0 AS cor0
----
-48
-95

skipif mysql # not compatible
query II rowsort label-5386
SELECT - 48, - MAX ( + 95 ) AS col0 FROM tab0 AS cor0
----
-48
-95

query I rowsort
SELECT ALL + 94 + - 34 FROM tab1 AS cor0 WHERE NULL IS NULL
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT DISTINCT + - SUM( ALL - col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT + - SUM ( ALL - col2 ) FROM tab0 cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 63 col2 FROM tab0 AS cor0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 col1 FROM tab1
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT - COUNT( * ) * - - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5391
SELECT - COUNT ( * ) * - - COUNT ( * ) FROM tab1
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * 54 / - col1 * col0 IS NULL
----

query II rowsort
SELECT - col1 * col0 AS col1, + col0 AS col2 FROM tab1
----
-425
85
-4277
91
-714
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT COUNT( + 40 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5394
SELECT COUNT ( + 40 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL col2 * - 82 * + - 81 AS col0 FROM tab1
----
391878
451656
637632

query I rowsort
SELECT ALL + ( 87 ) FROM tab2
----
87
87
87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 92 * - - col1 IN ( col0, 22 * - 88 + + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT ALL + + MAX( DISTINCT col1 ) * - + SUM( - col1 ) AS col0 FROM tab0 AS cor0
----
8343

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL + + MAX ( DISTINCT col1 ) * - + SUM ( - col1 ) AS col0 FROM tab0 AS cor0
----
8343

query II rowsort
SELECT DISTINCT + + 60 * + - 41 * 5 + + 84 * col1 AS col0, col2 FROM tab2 AS cor0
----
-5832
40
-6672
58
-8016
23

query II rowsort
SELECT DISTINCT + ( - + col2 ) * + 47 + 12 + + col1, + 35 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT DISTINCT col2, + col2 + + col0 * + - 80 * - + col0 * - col1 * - + col2 + + + 91 FROM tab2
----
23
198565554
40
1009254531
58
1748700149

query I rowsort
SELECT ALL 54 * - col1 + - 21 AS col0 FROM tab0
----
-1155
-4395
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE + 46 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 89 + - 52 FROM tab2
----
-141
-141
-141

query I rowsort
SELECT DISTINCT col1 + 94 * - ( + col0 ) AS col0 FROM tab1
----
-4780
-7985
-8507

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT MIN( - + col0 ) col1 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5406
SELECT MIN ( - + col0 ) col1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-5407
SELECT DISTINCT + 56 AS col0, SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
56
185

skipif mysql # not compatible
query II rowsort label-5407
SELECT DISTINCT + 56 AS col0, SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
56
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT - ( + + MIN( + 22 ) ) AS col1 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-5408
SELECT - ( + + MIN ( + 22 ) ) AS col1 FROM tab1 AS cor0
----
-22

query I rowsort
SELECT DISTINCT - - col1 * + col0 + + col0 - + + col2 AS col2 FROM tab1 cor0
----
4300
451
669

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT ALL + ( - + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL + ( - + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT + 32 + col2 AS col1, - col2 FROM tab0
----
131
-99
42
-10
79
-47

query III rowsort
SELECT * FROM tab0 WHERE NULL > + ( col1 )
----

query I rowsort
SELECT - col2 + - 55 + - col0 AS col1 FROM tab1
----
-199
-202
-214

query I rowsort
SELECT col0 FROM tab2 WHERE - + col1 * 6 * + - col0 IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT + 11 NOT BETWEEN + col2 AND + + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5416
SELECT - COUNT( * ) + - 87 AS col0, + 24 FROM tab1 AS cor0
----
-90
24

skipif mysql # not compatible
query II rowsort label-5416
SELECT - COUNT ( * ) + - 87 AS col0, + 24 FROM tab1 AS cor0
----
-90
24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE + col1 * - col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT + MAX( + 81 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5419
SELECT + MAX ( + 81 ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5420
SELECT col1 FROM tab0 AS cor0 WHERE NOT 18 + - CAST( NULL AS SIGNED ) NOT BETWEEN ( - - col1 ) AND - ( - - 96 )
----

skipif mysql # not compatible
query I rowsort label-5420
SELECT col1 FROM tab0 AS cor0 WHERE NOT 18 + - CAST ( NULL AS INTEGER ) NOT BETWEEN ( - - col1 ) AND - ( - - 96 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, - col1 col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT DISTINCT ( - CAST( - 64 AS SIGNED ) ) col1 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5422
SELECT DISTINCT ( - CAST ( - 64 AS INTEGER ) ) col1 FROM tab0 AS cor0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5423
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 + - - col1 BETWEEN + CAST( NULL AS SIGNED ) * + ( col2 ) AND col2 * 16
----
0

skipif mysql # not compatible
query I rowsort label-5423
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 + - - col1 BETWEEN + CAST ( NULL AS INTEGER ) * + ( col2 ) AND col2 * 16
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5424
SELECT + COUNT( * ) col2, - COUNT( DISTINCT + ( - col0 ) ) * COUNT( * ) - + - 47 FROM tab0 AS cor0
----
3
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5424
SELECT + COUNT ( * ) col2, - COUNT ( DISTINCT + ( - col0 ) ) * COUNT ( * ) - + - 47 FROM tab0 AS cor0
----
3
38

query I rowsort
SELECT ALL 70 * - - col2 FROM tab1
----
4130
4760
6720

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT + col1 * - col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT DISTINCT 25 * + 98 + COUNT( * ) AS col2 FROM tab2
----
2453

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT 25 * + 98 + COUNT ( * ) AS col2 FROM tab2
----
2453

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 BETWEEN NULL AND + + 76 * + 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5429
SELECT ALL CAST( - col2 AS SIGNED ) + - col2 AS col2 FROM tab2
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL CAST ( - col2 AS INTEGER ) + - col2 AS col2 FROM tab2
----
-116
-46
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5430
SELECT MAX( DISTINCT - 62 ) AS col2, CAST( COUNT( * ) AS SIGNED ) * - - COUNT( * ) AS col2 FROM tab1
----
-62
9

skipif mysql # not compatible
query II rowsort label-5430
SELECT MAX ( DISTINCT - 62 ) AS col2, CAST ( COUNT ( * ) AS INTEGER ) * - - COUNT ( * ) AS col2 FROM tab1
----
-62
9

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT + 0 = - + 8
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5432
SELECT * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) * - - col2 NOT BETWEEN - - col0 AND + 53 * col1 * col1 + - 37
----

skipif mysql # not compatible
query III rowsort label-5432
SELECT * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) * - - col2 NOT BETWEEN - - col0 AND + 53 * col1 * col1 + - 37
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = col0 * + ( + - col1 ) * + 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT ALL + 62 * COUNT( + col2 ) AS col2 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL + 62 * COUNT ( + col2 ) AS col2 FROM tab2
----
186

query I rowsort
SELECT 56 * + - col1 * col0 + - + col2 AS col0 FROM tab0 AS cor0
----
-102322
-5531
-68087

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5436
SELECT - col0 + col1 - - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT - col0 + col1 - - + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col2 + col2 AS col0, col0 AS col0 FROM tab1 AS cor0
----
118
85
136
91
192
51

query II rowsort
SELECT DISTINCT col2 - - - col0 AS col0, 27 * - col1 FROM tab0 cor0
----
-77
-567
2
-27
32
-2187

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ALL - COUNT( * ) - + + MIN( + 95 ) FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL - COUNT ( * ) - + + MIN ( + 95 ) FROM tab2 AS cor0
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5440
SELECT ALL + 83 DIV 89 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL + 83 / 89 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 28 - + - ( col1 ) AS col2 FROM tab1 AS cor0
----
33
42
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5442
SELECT CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5442
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 41 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5444
SELECT DISTINCT * FROM tab1 WHERE NOT ( - - col1 ) * ( CAST( NULL AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5444
SELECT DISTINCT * FROM tab1 WHERE NOT ( - - col1 ) * ( CAST ( NULL AS REAL ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT DISTINCT SUM( - 29 ) AS col0 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT SUM ( - 29 ) AS col0 FROM tab1
----
-87

query II rowsort
SELECT + 59, - col2 AS col2 FROM tab2
----
59
-23
59
-40
59
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab0 WHERE NOT NULL > + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT MAX( ALL + - 44 ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-5448
SELECT MAX ( ALL + - 44 ) FROM tab1
----
-44

query II rowsort
SELECT col0, col0 AS col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5450
SELECT ALL ( CAST( + col1 AS SIGNED ) ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5450
SELECT ALL ( CAST ( + col1 AS INTEGER ) ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
47

query I rowsort
SELECT + - ( + + col0 ) AS col0 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5453
SELECT + COUNT( * ) * CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5453
SELECT + COUNT ( * ) * CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT - SUM( DISTINCT + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5454
SELECT - SUM ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5455
SELECT + col0 * col1 * CAST( + + col0 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-1589490
-856575
-931491

skipif mysql # not compatible
query I rowsort label-5455
SELECT + col0 * col1 * CAST ( + + col0 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-1589490
-856575
-931491

onlyif mysql # DIV for integer division: 
query I rowsort label-5456
SELECT - + col2 DIV + col1 * - col1 * - + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5456
SELECT - + col2 / + col1 * - col1 * - + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 34 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + col0 * 11 FROM tab2
----
506
704
825

query III rowsort
SELECT ALL * FROM tab2 WHERE + 56 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 * + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT DISTINCT + COUNT( * ) + + 84 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT + COUNT ( * ) + + 84 FROM tab0
----
87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 71 + col0 IS NULL
----

query II rowsort
SELECT + 43 AS col1, - col2 FROM tab2
----
43
-23
43
-40
43
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5465
SELECT + col2 * 89 DIV - 47 FROM tab1
----
-111
-128
-181

skipif mysql # not compatible
query I rowsort label-5465
SELECT + col2 * 89 / - 47 FROM tab1
----
-111
-128
-181

onlyif mysql # DIV for integer division: 
query I rowsort label-5466
SELECT + 28 DIV col0 + - col2 DIV + + col2 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5466
SELECT + 28 / col0 + - col2 / + + col2 FROM tab0
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 <= NULL
----

query I rowsort
SELECT DISTINCT - col1 * + ( + col0 ) FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL BETWEEN NULL AND col0 )
----

query I rowsort
SELECT 18 * - col1 AS col1 FROM tab2
----
-1206
-1386
-918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5471
SELECT + - 55 - + + CAST( + + 75 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-130
-130
-130

skipif mysql # not compatible
query I rowsort label-5471
SELECT + - 55 - + + CAST ( + + 75 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-130
-130
-130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 45 + - col0 / + 56 col1 FROM tab0 WHERE NOT + 95 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5473
SELECT CAST( + 15 AS SIGNED ) * + + MAX( col1 ) AS col2 FROM tab0
----
1215

skipif mysql # not compatible
query I rowsort label-5473
SELECT CAST ( + 15 AS INTEGER ) * + + MAX ( col1 ) AS col2 FROM tab0
----
1215

query I rowsort
SELECT + ( - - col2 ) AS col1 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5475
SELECT CAST( NULL AS SIGNED ) / + + col1 * - 20 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5475
SELECT CAST ( NULL AS INTEGER ) / + + col1 * - 20 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab1 WHERE NOT + - 91 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL - - MIN( + col0 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL - - MIN ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 38 col0, 5 FROM tab1
----
-38
5
-38
5
-38
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5479
SELECT CAST( - 90 AS SIGNED ) col1 FROM tab2
----
-90
-90
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5479
SELECT CAST ( - 90 AS INTEGER ) col1 FROM tab2
----
-90
-90
-90

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE 56 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 < - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 22 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT - COUNT( ALL + + col0 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5483
SELECT - COUNT ( ALL + + col0 ) AS col0 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - col1 + - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT ALL + + COUNT( + 52 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL + + COUNT ( + 52 ) FROM tab1 cor0
----
3

query I rowsort
SELECT + - 15 - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( + - col0 IS NULL )
----
-61
-79
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5487
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0, ( + - CAST( NULL AS SIGNED ) ), col1 + + + col0, col1, + col2 )
----

skipif mysql # not compatible
query III rowsort label-5487
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0, ( + - CAST ( NULL AS INTEGER ) ), col1 + + + col0, col1, + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5488
SELECT - ( + col2 ) DIV 75 AS col0, + 34 FROM tab0 AS cor0
----
-1
34
0
34
0
34

skipif mysql # not compatible
query II rowsort label-5488
SELECT - ( + col2 ) / 75 AS col0, + 34 FROM tab0 AS cor0
----
-1
34
0
34
0
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + 4 * col0 col1 FROM tab2 AS cor0
----
207
296
358

query I rowsort
SELECT 14 + + col0 * + - col2 AS col2 FROM tab1 AS cor0
----
-4882
-5001
-6174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5491
SELECT ALL col2 * + + CAST( 96 AS SIGNED ) + + col2 AS col1 FROM tab0
----
4559
9603
970

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL col2 * + + CAST ( 96 AS INTEGER ) + + col2 AS col1 FROM tab0
----
4559
9603
970

query III rowsort
SELECT * FROM tab0 WHERE - 89 + + - 3 / - - ( 20 ) IS NULL
----

query I rowsort
SELECT + col1 + + 58 AS col0 FROM tab1
----
105
63
72

query I rowsort
SELECT col1 + - 74 FROM tab2
----
-23
-7
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ALL MAX( DISTINCT + - col0 ) + 85 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL MAX ( DISTINCT + - col0 ) + 85 FROM tab0
----
70

query I rowsort
SELECT + col2 + + + 65 AS col0 FROM tab0 WHERE 98 = col2 * - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT MIN( - 83 ) + - COUNT( * ) AS col1 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-5497
SELECT MIN ( - 83 ) + - COUNT ( * ) AS col1 FROM tab0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 - col2 col2 FROM tab1
----
-24
-59
21

query I rowsort
SELECT DISTINCT col1 + + - ( + 97 ) FROM tab2
----
-20
-30
-46

query II rowsort
SELECT ALL + col0 + + col2, col2 FROM tab0
----
196
99
62
47
97
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5501
SELECT ALL CAST( NULL AS SIGNED ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL CAST ( NULL AS INTEGER ) + - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 AS col2 FROM tab2 WHERE - + 9 >= + 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT DISTINCT + 51 + + - ( - COUNT( * ) ) FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT + 51 + + - ( - COUNT ( * ) ) FROM tab2 cor0
----
54

query II rowsort
SELECT DISTINCT + + 71 - col2, col0 AS col1 FROM tab1 AS cor0
----
-25
51
12
85
3
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT - COUNT( * ) * - COUNT( * ) col1 FROM tab0 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5505
SELECT - COUNT ( * ) * - COUNT ( * ) col1 FROM tab0 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 47 col2 FROM tab2 AS cor0
----
47

query I rowsort
SELECT DISTINCT col0 + - + col0 FROM tab0 WHERE NOT ( - - col1 ) > NULL
----

query I rowsort
SELECT ALL - ( + col2 ) * + 77 - + - 44 FROM tab0 AS cor0
----
-3575
-726
-7579

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT ALL + COUNT( * ) + + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5510
SELECT DISTINCT + col0 DIV - col0 + - + col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1601
-3365
-530

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT + col0 / - col0 + - + col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1601
-3365
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL + 29 * - MAX( col2 ) * 14 col0 FROM tab0 AS cor0
----
-40194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5511
SELECT ALL + 29 * - MAX ( col2 ) * 14 col0 FROM tab0 AS cor0
----
-40194

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT DISTINCT COUNT( ( 14 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT COUNT ( ( 14 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL MAX( + - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL MAX ( + - col1 ) FROM tab2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5514
SELECT ( - MAX( DISTINCT - 91 ) ) / - + CAST( NULL AS SIGNED ) * + 38 + + + 87 + + 95 + - COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5514
SELECT ( - MAX ( DISTINCT - 91 ) ) / - + CAST ( NULL AS INTEGER ) * + 38 + + + 87 + + 95 + - COUNT ( * ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5515
SELECT DISTINCT col1 DIV + col2 - - col0 AS col2 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT col1 / + col2 - - col0 AS col2 FROM tab2 AS cor0
----
48
65
76

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NOT + col2 > - col2 + 59 * 46 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5518
SELECT - ( - MAX( 82 ) ) * + CAST( NULL AS SIGNED ) + + 56 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5518
SELECT - ( - MAX ( 82 ) ) * + CAST ( NULL AS INTEGER ) + + 56 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5519
SELECT CAST( 57 AS SIGNED ) AS col0 FROM tab2
----
57
57
57

skipif mysql # not compatible
query I rowsort label-5519
SELECT CAST ( 57 AS INTEGER ) AS col0 FROM tab2
----
57
57
57

query I rowsort
SELECT 19 * - + col2 * + col1 FROM tab1
----
-25536
-5605
-60724

onlyif mysql # DIV for integer division: 
query I rowsort label-5521
SELECT + col1 DIV - - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5521
SELECT + col1 / - - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5522
SELECT DISTINCT + 93 DIV - col0 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT + 93 / - col0 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT DISTINCT - 95 FROM tab2 cor0 WHERE NOT + ( col0 ) + - + col2 IS NULL
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 37 + + - 50 col1 FROM tab2 AS cor0
----
-13

query I rowsort
SELECT DISTINCT - + 77 AS col0 FROM tab1 AS cor0
----
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > 39
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5527
SELECT DISTINCT COUNT( * ) col0, + 92 AS col0 FROM tab2
----
3
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5527
SELECT DISTINCT COUNT ( * ) col0, + 92 AS col0 FROM tab2
----
3
92

query I rowsort
SELECT - col1 FROM tab0 WHERE + - col2 + - col1 < + - col0
----
-1
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT COUNT( * ) * - + ( + + ( MIN( ALL + + 34 ) ) ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-5529
SELECT COUNT ( * ) * - + ( + + ( MIN ( ALL + + 34 ) ) ) FROM tab0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5530
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND ( CAST( 2 AS SIGNED ) + - - 43 )
----

skipif mysql # not compatible
query III rowsort label-5530
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND ( CAST ( 2 AS INTEGER ) + - - 43 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5531
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 + + 20 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 + + 20 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 >= NULL
----

query I rowsort
SELECT - col2 + - + col2 FROM tab0
----
-198
-20
-94

query I rowsort
SELECT DISTINCT + col2 + col2 + - - 51 * - col1 + 27 * - col1 AS col2 FROM tab1 AS cor0
----
-272
-3530
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-5535
SELECT ALL - col1 DIV - col1 + + col1 + - col0 + + 16 FROM tab1 AS cor0
----
-20
-27
-63

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL - col1 / - col1 + + col1 + - col0 + + 16 FROM tab1 AS cor0
----
-20
-27
-63

query I rowsort
SELECT - col2 + + - col1 FROM tab0 AS cor0
----
-100
-128
-31

query II rowsort
SELECT + col1 * col1 + + 50, col1 AS col0 FROM tab1 cor0
----
2259
47
246
14
75
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 / + col2 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT 47 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5540
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT ( + 26 * - col1 + + 73 * - col2 ) BETWEEN NULL AND + 1
----

skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT ( + 26 * - col1 + + 73 * - col2 ) BETWEEN NULL AND + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ALL - COUNT( * ) * - 22 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL - COUNT ( * ) * - 22 FROM tab0
----
66

query I rowsort
SELECT 34 - ( col0 + + 9 * col1 ) FROM tab1
----
-143
-480
-96

query I rowsort
SELECT ALL - 80 * + 70 + 73 * + 35 FROM tab1
----
-3045
-3045
-3045

query I rowsort
SELECT ALL ( + 51 ) + + 60 AS col1 FROM tab1
----
111
111
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5545
SELECT + CAST( NULL AS SIGNED ) - MIN( 22 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT + CAST ( NULL AS INTEGER ) - MIN ( 22 ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5546
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col1 * - 52 AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5546
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col1 * - 52 AND - CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL - col1 * + col0 + 49 FROM tab2
----
-2297
-4879
-4976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5548
SELECT ( - MAX( + CAST( 60 AS SIGNED ) ) ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-5548
SELECT ( - MAX ( + CAST ( 60 AS INTEGER ) ) ) FROM tab2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5549
SELECT CAST( 49 AS SIGNED ) FROM tab0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-5549
SELECT CAST ( 49 AS INTEGER ) FROM tab0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT SUM( + col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5550
SELECT SUM ( + col1 ) AS col0 FROM tab1
----
66

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + 0 * col2 )
----

query I rowsort
SELECT ALL - 89 + col2 FROM tab1
----
-21
-30
7

query III rowsort
SELECT * FROM tab0 WHERE NOT + 67 IS NOT NULL
----

query I rowsort
SELECT ( + 4 ) FROM tab0 WHERE NULL IS NULL
----
4
4
4

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 36 * col0 ) > - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + col0 NOT IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 * col1 + - col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT COUNT( * ) - + 49 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5558
SELECT COUNT ( * ) - + 49 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5559
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT - 35 * + MIN( ALL - 81 ) FROM tab0 AS cor0
----
2835

skipif mysql # not compatible
query I rowsort label-5561
SELECT - 35 * + MIN ( ALL - 81 ) FROM tab0 AS cor0
----
2835

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT ALL - ( MIN( DISTINCT - ( col0 ) ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL - ( MIN ( DISTINCT - ( col0 ) ) ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL - col0 * - 77 AS col0 FROM tab0 AS cor0
----
1155
6699
7469

query I rowsort
SELECT - 51 * + col1 FROM tab1 AS cor0
----
-2397
-255
-714

query I rowsort
SELECT 99 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 * - 32 + - 22 * - 70 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 6 col0 FROM tab1 AS cor0
----
-354
-408
-576

query I rowsort
SELECT col0 * 25 + + 32 * 44 AS col1 FROM tab1 AS cor0
----
2683
3533
3683

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT COUNT( ALL 95 ) + + 20 AS col0 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5569
SELECT COUNT ( ALL 95 ) + + 20 AS col0 FROM tab0 AS cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 80 IS NOT NULL
----

query I rowsort
SELECT col0 + 90 * + 51 FROM tab2 cor0
----
4636
4654
4665

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT MIN( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN + col0 AND 76 * - col1
----
15

skipif mysql # not compatible
query I rowsort label-5572
SELECT MIN ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN + col0 AND 76 * - col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT DISTINCT + MAX( 85 ) * 90 FROM tab0 AS cor0
----
7650

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT + MAX ( 85 ) * 90 FROM tab0 AS cor0
----
7650

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE 34 <= ( col0 )
----
10
99

query III rowsort
SELECT ALL * FROM tab2 WHERE 92 / col2 IS NULL
----

query I rowsort
SELECT 85 * + + 38 FROM tab1
----
3230
3230
3230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col1 FROM tab2
----
34
34
34

query I rowsort
SELECT col2 FROM tab0 WHERE + col1 < ( 75 )
----
10
99

query I rowsort
SELECT ( + 22 ) * col1 AS col0 FROM tab2
----
1122
1474
1694

query I rowsort
SELECT DISTINCT - col0 + 91 * col2 FROM tab1 WHERE 32 IS NULL
----

query I rowsort
SELECT ALL col2 + + col0 * col2 AS col2 FROM tab0
----
752
880
9702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5582
SELECT ALL SUM( ALL + CAST( NULL AS SIGNED ) ) - 73 / 56 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5582
SELECT ALL SUM ( ALL + CAST ( NULL AS INTEGER ) ) - 73 / 56 col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + + col0 * + - col2 - - col2 AS col0 FROM tab0 AS cor0
----
-658
-860
-9504

query I rowsort
SELECT DISTINCT + 28 AS col2 FROM tab0 AS cor0
----
28

query I rowsort
SELECT ALL - 3 - + col1 FROM tab0 AS cor0
----
-24
-4
-84

query I rowsort
SELECT DISTINCT 28 * - - col0 - + 70 - col2 FROM tab2 AS cor0
----
1195
1682
1972

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT - + COUNT( * ) - + + 24 AS col1 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5587
SELECT - + COUNT ( * ) - + + 24 AS col1 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT + + 10 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ALL - col1 * 43 FROM tab1 WHERE NOT ( 67 ) * + col1 IN ( + 64 )
----
-2021
-215
-602

query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NULL ) <= NULL ) OR + col2 * 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + ( - ( col2 ) ) ) + - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT - SUM( + ( - col2 ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5593
SELECT - SUM ( + ( - col2 ) ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT - ( - + col0 ) AS col1 FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT SUM( 33 ) FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-5595
SELECT SUM ( 33 ) FROM tab1 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT + COUNT( DISTINCT + + col0 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5596
SELECT + COUNT ( DISTINCT + + col0 ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5597
SELECT - col1, CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-5597
SELECT - col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5598
SELECT ALL - + COUNT( * ), - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-5598
SELECT ALL - + COUNT ( * ), - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT - MIN( DISTINCT + 46 ) FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5599
SELECT - MIN ( DISTINCT + 46 ) FROM tab1 AS cor0
----
-46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 AND + - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5601
SELECT ALL col0, - col1 * 1 DIV + col1 AS col0 FROM tab2 AS cor0
----
46
-1
64
-1
75
-1

skipif mysql # not compatible
query II rowsort label-5601
SELECT ALL col0, - col1 * 1 / + col1 AS col0 FROM tab2 AS cor0
----
46
-1
64
-1
75
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5602
SELECT ALL + col0 * + + CAST( - + col1 AS SIGNED ) + col2 FROM tab1 AS cor0
----
-366
-4209
-618

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL + col0 * + + CAST ( - + col1 AS INTEGER ) + col2 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT ALL 60 * + COUNT( * ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL 60 * + COUNT ( * ) FROM tab1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT DISTINCT MAX( col2 ) * + 36 FROM tab0
----
3564

skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT MAX ( col2 ) * + 36 FROM tab0
----
3564

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - - 92 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND ( col1 * + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + - col2 - 65 * 7 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col0 FROM tab2 WHERE NOT ( + col1 ) = + ( col2 ) + - col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT DISTINCT - MIN( ALL - ( - - 31 ) ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT - MIN ( ALL - ( - - 31 ) ) FROM tab0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5611
SELECT + SUM( DISTINCT - + CAST( + col2 AS SIGNED ) ) col2 FROM tab2
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5611
SELECT + SUM ( DISTINCT - + CAST ( + col2 AS INTEGER ) ) col2 FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT COUNT( * ) * - 72 * - - 2 FROM tab2
----
-432

skipif mysql # not compatible
query I rowsort label-5612
SELECT COUNT ( * ) * - 72 * - - 2 FROM tab2
----
-432

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 * - ( col2 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5614
SELECT - + col2 DIV ( 51 ) AS col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5614
SELECT - + col2 / ( 51 ) AS col1 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5615
SELECT DISTINCT + - SUM( ALL CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT + - SUM ( ALL CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + ( + 51 ) AS col2 FROM tab2 cor0
----
-51
-51
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 IN ( ( - - 58 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT - - ( - - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5618
SELECT - - ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN 51 AND + + col1
----

query I rowsort
SELECT DISTINCT - + 7 FROM tab0 cor0 WHERE NOT col1 * - ( 52 ) > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 44 < 41
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT ALL - 65 - + CAST( NULL AS SIGNED ) - - - 5 + col1 * - col1 + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL - 65 - + CAST ( NULL AS INTEGER ) - - - 5 + col1 * - col1 + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5623
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * 87 * + ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 87 * + ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 * - col1 + 39 - + 54 * - 76 FROM tab2 AS cor0
----
10072
6744
8632

query I rowsort
SELECT DISTINCT 21 * 33 FROM tab2 cor0
----
693

onlyif mysql # DIV for integer division: 
query I rowsort label-5626
SELECT ALL + + col1 DIV + 20 FROM tab1 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL + + col1 / + 20 FROM tab1 cor0
----
0
0
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5627
SELECT ALL + CAST( - MAX( ALL + col1 ) AS SIGNED ) AS col0 FROM tab0 WHERE NOT - 43 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL + CAST ( - MAX ( ALL + col1 ) AS INTEGER ) AS col0 FROM tab0 WHERE NOT - 43 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL col2, col1 + + col0 FROM tab1
----
59
90
68
138
96
65

query II rowsort
SELECT ALL ( col2 ) + - ( + + col2 ) AS col2, 65 FROM tab0
----
0
65
0
65
0
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5630
SELECT ALL - CAST( - + col2 AS SIGNED ) + - CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL - CAST ( - + col2 AS INTEGER ) + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( 65 * - col1 ) <= NULL )
----

query I rowsort
SELECT col0 * - col0 + 94 FROM tab1
----
-2507
-7131
-8187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5633
SELECT DISTINCT - SUM( ALL - 21 ) DIV + 87 AS col2 FROM tab2 WHERE NOT - ( col1 ) DIV - col0 + - ( col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5633
SELECT DISTINCT - SUM ( ALL - 21 ) / + 87 AS col2 FROM tab2 WHERE NOT - ( col1 ) / - col0 + - ( col2 ) IS NULL
----
0

query I rowsort
SELECT + 32 + 38 AS col1 FROM tab1
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT ALL 51 + + MAX( ALL - + ( - 80 ) ) AS col0 FROM tab0
----
131

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL 51 + + MAX ( ALL - + ( - 80 ) ) AS col0 FROM tab0
----
131

query I rowsort
SELECT col1 + 85 AS col0 FROM tab0 cor0
----
106
166
86

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5638
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + col1 * + 54 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + col1 * + 54 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5639
SELECT ALL + COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL + COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5640
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 25 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5640
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 25 AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + col0 * + col1 + 28 AS col2 FROM tab0 AS cor0
----
1243
125
1855

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + col0 NOT BETWEEN ( NULL ) AND col0 + + 91
----

query I rowsort
SELECT + ( + + 84 ) - + ( + 99 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT - COUNT( * ) * + 62 FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-5644
SELECT - COUNT ( * ) * + 62 FROM tab1
----
-186

query II rowsort
SELECT col2 * + 54 AS col2, 15 FROM tab2
----
1242
15
2160
15
3132
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5646
SELECT ALL ( - - MIN( ALL + - ( - CAST( - col2 AS SIGNED ) ) ) ) + - 57 AS col2 FROM tab2 WHERE NOT col0 - - CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL ( - - MIN ( ALL + - ( - CAST ( - col2 AS INTEGER ) ) ) ) + - 57 AS col2 FROM tab2 WHERE NOT col0 - - CAST ( NULL AS INTEGER ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 63 * - col1 col1 FROM tab2 AS cor0
----
194040
244818
73899

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5648
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 IN ( - CAST( col1 AS SIGNED ), + col1 * + col0 * 58 )
----

skipif mysql # not compatible
query III rowsort label-5648
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 IN ( - CAST ( col1 AS INTEGER ), + col1 * + col0 * 58 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5649
SELECT + ( - 87 ) AS col2, 76 + - 32 + + MAX( col1 ) * 65 AS col0 FROM tab2 cor0
----
-87
5049

skipif mysql # not compatible
query II rowsort label-5649
SELECT + ( - 87 ) AS col2, 76 + - 32 + + MAX ( col1 ) * 65 AS col0 FROM tab2 cor0
----
-87
5049

query I rowsort
SELECT + col0 * - col1 * - - col1 + + - col1 + col1 * 16 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col2 )
----

query I rowsort
SELECT DISTINCT col2 * + 17 AS col1 FROM tab0
----
1683
170
799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5652
SELECT - CAST( - col0 AS SIGNED ) col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5652
SELECT - CAST ( - col0 AS INTEGER ) col2 FROM tab1
----
51
85
91

query II rowsort
SELECT ALL + col2, col0 AS col1 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT - col2 + + 93 FROM tab2
----
35
53
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT + SUM( ALL + 87 ) FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-5655
SELECT + SUM ( ALL + 87 ) FROM tab1
----
261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, 93 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, - col1 AS col2 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT ALL + col1 + + ( - col0 ) + - ( + 8 ) * + 3 FROM tab1
----
-104
-61
-68

query II rowsort
SELECT ALL col2, - col1 AS col1 FROM tab0
----
10
-21
47
-81
99
-1

query II rowsort
SELECT DISTINCT - col1 AS col0, 93 AS col1 FROM tab2
----
-51
93
-67
93
-77
93

query I rowsort
SELECT DISTINCT + col0 + + - col0 + + - col0 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT ALL col0, + 84 AS col2 FROM tab2
----
46
84
64
84
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT ALL + MIN( 11 ) FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL + MIN ( 11 ) FROM tab0 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT DISTINCT SUM( + + 69 ) AS col2 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT SUM ( + + 69 ) AS col2 FROM tab2 AS cor0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT ALL + 38 + COUNT( ALL col0 ) FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL + 38 + COUNT ( ALL col0 ) FROM tab1 AS cor0
----
41

query I rowsort
SELECT DISTINCT - + col2 * + ( - col2 ) FROM tab1 AS cor0
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 13 col0 FROM tab1
----
-38
-72
-78

query I rowsort
SELECT ALL + - 2 * - + col0 FROM tab0 AS cor0 WHERE 79 BETWEEN NULL AND - + col0
----

query II rowsort
SELECT ALL col0 + + - 99 AS col0, + ( col0 ) * col2 + - + col0 + - - ( - col1 ) + + 27 * - 43 FROM tab0 AS cor0
----
-12
-399
-2
8344
-84
-552

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 45 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT DISTINCT - 17 + COUNT( * ) col1 FROM tab2 cor0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5671
SELECT DISTINCT - 17 + COUNT ( * ) col1 FROM tab2 cor0
----
-14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - 0 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) - - + 91 NOT IN ( + col2 * - 76 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * + + col1 * - col2 AS col2 FROM tab1 AS cor0
----
129024
17405
217328

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT + 71 + MAX( col2 ) AS col2 FROM tab2 AS cor0 WHERE 18 IS NOT NULL
----
129

skipif mysql # not compatible
query I rowsort label-5676
SELECT + 71 + MAX ( col2 ) AS col2 FROM tab2 AS cor0 WHERE 18 IS NOT NULL
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-5677
SELECT + 69 * - + 77 * + col0 DIV + + col0 + - col0 FROM tab0 cor0
----
-5328
-5400
-5410

skipif mysql # not compatible
query I rowsort label-5677
SELECT + 69 * - + 77 * + col0 / + + col0 + - col0 FROM tab0 cor0
----
-5328
-5400
-5410

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT - 22 * + COUNT( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5678
SELECT - 22 * + COUNT ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT DISTINCT - COUNT( * ) * 14 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT - COUNT ( * ) * 14 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5680
SELECT ALL - ( + col2 ) DIV - 75 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL - ( + col2 ) / - 75 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + col0 * + 91 AS col0 FROM tab1
----
4641
7735
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 col1 FROM tab1
----
75
75
75

query I rowsort
SELECT DISTINCT + col2 + - col0 * - - col2 + + col1 AS col0 FROM tab0
----
-577
-839
-9503

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5684
SELECT ALL * FROM tab0 WHERE NOT col1 + - + CAST( + + col2 AS SIGNED ) >= - col2
----

skipif mysql # not compatible
query III rowsort label-5684
SELECT ALL * FROM tab0 WHERE NOT col1 + - + CAST ( + + col2 AS INTEGER ) >= - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 86 col1 FROM tab2
----
28
46
63

query I rowsort
SELECT ALL 82 + + - col0 AS col2 FROM tab2
----
18
36
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5687
SELECT + - ( - + col1 ) + - 10 * + CAST( + + col2 AS SIGNED ) / + 45 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 4 AND - - col0 * + 57
----

skipif mysql # not compatible
query I rowsort label-5687
SELECT + - ( - + col1 ) + - 10 * + CAST ( + + col2 AS INTEGER ) / + 45 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 4 AND - - col0 * + 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT - ( - - ( - COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5688
SELECT - ( - - ( - COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + - col0 * + 23 + col2 * + col0 FROM tab0 AS cor0
----
-1131
360
7372

query I rowsort
SELECT + + 59 - + 75 AS col2 FROM tab0 AS cor0 WHERE NOT ( 81 ) BETWEEN NULL AND + - col2 * 95 * + col1 + - col0
----
-16
-16
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5691
SELECT ALL - MAX( + ( + col2 ) ) DIV + 73 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL - MAX ( + ( + col2 ) ) / + 73 AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT - COUNT( * ) * - - MAX( DISTINCT col2 ) FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-5692
SELECT - COUNT ( * ) * - - MAX ( DISTINCT col2 ) FROM tab1 AS cor0
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-5693
SELECT DISTINCT - 53 DIV - + col2 AS col1 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT - 53 / - + col2 AS col1 FROM tab0
----
0
1
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 * - 39 * + - col1 col0 FROM tab2 AS cor0
----
180999
237783
273273

onlyif mysql # DIV for integer division: 
query I rowsort label-5695
SELECT ALL - ( + col2 ) DIV + - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL - ( + col2 ) / + - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5696
SELECT CAST( + 79 AS SIGNED ) DIV + 96 col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5696
SELECT CAST ( + 79 AS INTEGER ) / + 96 col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 + - 84 + + col2 * + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 36 > - col0 - - 24
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT - 32 AS col0, col0 AS col2, - - ( - col0 ) AS col1 FROM tab0 cor0
----
9 values hashing to 07c5f81e8d76dc20fbe4edbb33b50c99

query II rowsort
SELECT + col2, + 77 AS col1 FROM tab0 AS cor0
----
10
77
47
77
99
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5701
SELECT DISTINCT MIN( ALL + col1 ), + 75 AS col2 FROM tab2 cor0
----
51
75

skipif mysql # not compatible
query II rowsort label-5701
SELECT DISTINCT MIN ( ALL + col1 ), + 75 AS col2 FROM tab2 cor0
----
51
75

query I rowsort
SELECT ALL + col2 + + col2 - + - col0 AS col2 FROM tab0
----
107
109
295

query I rowsort
SELECT DISTINCT - 89 AS col2 FROM tab0
----
-89

query I rowsort
SELECT ALL - + 18 FROM tab2, tab2 AS cor0 WHERE - 31 + + 31 IS NOT NULL
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT ALL col2 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col0 FROM tab1 WHERE NOT ( ( col2 ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5707
SELECT DISTINCT + 51 DIV + 60 * + col0 + + 4 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT + 51 / + 60 * + col0 + + 4 FROM tab2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5708
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) + 96 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-5708
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) + 96 FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT MAX( ALL 71 ) AS col2 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-5709
SELECT MAX ( ALL 71 ) AS col2 FROM tab2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT - COUNT( * ) + - ( - - 29 ) FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5710
SELECT - COUNT ( * ) + - ( - - 29 ) FROM tab0 AS cor0
----
-32

query I rowsort
SELECT + col0 + - + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL 88 + + MIN( ALL - col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL 88 + + MIN ( ALL - col0 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT MAX( DISTINCT - 67 ) AS col2 FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-5713
SELECT MAX ( DISTINCT - 67 ) AS col2 FROM tab2
----
-67

query I rowsort
SELECT ( + - 82 ) AS col2 FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT - 61 AS col1 FROM tab2 cor0 WHERE NULL NOT IN ( 98 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, + 44 * + - col2 FROM tab2 AS cor0
----
46
-1012
64
-1760
75
-2552

query I rowsort
SELECT DISTINCT + + col2 - - + 88 FROM tab0 AS cor0
----
135
187
98

query I rowsort
SELECT ALL - col0 * col0 * - col1 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
107916
315392
376875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5719
SELECT DISTINCT SUM( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL - col2, ( + col2 ) FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT col1 + - - ( - col1 ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * - 85 * - ( + col2 ) + col1 AS col2 FROM tab1
----
114254
25080
271707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5723
SELECT COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5723
SELECT COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT col0 + - col1, + col2 FROM tab2
----
-13
40
-5
23
8
58

query I rowsort
SELECT ALL - 81 * + + 70 * 25 * 1 FROM tab0
----
-141750
-141750
-141750

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT MAX( DISTINCT - - col2 ) * + COUNT( * ) col2 FROM tab0
----
297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5726
SELECT MAX ( DISTINCT - - col2 ) * + COUNT ( * ) col2 FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT COUNT( + - ( - col2 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5727
SELECT COUNT ( + - ( - col2 ) ) AS col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 68 BETWEEN - - col1 AND 67
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 col1 FROM tab2 cor0
----
40

query I rowsort
SELECT - + 76 AS col1 FROM tab2 cor0
----
-76
-76
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5731
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5732
SELECT ALL - COUNT( * ) AS col0, 51 - + ( + 90 ) * + COUNT( * ) + COUNT( * ) + ( - COUNT( * ) ) FROM tab1
----
-3
-219

skipif mysql # not compatible
query II rowsort label-5732
SELECT ALL - COUNT ( * ) AS col0, 51 - + ( + 90 ) * + COUNT ( * ) + COUNT ( * ) + ( - COUNT ( * ) ) FROM tab1
----
-3
-219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5733
SELECT DISTINCT - 20 * + CAST( NULL AS SIGNED ) + - COUNT( * ) * + 19 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT - 20 * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + 19 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5734
SELECT ALL 80 DIV + col1 col1 FROM tab0
----
0
3
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5734
SELECT ALL 80 / + col1 col1 FROM tab0
----
0
3
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5735
SELECT ALL + 36 DIV col2 - - 31 * - col0 * - col2 FROM tab0 AS cor0
----
21855
26973
297693

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL + 36 / col2 - - 31 * - col0 * - col2 FROM tab0 AS cor0
----
21855
26973
297693

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT - - COUNT( 60 ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5736
SELECT - - COUNT ( 60 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT - COUNT( ALL 52 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5737
SELECT - COUNT ( ALL 52 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - - 78 AS col2 FROM tab1 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT ALL - COUNT( * ) * + 99 FROM tab0 cor0
----
-297

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL - COUNT ( * ) * + 99 FROM tab0 cor0
----
-297

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5740
SELECT - 53 + - CAST( NULL AS DECIMAL ) + - 34 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5740
SELECT - 53 + - CAST ( NULL AS REAL ) + - 34 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT COUNT( * ) + - 62 AS col0 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5741
SELECT COUNT ( * ) + - 62 AS col0 FROM tab2 AS cor0
----
-59

query I rowsort
SELECT DISTINCT + + 69 - 4 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT + 8 * 53 AS col2 FROM tab2
----
424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 col2 FROM tab0
----
22
22
22

query I rowsort
SELECT ALL + 75 + - - 46 FROM tab1
----
121
121
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT DISTINCT + MIN( - col1 ) * + + COUNT( * ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT + MIN ( - col1 ) * + + COUNT ( * ) FROM tab2
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT 38 + + COUNT( * ) AS col0 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-5747
SELECT 38 + + COUNT ( * ) AS col0 FROM tab1
----
41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5748
SELECT ( 8 ) + - col1 DIV + CAST( - col1 AS SIGNED ) FROM tab0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-5748
SELECT ( 8 ) + - col1 / + CAST ( - col1 AS INTEGER ) FROM tab0
----
9
9
9

query II rowsort
SELECT - col1, + 31 + + 94 + - col2 AS col1 FROM tab1
----
-14
29
-47
57
-5
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5750
SELECT ALL MAX( + col1 ) + + CAST( NULL AS SIGNED ) / - - 48 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL MAX ( + col1 ) + + CAST ( NULL AS INTEGER ) / - - 48 FROM tab0
----
NULL

query I rowsort
SELECT ALL col1 + + + 10 - - 3 AS col1 FROM tab2
----
64
80
90

query II rowsort
SELECT 83, 67 AS col0 FROM tab2
----
83
67
83
67
83
67

query I rowsort
SELECT ALL - - col0 + ( - col2 ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 45 FROM tab1 AS cor0 WHERE ( - 41 <> NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 IN ( + 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT DISTINCT + + ( COUNT( DISTINCT 65 ) ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT + + ( COUNT ( DISTINCT 65 ) ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5757
SELECT * FROM tab1 AS cor0 WHERE ( NOT + + CAST( NULL AS SIGNED ) * 48 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5757
SELECT * FROM tab1 AS cor0 WHERE ( NOT + + CAST ( NULL AS INTEGER ) * 48 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * + col1 AS col2 FROM tab2 cor0 WHERE ( NOT + - col2 + + 91 + col2 + - 79 <> ( - col1 * col0 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 18 ) IS NOT NULL
----

query I rowsort
SELECT - + col1 * + col0 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5761
SELECT DISTINCT col1 + + - col2 AS col1, + CAST( 99 AS SIGNED ) AS col2 FROM tab2
----
28
99
37
99
9
99

skipif mysql # not compatible
query II rowsort label-5761
SELECT DISTINCT col1 + + - col2 AS col1, + CAST ( 99 AS INTEGER ) AS col2 FROM tab2
----
28
99
37
99
9
99

query III rowsort
SELECT * FROM tab1 WHERE col1 * + col1 - - 90 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 60 + + + col0 AS col0 FROM tab0 AS cor0
----
-45
27
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT ALL + + 7 - COUNT( * ) AS col2 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL + + 7 - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5765
SELECT 43 + - 53 DIV + 92 AS col2 FROM tab1 AS cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-5765
SELECT 43 + - 53 / + 92 AS col2 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 56 AS col0 FROM tab1 cor0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT + COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5768
SELECT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT 77 * + 30 - - col1 - - col1 + 43 FROM tab2 AS cor0
----
2455
2487
2507

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < - 17 + + col2
----

query I rowsort
SELECT col2 * - 66 AS col1 FROM tab0
----
-3102
-6534
-660

query I rowsort
SELECT col0 * 71 AS col0 FROM tab1
----
3621
6035
6461

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT ALL + MAX( - 11 ) AS col1 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL + MAX ( - 11 ) AS col1 FROM tab0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5774
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 > - + ( + col2 ) * CAST( NULL AS SIGNED ) * + - 23
----

skipif mysql # not compatible
query III rowsort label-5774
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 > - + ( + col2 ) * CAST ( NULL AS INTEGER ) * + - 23
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5775
SELECT - - COUNT( * ) AS col2, MIN( - col2 ) AS col2 FROM tab0 AS cor0
----
3
-99

skipif mysql # not compatible
query II rowsort label-5775
SELECT - - COUNT ( * ) AS col2, MIN ( - col2 ) AS col2 FROM tab0 AS cor0
----
3
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + col1 - - + col1 - - col0 + col0 * + + 94 + - col2 - - + col0 = + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col1, + col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT - 79 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN ( NULL ) AND col2 + - 5 )
----
0

skipif mysql # not compatible
query I rowsort label-5779
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN ( NULL ) AND col2 + - 5 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5780
SELECT + CAST( + col1 AS SIGNED ) * + col1 + - - CAST( col0 AS SIGNED ) - + 64 + - + col0 FROM tab2 AS cor0
----
2537
4425
5865

skipif mysql # not compatible
query I rowsort label-5780
SELECT + CAST ( + col1 AS INTEGER ) * + col1 + - - CAST ( col0 AS INTEGER ) - + 64 + - + col0 FROM tab2 AS cor0
----
2537
4425
5865

query I rowsort
SELECT - col0 * - - col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= col2 * + 83 - - ( col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5784
SELECT + SUM( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT + SUM ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 82 + - - col1 AS col0 FROM tab1
----
-35
-68
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT + 42 + + SUM( ALL + + col0 ) AS col0 FROM tab0
----
241

skipif mysql # not compatible
query I rowsort label-5786
SELECT + 42 + + SUM ( ALL + + col0 ) AS col0 FROM tab0
----
241

query I rowsort
SELECT + col2 * + col2 + col2 AS col1 FROM tab1
----
3540
4692
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT - 60 + + 0 * - COUNT( * ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-5788
SELECT - 60 + + 0 * - COUNT ( * ) FROM tab2
----
-60

query I rowsort
SELECT DISTINCT + col1 + + - col1 AS col1 FROM tab0
----
0

query I rowsort
SELECT - col1 FROM tab0 WHERE - - 52 * + col1 + - + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 13 + + + 90 FROM tab2
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-5792
SELECT col2 * col1 + - + 88 + - col2 DIV + - 32 + + 47 AS col1 FROM tab2
----
1132
3040
3846

skipif mysql # not compatible
query I rowsort label-5792
SELECT col2 * col1 + - + 88 + - col2 / + - 32 + + 47 AS col1 FROM tab2
----
1132
3040
3846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5793
SELECT + + 76 * col0 + + col0 + 13 + + + ( + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5793
SELECT + + 76 * col0 + + col0 + 13 + + + ( + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL < col2 * ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL < col2 * ( - col2 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5795
SELECT + + COUNT( * ) + CAST( NULL AS SIGNED ) / MIN( ALL + + ( - - col1 ) ), + COUNT( * ) col0 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5795
SELECT + + COUNT ( * ) + CAST ( NULL AS INTEGER ) / MIN ( ALL + + ( - - col1 ) ), + COUNT ( * ) col0 FROM tab0 AS cor0
----
NULL
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col2 * 76 + col1 FROM tab2 cor0
----
1799
3117
4475

query I rowsort
SELECT ALL - 91 * col0 AS col2 FROM tab1
----
-4641
-7735
-8281

query I rowsort
SELECT ALL + + 93 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT ALL + COUNT( * ) + + - ( + 74 ) FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL + COUNT ( * ) + + - ( + 74 ) FROM tab1
----
-71

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - - + col1 <= + + 23 / col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 col1 FROM tab1 AS cor0 WHERE + col2 + - ( col1 ) BETWEEN NULL AND + + 75 / + 95
----

query II rowsort
SELECT 75 AS col1, 50 * - col2 FROM tab0 cor0
----
75
-2350
75
-4950
75
-500

query I rowsort
SELECT 46 FROM tab2 cor0 WHERE NOT - col2 > NULL
----

query I rowsort
SELECT - ( - ( - - col2 ) ) AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL 84 * - + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1932
-3360
-4872

query I rowsort
SELECT - ( - 75 ) * - 97 AS col0 FROM tab1
----
-7275
-7275
-7275

query II rowsort
SELECT DISTINCT - 87 * col1 AS col2, - 66 FROM tab2
----
-4437
-66
-5829
-66
-6699
-66

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab1 WHERE NOT 90 IS NOT NULL
----

query I rowsort
SELECT - col2 * - 45 AS col0 FROM tab0
----
2115
4455
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5811
SELECT CAST( + - 89 AS SIGNED ) FROM tab1
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-5811
SELECT CAST ( + - 89 AS INTEGER ) FROM tab1
----
-89
-89
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 * + 84 col1 FROM tab0
----
-17640
-319788
-8316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5813
SELECT ALL + ( + MAX( - + col1 ) ) AS col1 FROM tab1 WHERE + + CAST( NULL AS SIGNED ) * + + col0 + col0 * + col1 - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL + ( + MAX ( - + col1 ) ) AS col1 FROM tab1 WHERE + + CAST ( NULL AS INTEGER ) * + + col0 + col0 * + col1 - col1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * + col2 col1 FROM tab2
----
1702
2960
4292

onlyif mysql # aggregate syntax: 
query II rowsort label-5815
SELECT DISTINCT + 33, COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
33
9

skipif mysql # not compatible
query II rowsort label-5815
SELECT DISTINCT + 33, COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
33
9

query II rowsort
SELECT + col0 AS col2, 22 * col2 * - + col2 FROM tab1
----
51
-202752
85
-76582
91
-101728

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT DISTINCT - COUNT( ALL - - col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT - COUNT ( ALL - - col2 ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 AS cor0 WHERE NOT + 12 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5819
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - + CAST( NULL AS SIGNED ) + + 66 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5819
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - + CAST ( NULL AS INTEGER ) + + 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT ALL - 27 + + 72 * + COUNT( * ) + + + 48 FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL - 27 + + 72 * + COUNT ( * ) + + + 48 FROM tab2 AS cor0
----
237

query I rowsort
SELECT col1 + + 24 AS col2 FROM tab1 AS cor0
----
29
38
71

query I rowsort
SELECT ALL - col1 * + + col1 * - - 28 * + 74 AS col1 FROM tab0 AS cor0
----
-13594392
-2072
-913752

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5823
SELECT ALL ( 16 ) * - 96 * - CAST( ( - - col0 ) AS SIGNED ) + col1 + + - CAST( NULL AS SIGNED ), + 69 AS col0 FROM tab0 AS cor0
----
NULL
69
NULL
69
NULL
69

skipif mysql # not compatible
query II rowsort label-5823
SELECT ALL ( 16 ) * - 96 * - CAST ( ( - - col0 ) AS INTEGER ) + col1 + + - CAST ( NULL AS INTEGER ), + 69 AS col0 FROM tab0 AS cor0
----
NULL
69
NULL
69
NULL
69

query I rowsort
SELECT - - 39 + ( + - col0 ) FROM tab0 AS cor0
----
-48
-58
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + - col2 col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT ALL - 89 + - col2 FROM tab1 AS cor0
----
-148
-157
-185

query I rowsort
SELECT - col2 + + 25 + col2 * - col2 FROM tab1
----
-3515
-4667
-9287

query I rowsort
SELECT + col1 + 8 * - col0 FROM tab2
----
-317
-435
-533

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5829
SELECT - COUNT( * ) DIV + COUNT( * ), - ( + - COUNT( * ) ) AS col0 FROM tab0
----
-1
3

skipif mysql # not compatible
query II rowsort label-5829
SELECT - COUNT ( * ) / + COUNT ( * ), - ( + - COUNT ( * ) ) AS col0 FROM tab0
----
-1
3

query I rowsort
SELECT ALL 85 * - col0 FROM tab1
----
-4335
-7225
-7735

query II rowsort
SELECT ALL col1 + + 16, + col1 FROM tab0
----
17
1
37
21
97
81

query I rowsort
SELECT DISTINCT + + ( - col0 ) FROM tab2 WHERE + ( + col0 ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT col0 * 93 FROM tab0
----
1395
8091
9021

query I rowsort
SELECT DISTINCT col2 + - 20 + + col1 FROM tab2
----
105
54
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT ALL + 86 + - COUNT( * ) AS col2 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL + 86 + - COUNT ( * ) AS col2 FROM tab2
----
83

query I rowsort
SELECT DISTINCT - col1 FROM tab1 cor0 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5837
SELECT ALL - - col1 DIV - col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL - - col1 / - col1 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT + + col0 - col0 * + ( - col1 ) * + - col1 + + - 43 + 55 AS col2 FROM tab1 AS cor0
----
-200916
-2028
-9933

query I rowsort
SELECT DISTINCT + col2 FROM tab2 cor0 WHERE NOT col0 + - col2 - 35 * - col0 BETWEEN + + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5840
SELECT - col0 DIV 21 FROM tab1 AS cor0
----
-2
-4
-4

skipif mysql # not compatible
query I rowsort label-5840
SELECT - col0 / 21 FROM tab1 AS cor0
----
-2
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT ALL + 54 * COUNT( * ) FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL + 54 * COUNT ( * ) FROM tab1 AS cor0
----
162

query I rowsort
SELECT ALL + + 14 AS col0 FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT col1 + + col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 * - col0 AS col0 FROM tab2 WHERE NOT + - col0 * + col1 / - col1 - col0 - + + 43 * col0 <> col0 * - col0
----

query I rowsort
SELECT - col0 * + 7 FROM tab1
----
-357
-595
-637

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5846
SELECT DISTINCT 76 DIV CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT 76 / CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-5847
SELECT - COUNT( * ) * 50 AS col1, COUNT( * ) col0 FROM tab0
----
-150
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5847
SELECT - COUNT ( * ) * 50 AS col1, COUNT ( * ) col0 FROM tab0
----
-150
3

query II rowsort
SELECT DISTINCT + 82 AS col1, col0 + + + col2 AS col0 FROM tab1
----
82
144
82
147
82
159

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > ( - col1 )
----

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT NULL = NULL
----

query II rowsort
SELECT 54, 48 AS col0 FROM tab2
----
54
48
54
48
54
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5852
SELECT col0 DIV - 43 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-5852
SELECT col0 / - 43 FROM tab0 AS cor0
----
-2
-2
0

query I rowsort
SELECT 58 + 60 AS col2 FROM tab0 AS cor0 WHERE NOT 14 / ( - col2 ) * col0 + + col0 - + + 33 * col1 < NULL
----

query II rowsort
SELECT ALL - - col2, 91 AS col2 FROM tab0 AS cor0
----
10
91
47
91
99
91

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5856
SELECT ALL + COUNT( * ), + 83 col1 FROM tab0, tab0 cor0
----
9
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5856
SELECT ALL + COUNT ( * ), + 83 col1 FROM tab0, tab0 cor0
----
9
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5857
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 10 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5857
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 10 col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - ( + col0 ) + + col0 + + + col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + col2 * - 93 * + + col1 FROM tab1 cor0
----
-124992
-27435
-297228

query II rowsort
SELECT ALL + ( + 76 ) AS col1, - col1 * + + ( + col1 ) AS col0 FROM tab1 AS cor0
----
76
-196
76
-2209
76
-25

query I rowsort
SELECT ALL + + 78 * + ( - + ( + col2 ) ) FROM tab2 cor0
----
-1794
-3120
-4524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5862
SELECT col1 * - CAST( NULL AS SIGNED ) * + ( - col2 ) * - col0 + - col2 * - - 71 + + ( - + 8 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5862
SELECT col1 * - CAST ( NULL AS INTEGER ) * + ( - col2 ) * - col0 + - col2 * - - 71 + + ( - + 8 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5863
SELECT col2 + - col1 DIV col0 AS col1 FROM tab2
----
22
39
58

skipif mysql # not compatible
query I rowsort label-5863
SELECT col2 + - col1 / col0 AS col1 FROM tab2
----
22
39
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * 66 + - + col1 AS col2, col1 * + + 3 col2 FROM tab2
----
3315
153
4355
201
5005
231

query I rowsort
SELECT ALL - 45 FROM tab0 WHERE NOT NULL IS NULL AND NULL IS NULL
----

query I rowsort
SELECT + col0 + - 28 FROM tab1
----
23
57
63

query I rowsort
SELECT + col1 + col2 * - 41 FROM tab1
----
-2414
-2741
-3922

query I rowsort
SELECT - 75 + + 38 AS col0 FROM tab1 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT - 42 + + COUNT( * ) FROM tab2 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-5869
SELECT - 42 + + COUNT ( * ) FROM tab2 cor0
----
-39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL BETWEEN ( NULL ) AND - ( + 60 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5871
SELECT DISTINCT - - COUNT( * ) - CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT - - COUNT ( * ) - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL - col1 AS col0, + 46 * + 71 * 27 * 92 FROM tab1 AS cor0
----
-14
8112744
-47
8112744
-5
8112744

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT ALL + 14 * + MIN( 20 ) AS col0 FROM tab2
----
280

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL + 14 * + MIN ( 20 ) AS col0 FROM tab2
----
280

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - + col0 + 2 + + col2 + + col0 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 9 * - 6 + - col0 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5876
SELECT + 1 DIV 65 AS col0, + col1 col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5876
SELECT + 1 / 65 AS col0, + col1 col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5877
SELECT DISTINCT - + COUNT( * ) DIV 46 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT - + COUNT ( * ) / 46 FROM tab1 AS cor0
----
0

query II rowsort
SELECT + col2, 13 + - ( - col0 ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT DISTINCT - COUNT( col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5879
SELECT DISTINCT - COUNT ( col0 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5880
SELECT * FROM tab0 AS cor0 WHERE NOT - ( CAST( - col1 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5880
SELECT * FROM tab0 AS cor0 WHERE NOT - ( CAST ( - col1 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL 87 * + 11 + + - 75 AS col1 FROM tab0 cor0
----
882
882
882

query I rowsort
SELECT + 55 * + 7 AS col1 FROM tab2
----
385
385
385

query II rowsort
SELECT DISTINCT 78, col0 AS col1 FROM tab2
----
78
46
78
64
78
75

query I rowsort
SELECT ALL + col0 * - col2 + - ( + col0 ) FROM tab1 AS cor0
----
-4947
-5100
-6279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5885
SELECT + 53 DIV COUNT( * ) FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5885
SELECT + 53 / COUNT ( * ) FROM tab1 AS cor0
----
17

query I rowsort
SELECT ALL 92 + + + col0 - ( - - col2 ) * + col1 * - col2 AS col2 FROM tab1
----
129167
17582
217511

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT ALL 58 + COUNT( * ) FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL 58 + COUNT ( * ) FROM tab1
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5888
SELECT DISTINCT MIN( DISTINCT ( - + col2 ) ) + + - COUNT( * ) DIV - - COUNT( * ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-5888
SELECT DISTINCT MIN ( DISTINCT ( - + col2 ) ) + + - COUNT ( * ) / - - COUNT ( * ) FROM tab0
----
-100

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 46 / col1 / - + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL COUNT( * ) * - COUNT( * ) + COUNT( 9 ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL COUNT ( * ) * - COUNT ( * ) + COUNT ( 9 ) AS col0 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - col2 - + - 96 + - 13 * + + col1 AS col1 FROM tab0 AS cor0
----
-1004
-16
-187

query II rowsort
SELECT ALL + 30, col0 FROM tab2 AS cor0
----
30
46
30
64
30
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT ALL - COUNT( DISTINCT - 30 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL - COUNT ( DISTINCT - 30 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL - + col2 + - col0 FROM tab0 WHERE NOT + 20 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5896
SELECT - ( - COUNT( * ) ) col2, + 57 AS col2 FROM tab1
----
3
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5896
SELECT - ( - COUNT ( * ) ) col2, + 57 AS col2 FROM tab1
----
3
57

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 90 - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5898
SELECT ALL * FROM tab0 WHERE - col0 < - 21 * col2 - - CAST( NULL AS SIGNED ) - col1
----

skipif mysql # not compatible
query III rowsort label-5898
SELECT ALL * FROM tab0 WHERE - col0 < - 21 * col2 - - CAST ( NULL AS INTEGER ) - col1
----

query I rowsort
SELECT DISTINCT - col0 + col0 * 25 AS col0 FROM tab1
----
1224
2040
2184

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5900
SELECT * FROM tab1 WHERE NULL NOT IN ( + 92, - CAST( col1 AS SIGNED ) - + + 9 + - 84, + col0 * + + 82, col1, + col2 * + col0 - - + col0, - - col0 * col1 )
----

skipif mysql # not compatible
query III rowsort label-5900
SELECT * FROM tab1 WHERE NULL NOT IN ( + 92, - CAST ( col1 AS INTEGER ) - + + 9 + - 84, + col0 * + + 82, col1, + col2 * + col0 - - + col0, - - col0 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT + COUNT( * ) FROM tab2 WHERE - + col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5901
SELECT + COUNT ( * ) FROM tab2 WHERE - + col0 > NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5902
SELECT ALL MAX( DISTINCT + + 70 ) - - CAST( NULL AS SIGNED ) * 71 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL MAX ( DISTINCT + + 70 ) - - CAST ( NULL AS INTEGER ) * 71 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 3 * col1 - + ( + + col1 ) * + col0 AS col1 FROM tab0 AS cor0
----
-1764
-94
-972

query I rowsort
SELECT + col0 * col2 + + ( - - col0 ) AS col0 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT + col2 IN ( - + col0 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT ALL + MAX( DISTINCT col0 ) AS col2 FROM tab2 WHERE - + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL + MAX ( DISTINCT col0 ) AS col2 FROM tab2 WHERE - + col0 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col2, + col0 + + col0 FROM tab0
----
1
194
21
174
81
30

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 52 IN ( col2 + - col1, + col0 * - ( - + col0 ), - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 AND - 19 / - col2 + + ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 col0 FROM tab2 AS cor0
----
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-5911
SELECT ALL + 75 AS col2, + col0 DIV + - 39 - 48 FROM tab2 AS cor0
----
75
-49
75
-49
75
-49

skipif mysql # not compatible
query II rowsort label-5911
SELECT ALL + 75 AS col2, + col0 / + - 39 - 48 FROM tab2 AS cor0
----
75
-49
75
-49
75
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT + - MIN( ALL + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5912
SELECT + - MIN ( ALL + col2 ) FROM tab1 AS cor0
----
-59

query II rowsort
SELECT ALL + + col0, - col2 * + - col0 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT + - COUNT( - 13 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5914
SELECT + - COUNT ( - 13 ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT + 35, + col1 FROM tab2 AS cor0
----
35
51
35
67
35
77

query I rowsort
SELECT ALL col2 * - 69 FROM tab0
----
-3243
-6831
-690

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col0 = col2 / - col1
----

query I rowsort
SELECT col0 * - 55 FROM tab1
----
-2805
-4675
-5005

query I rowsort
SELECT 82 * + - 70 * + 90 FROM tab0
----
-516600
-516600
-516600

query I rowsort
SELECT ALL - 75 * col2 FROM tab2
----
-1725
-3000
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + - 36, + col0 col1 FROM tab2 AS cor0
----
-100
64
-111
75
-82
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5922
SELECT - ( + - 72 ) * + + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT - ( + - 72 ) * + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 34 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE + 98 IS NOT NULL
----
-34

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 <= NULL
----

query I rowsort
SELECT + + col2 * + 98 AS col2 FROM tab1 AS cor0
----
5782
6664
9408

query I rowsort
SELECT ALL 67 - - - ( + + 82 ) + 80 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT - + 74 AS col0 FROM tab1 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT + + 38 * MIN( - - ( + - col1 ) ) FROM tab1 WHERE + - 13 + - - col2 <> + 62 * col1
----
-1786

skipif mysql # not compatible
query I rowsort label-5928
SELECT + + 38 * MIN ( - - ( + - col1 ) ) FROM tab1 WHERE + - 13 + - - col2 <> + 62 * col1
----
-1786

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NULL ) > + + 95 * 99 * + + 36 / - col2 - + 62 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5930
SELECT col2 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5930
SELECT col2 + - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 97 * - col2 + - 19 FROM tab2
----
-2250
-3899
-5645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5932
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + + COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab2
----
6

query I rowsort
SELECT 78 * - col1 AS col1 FROM tab0
----
-1638
-6318
-78

query I rowsort
SELECT - + ( 42 ) FROM tab0 AS cor0
----
-42
-42
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 col0 FROM tab0 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col1 FROM tab2 cor0
----
51
67
77

query II rowsort
SELECT ALL - col0 AS col0, - 84 FROM tab1 AS cor0
----
-51
-84
-85
-84
-91
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT + COUNT( * ) * COUNT( * ) col2 FROM tab1 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5938
SELECT + COUNT ( * ) * COUNT ( * ) col2 FROM tab1 cor0
----
9

query I rowsort
SELECT DISTINCT - - 47 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5940
SELECT ( - COUNT( * ) ) DIV + 85 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5940
SELECT ( - COUNT ( * ) ) / + 85 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE 29 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 29 >= NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5943
SELECT DISTINCT + ( - 76 ) + + col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT + ( - 76 ) + + col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5944
SELECT ALL + CAST( NULL AS SIGNED ) + + + 4 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 4 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + AVG ( + + col2 ) FROM tab1 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT + col1 + - + col0 AS col2 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT COUNT( DISTINCT + col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5947
SELECT COUNT ( DISTINCT + col2 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT ALL col0 AS col2, col0 AS col2 FROM tab1 WHERE + col2 IS NOT NULL
----
51
51
85
85
91
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * + - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT + MAX( DISTINCT - - col1 ) FROM tab2 WHERE NULL IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-5950
SELECT + MAX ( DISTINCT - - col1 ) FROM tab2 WHERE NULL IS NULL
----
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 17 + - 65 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 39 * - + 95 AS col0 FROM tab0 AS cor0 WHERE + 13 IS NOT NULL
----
-3705
-3705
-3705

query I rowsort
SELECT ALL 16 AS col0 FROM tab2 cor0
----
16
16
16

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 93 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT - col1 * + col1 DIV + - col1 AS col1 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5955
SELECT - col1 * + col1 / + - col1 AS col1 FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT - - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5956
SELECT - - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 47 <> NULL
----

query I rowsort
SELECT DISTINCT - 24 AS col2 FROM tab0 WHERE - 69 NOT BETWEEN NULL AND + 24 + 41 + + col1 - + col0
----

query I rowsort
SELECT DISTINCT + col1 + - ( + + col0 ) AS col0 FROM tab2
----
-8
13
5

query I rowsort
SELECT col0 + - ( - col1 ) FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + col2 + - 86 AS col2 FROM tab2 AS cor0
----
-28
-46
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT - ( - 6 ) * - MIN( col2 ) + + COUNT( 97 ) AS col0 FROM tab1 AS cor0
----
-351

skipif mysql # not compatible
query I rowsort label-5962
SELECT - ( - 6 ) * - MIN ( col2 ) + + COUNT ( 97 ) AS col0 FROM tab1 AS cor0
----
-351

query I rowsort
SELECT ALL + 15 - - + col0 AS col2 FROM tab2 AS cor0
----
61
79
90

query I rowsort
SELECT + 2 AS col1 FROM tab1 cor0
----
2
2
2

query II rowsort
SELECT col1 * - 16 * - 76 AS col2, + 10 * + col2 AS col1 FROM tab0
----
1216
990
25536
100
98496
470

query III rowsort
SELECT * FROM tab2 WHERE 51 + col0 IS NULL
----

query I rowsort
SELECT 42 - 51 AS col0 FROM tab2
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT + COUNT( - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5968
SELECT + COUNT ( - col1 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + - col2 <> + 60
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 90 * + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 3 * + 58 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5972
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - ( + - 98 ), + CAST( NULL AS SIGNED ) + - col1 + - col0 * + - col0 - - 95 )
----

skipif mysql # not compatible
query III rowsort label-5972
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - ( + - 98 ), + CAST ( NULL AS INTEGER ) + - col1 + - col0 * + - col0 - - 95 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5973
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( 11 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5973
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( 11 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5974
SELECT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5974
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT ALL ( CAST( - 72 AS SIGNED ) ) FROM tab2 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL ( CAST ( - 72 AS INTEGER ) ) FROM tab2 AS cor0
----
-72
-72
-72

query III rowsort
SELECT * FROM tab0 WHERE NOT 41 + ( - col1 ) / - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT ALL MAX( + + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL MAX ( + + col1 ) FROM tab2
----
77

query II rowsort
SELECT + col2, + 72 FROM tab2
----
23
72
40
72
58
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT + SUM( ALL col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5979
SELECT + SUM ( ALL col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT + SUM( DISTINCT col1 ) * - + COUNT( * ) * + + COUNT( * ) + - 78 FROM tab2 cor0
----
-1833

skipif mysql # not compatible
query I rowsort label-5981
SELECT + SUM ( DISTINCT col1 ) * - + COUNT ( * ) * + + COUNT ( * ) + - 78 FROM tab2 cor0
----
-1833

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT - 24 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5982
SELECT - 24 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5983
SELECT ALL - - 77 DIV + MIN( ALL col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL - - 77 / + MIN ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE + col1 - col1 * 80 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT + MIN( - 69 ) FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-5985
SELECT + MIN ( - 69 ) FROM tab0
----
-69

query I rowsort
SELECT DISTINCT 89 * - - 13 FROM tab1
----
1157

query II rowsort
SELECT DISTINCT - col1 + + col1, - col2 AS col1 FROM tab2
----
0
-23
0
-40
0
-58

query I rowsort
SELECT - 77 + col0 FROM tab0
----
-62
10
20

query I rowsort
SELECT + + 96 + col2 AS col1 FROM tab0 cor0
----
106
143
195

query I rowsort
SELECT ALL 1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT DISTINCT - COUNT( * ) * 3 + - 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-122

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT - COUNT ( * ) * 3 + - 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col1 FROM tab1
----
-5
-5
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5993
SELECT - CAST( NULL AS SIGNED ) - + + MIN( + - col2 ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5993
SELECT - CAST ( NULL AS INTEGER ) - + + MIN ( + - col2 ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5994
SELECT DISTINCT + + 21 DIV 99 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT + + 21 / 99 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT ALL - 51 * - MIN( - + ( + col2 ) ) - + 15 FROM tab1 AS cor0
----
-4911

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL - 51 * - MIN ( - + ( + col2 ) ) - + 15 FROM tab1 AS cor0
----
-4911

onlyif mysql # DIV for integer division: 
query I rowsort label-5996
SELECT col2 - - col2 DIV - + 83 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5996
SELECT col2 - - col2 / - + 83 AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - 88 - col2 FROM tab0 cor0
----
-135
-187
-98

query I rowsort
SELECT DISTINCT - 49 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5999
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 / - col1 + + + CAST( - 35 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5999
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 / - col1 + + + CAST ( - 35 AS INTEGER ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT ALL SUM( DISTINCT + col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL SUM ( DISTINCT + col1 ) AS col1 FROM tab0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-6001
SELECT + 47 DIV - + 25 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6001
SELECT + 47 / - + 25 AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL - col2 * + 12 + - col2 + + - col0 AS col2 FROM tab0 cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + 33 + + - col1 + 51
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6004
SELECT DISTINCT - + MIN( DISTINCT - 60 ) DIV - 89 - + MAX( DISTINCT - 26 ) AS col2 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT - + MIN ( DISTINCT - 60 ) / - 89 - + MAX ( DISTINCT - 26 ) AS col2 FROM tab1 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT COUNT( * ) * + 45 AS col1 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-6005
SELECT COUNT ( * ) * + 45 AS col1 FROM tab1
----
135

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6007
SELECT ALL - + ( + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL - + ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col2 + 12 AS col2 FROM tab2
----
35
52
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT DISTINCT + + SUM( ALL col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT + + SUM ( ALL col1 ) FROM tab1 cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN 4 + col1 AND col1 * - 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT DISTINCT + MAX( - 14 ) AS col2 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT + MAX ( - 14 ) AS col2 FROM tab1 AS cor0
----
-14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > + 68
----

query I rowsort
SELECT col2 + - 14 + - col1 FROM tab1
----
40
68
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT DISTINCT MAX( 96 ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT MAX ( 96 ) FROM tab0
----
96

query I rowsort
SELECT DISTINCT + ( + + col0 ) + - col1 * - 96 FROM tab2
----
4942
6507
7456

query II rowsort
SELECT - col0 AS col1, 50 AS col0 FROM tab0 WHERE + 35 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6017
SELECT ALL 27 AS col1, - CAST( 86 AS SIGNED ) * + + col2 AS col0 FROM tab0
----
27
-4042
27
-8514
27
-860

skipif mysql # not compatible
query II rowsort label-6017
SELECT ALL 27 AS col1, - CAST ( 86 AS INTEGER ) * + + col2 AS col0 FROM tab0
----
27
-4042
27
-8514
27
-860

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6018
SELECT DISTINCT * FROM tab1 WHERE ( + - CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6018
SELECT DISTINCT * FROM tab1 WHERE ( + - CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= + col0
----

query I rowsort
SELECT ALL + col1 * - - 84 FROM tab2
----
4284
5628
6468

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ALL COUNT( * ) * + - 62 + + 92 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL COUNT ( * ) * + - 62 + + 92 FROM tab1 AS cor0
----
-94

query II rowsort
SELECT DISTINCT + col2, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT - ( - - 4 ) AS col0 FROM tab2 WHERE NOT - + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + + 58 AS col0 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / - 37 * + + 8 + - col1 = col1
----

query I rowsort
SELECT ALL - col1 * - + ( col0 ) * - 46 - + col0 FROM tab2 AS cor0
----
-107962
-226752
-231225

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NOT + col1 * - 43 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 * - - ( - col2 ) AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT ( - - 15 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 cor0 WHERE 65 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6032
SELECT ALL * FROM tab1 WHERE NOT + col0 = - CAST( + col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6032
SELECT ALL * FROM tab1 WHERE NOT + col0 = - CAST ( + col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - + 49 ) FROM tab2 WHERE NOT ( NULL IN ( col2, + col0 + col1, - + ( + col0 ), + col1, 24 ) )
----

query II rowsort
SELECT DISTINCT 64 * - 34 * - 72 AS col0, + 32 FROM tab2
----
156672
32

query I rowsort
SELECT col1 * + + col2 * col2 AS col0 FROM tab1
----
129024
17405
217328

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6036
SELECT + CAST( NULL AS DECIMAL ) AS col2, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-6036
SELECT + CAST ( NULL AS REAL ) AS col2, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6037
SELECT DISTINCT - CAST( col2 AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT col2 + col2 - col1 * - col2 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6037
SELECT DISTINCT - CAST ( col2 AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT col2 + col2 - col1 * - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 43 / 61 <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT 91 <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT 53 + - SUM( ALL 13 ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-6040
SELECT 53 + - SUM ( ALL 13 ) FROM tab2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6041
SELECT CAST( - col2 AS SIGNED ) col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6041
SELECT CAST ( - col2 AS INTEGER ) col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT MAX( col1 ) + + 63 FROM tab1
----
110

skipif mysql # not compatible
query I rowsort label-6042
SELECT MAX ( col1 ) + + 63 FROM tab1
----
110

query I rowsort
SELECT DISTINCT + 85 + 90 * ( - col1 * + col1 ) AS col0 FROM tab1
----
-17555
-198725
-2165

query I rowsort
SELECT ALL 79 * + 52 - - col0 FROM tab0 WHERE NULL >= col2 - + col0 * - col0
----

query I rowsort
SELECT DISTINCT + 63 * col0 + col1 FROM tab0
----
1026
5502
6112

query I rowsort
SELECT DISTINCT - 26 * 18 FROM tab0
----
-468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) * - col2 col0 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT + 57 - COUNT( * ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-6049
SELECT + 57 - COUNT ( * ) FROM tab0
----
54

query I rowsort
SELECT DISTINCT 91 + col2 * col1 FROM tab1
----
1435
3287
386

query I rowsort
SELECT ALL col1 * col1 - col0 FROM tab0
----
-96
354
6546

query I rowsort
SELECT DISTINCT 37 * + col1 + - col0 AS col1 FROM tab2
----
1841
2404
2785

query I rowsort
SELECT + 37 * col1 FROM tab2
----
1887
2479
2849

query I rowsort
SELECT 61 * + 74 FROM tab1
----
4514
4514
4514

query I rowsort
SELECT 98 * 56 FROM tab2
----
5488
5488
5488

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 + 9 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 8 - col2 * + 4 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col2 FROM tab0 WHERE ( col1 ) > 60 * + 93
----
0

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 WHERE ( col1 ) > 60 * + 93
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6059
SELECT + col1 * ( + col1 ) - CAST( NULL AS SIGNED ) FROM tab0 WHERE - 86 BETWEEN ( NULL ) AND col1
----

skipif mysql # not compatible
query I rowsort label-6059
SELECT + col1 * ( + col1 ) - CAST ( NULL AS INTEGER ) FROM tab0 WHERE - 86 BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT + col0 + + 59 FROM tab0 AS cor0
----
146
156
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT ALL COUNT( - 62 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL COUNT ( - 62 ) FROM tab1
----
3

query I rowsort
SELECT - 56 FROM tab0 WHERE - col1 * col0 >= + 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT 9 - + COUNT( ALL 6 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6063
SELECT 9 - + COUNT ( ALL 6 ) FROM tab0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6064
SELECT - 69 - + SUM( DISTINCT CAST( NULL AS SIGNED ) ) * - 65 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT - 69 - + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 65 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + 36 * + col0 AS col1 FROM tab2
----
1656
2304
2700

query I rowsort
SELECT DISTINCT - col1 * 88 AS col1 FROM tab2
----
-4488
-5896
-6776

query I rowsort
SELECT DISTINCT col1 + - col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 89 FROM tab1 AS cor0 WHERE NOT + col2 * ( + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6069
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( + 88 AS SIGNED ) * - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-6069
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( + 88 AS INTEGER ) * - CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT DISTINCT - 52 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * - col1 NOT BETWEEN col1 * - ( 46 ) AND col0 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6072
SELECT DISTINCT COUNT( - 5 ) FROM tab0 AS cor0 WHERE + col1 BETWEEN ( 54 ) AND ( - col1 * col2 + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT COUNT ( - 5 ) FROM tab0 AS cor0 WHERE + col1 BETWEEN ( 54 ) AND ( - col1 * col2 + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL 85 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * - + col2 FROM tab2
----
1600
3364
529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 * + - col2 * col1 col0 FROM tab1
----
-12096
-2655
-28764

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT - COUNT( ALL + col2 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6076
SELECT - COUNT ( ALL + col2 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - col0 * + col1 * 75 FROM tab2
----
-175950
-369600
-376875

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE NOT col0 <> - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) < NULL OR ( NULL ) BETWEEN col0 + - col2 AND - col2 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 75 col0 FROM tab2
----
3825
5025
5775

query I rowsort
SELECT 3 * - 70 * + col1 FROM tab1
----
-1050
-2940
-9870

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 NOT IN ( - 76 + + 20 * + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + ( - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6084
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 ) IN ( col1 * 43 + - 33 * - CAST( col1 + - col2 * col1 AS DECIMAL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6084
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 ) IN ( col1 * 43 + - 33 * - CAST ( col1 + - col2 * col1 AS REAL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6085
SELECT COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - ( - 97 ) NOT BETWEEN NULL AND ( + col2 * col2 )
----

query I rowsort
SELECT col1 - + ( - 55 ) FROM tab1 WHERE NOT col1 <= ( - col1 )
----
102
60
69

query I rowsort
SELECT col1 + + col0 FROM tab0 WHERE NOT ( + 82 ) NOT BETWEEN + col0 * 18 + 24 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6089
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - col1 * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - col1 * - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + col0 * + col2 FROM tab2
----
1081
2600
4408

query III rowsort
SELECT * FROM tab1 WHERE ( + - ( - col2 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 * - 76 + + + col2 AS col0 FROM tab1
----
-4425
-5100
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT + MIN( ( - 74 ) ) * - 90 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
6660

skipif mysql # not compatible
query I rowsort label-6093
SELECT + MIN ( ( - 74 ) ) * - 90 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
6660

query I rowsort
SELECT ALL col2 + + col0 * + - col1 AS col1 FROM tab1 cor0
----
-366
-4209
-618

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( ( + col1 ) )
----

query II rowsort
SELECT DISTINCT - 86, + ( + + col2 ) * 43 - + 7 * + col0 AS col1 FROM tab0 AS cor0
----
-86
-179
-86
1916
-86
3578

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6097
SELECT CAST( NULL AS SIGNED ) * + 44 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT CAST ( NULL AS INTEGER ) * + 44 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE NOT + col0 NOT BETWEEN - + col2 + col1 AND 17
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE ( NULL ) NOT IN ( + col1 )
----

query I rowsort
SELECT ALL + col2 * 60 AS col0 FROM tab1 WHERE NULL IS NULL
----
3540
4080
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT DISTINCT COUNT( * ) + - COUNT( ALL - 24 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6101
SELECT DISTINCT COUNT ( * ) + - COUNT ( ALL - 24 ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT COUNT( * ) + COUNT( * ) col0 FROM tab1 WHERE + col1 IS NOT NULL
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6102
SELECT COUNT ( * ) + COUNT ( * ) col0 FROM tab1 WHERE + col1 IS NOT NULL
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6103
SELECT + col2 AS col1 FROM tab0 WHERE - 59 * + CAST( NULL AS SIGNED ) NOT IN ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query I rowsort label-6103
SELECT + col2 AS col1 FROM tab0 WHERE - 59 * + CAST ( NULL AS INTEGER ) NOT IN ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * col1 )
----

query I rowsort
SELECT col1 - col1 + - 62 AS col2 FROM tab2 AS cor0
----
-62
-62
-62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6105
SELECT - + 65 - - CAST( + col0 AS SIGNED ) DIV - col0 + 26 AS col0 FROM tab0 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-6105
SELECT - + 65 - - CAST ( + col0 AS INTEGER ) / - col0 + 26 AS col0 FROM tab0 AS cor0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6106
SELECT DISTINCT + - CAST( - col2 AS SIGNED ) - + - col2 FROM tab2 cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT + - CAST ( - col2 AS INTEGER ) - + - col2 FROM tab2 cor0
----
116
46
80

query I rowsort
SELECT - col0 - col1 + 68 * - col0 FROM tab0 AS cor0
----
-1116
-6024
-6694

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 55 IS NULL
----

query I rowsort
SELECT + col0 * ( + col0 ) * - col1 - col2 + col2 * col2 FROM tab2
----
-107410
-313832
-373569

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT - SUM( DISTINCT + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6110
SELECT - SUM ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL - 26 AS col1 FROM tab2 cor0
----
-26
-26
-26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6112
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 ) < ( CAST( + - col0 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6112
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 ) < ( CAST ( + - col0 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT DISTINCT + COUNT( + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT + COUNT ( + col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT col2 BETWEEN + col0 - + 30 AND NULL
----

query II rowsort
SELECT DISTINCT - col0, + 42 + - + col0 + 3 AS col1 FROM tab2 WHERE ( NULL ) < ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 - - ( - 93 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6117
SELECT - col2 * + - CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-6117
SELECT - col2 * + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + col0 * + + 93 col2 FROM tab1
----
241893
671925
770133

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6119
SELECT ALL col1 col1, + CAST( - col0 AS SIGNED ) FROM tab1
----
14
-51
47
-91
5
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6119
SELECT ALL col1 col1, + CAST ( - col0 AS INTEGER ) FROM tab1
----
14
-51
47
-91
5
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-6120
SELECT 62 DIV - - col2 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6120
SELECT 62 / - - col2 AS col2 FROM tab2 AS cor0
----
1
1
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 49 >= ( NULL )
----

query I rowsort
SELECT col2 * + col0 + col2 AS col2 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT - - col1 + - 26 - + col1 FROM tab2 AS cor0
----
-26
-26
-26

query I rowsort
SELECT + 3 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND 43
----

query II rowsort
SELECT - col2 AS col1, + 97 - - + 67 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6126
SELECT + SUM( 28 ) AS col0, + COUNT( * ) FROM tab0
----
84
3

skipif mysql # not compatible
query II rowsort label-6126
SELECT + SUM ( 28 ) AS col0, + COUNT ( * ) FROM tab0
----
84
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL NOT IN ( 86 )
----
0

skipif mysql # not compatible
query I rowsort label-6127
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL NOT IN ( 86 )
----
0

query I rowsort
SELECT - ( - ( - - 26 ) ) * - 99 FROM tab1 AS cor0
----
-2574
-2574
-2574

query I rowsort
SELECT + + ( + + col1 ) AS col0 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + 97 + - col1 AS col0 FROM tab1 AS cor0
----
50
83
92

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( NOT + - ( + col1 ) / + col1 * + col2 + col0 IS NOT NULL )
----

query I rowsort
SELECT ( - + 92 ) - col0 + - col1 FROM tab1 AS cor0
----
-157
-182
-230

onlyif mysql # DIV for integer division: 
query I rowsort label-6133
SELECT DISTINCT - + 19 DIV - col0 * - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6133
SELECT DISTINCT - + 19 / - col0 * - col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 22 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 94 AS col2 FROM tab1 cor0
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6136
SELECT ALL CAST( + col2 AS SIGNED ) + + col1 - col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL CAST ( + col2 AS INTEGER ) + + col1 - col2 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 53 IN ( - 3 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6138
SELECT DISTINCT + col1 DIV - 1 AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT + col1 / - 1 AS col1 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 WHERE + col0 / col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - col0 ) * col2 + + + 4 * - 67 FROM tab0
----
-1138
-973
-9871

query I rowsort
SELECT + - 15 FROM tab0 WHERE ( NULL ) NOT IN ( col2, 34 * - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE + 6 = ( - - 96 )
----

query I rowsort
SELECT DISTINCT 41 AS col1 FROM tab2 cor0 WHERE + col2 <> - col1
----
41

query I rowsort
SELECT DISTINCT col1 + col2 * col2 + + + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-1536
-2194
-2419

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT DISTINCT 64 DIV + col2 - + 5 AS col1 FROM tab0 AS cor0
----
-4
-5
1

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT 64 / + col2 - + 5 AS col1 FROM tab0 AS cor0
----
-4
-5
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 + - col1 col0 FROM tab1 WHERE NOT - 97 + - col2 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 76 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - col2 + ( - 89 ) * + 70 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6150
SELECT 27 col1, + CAST( NULL AS DECIMAL ) * + - col2 FROM tab2
----
27
NULL
27
NULL
27
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6150
SELECT 27 col1, + CAST ( NULL AS REAL ) * + - col2 FROM tab2
----
27
NULL
27
NULL
27
NULL

query I rowsort
SELECT + col2 + - col2 + + + col2 FROM tab0 WHERE NOT NULL IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 col0 FROM tab2
----
16

query II rowsort
SELECT + col1, - col1 * + col2 AS col2 FROM tab0
----
1
-99
21
-210
81
-3807

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + 50 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT DISTINCT - MAX( ALL - - col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT - MAX ( ALL - - col1 ) AS col1 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( + - 25 * - col0 < NULL )
----

query I rowsort
SELECT - 44 * col0 AS col2 FROM tab0 AS cor0
----
-3828
-4268
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT - MIN( 48 ) col0 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6159
SELECT - MIN ( 48 ) col0 FROM tab0 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT ALL + 5 + COUNT( * ) * - 43 FROM tab0
----
-124

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL + 5 + COUNT ( * ) * - 43 FROM tab0
----
-124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 - + 90 + - col1 * - col1 + - col1 col1 FROM tab2
----
2528
4400
5830

query I rowsort
SELECT DISTINCT col0 - + col0 AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 = NULL
----

query I rowsort
SELECT ALL - col1 + + 26 FROM tab2 AS cor0
----
-25
-41
-51

query I rowsort
SELECT ALL + col2 * + col1 * - - col0 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT + col2 * - 86 FROM tab2 AS cor0
----
-1978
-3440
-4988

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6167
SELECT 93 AS col0, CAST( NULL AS SIGNED ) FROM tab0 cor0
----
93
NULL
93
NULL
93
NULL

skipif mysql # not compatible
query II rowsort label-6167
SELECT 93 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
93
NULL
93
NULL
93
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6168
SELECT 79 + - CAST( - col2 AS SIGNED ) + 66 AS col0 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN - col1 * + - col1 AND NULL
----
204
213
241

skipif mysql # not compatible
query I rowsort label-6168
SELECT 79 + - CAST ( - col2 AS INTEGER ) + 66 AS col0 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN - col1 * + - col1 AND NULL
----
204
213
241

query I rowsort
SELECT DISTINCT + 66 * - col1 FROM tab2 AS cor0
----
-3366
-4422
-5082

query I rowsort
SELECT + col2 * 17 + + + 58 FROM tab2 AS cor0
----
1044
449
738

query II rowsort
SELECT ALL col1 * - 56 AS col1, 12 FROM tab2
----
-2856
12
-3752
12
-4312
12

onlyif mysql # DIV for integer division: 
query I rowsort label-6172
SELECT DISTINCT + 27 + - 23 DIV + col1 AS col1 FROM tab0
----
26
27
4

skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT + 27 + - 23 / + col1 AS col1 FROM tab0
----
26
27
4

query II rowsort
SELECT + col1 * - - col2 * + col1, col0 FROM tab0
----
308367
15
4410
87
99
97

onlyif mysql # DIV for integer division: 
query II rowsort label-6174
SELECT ALL col0 + 63 AS col2, - col0 DIV + 19 FROM tab2
----
109
-2
127
-3
138
-3

skipif mysql # not compatible
query II rowsort label-6174
SELECT ALL col0 + 63 AS col2, - col0 / + 19 FROM tab2
----
109
-2
127
-3
138
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6175
SELECT DISTINCT COUNT( * ) AS col0, + 46 + 99 FROM tab2, tab2 AS cor0
----
9
145

skipif mysql # not compatible
query II rowsort label-6175
SELECT DISTINCT COUNT ( * ) AS col0, + 46 + 99 FROM tab2, tab2 AS cor0
----
9
145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 40 - col0 col0, - 57 FROM tab0
----
-127
-57
-137
-57
-55
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6177
SELECT DISTINCT - - CAST( 83 AS SIGNED ) * - col0 * + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT - - CAST ( 83 AS INTEGER ) * - col0 * + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 + + col0 + + col2 + + 18 / col1 * + + col2 * - + col0 AS col2 FROM tab2 cor0 WHERE NOT - col1 > NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 96 FROM tab2
----
-4896
-6432
-7392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 91 col2 FROM tab0 AS cor0
----
-1365
-7917
-8827

onlyif mysql # aggregate syntax: 
query II rowsort label-6181
SELECT ALL + COUNT( * ), COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6181
SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 93 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT - COUNT( - + col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6183
SELECT - COUNT ( - + col0 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6184
SELECT * FROM tab1 cor0 WHERE NOT ( ( - CAST( NULL AS DECIMAL ) IS NULL ) )
----

skipif mysql # not compatible
query III rowsort label-6184
SELECT * FROM tab1 cor0 WHERE NOT ( ( - CAST ( NULL AS REAL ) IS NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6185
SELECT DISTINCT + MIN( ALL 62 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT + MIN ( ALL 62 ) / + COUNT ( * ) FROM tab0 AS cor0
----
20

query II rowsort
SELECT - 76, col2 AS col2 FROM tab0 AS cor0
----
-76
10
-76
47
-76
99

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT 60 IS NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( col2 ) < ( NULL ) ) OR ( + col1 + - - 42 + + + col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 32 col0 FROM tab1
----
100
128
91

query III rowsort
SELECT * FROM tab0 WHERE + col1 BETWEEN + 21 AND + - col1
----

query I rowsort
SELECT ( + 0 ) + - col1 AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT ( - + col2 ) + + 91 AS col0 FROM tab0 AS cor0
----
-8
44
81

query I rowsort
SELECT + col0 + 73 + col0 AS col2 FROM tab2 AS cor0
----
165
201
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6194
SELECT - - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6194
SELECT - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6195
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NULL )
----
NULL

query I rowsort
SELECT ALL + 49 + ( col2 ) * + 36 AS col0 FROM tab2
----
1489
2137
877

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT + COUNT( * ) col0 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6197
SELECT + COUNT ( * ) col0 FROM tab2, tab0 AS cor0
----
9

query I rowsort
SELECT + 92 - - col1 FROM tab1 cor0
----
106
139
97

query I rowsort
SELECT 14 - + 54 AS col0 FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT + 30 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - + col1 col1 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT COUNT( * ) - 21 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6202
SELECT COUNT ( * ) - 21 FROM tab2 AS cor0
----
-18

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + col0 - + 78 FROM tab1 AS cor0
----
-27
13
7

query I rowsort
SELECT ALL 83 - - - col1 * + col1 FROM tab0
----
-358
-6478
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT 27 * COUNT( * ) + + 27 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-6206
SELECT 27 * COUNT ( * ) + + 27 FROM tab1
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6207
SELECT * FROM tab2 WHERE - + col1 + CAST( - col0 AS SIGNED ) < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6207
SELECT * FROM tab2 WHERE - + col1 + CAST ( - col0 AS INTEGER ) < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 * + col1 col1 FROM tab1
----
-1372
-4606
-490

query I rowsort
SELECT ALL + 39 * - col2 * + 32 AS col1 FROM tab1
----
-119808
-73632
-84864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6210
SELECT SUM( DISTINCT - col1 ) DIV + + ( - COUNT( * ) ) col0 FROM tab1
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6210
SELECT SUM ( DISTINCT - col1 ) / + + ( - COUNT ( * ) ) col0 FROM tab1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT - ( - + 27 ) * + COUNT( * ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-6211
SELECT - ( - + 27 ) * + COUNT ( * ) FROM tab1
----
81

query I rowsort
SELECT DISTINCT + 51 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51

query I rowsort
SELECT ALL - 48 * ( - - col1 ) AS col0 FROM tab2 AS cor0
----
-2448
-3216
-3696

query II rowsort
SELECT - 7, - col0 * - 80 * - col1 AS col2 FROM tab1 AS cor0
----
-7
-34000
-7
-342160
-7
-57120

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6216
SELECT ALL 94 DIV col1 AS col1 FROM tab0 AS cor0
----
1
4
94

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL 94 / col1 AS col1 FROM tab0 AS cor0
----
1
4
94

query I rowsort
SELECT + + 56 AS col2 FROM tab2 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT - MIN( + - col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6218
SELECT - MIN ( + - col0 ) AS col0 FROM tab1
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + ( + + col0 ) col1 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-6220
SELECT ( - COUNT( * ) ) col0, + 83 AS col2 FROM tab0
----
-3
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6220
SELECT ( - COUNT ( * ) ) col0, + 83 AS col2 FROM tab0
----
-3
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT ALL + - COUNT( - col0 ) * - + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL + - COUNT ( - col0 ) * - + COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6222
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + ( + CAST( - 2 AS SIGNED ) ) - - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6222
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + ( + CAST ( - 2 AS INTEGER ) ) - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6223
SELECT DISTINCT 74 DIV - COUNT( * ) + - 12 AS col0 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT 74 / - COUNT ( * ) + - 12 AS col0 FROM tab2 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6224
SELECT ALL + CAST( 2 AS SIGNED ) FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL + CAST ( 2 AS INTEGER ) FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT - 56 * - - col0 FROM tab2 AS cor0
----
-2576
-3584
-4200

query I rowsort
SELECT + 64 + - 15 * - col2 FROM tab0 AS cor0
----
1549
214
769

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6227
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND - col0
----

skipif mysql # not compatible
query III rowsort label-6227
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6228
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IN ( + 49 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-6228
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) IN ( + 49 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6229
SELECT * FROM tab1 WHERE + + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-6229
SELECT * FROM tab1 WHERE + + CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT DISTINCT - col1 + - + col0 + - col0 AS col2 FROM tab1
----
-116
-175
-229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6231
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) + - ( - MAX( + col2 ) ) + + 0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) + - ( - MAX ( + col2 ) ) + + 0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT SUM( DISTINCT 83 ) col2 FROM tab0
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6233
SELECT SUM ( DISTINCT 83 ) col2 FROM tab0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6234
SELECT CAST( NULL AS SIGNED ), + col0 + + 93 * + col0 * col2 AS col2 FROM tab1
----
NULL
455379
NULL
466480
NULL
575575

skipif mysql # not compatible
query II rowsort label-6234
SELECT CAST ( NULL AS INTEGER ), + col0 + + 93 * + col0 * col2 AS col2 FROM tab1
----
NULL
455379
NULL
466480
NULL
575575

query II rowsort
SELECT DISTINCT - 64, - col2 * - - col2 AS col1 FROM tab2 AS cor0
----
-64
-1600
-64
-3364
-64
-529

query II rowsort
SELECT + col0 AS col2, + col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query II rowsort
SELECT ALL + 80 AS col0, + 9 * col2 * - col2 AS col2 FROM tab1 AS cor0
----
80
-31329
80
-41616
80
-82944

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT + COUNT( * ) - - COUNT( * ) * 65 * + COUNT( * ) FROM tab0 cor0
----
588

skipif mysql # not compatible
query I rowsort label-6238
SELECT + COUNT ( * ) - - COUNT ( * ) * 65 * + COUNT ( * ) FROM tab0 cor0
----
588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6239
SELECT 38 DIV - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE CAST( col1 AS SIGNED ) * + + 98 >= - col0 * - CAST( col1 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-6239
SELECT 38 / - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE CAST ( col1 AS INTEGER ) * + + 98 >= - col0 * - CAST ( col1 AS INTEGER )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT - + 90 * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
810

skipif mysql # not compatible
query I rowsort label-6240
SELECT - + 90 * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
810

onlyif mysql # DIV for integer division: 
query II rowsort label-6241
SELECT DISTINCT + - col0 + - col1 + - col1 DIV - - col1, col0 AS col1 FROM tab1 AS cor0
----
-139
91
-66
51
-91
85

skipif mysql # not compatible
query II rowsort label-6241
SELECT DISTINCT + - col0 + - col1 + - col1 / - - col1, col0 AS col1 FROM tab1 AS cor0
----
-139
91
-66
51
-91
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT - MIN( - col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-6242
SELECT - MIN ( - col1 ) FROM tab2 cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT - MIN( + col0 ) AS col1 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6243
SELECT - MIN ( + col0 ) AS col1 FROM tab1 cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6244
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / CAST( NULL AS SIGNED ) + + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6244
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / CAST ( NULL AS INTEGER ) + + col2 IS NOT NULL
----

query I rowsort
SELECT - + col0 * + + 71 * - 24 + col2 - + col1 FROM tab1 AS cor0
----
144894
155085
86986

query I rowsort
SELECT - ( - - col0 ) * col2 + - - 2 FROM tab0
----
-703
-868
-9601

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT DISTINCT MIN( DISTINCT - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT MIN ( DISTINCT - col1 ) FROM tab0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 94 + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( + col0 ) - + col0 - - col2 + + + col2 AND NULL
----

query I rowsort
SELECT + ( + ( + + col0 ) ) * 31 AS col2 FROM tab1
----
1581
2635
2821

query I rowsort
SELECT ALL 93 * 4 FROM tab0
----
372
372
372

query I rowsort
SELECT + + ( - - col0 ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL - 45 * col2 + - 5 * col1 * 86 + 13 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN ( - 3 ) AND col0
----

query I rowsort
SELECT 33 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT - COUNT( * ) * COUNT( * ) AS col0 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6255
SELECT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6256
SELECT col2 * - col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6256
SELECT col2 * - col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + ( + col2 ) * - col2 * + col0, 49 AS col2 FROM tab0 AS cor0
----
-33135
49
-8700
49
-950697
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT + ( SUM( + col2 ) ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-6258
SELECT + ( SUM ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query II rowsort label-6259
SELECT - 49 AS col1, COUNT( * ) FROM tab2 AS cor0
----
-49
3

skipif mysql # not compatible
query II rowsort label-6259
SELECT - 49 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
-49
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6261
SELECT DISTINCT + 78 AS col2, + 29 + 68 + + 20 * + COUNT( * ) col2 FROM tab1 AS cor0
----
78
157

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6261
SELECT DISTINCT + 78 AS col2, + 29 + 68 + + 20 * + COUNT ( * ) col2 FROM tab1 AS cor0
----
78
157

query I rowsort
SELECT DISTINCT ( 80 ) + + + col2 FROM tab0 cor0
----
127
179
90

query I rowsort
SELECT + ( - AVG ( col1 ) ) AS col0 FROM tab0 WHERE - col2 <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT + COUNT( * ) + 68 col1 FROM tab2
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6264
SELECT + COUNT ( * ) + 68 col1 FROM tab2
----
71

query II rowsort
SELECT DISTINCT 0 + - col1, + col0 AS col0 FROM tab1
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT - COUNT( + + col2 ) + + 82 * + 31 + - COUNT( * ) AS col1 FROM tab2
----
2536

skipif mysql # not compatible
query I rowsort label-6266
SELECT - COUNT ( + + col2 ) + + 82 * + 31 + - COUNT ( * ) AS col1 FROM tab2
----
2536

query I rowsort
SELECT ALL - 77 + + col1 AS col1 FROM tab1
----
-30
-63
-72

query II rowsort
SELECT ALL - 71 + - 90, - col2 AS col0 FROM tab0
----
-161
-10
-161
-47
-161
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - + col0 + + 5 + - col2 col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6270
SELECT DISTINCT col2 DIV + col2 + - 57 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT col2 / + col2 + - 57 FROM tab2 AS cor0
----
-56

query I rowsort
SELECT + 30 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6272
SELECT + 52 - + col0 * - CAST( - 55 AS SIGNED ) FROM tab1
----
-2753
-4623
-4953

skipif mysql # not compatible
query I rowsort label-6272
SELECT + 52 - + col0 * - CAST ( - 55 AS INTEGER ) FROM tab1
----
-2753
-4623
-4953

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 < NULL
----

query I rowsort
SELECT DISTINCT + - ( - - 66 ) AS col1 FROM tab2 AS cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6275
SELECT + + SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6275
SELECT + + SUM ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6276
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN + ( + col1 ) AND - col2 * CAST( + 59 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6276
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN + ( + col1 ) AND - col2 * CAST ( + 59 AS INTEGER )
----

query II rowsort
SELECT - col0, col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 AND + + 54 + - 2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + ( col1 ) <> + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6279
SELECT ALL CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ALL - MAX( ALL + 40 ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL - MAX ( ALL + 40 ) FROM tab2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT DISTINCT - MAX( DISTINCT 69 ) AS col1 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT - MAX ( DISTINCT 69 ) AS col1 FROM tab1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT 38 * ( + + MAX( 71 ) ) * + + COUNT( DISTINCT - 33 ) * + COUNT( * ) FROM tab1
----
8094

skipif mysql # not compatible
query I rowsort label-6282
SELECT 38 * ( + + MAX ( 71 ) ) * + + COUNT ( DISTINCT - 33 ) * + COUNT ( * ) FROM tab1
----
8094

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 11 > + col2
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6284
SELECT DISTINCT + - CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6285
SELECT + + 95 DIV - + COUNT( * ) FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-6285
SELECT + + 95 / - + COUNT ( * ) FROM tab1 AS cor0
----
-31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - col0 ) = NULL
----

query I rowsort
SELECT ALL - 61 * col2 FROM tab0 cor0
----
-2867
-6039
-610

query II rowsort
SELECT - col2 AS col0, 67 FROM tab0
----
-10
67
-47
67
-99
67

query I rowsort
SELECT ALL + col2 * - + 3 FROM tab2
----
-120
-174
-69

query I rowsort
SELECT + + 41 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT ALL SUM( - - col1 ) * 43 FROM tab0 AS cor0
----
4429

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL SUM ( - - col1 ) * 43 FROM tab0 AS cor0
----
4429

query I rowsort
SELECT - col1 + col0 + 55 AS col0 FROM tab1 AS cor0
----
135
92
99

query I rowsort
SELECT DISTINCT - ( + + ( + col0 ) ) * + + 55 * + + col0 + - col2 FROM tab0 AS cor0
----
-12422
-416305
-517594

query I rowsort
SELECT - ( + col2 ) + col2 * - col0 FROM tab2 cor0
----
-1081
-2600
-4408

query I rowsort
SELECT DISTINCT col0 * - + col2 + + + col1 AS col2 FROM tab0 AS cor0
----
-624
-849
-9602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 53 col1 FROM tab2 cor0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 col2 FROM tab0
----
108
96
98

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 94 + - col0 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6299
SELECT col1 DIV 75 * - ( - + col0 ) AS col2 FROM tab2
----
0
0
64

skipif mysql # not compatible
query I rowsort label-6299
SELECT col1 / 75 * - ( - + col0 ) AS col2 FROM tab2
----
0
0
64

query III rowsort
SELECT * FROM tab2 WHERE + + 10 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6301
SELECT DISTINCT - MAX( DISTINCT - ( + col1 ) ) / MIN( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6301
SELECT DISTINCT - MAX ( DISTINCT - ( + col1 ) ) / MIN ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL 76 + 39 AS col1 FROM tab1
----
115
115
115

query I rowsort
SELECT ALL col2 * col2 + - col0 AS col2 FROM tab1
----
3396
4533
9165

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 IN ( + col1, + col1 + - col1, + 72, + col2 + - col1, + + 72 - - col0 )
----

query I rowsort
SELECT DISTINCT + col1 - + + col1 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT ALL col0 DIV col0 - + - col0 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL col0 / col0 - + - col0 FROM tab0 AS cor0
----
16
88
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * + - col1 * + col1 AS col1 FROM tab2
----
-132651
-300763
-456533

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - ( - col2 ) <= NULL
----

query I rowsort
SELECT DISTINCT col0 + col2 + - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6311
SELECT ALL COUNT( DISTINCT - - col1 ) AS col0, 39 AS col2 FROM tab1 AS cor0
----
3
39

skipif mysql # not compatible
query II rowsort label-6311
SELECT ALL COUNT ( DISTINCT - - col1 ) AS col0, 39 AS col2 FROM tab1 AS cor0
----
3
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT ALL - MAX( - + col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL - MAX ( - + col1 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT ( - + SUM( - 43 ) ) AS col0 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-6313
SELECT ( - + SUM ( - 43 ) ) AS col0 FROM tab1 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT ALL + + MIN( ALL - - col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL + + MIN ( ALL - - col2 ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6315
SELECT - CAST( NULL AS SIGNED ) * - + 57 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6315
SELECT - CAST ( NULL AS INTEGER ) * - + 57 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 col1 FROM tab1 AS cor0 WHERE ( NULL ) >= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6317
SELECT ALL + - col1 DIV col1 - + + col0 DIV - + col0 + - 20 AS col1 FROM tab1 AS cor0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL + - col1 / col1 - + + col0 / - + col0 + - 20 AS col1 FROM tab1 AS cor0
----
-20
-20
-20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 44 NOT BETWEEN - col0 * + 85 + - - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6319
SELECT DISTINCT - + 46 DIV ( + - col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT - + 46 / ( + - col2 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 25 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1, + col1 + - ( - col2 ) FROM tab2
----
51
74
67
125
77
117

onlyif mysql # DIV for integer division: 
query II rowsort label-6322
SELECT DISTINCT - 66 AS col2, + col2 + + + col0 + - col2 DIV col2 FROM tab1
----
-66
143
-66
146
-66
158

skipif mysql # not compatible
query II rowsort label-6322
SELECT DISTINCT - 66 AS col2, + col2 + + + col0 + - col2 / col2 FROM tab1
----
-66
143
-66
146
-66
158

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT + COUNT( + 43 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6323
SELECT + COUNT ( + 43 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT ALL COUNT( * ) - + - 0 + - - 73 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
73

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL COUNT ( * ) - + - 0 + - - 73 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT + ( 74 ) / 29 * MAX( DISTINCT - col1 ) FROM tab1 WHERE NOT NULL <= + ( + 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6325
SELECT + ( 74 ) / 29 * MAX ( DISTINCT - col1 ) FROM tab1 WHERE NOT NULL <= + ( + 29 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6326
SELECT - CAST( - 58 AS SIGNED ) DIV + 61 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6326
SELECT - CAST ( - 58 AS INTEGER ) / + 61 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * + col0 - - - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6328
SELECT + ( - + col2 ) * + CAST( + - col0 AS SIGNED ) * + - 22 + - col0 FROM tab0 AS cor0
----
-15525
-19227
-211363

skipif mysql # not compatible
query I rowsort label-6328
SELECT + ( - + col2 ) * + CAST ( + - col0 AS INTEGER ) * + - 22 + - col0 FROM tab0 AS cor0
----
-15525
-19227
-211363

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 - - - col1 col1 FROM tab0 AS cor0
----
189
3726
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6330
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( - + col1 - + col2 * - + CAST( - + col0 AS SIGNED ) ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6330
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( - + col1 - + col2 * - + CAST ( - + col0 AS INTEGER ) ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 + - 30 AS col2 FROM tab1 AS cor0
----
-16
-25
17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 35 <> NULL
----

query I rowsort
SELECT DISTINCT - + 38 + 48 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT - COUNT( + 81 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6334
SELECT - COUNT ( + 81 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 21 * - col0 * 9 * ( - + col2 ) AS col1 FROM tab0 AS cor0
----
133245
164430
1814967

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 30 NOT BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6337
SELECT DISTINCT col2 + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT col2 + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 90 * col2 * - col1 AS col2 FROM tab2 cor0
----
-105570
-277200
-349740

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT + col1 - - col1 / - ( - - col0 ) IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab1 WHERE ( col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT ALL - MIN( DISTINCT - 2 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL - MIN ( DISTINCT - 2 ) FROM tab2
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT - 64 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 > NULL
----

query I rowsort
SELECT ALL - ( - - col1 ) AS col2 FROM tab0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 33 col2, col1 FROM tab2
----
-33
51
-33
67
-33
77

query I rowsort
SELECT col1 * - 16 AS col0 FROM tab1
----
-224
-752
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6348
SELECT 31 * + CAST( col0 AS SIGNED ) FROM tab1
----
1581
2635
2821

skipif mysql # not compatible
query I rowsort label-6348
SELECT 31 * + CAST ( col0 AS INTEGER ) FROM tab1
----
1581
2635
2821

query I rowsort
SELECT DISTINCT + 88 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
88

query II rowsort
SELECT DISTINCT + + col2, - 24 * - + col1 AS col1 FROM tab2 AS cor0
----
23
1224
40
1848
58
1608

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col2 NOT BETWEEN NULL AND + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * + 55 AS col0 FROM tab1 AS cor0
----
2805
4675
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT - SUM( col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-6354
SELECT - SUM ( col1 ) AS col0 FROM tab0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 + 59 col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL 11 * - 48 FROM tab1
----
-528
-528
-528

query II rowsort
SELECT 76 * - col2 AS col2, 94 FROM tab0
----
-3572
94
-7524
94
-760
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 + + ( - ( + col2 ) ) col1 FROM tab2
----
-8
10
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6359
SELECT ALL * FROM tab0 WHERE NOT ( - + CAST( - 2 AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6359
SELECT ALL * FROM tab0 WHERE NOT ( - + CAST ( - 2 AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-6360
SELECT DISTINCT - 93 DIV 58 AS col0, col0 AS col1 FROM tab0
----
-1
15
-1
87
-1
97

skipif mysql # not compatible
query II rowsort label-6360
SELECT DISTINCT - 93 / 58 AS col0, col0 AS col1 FROM tab0
----
-1
15
-1
87
-1
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6362
SELECT - CAST( NULL AS SIGNED ) * - + ( - + 76 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6362
SELECT - CAST ( NULL AS INTEGER ) * - + ( - + 76 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 39 + + 44, + 37 )
----

query I rowsort
SELECT + - col2 AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6366
SELECT - 71, + COUNT( * ) AS col0 FROM tab1
----
-71
3

skipif mysql # not compatible
query II rowsort label-6366
SELECT - 71, + COUNT ( * ) AS col0 FROM tab1
----
-71
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT ALL 71 + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
80

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL 71 + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6368
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + + CAST( + CAST( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query IIIIII rowsort label-6368
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + + CAST ( + CAST ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) AS INTEGER ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT + col1 * 25 DIV 98 DIV - 89 + col2 + col0 DIV col0 DIV + col2 AS col1 FROM tab1 AS cor0 WHERE - 1 + - col2 * col1 NOT BETWEEN + - 94 * + + 3 AND col1 + - col0 + - col1 * 3
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6369
SELECT + col1 * 25 / 98 / - 89 + col2 + col0 / col0 / + col2 AS col1 FROM tab1 AS cor0 WHERE - 1 + - col2 * col1 NOT BETWEEN + - 94 * + + 3 AND col1 + - col0 + - col1 * 3
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + col2 * - - ( - col2 ) + - + 1 * + 96, col0 )
----

query I rowsort
SELECT DISTINCT col0 + - 96 AS col1 FROM tab0 AS cor0
----
-81
-9
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 80 ) - - 91 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0 AS cor0 WHERE + ( + col1 ) NOT BETWEEN NULL AND col0
----
81

query I rowsort
SELECT - col2 * + 5 AS col0 FROM tab1 AS cor0
----
-295
-340
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT + COUNT( * ) + 52 AS col1 FROM tab2 AS cor0 WHERE 77 + - + col1 + + col0 IS NULL
----
52

skipif mysql # not compatible
query I rowsort label-6375
SELECT + COUNT ( * ) + 52 AS col1 FROM tab2 AS cor0 WHERE 77 + - + col1 + + col0 IS NULL
----
52

query I rowsort
SELECT ALL 56 - + 16 FROM tab2 AS cor0
----
40
40
40

query I rowsort
SELECT col1 * - - col2 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT - COUNT( * ) AS col1 FROM tab1 cor0 WHERE 36 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6378
SELECT - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE 36 IS NOT NULL
----
-3

query I rowsort
SELECT - 81 * - + 24 FROM tab2
----
1944
1944
1944

onlyif mysql # DIV for integer division: 
query I rowsort label-6380
SELECT + col1 DIV + col1 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6380
SELECT + col1 / + col1 AS col0 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6381
SELECT + AVG ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6381
SELECT + AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + + 19 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 - + 85 * - + col1 col0 FROM tab2
----
4279
5639
6489

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6384
SELECT DISTINCT - + col0 - - + ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT - + col0 - - + ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 4 AS col1 FROM tab2 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6386
SELECT - 88 * + CAST( - 4 AS SIGNED ) FROM tab2
----
352
352
352

skipif mysql # not compatible
query I rowsort label-6386
SELECT - 88 * + CAST ( - 4 AS INTEGER ) FROM tab2
----
352
352
352

query I rowsort
SELECT DISTINCT col1 * - 13 AS col2 FROM tab2
----
-1001
-663
-871

query II rowsort
SELECT DISTINCT 70, 23 AS col1 FROM tab0
----
70
23

query I rowsort
SELECT ALL col2 * - col0 + + col1 - - 6 * + - 94 * + col0 * 24 AS col0 FROM tab2 AS cor0
----
-1019483
-623663
-868787

query I rowsort
SELECT + - 57 * - 69 * col0 * + col2 FROM tab0 AS cor0
----
2772765
3421710
37768599

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * - - 87 * + col2 AS col1 FROM tab2 AS cor0
----
-139200
-292668
-46023

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 3 * col1 / col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT 25 DIV - col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6394
SELECT 25 / - col0 FROM tab0 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT + - COUNT( col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6395
SELECT + - COUNT ( col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6396
SELECT * FROM tab2 AS cor0 WHERE NOT + 11 > CAST( + 7 AS SIGNED ) + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6396
SELECT * FROM tab2 AS cor0 WHERE NOT + 11 > CAST ( + 7 AS INTEGER ) + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT ALL + MIN( col0 ) col1 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6397
SELECT ALL + MIN ( col0 ) col1 FROM tab0
----
15

query III rowsort
SELECT ALL * FROM tab1 WHERE + 91 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6399
SELECT DISTINCT + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT ALL - COUNT( * ) * - 60 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL - COUNT ( * ) * - 60 FROM tab0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6401
SELECT CAST( + + col1 AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6401
SELECT CAST ( + + col1 AS INTEGER ) FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6402
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6402
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6403
SELECT 48 + - 76 DIV col1 AS col0 FROM tab1
----
33
43
47

skipif mysql # not compatible
query I rowsort label-6403
SELECT 48 + - 76 / col1 AS col0 FROM tab1
----
33
43
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 * - col1 * + ( + col1 ) col0 FROM tab0
----
0
531360
9240

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 + col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * - col0 + 12 AS col2 FROM tab2 AS cor0
----
1070
2572
4362

query II rowsort
SELECT DISTINCT + - col0 AS col0, col2 FROM tab1 cor0
----
-51
96
-85
59
-91
68

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 40 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + + 81, - col1, - col1, - 77, 63 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6410
SELECT ALL 29 / - + 16 * + CAST( NULL AS SIGNED ) + - + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL 29 / - + 16 * + CAST ( NULL AS INTEGER ) + - + col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col0 + + 62, - col1 + + - col2 - col2 AS col2 FROM tab0
----
-25
-41
-35
-199
47
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT - ( MAX( DISTINCT - 59 ) ) col1 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6412
SELECT - ( MAX ( DISTINCT - 59 ) ) col1 FROM tab1
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col2 ) col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col2 - + col0 AS col2 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT + + col0 + + + 13 FROM tab1 AS cor0
----
104
64
98

query I rowsort
SELECT + 99 + + 62 AS col2 FROM tab2
----
161
161
161

query I rowsort
SELECT + 17 + + 72 FROM tab1
----
89
89
89

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 23 * - col2 IS NOT NULL
----

query I rowsort
SELECT col1 + + - 18 AS col2 FROM tab1
----
-13
-4
29

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 * + 93 + + + col2 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 / - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + - col0 * col0 AS col2 FROM tab2
----
-262144
-421875
-97336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6423
SELECT - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 71 AS col0 FROM tab2 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT + COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6425
SELECT + COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6426
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + - CAST( - col0 AS SIGNED ) / - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6426
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + - CAST ( - col0 AS INTEGER ) / - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 71 col2 FROM tab2 cor0
----
3621
4757
5467

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6428
SELECT + 15 DIV - + SUM( ALL + col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6428
SELECT + 15 / - + SUM ( ALL + col2 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + 27 + + col2 FROM tab2 AS cor0
----
-4
13
31

query I rowsort
SELECT - col0 + + 53 AS col1 FROM tab1 cor0
----
-32
-38
2

query I rowsort
SELECT 24 + 93 FROM tab0 cor0
----
117
117
117

query I rowsort
SELECT ALL 69 * - + col1 FROM tab0
----
-1449
-5589
-69

query I rowsort
SELECT + col1 + + 95 FROM tab1
----
100
109
142

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 48 AND - - col2
----

query II rowsort
SELECT col0 AS col0, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT ALL - col0 + + col1 * + - col1 FROM tab1
----
-110
-2300
-247

query I rowsort
SELECT DISTINCT + ( col0 ) * + 43 + 36 AS col2 FROM tab2
----
2014
2788
3261

query II rowsort
SELECT col1 AS col2, 33 AS col1 FROM tab1
----
14
33
47
33
5
33

query I rowsort
SELECT DISTINCT + - ( - col1 ) FROM tab2 WHERE NOT + + col0 + - col2 * 22 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 36 * + + 49 IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - col0 col0 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT + 50 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-6443
SELECT + 50 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
53

query I rowsort
SELECT + col1 + - - col1 FROM tab0
----
162
2
42

query I rowsort
SELECT - col1 * - col0 * - col2 + - col2 + + - 93 * col1 + + col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-20146
-64670
-9698

query I rowsort
SELECT ALL ( - col1 ) - col0 + - col0 FROM tab2 AS cor0
----
-143
-205
-217

query II rowsort
SELECT ALL + col2, col2 * + + col1 * - + col1 AS col0 FROM tab1 AS cor0
----
59
-1475
68
-150212
96
-18816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6448
SELECT + 52 FROM tab1 AS cor0 WHERE CAST( + - ( - col0 ) AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-6448
SELECT + 52 FROM tab1 AS cor0 WHERE CAST ( + - ( - col0 ) AS INTEGER ) < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 55 / col2 < NULL
----

query I rowsort
SELECT ALL + col1 - + + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6451
SELECT DISTINCT 9 DIV COUNT( - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT 9 / COUNT ( - col1 ) FROM tab2
----
3

query I rowsort
SELECT col2 - ( + col0 ) * col1 AS col1 FROM tab1
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT DISTINCT - MIN( + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT - MIN ( + col2 ) FROM tab1
----
-59

query I rowsort
SELECT 49 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6455
SELECT ALL MAX( ALL + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL MAX ( ALL + CAST ( NULL AS REAL ) ) AS col1 FROM tab0, tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6456
SELECT 90 DIV + - ( - - col1 ) AS col2 FROM tab1
----
-1
-18
-6

skipif mysql # not compatible
query I rowsort label-6456
SELECT 90 / + - ( - - col1 ) AS col2 FROM tab1
----
-1
-18
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6457
SELECT col2 * 39 * + CAST( NULL AS DECIMAL ) * + 66 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6457
SELECT col2 * 39 * + CAST ( NULL AS REAL ) * + 66 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6458
SELECT CAST( NULL AS SIGNED ) * + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6458
SELECT CAST ( NULL AS INTEGER ) * + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( 94 ) FROM tab2 AS cor0
----
-94
-94
-94

query II rowsort
SELECT col2 * ( - col1 ), col0 AS col2 FROM tab1
----
-1344
51
-295
85
-3196
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6461
SELECT * FROM tab1 WHERE NOT + - col2 NOT BETWEEN + - col2 AND + col2 * - CAST( NULL AS SIGNED ) - - 73
----

skipif mysql # not compatible
query III rowsort label-6461
SELECT * FROM tab1 WHERE NOT + - col2 NOT BETWEEN + - col2 AND + col2 * - CAST ( NULL AS INTEGER ) - - 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT ALL MAX( - ( - 60 ) ) AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL MAX ( - ( - 60 ) ) AS col1 FROM tab1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT DISTINCT + SUM( - 2 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT + SUM ( - 2 ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL - - 97 AS col2 FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT 13 * col0 * - + col1 * col1 AS col2 FROM tab0 AS cor0
----
-1261
-1279395
-498771

query II rowsort
SELECT - col0 AS col2, + col1 * - ( + col2 ) * + col2 FROM tab1 AS cor0
----
-51
-129024
-85
-17405
-91
-217328

query I rowsort
SELECT + 82 * + 21 FROM tab0 cor0
----
1722
1722
1722

onlyif mysql # aggregate syntax: 
query II rowsort label-6468
SELECT 47 AS col1, 9 * + + COUNT( * ) * - 67 FROM tab2 AS cor0
----
47
-1809

skipif mysql # not compatible
query II rowsort label-6468
SELECT 47 AS col1, 9 * + + COUNT ( * ) * - 67 FROM tab2 AS cor0
----
47
-1809

query II rowsort
SELECT DISTINCT - col2 * - col1 + + 2 AS col2, col0 + + col0 AS col2 FROM tab0 AS cor0
----
101
194
212
174
3809
30

query I rowsort
SELECT ALL + + ( + - ( + 75 ) ) FROM tab2 AS cor0
----
-75
-75
-75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 48 * + ( - - col2 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, 25 FROM tab1 AS cor0
----
-51
25
-85
25
-91
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6473
SELECT ALL CAST( NULL AS SIGNED ) + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + - col2 + - 88 AS col2 FROM tab2
----
-1688
-3452
-617

query I rowsort
SELECT + col2 + + col0 * + 20 FROM tab1
----
1116
1759
1888

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 40 - + - ( col1 ) = NULL
----

query I rowsort
SELECT DISTINCT + 3 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3

query I rowsort
SELECT DISTINCT 57 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
57

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 16 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-6481
SELECT 57 - 48 DIV + - 18 AS col0 FROM tab0 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-6481
SELECT 57 - 48 / + - 18 AS col0 FROM tab0 AS cor0
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col2 col1 FROM tab0 AS cor0
----
-98
11
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - - col2 * + + 38 * + col0 col1 FROM tab0 AS cor0
----
-26743
-33050
-364815

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6484
SELECT DISTINCT + 40 - + + 97 * CAST( + MIN( 58 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-5586

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT + 40 - + + 97 * CAST ( + MIN ( 58 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-5586

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6485
SELECT 12 * - - 97 * - CAST( NULL AS SIGNED ) col2 FROM tab2 cor0 WHERE NULL BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6485
SELECT 12 * - - 97 * - CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0 WHERE NULL BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6486
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + + col0 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6486
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + + col0 col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = 78
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + - col0 * + + 12, - col0 * + + col0 col1 FROM tab2 cor0
----
-25392
-2116
-49152
-4096
-67500
-5625

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT col2 + + 58 * - col0 * + col0 IS NOT NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT col1 - - - 27 + col0 * 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6491
SELECT ALL SUM( 11 ) DIV + MAX( DISTINCT + + col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL SUM ( 11 ) / + MAX ( DISTINCT + + col1 ) FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6492
SELECT + COUNT( * ) * - ( + CAST( COUNT( - - 95 ) AS SIGNED ) ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6492
SELECT + COUNT ( * ) * - ( + CAST ( COUNT ( - - 95 ) AS INTEGER ) ) AS col1 FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6493
SELECT col1 DIV - - 91 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6493
SELECT col1 / - - 91 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6494
SELECT DISTINCT COUNT( ALL - + 21 ) AS col1, - 27 * + ( - 32 ) FROM tab1
----
3
864

skipif mysql # not compatible
query II rowsort label-6494
SELECT DISTINCT COUNT ( ALL - + 21 ) AS col1, - 27 * + ( - 32 ) FROM tab1
----
3
864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6495
SELECT - CAST( + SUM( - col0 ) AS SIGNED ) col2 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6495
SELECT - CAST ( + SUM ( - col0 ) AS INTEGER ) col2 FROM tab1
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
71
71
71

onlyif mysql # aggregate syntax: 
query II rowsort label-6497
SELECT ALL + COUNT( * ) * - 91 AS col1, - COUNT( * ) FROM tab2
----
-273
-3

skipif mysql # not compatible
query II rowsort label-6497
SELECT ALL + COUNT ( * ) * - 91 AS col1, - COUNT ( * ) FROM tab2
----
-273
-3

query I rowsort
SELECT ALL - col0 * - 3 * 51 FROM tab0
----
13311
14841
2295

query I rowsort
SELECT + - 35 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT col2 IS NOT NULL )
----
-35
-35
-35

query II rowsort
SELECT DISTINCT + - col1, col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT ALL + + 10 FROM tab2 AS cor0
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + 78 col0, col0 AS col2 FROM tab0 AS cor0
----
-19
97
-9
87
63
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6503
SELECT + 62 * SUM( - - col2 ) + + COUNT( * ) * COUNT( ALL + CAST( NULL AS DECIMAL ) ) FROM tab0 cor0
----
9672

skipif mysql # not compatible
query I rowsort label-6503
SELECT + 62 * SUM ( - - col2 ) + + COUNT ( * ) * COUNT ( ALL + CAST ( NULL AS REAL ) ) FROM tab0 cor0
----
9672

query I rowsort
SELECT DISTINCT - ( + 75 ) FROM tab0 AS cor0
----
-75

query I rowsort
SELECT 38 + - col0 AS col0 FROM tab2 AS cor0
----
-26
-37
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT - - COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6506
SELECT - - COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 65 + - - ( + + 33 ) AS col0 FROM tab2 AS cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT ALL COUNT( * ) + + 33 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL COUNT ( * ) + + 33 FROM tab2
----
36

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col1 + - ( - col1 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 42 IS NULL
----

query I rowsort
SELECT DISTINCT 10 + col2 FROM tab2
----
33
50
68

query II rowsort
SELECT ALL + + col0 * - - col2 * + + col1, col0 AS col2 FROM tab2 AS cor0
----
197120
64
291450
75
53958
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6513
SELECT 28 * - 42 - COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
-1176

skipif mysql # not compatible
query I rowsort label-6513
SELECT 28 * - 42 - COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT 9 + COUNT( * ) AS col0 FROM tab2 WHERE ( - ( col2 ) ) IS NOT NULL
----
12

skipif mysql # not compatible
query I rowsort label-6514
SELECT 9 + COUNT ( * ) AS col0 FROM tab2 WHERE ( - ( col2 ) ) IS NOT NULL
----
12

query I rowsort
SELECT - col0 + 48 * col2 FROM tab1 WHERE NOT - ( + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6516
SELECT CAST( COUNT( * ) AS SIGNED ) / SUM( ALL - 12 ) + 64 FROM tab1 WHERE ( col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6516
SELECT CAST ( COUNT ( * ) AS INTEGER ) / SUM ( ALL - 12 ) + 64 FROM tab1 WHERE ( col2 ) IS NULL
----
NULL

query I rowsort
SELECT + ( 29 ) * - 7 FROM tab0
----
-203
-203
-203

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT ALL + COUNT( * ) AS col1 FROM tab2 WHERE ( + 87 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 WHERE ( + 87 ) IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 15 col2 FROM tab1
----
1275
1365
765

query I rowsort
SELECT + 62 - - col0 AS col0 FROM tab0
----
149
159
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT + 95 + COUNT( * ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-6521
SELECT + 95 + COUNT ( * ) FROM tab1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT + COUNT( * ) * + 1 AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6522
SELECT + COUNT ( * ) * + 1 AS col2 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 < ( - 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 51 - 93 FROM tab2
----
-144
-144
-144

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 <> + 99
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 27 * col0 + - col2 * - col1 ) >= 73
----

query I rowsort
SELECT DISTINCT 25 * col2 FROM tab1 WHERE NOT ( + col2 ) IS NULL
----
1475
1700
2400

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 71 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 34 - 52 AS col1 FROM tab0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT ALL COUNT( * ) col0 FROM tab0 WHERE + col0 NOT BETWEEN col2 AND NULL
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6530
SELECT ALL COUNT ( * ) col0 FROM tab0 WHERE + col0 NOT BETWEEN col2 AND NULL
----
2

query III rowsort
SELECT * FROM tab2 WHERE + 8 * - col1 = 17 + - 11 * - col1
----

query I rowsort
SELECT 9 AS col2 FROM tab0 WHERE ( + 91 * col2 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6533
SELECT DISTINCT - ( - MAX( ALL 40 ) ) + - COUNT( * ) DIV + 96 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT - ( - MAX ( ALL 40 ) ) + - COUNT ( * ) / + 96 FROM tab1
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col0 FROM tab1 WHERE - col1 IS NOT NULL
----
45
45
45

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 86 ) IN ( + col0 / 19 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( 0 )
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE - col0 - col0 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT - 24 + MAX( ALL - col0 ) AS col2 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-6538
SELECT - 24 + MAX ( ALL - col0 ) AS col2 FROM tab0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 77 ) col2 FROM tab0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6540
SELECT DISTINCT col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6540
SELECT DISTINCT col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT - SUM( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6541
SELECT - SUM ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6542
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 IN ( 66 / col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT + 36 + COUNT( * ) * MAX( 3 ) AS col0 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6544
SELECT + 36 + COUNT ( * ) * MAX ( 3 ) AS col0 FROM tab0 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 / ( ( col2 ) ) col2 FROM tab2 WHERE NULL > ( col2 )
----

query I rowsort
SELECT 93 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND 74 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT - 60 - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
-69

skipif mysql # not compatible
query I rowsort label-6548
SELECT - 60 - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
-69

query I rowsort
SELECT 82 * + col1 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT DISTINCT - ( COUNT( DISTINCT col0 ) ) + - SUM( DISTINCT 30 + - col2 ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT - ( COUNT ( DISTINCT col0 ) ) + - SUM ( DISTINCT 30 + - col2 ) FROM tab0
----
63

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 81 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 97 + 68 FROM tab2
----
-29
-29
-29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * - col0 IS NULL
----

query I rowsort
SELECT + 66 * col0 FROM tab2 AS cor0
----
3036
4224
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-6555
SELECT + col1 DIV 32 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6555
SELECT + col1 / 32 FROM tab1 cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6556
SELECT DISTINCT + col2 DIV 53 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT + col2 / 53 AS col1 FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT DISTINCT - 43 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 + 38 * + 15 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT COUNT( DISTINCT col1 ) * + ( SUM( - col1 ) ) FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-6559
SELECT COUNT ( DISTINCT col1 ) * + ( SUM ( - col1 ) ) FROM tab0 AS cor0
----
-309

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 96 + + col2 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 90 * - col2 FROM tab0 AS cor0
----
4230
8910
900

onlyif mysql # DIV for integer division: 
query I rowsort label-6562
SELECT ALL - col0 + col2 DIV col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL - col0 + col2 / col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-50
-84
-90

query I rowsort
SELECT 12 * ( + col2 ) FROM tab0 AS cor0
----
1188
120
564

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + col1 * - col0
----

query I rowsort
SELECT col0 + + - col0 * - ( + col0 * + 39 ) FROM tab0
----
295278
367048
8790

query I rowsort
SELECT ALL + 52 * 12 + 86 FROM tab1
----
710
710
710

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) = - col0 * col1
----

query I rowsort
SELECT - col0 * col1 + 97 AS col0 FROM tab0 WHERE ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT MIN( 85 ) + + MAX( - col0 - + col1 ) AS col1 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-6569
SELECT MIN ( 85 ) + + MAX ( - col0 - + col1 ) AS col1 FROM tab1
----
20

query I rowsort
SELECT col1 + 18 * - 7 FROM tab0
----
-105
-125
-45

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( col0 + ( - col2 ) )
----

query I rowsort
SELECT col1 + col2 AS col2 FROM tab1 WHERE NULL NOT IN ( - 46 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6573
SELECT DISTINCT 2 * + 58 + 20 DIV + COUNT( * ) AS col0 FROM tab0
----
122

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT 2 * + 58 + 20 / + COUNT ( * ) AS col0 FROM tab0
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6574
SELECT CAST( + 90 AS SIGNED ) + - col2 AS col0 FROM tab1
----
-6
22
31

skipif mysql # not compatible
query I rowsort label-6574
SELECT CAST ( + 90 AS INTEGER ) + - col2 AS col0 FROM tab1
----
-6
22
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT MIN( + - 88 ) + + 96 col1 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6575
SELECT MIN ( + - 88 ) + + 96 col1 FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6576
SELECT - - SUM( - ( + CAST( + CAST( + col2 AS SIGNED ) AS SIGNED ) ) ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6576
SELECT - - SUM ( - ( + CAST ( + CAST ( + col2 AS INTEGER ) AS INTEGER ) ) ) FROM tab0 cor0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 30 IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT DISTINCT 78 - - COUNT( * ) + 40 AS col2 FROM tab0 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT 78 - - COUNT ( * ) + 40 AS col2 FROM tab0 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6579
SELECT ALL - CAST( - 52 AS SIGNED ) FROM tab2 AS cor0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL - CAST ( - 52 AS INTEGER ) FROM tab2 AS cor0
----
52
52
52

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN + col1 + - col0 AND + 57 * + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6581
SELECT + 13 * - COUNT( * ) + + 85 DIV - 73 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-118

skipif mysql # not compatible
query I rowsort label-6581
SELECT + 13 * - COUNT ( * ) + + 85 / - 73 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6582
SELECT DISTINCT - COUNT( * ) / - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT - COUNT ( * ) / - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 72 * - col2 BETWEEN NULL AND ( - col1 )
----

query II rowsort
SELECT ALL + col2 AS col1, + 46 AS col2 FROM tab1
----
59
46
68
46
96
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 45 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6586
SELECT DISTINCT - + col2 * CAST( 13 AS SIGNED ) * + ( + col1 DIV col0 + col2 ) AS col0 FROM tab0 AS cor0
----
-127413
-1300
-31772

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT - + col2 * CAST ( 13 AS INTEGER ) * + ( + col1 / col0 + col2 ) AS col0 FROM tab0 AS cor0
----
-127413
-1300
-31772

onlyif mysql # DIV for integer division: 
query I rowsort label-6587
SELECT - 25 + - col1 - + col0 DIV + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-106
-26
-54

skipif mysql # not compatible
query I rowsort label-6587
SELECT - 25 + - col1 - + col0 / + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-106
-26
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6588
SELECT ALL - - col0 DIV - col2 AS col2 FROM tab1 AS cor0 WHERE 34 IS NOT NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL - - col0 / - col2 AS col2 FROM tab1 AS cor0 WHERE 34 IS NOT NULL
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + - col2 * - 11 NOT BETWEEN ( + col0 ) AND + col1 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN ( + 56 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT ALL + COUNT( * ) * + + 6 * + + COUNT( * ) AS col1 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL + COUNT ( * ) * + + 6 * + + COUNT ( * ) AS col1 FROM tab0
----
54

query III rowsort
SELECT ALL * FROM tab1 WHERE 25 + - + col1 BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + 44 FROM tab1
----
2596
2992
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT + ( - + COUNT( * ) ) * + - 51 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-6594
SELECT + ( - + COUNT ( * ) ) * + - 51 FROM tab0
----
153

query I rowsort
SELECT ALL 80 * ( + 0 ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT IN ( + 10 * 56 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT IN ( + 10 * 56 ) )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + col2 NOT IN ( - - 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT DISTINCT - COUNT( * ) * - 55 FROM tab2 AS cor0 WHERE NOT col0 + - + 1 / + 29 IS NULL
----
165

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT - COUNT ( * ) * - 55 FROM tab2 AS cor0 WHERE NOT col0 + - + 1 / + 29 IS NULL
----
165

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 * 85 * - + col2 NOT BETWEEN - col0 AND ( ( + 38 ) )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NULL IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6601
SELECT ALL - 56 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL - 56 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + + 36 AS col2 FROM tab0 AS cor0
----
117
37
57

query I rowsort
SELECT DISTINCT + col1 * 83 + col0 FROM tab2 AS cor0 WHERE 43 / + 23 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 52 * 67 < - 36
----

query I rowsort
SELECT + col1 + + - col1 + + + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6606
SELECT - col1 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6606
SELECT - col1 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 AS col1, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT MIN( ALL + col0 ) * - MIN( DISTINCT - - ( + 32 ) ) AS col1 FROM tab0
----
-480

skipif mysql # not compatible
query I rowsort label-6608
SELECT MIN ( ALL + col0 ) * - MIN ( DISTINCT - - ( + 32 ) ) AS col1 FROM tab0
----
-480

query II rowsort
SELECT DISTINCT - 67 * - col1, 2 AS col1 FROM tab2
----
3417
2
4489
2
5159
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT ALL - col1 * col1 DIV + 37 FROM tab1
----
-5
-59
0

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL - col1 * col1 / + 37 FROM tab1
----
-5
-59
0

query II rowsort
SELECT DISTINCT 72 AS col2, 62 AS col1 FROM tab1
----
72
62

query I rowsort
SELECT + 51 * + col0 * - 54 AS col1 FROM tab2
----
-126684
-176256
-206550

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT - MIN( ( 29 ) ) AS col0 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-6613
SELECT - MIN ( ( 29 ) ) AS col0 FROM tab2
----
-29

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 IN ( - col1 + + + ( - - ( + col0 ) ) * 38 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 86 ) BETWEEN NULL AND ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 2 * - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT + 37 + + - COUNT( * ) FROM tab2 cor0
----
34

skipif mysql # not compatible
query I rowsort label-6617
SELECT + 37 + + - COUNT ( * ) FROM tab2 cor0
----
34

query I rowsort
SELECT col2 + - + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ( col2 ) * + 46 FROM tab2 AS cor0
----
1058
1840
2668

query I rowsort
SELECT DISTINCT col0 + + - 39 AS col1 FROM tab2 WHERE NOT 77 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6621
SELECT ALL 30 * COUNT( * ) * + + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + col1 BETWEEN ( NULL ) AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL 30 * COUNT ( * ) * + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + col1 BETWEEN ( NULL ) AND - col1
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab0 cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6623
SELECT DISTINCT MAX( - CAST( NULL AS SIGNED ) ) col1, + COUNT( * ) FROM tab2 cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6623
SELECT DISTINCT MAX ( - CAST ( NULL AS INTEGER ) ) col1, + COUNT ( * ) FROM tab2 cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT ALL + MAX( ALL - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL + MAX ( ALL - col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT MAX( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6625
SELECT MAX ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT DISTINCT + MAX( - 23 ) col2 FROM tab1
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6626
SELECT DISTINCT + MAX ( - 23 ) col2 FROM tab1
----
-23

query I rowsort
SELECT ALL ( ( + - AVG ( ALL 7 ) ) ) FROM tab2 WHERE - + col0 * col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6628
SELECT DISTINCT CAST( NULL AS SIGNED ), + 25 - - col0 * col0 AS col0 FROM tab1
----
NULL
2626
NULL
7250
NULL
8306

skipif mysql # not compatible
query II rowsort label-6628
SELECT DISTINCT CAST ( NULL AS INTEGER ), + 25 - - col0 * col0 AS col0 FROM tab1
----
NULL
2626
NULL
7250
NULL
8306

query II rowsort
SELECT ALL + col2 * 97 * + - 1, + col1 AS col1 FROM tab2
----
-2231
51
-3880
77
-5626
67

query II rowsort
SELECT DISTINCT - col2 * - 25 * - col2 + + + col1 AS col2, - 88 AS col2 FROM tab0 AS cor0
----
-245024
-88
-2479
-88
-55144
-88

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6632
SELECT ALL - COUNT( * ) col2, - 2 FROM tab1 AS cor0
----
-3
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6632
SELECT ALL - COUNT ( * ) col2, - 2 FROM tab1 AS cor0
----
-3
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 - - 25 col0 FROM tab1 AS cor0
----
135
140
89

query II rowsort
SELECT ALL - col1, + col2 AS col1 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 76 ) = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 96 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6637
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6637
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT MIN( - col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-6638
SELECT MIN ( - col1 ) AS col2 FROM tab0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 - - 28 + + + ( - + 60 ) col2 FROM tab1
----
64
64
64

query II rowsort
SELECT DISTINCT - ( 41 ) * 24 * ( 70 ) AS col1, - 36 FROM tab0 AS cor0
----
-68880
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT - MIN( DISTINCT + + col1 ) * 93 FROM tab2 AS cor0
----
-4743

skipif mysql # not compatible
query I rowsort label-6641
SELECT - MIN ( DISTINCT + + col1 ) * 93 FROM tab2 AS cor0
----
-4743

query I rowsort
SELECT DISTINCT col1 - - + 63 * - - col0 + - - 12 AS col2 FROM tab0 AS cor0
----
1038
5514
6124

query I rowsort
SELECT DISTINCT - 0 FROM tab1 AS cor0 WHERE NOT + ( - 85 ) + - 76 >= + + ( - + col1 )
----
0

query I rowsort
SELECT - + col1 - - col0 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT + + 88 AS col2 FROM tab2 AS cor0
----
88

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 63 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6647
SELECT - col0 + - CAST( NULL AS SIGNED ) + + - col0 + - col0 * - + col0 + 4 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6647
SELECT - col0 + - CAST ( NULL AS INTEGER ) + + - col0 + - col0 * - + col0 + 4 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT ALL - COUNT( * ) * + ( + MIN( + col0 ) ) - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL - COUNT ( * ) * + ( + MIN ( + col0 ) ) - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-6649
SELECT DISTINCT + col2 DIV 22 FROM tab0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT + col2 / 22 FROM tab0
----
0
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT ALL 81 * + COUNT( * ) col2 FROM tab0
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6650
SELECT ALL 81 * + COUNT ( * ) col2 FROM tab0
----
243

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND col1 + - col0
----

query I rowsort
SELECT ALL + ( + 81 ) AS col2 FROM tab2
----
81
81
81

query III rowsort
SELECT * FROM tab0 WHERE + col1 * + + col0 + + col2 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 94 + - + 20 AS col1 FROM tab1
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL 80 + MIN( + col0 ) + 30 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL 80 + MIN ( + col0 ) + 30 FROM tab2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT ALL - 47 + COUNT( ALL - col0 ) AS col2 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL - 47 + COUNT ( ALL - col0 ) AS col2 FROM tab0
----
-44

query I rowsort
SELECT ALL + col2 + - 98 AS col2 FROM tab0
----
-51
-88
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT col0 DIV + + 4 FROM tab0 AS cor0
----
21
24
3

skipif mysql # not compatible
query I rowsort label-6658
SELECT col0 / + + 4 FROM tab0 AS cor0
----
21
24
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6659
SELECT DISTINCT COUNT( * ) AS col0, + 48 AS col1 FROM tab2
----
3
48

skipif mysql # not compatible
query II rowsort label-6659
SELECT DISTINCT COUNT ( * ) AS col0, + 48 AS col1 FROM tab2
----
3
48

query II rowsort
SELECT + col0 AS col1, + col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6661
SELECT DISTINCT - 5 AS col2 FROM tab2 WHERE NOT - ( col0 ) + CAST( - + 30 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT - 5 AS col2 FROM tab2 WHERE NOT - ( col0 ) + CAST ( - + 30 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 - - col2 + + 15 <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6663
SELECT + col1 * + + 58, 67 DIV + col2 AS col0 FROM tab0
----
1218
6
4698
1
58
0

skipif mysql # not compatible
query II rowsort label-6663
SELECT + col1 * + + 58, 67 / + col2 AS col0 FROM tab0
----
1218
6
4698
1
58
0

query I rowsort
SELECT ALL ( 97 ) AS col1 FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT - + 38 AS col1 FROM tab2 cor0 WHERE NOT ( ( - 66 ) ) <> col0
----

query I rowsort
SELECT DISTINCT + - col2 + - + 65 AS col1 FROM tab1 AS cor0 WHERE col2 >= - col1
----
-124
-133
-161

onlyif mysql # aggregate syntax: 
query II rowsort label-6667
SELECT DISTINCT - - COUNT( * ), - ( - 21 ) AS col1 FROM tab1 cor0
----
3
21

skipif mysql # not compatible
query II rowsort label-6667
SELECT DISTINCT - - COUNT ( * ), - ( - 21 ) AS col1 FROM tab1 cor0
----
3
21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 25 IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT DISTINCT - COUNT( - ( - 66 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT - COUNT ( - ( - 66 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT MIN( 22 ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-6670
SELECT MIN ( 22 ) FROM tab2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT + MIN( - 27 ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-6671
SELECT + MIN ( - 27 ) FROM tab0
----
-27

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 8 ) IS NULL
----

query I rowsort
SELECT 92 * + ( + ( + - 34 ) ) AS col1 FROM tab2
----
-3128
-3128
-3128

query I rowsort
SELECT DISTINCT - 69 FROM tab0 WHERE col2 NOT BETWEEN 16 AND NULL
----
-69

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-6676
SELECT ALL + col1 + + col2 + + col0 DIV 76 * + col0 AS col1, col2 AS col1 FROM tab2
----
117
40
125
58
74
23

skipif mysql # not compatible
query II rowsort label-6676
SELECT ALL + col1 + + col2 + + col0 / 76 * + col0 AS col1, col2 AS col1 FROM tab2
----
117
40
125
58
74
23

query I rowsort
SELECT DISTINCT - + ( + col0 ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + + col2 + - col1 AS col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT DISTINCT - - 25 FROM tab0 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT - COUNT( DISTINCT 48 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6680
SELECT - COUNT ( DISTINCT 48 ) FROM tab2 cor0
----
-1

query II rowsort
SELECT DISTINCT - 24 * col0, col0 AS col2 FROM tab1 AS cor0
----
-1224
51
-2040
85
-2184
91

query III rowsort
SELECT * FROM tab2 WHERE + + 30 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 39 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT ALL COUNT( ALL + + 52 ) - + 35 AS col1 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL COUNT ( ALL + + 52 ) - + 35 AS col1 FROM tab1 AS cor0
----
-32

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE 57 NOT IN ( col1 + - ( 63 ) )
----
51
85
91

query I rowsort
SELECT ALL - col1 * + - col0 * + col2 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT 89 * + COUNT( * ) FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-6687
SELECT 89 * + COUNT ( * ) FROM tab1 AS cor0
----
267

onlyif mysql # DIV for integer division: 
query I rowsort label-6688
SELECT DISTINCT 67 DIV + + col1 FROM tab1 cor0
----
1
13
4

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT 67 / + + col1 FROM tab1 cor0
----
1
13
4

query III rowsort
SELECT * FROM tab2 WHERE - 4 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6690
SELECT ( CAST( NULL AS SIGNED ) ) * - col1 / - + col2 / 44 + 20 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT ( CAST ( NULL AS INTEGER ) ) * - col1 / - + col2 / 44 + 20 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 70 FROM tab1 WHERE NOT ( + - 79 ) IS NULL
----
70
70
70

onlyif mysql # aggregate syntax: 
query II rowsort label-6692
SELECT COUNT( * ) - + 7 AS col1, - 29 FROM tab2
----
-4
-29

skipif mysql # not compatible
query II rowsort label-6692
SELECT COUNT ( * ) - + 7 AS col1, - 29 FROM tab2
----
-4
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-6693
SELECT DISTINCT col0 + - col1 + + + col2 DIV ( + + 70 ) + 19 + + 4 FROM tab0
----
-43
120
89

skipif mysql # not compatible
query I rowsort label-6693
SELECT DISTINCT col0 + - col1 + + + col2 / ( + + 70 ) + 19 + + 4 FROM tab0
----
-43
120
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6694
SELECT ALL col1 DIV + + 74 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL col1 / + + 74 FROM tab0
----
0
0
1

query I rowsort
SELECT - col2 * - 34 - - ( - col0 ) AS col0 FROM tab2
----
1296
1897
736

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NOT 0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT 0 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 10 * + 57 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE + 49 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6699
SELECT ALL * FROM tab2 AS cor0 WHERE ( 36 ) >= CAST( + + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6699
SELECT ALL * FROM tab2 AS cor0 WHERE ( 36 ) >= CAST ( + + col1 AS INTEGER )
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT + 83 * + col1 BETWEEN NULL AND col0 * col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL + COUNT( * ) * + 5 AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL + COUNT ( * ) * + 5 AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT - 31 + - 19 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-6703
SELECT ALL + 67 DIV + col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL + 67 / + col2 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT - COUNT( * ) * - - ( - 62 ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-6704
SELECT - COUNT ( * ) * - - ( - 62 ) FROM tab0
----
186

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL >= + ( - + col1 ) + col1 + + - col2 + - 84 + - - col0 / - 75 - + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col0 FROM tab2 AS cor0 WHERE NOT - col0 < NULL
----

query II rowsort
SELECT + col2 AS col0, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT - COUNT( DISTINCT col1 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6708
SELECT - COUNT ( DISTINCT col1 ) AS col1 FROM tab0 cor0
----
-3

query II rowsort
SELECT ALL col2, 86 FROM tab1 AS cor0
----
59
86
68
86
96
86

query I rowsort
SELECT 42 FROM tab2 WHERE NOT + 38 IS NULL
----
42
42
42

query I rowsort
SELECT DISTINCT 70 + - col1 AS col2 FROM tab1
----
23
56
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 * + 34 + + col1 col2 FROM tab2
----
1649
1665
1675

query I rowsort
SELECT - col2 + - + col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT ALL - 83 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT DISTINCT col1 + + 28 AS col1 FROM tab1
----
33
42
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6716
SELECT DISTINCT + col0 DIV + col1 + + + col2 FROM tab1 AS cor0
----
69
76
99

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT + col0 / + col1 + + + col2 FROM tab1 AS cor0
----
69
76
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6717
SELECT ALL - COUNT( * ) - 1 AS col0, 49 * + COUNT( DISTINCT + 17 ) FROM tab2 AS cor0
----
-4
49

skipif mysql # not compatible
query II rowsort label-6717
SELECT ALL - COUNT ( * ) - 1 AS col0, 49 * + COUNT ( DISTINCT + 17 ) FROM tab2 AS cor0
----
-4
49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + 16 ) NOT BETWEEN - ( + - 33 ) AND 83 + + - col1 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT ALL - + ( COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL - + ( COUNT ( * ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT ALL COUNT( DISTINCT + - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL COUNT ( DISTINCT + - col2 ) FROM tab0
----
3

query II rowsort
SELECT DISTINCT col2 AS col0, + 95 * + col1 + - 7 FROM tab1
----
59
468
68
4458
96
1323

query I rowsort
SELECT 93 * + + col2 FROM tab0
----
4371
9207
930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6723
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6723
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6724
SELECT MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) * - 59 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6724
SELECT MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * - 59 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - - 83 * - + 62 AS col2 FROM tab1 AS cor0
----
262446
437410
468286

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + 1 ) < + col2
----

query I rowsort
SELECT - col2 * - - col0 FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6728
SELECT ALL MAX( DISTINCT col2 ) DIV + 34 AS col0, - ( + 31 ) FROM tab0 AS cor0
----
2
-31

skipif mysql # not compatible
query II rowsort label-6728
SELECT ALL MAX ( DISTINCT col2 ) / + 34 AS col0, - ( + 31 ) FROM tab0 AS cor0
----
2
-31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 1 BETWEEN NULL AND + col2 / - + 42 * - col2
----

query I rowsort
SELECT DISTINCT + 81 * - + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, + col0 - + - ( - col1 ) col2 FROM tab1 AS cor0
----
14
37
47
44
5
80

query I rowsort
SELECT ALL - 56 * col0 * - - ( - col1 ) * + + col2 - + + 75 FROM tab0 AS cor0
----
1023045
3197805
537693

query I rowsort
SELECT DISTINCT + col1 * - 18 + 4 AS col1 FROM tab2 AS cor0
----
-1202
-1382
-914

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL >= NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6736
SELECT ALL 37 DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL 37 / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-6737
SELECT ALL + - col1 DIV col2 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6737
SELECT ALL + - col1 / col2 col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - 0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT + 26 + col2 - col2 AS col1 FROM tab1 AS cor0
----
26
26
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6741
SELECT - 30 + + MAX( ALL - CAST( col2 AS SIGNED ) ) + MAX( - col1 ) - - - 92 FROM tab0 AS cor0
----
-133

skipif mysql # not compatible
query I rowsort label-6741
SELECT - 30 + + MAX ( ALL - CAST ( col2 AS INTEGER ) ) + MAX ( - col1 ) - - - 92 FROM tab0 AS cor0
----
-133

query III rowsort
SELECT * FROM tab1 WHERE col1 = - - 25 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT ALL SUM( + - 81 ) * - + COUNT( * ) AS col1 FROM tab0
----
729

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL SUM ( + - 81 ) * - + COUNT ( * ) AS col1 FROM tab0
----
729

query I rowsort
SELECT DISTINCT col1 + - + col0 FROM tab2
----
-8
13
5

query I rowsort
SELECT + col2 * - - 47 AS col2 FROM tab2
----
1081
1880
2726

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col2 ) * + - col2 * + + col2 col1, col0 AS col0 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT SUM( ALL col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-6747
SELECT SUM ( ALL col0 ) AS col1 FROM tab2
----
185

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN col1 + - col0 AND + 19
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT ALL - + 46 + COUNT( * ) FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL - + 46 + COUNT ( * ) FROM tab0 AS cor0
----
-43

query II rowsort
SELECT ALL + col1, 96 AS col2 FROM tab1 AS cor0
----
14
96
47
96
5
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6751
SELECT - col1 * col1 * ( + - 93 ) - + col0 + + col1 DIV + - col2 AS col0 FROM tab1 AS cor0
----
18177
205346
2240

skipif mysql # not compatible
query I rowsort label-6751
SELECT - col1 * col1 * ( + - 93 ) - + col0 + + col1 / + - col2 AS col0 FROM tab1 AS cor0
----
18177
205346
2240

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 10 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6754
SELECT + col0 DIV col0 + + - col2 AS col1 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-6754
SELECT + col0 / col0 + + - col2 AS col1 FROM tab2
----
-22
-39
-57

query I rowsort
SELECT ALL col1 + - 83 + + 10 FROM tab2
----
-22
-6
4

query I rowsort
SELECT DISTINCT + + 57 + + col0 - col0 AS col1 FROM tab1 WHERE NULL <= + 81
----

query I rowsort
SELECT ALL - col1 + + 22 AS col1 FROM tab2
----
-29
-45
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6758
SELECT + - col2 + - 71 AS col2 FROM tab1 cor0 WHERE + ( col2 ) / 41 - + col2 - + CAST( NULL AS SIGNED ) IS NULL
----
-130
-139
-167

skipif mysql # not compatible
query I rowsort label-6758
SELECT + - col2 + - 71 AS col2 FROM tab1 cor0 WHERE + ( col2 ) / 41 - + col2 - + CAST ( NULL AS INTEGER ) IS NULL
----
-130
-139
-167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col2 col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT - - SUM( ALL + - col1 ) AS col0 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6760
SELECT - - SUM ( ALL + - col1 ) AS col0 FROM tab1 cor0
----
-66

query II rowsort
SELECT - + col2 AS col2, - col2 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6762
SELECT + MAX( + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT + MAX ( + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + ( - 64 ) AS col2 FROM tab1 AS cor0
----
-64
-64
-64

query I rowsort
SELECT - + 5 * 17 FROM tab1 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT DISTINCT - - COUNT( col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT - - COUNT ( col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + col0 * col2 * - 66 + col0 AS col1 FROM tab0 AS cor0
----
-46515
-57333
-633701

query I rowsort
SELECT + col1 * + - 26 * col0 * col2 FROM tab2
----
-1402908
-5125120
-7577700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 * - col1 col1 FROM tab1
----
-2961
-315
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT ALL COUNT( DISTINCT - col2 ) FROM tab1 WHERE NOT col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL COUNT ( DISTINCT - col2 ) FROM tab1 WHERE NOT col1 >= NULL
----
0

query I rowsort
SELECT - 97 * col1 * - col2 * - ( + col2 ) AS col2 FROM tab2
----
-11950400
-21862636
-2616963

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 NOT IN ( + - col1 - col2 + + - col2 )
----

query I rowsort
SELECT ALL + col2 * - 29 AS col0 FROM tab0
----
-1363
-2871
-290

query I rowsort
SELECT DISTINCT - + 81 AS col2 FROM tab2 cor0
----
-81

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT ( - col2 IS NULL )
----
51
67
77

query II rowsort
SELECT DISTINCT - 58 * - ( + 8 ) AS col2, ( + ( + col2 ) ) AS col2 FROM tab1
----
464
59
464
68
464
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT ALL - SUM( + col2 ) * 56 * - COUNT( * ) + + COUNT( * ) FROM tab0
----
26211

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL - SUM ( + col2 ) * 56 * - COUNT ( * ) + + COUNT ( * ) FROM tab0
----
26211

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT + 33 * + COUNT( * ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6777
SELECT + 33 * + COUNT ( * ) FROM tab1 AS cor0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6778
SELECT + + COUNT( * ) DIV - 23 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6778
SELECT + + COUNT ( * ) / - 23 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col0 FROM tab2 AS cor0
----
-7

query I rowsort
SELECT ALL ( + - 36 ) AS col0 FROM tab1 AS cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-6781
SELECT DISTINCT + COUNT( * ), - 34 + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
-37

skipif mysql # not compatible
query II rowsort label-6781
SELECT DISTINCT + COUNT ( * ), - 34 + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
-37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6782
SELECT * FROM tab1 AS cor0 WHERE 72 + + 51 + - col2 * + - CAST( NULL AS SIGNED ) = + 80
----

skipif mysql # not compatible
query III rowsort label-6782
SELECT * FROM tab1 AS cor0 WHERE 72 + + 51 + - col2 * + - CAST ( NULL AS INTEGER ) = + 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT DISTINCT SUM( ALL 86 ) FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT SUM ( ALL 86 ) FROM tab0 AS cor0
----
258

query I rowsort
SELECT DISTINCT + 35 * - 57 AS col1 FROM tab1
----
-1995

query I rowsort
SELECT DISTINCT col1 + + + 19 AS col0 FROM tab1
----
24
33
66

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT + col0 * + col0 + + col2 FROM tab2
----
2139
4136
5683

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT + 42 + - 6 + + - 78 - + 33 + - - COUNT( * ) * - MAX( ALL col0 ) AS col1 FROM tab0
----
-366

skipif mysql # not compatible
query I rowsort label-6788
SELECT + 42 + - 6 + + - 78 - + 33 + - - COUNT ( * ) * - MAX ( ALL col0 ) AS col1 FROM tab0
----
-366

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * + col1 * + + 96 * col0 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT ALL COUNT( * ) - - - 15 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL COUNT ( * ) - - - 15 FROM tab1
----
-12

query I rowsort
SELECT - - 98 * + - 89 + col2 AS col0 FROM tab0 AS cor0
----
-8623
-8675
-8712

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 + 70 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - col2 * + col2 * - ( + col2 ) AS col1, 90 AS col1 FROM tab1 AS cor0
----
-205379
90
-314432
90
-884736
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT ALL + COUNT( * ) - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab2 AS cor0 WHERE col0 <= + col2
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT - - 10 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * ( 34 ) + - + 78 AS col1 FROM tab1
----
1656
2812
3016

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT 48 - COUNT( * ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-6798
SELECT 48 - COUNT ( * ) FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT + COUNT( * ) - + - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6799
SELECT + COUNT ( * ) - + - COUNT ( * ) FROM tab0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + + col2 + + + col2 + - 89 col1 FROM tab0 AS cor0
----
21
2167
9811

onlyif mysql # DIV for integer division: 
query I rowsort label-6801
SELECT col1 DIV col0 + - + 10 * + col1 col1 FROM tab0 AS cor0
----
-10
-210
-805

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6801
SELECT col1 / col0 + - + 10 * + col1 col1 FROM tab0 AS cor0
----
-10
-210
-805

query I rowsort
SELECT - 50 AS col0 FROM tab0 cor0
----
-50
-50
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6803
SELECT col2 * - CAST( - + 19 AS SIGNED ) col1 FROM tab2 AS cor0 WHERE NOT col2 > NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6803
SELECT col2 * - CAST ( - + 19 AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT col2 > NULL
----

query II rowsort
SELECT ALL - col1 AS col1, + col0 - - col0 FROM tab2
----
-51
92
-67
150
-77
128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 - - - 68 col2, col1 + - + 76 / + - col2 / - 60 FROM tab1 WHERE NOT ( - + 53 + - + col1 ) NOT BETWEEN col2 * 5 AND 97 + 63 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT ALL + MAX( - ( col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL + MAX ( - ( col0 ) ) FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 26 col0, - col0 FROM tab0
----
26
-15
26
-87
26
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6808
SELECT 45 DIV - MAX( + col2 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6808
SELECT 45 / - MAX ( + col2 ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT ALL - 75 * - MAX( + col0 ) AS col0 FROM tab2
----
5625

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL - 75 * - MAX ( + col0 ) AS col0 FROM tab2
----
5625

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6810
SELECT ALL * FROM tab1 WHERE NOT ( CAST( - - 56 AS SIGNED ) + + - CAST( - 72 AS DECIMAL ) ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-6810
SELECT ALL * FROM tab1 WHERE NOT ( CAST ( - - 56 AS INTEGER ) + + - CAST ( - 72 AS REAL ) ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 36 BETWEEN NULL AND + col1 + - col2 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, col0 col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE + 34 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = col1 * - - col1
----

query I rowsort
SELECT ALL - col1 * col0 * - 87 AS col0 FROM tab2 AS cor0
----
204102
428736
437175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6816
SELECT DISTINCT 67 + + ( - col0 ) * - + CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT 67 + + ( - col0 ) * - + CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6817
SELECT DISTINCT 66 FROM tab2 WHERE ( NULL = CAST( NULL AS SIGNED ) / - + col2 )
----

skipif mysql # not compatible
query I rowsort label-6817
SELECT DISTINCT 66 FROM tab2 WHERE ( NULL = CAST ( NULL AS INTEGER ) / - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT DISTINCT - 50 * COUNT( * ) + COUNT( * ) FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT - 50 * COUNT ( * ) + COUNT ( * ) FROM tab1
----
-147

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6819
SELECT + + CAST( - CAST( + 3 AS DECIMAL ) AS SIGNED ) + 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-6819
SELECT + + CAST ( - CAST ( + 3 AS REAL ) AS INTEGER ) + 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ALL + + 84 + + col0 FROM tab1 cor0
----
135
169
175

query I rowsort
SELECT ALL - 63 * - + col2 * col1 FROM tab0 AS cor0
----
13230
239841
6237

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL OR NOT col1 * + col0 IN ( + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 93 * + + col1 col1, 60 FROM tab0 AS cor0
----
1953
60
7533
60
93
60

query I rowsort
SELECT ALL - + 81 AS col2 FROM tab2 cor0
----
-81
-81
-81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + + col0 * + col0 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 FROM tab2 cor0 WHERE NOT NULL > - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - + col2 col1, - col2 AS col2 FROM tab1 AS cor0
----
-3481
-59
-4624
-68
-9216
-96

query II rowsort
SELECT ALL + col0 + - + col1, - col0 AS col2 FROM tab0 AS cor0
----
-66
-15
66
-87
96
-97

query II rowsort
SELECT 8 * + + ( - 4 ), col1 FROM tab1
----
-32
14
-32
47
-32
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6830
SELECT ALL COUNT( * ) * + 39 + + 71 DIV + 88 AS col0 FROM tab0 WHERE NOT + + col0 <> ( - - col2 ) + col2 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL COUNT ( * ) * + 39 + + 71 / + 88 AS col0 FROM tab0 WHERE NOT + + col0 <> ( - - col2 ) + col2 * + col1
----
0

query II rowsort
SELECT 88 AS col0, 39 FROM tab0
----
88
39
88
39
88
39

query I rowsort
SELECT ALL + col2 + + + col2 FROM tab2
----
116
46
80

query I rowsort
SELECT - ( 2 ) FROM tab1
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT ALL + COUNT( * ) FROM tab1 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL + COUNT ( * ) FROM tab1 WHERE - col2 IS NOT NULL
----
3

query I rowsort
SELECT 2 - - 7 * col0 FROM tab2 cor0
----
324
450
527

query I rowsort
SELECT - col1 + + - 33 AS col1 FROM tab0 AS cor0
----
-114
-34
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT DISTINCT + - COUNT( DISTINCT - + 38 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT + - COUNT ( DISTINCT - + 38 ) FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 AS cor0 WHERE ( 50 ) = + - col1
----

query I rowsort
SELECT col1 * - col0 * - 65 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
152490
320320
326625

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 92 ) IS NULL
----

query I rowsort
SELECT 41 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT DISTINCT SUM( - - 11 ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT SUM ( - - 11 ) FROM tab0 AS cor0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-6843
SELECT - col0 DIV - - col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6843
SELECT - col0 / - - col2 FROM tab0 AS cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT + 35 * col2 AS col2 FROM tab2 AS cor0
----
1400
2030
805

query I rowsort
SELECT ALL - + ( - 33 ) * col0 + + + 91 * col2 + + + col0 AS col1 FROM tab2 AS cor0
----
3657
5816
7828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6846
SELECT ALL COUNT( * ) DIV - COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + 67 AS col0 FROM tab0 cor0
----
67
67
67

query I rowsort
SELECT + 39 * + 1 AS col1 FROM tab1
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT - 5 * + COUNT( * ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-6850
SELECT - 5 * + COUNT ( * ) FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-6851
SELECT DISTINCT + MAX( + ( - + 97 ) ) AS col2, - 17 FROM tab0
----
-97
-17

skipif mysql # not compatible
query II rowsort label-6851
SELECT DISTINCT + MAX ( + ( - + 97 ) ) AS col2, - 17 FROM tab0
----
-97
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT + 12 * - CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
-1020
-1092
-612

skipif mysql # not compatible
query I rowsort label-6852
SELECT + 12 * - CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
-1020
-1092
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL - + COUNT( * ) FROM tab1 cor0 WHERE NOT 51 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL - + COUNT ( * ) FROM tab1 cor0 WHERE NOT 51 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6854
SELECT + - 60 + CAST( NULL AS SIGNED ) * + ( + + ( + - col0 ) ), col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-6854
SELECT + - 60 + CAST ( NULL AS INTEGER ) * + ( + + ( + - col0 ) ), col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT DISTINCT 32 * - - col2 FROM tab2 AS cor0
----
1280
1856
736

query I rowsort
SELECT ALL + 30 + - - col1 AS col0 FROM tab0
----
111
31
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT ALL COUNT( * ) + - COUNT( * ) * 2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL COUNT ( * ) + - COUNT ( * ) * 2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT DISTINCT + SUM( ALL - col2 ) + + - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-130

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT + SUM ( ALL - col2 ) + + - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6859
SELECT DISTINCT + CAST( - 93 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-6859
SELECT DISTINCT + CAST ( - 93 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT - MAX( ALL + - 42 ) AS col2 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-6860
SELECT - MAX ( ALL + - 42 ) AS col2 FROM tab0 AS cor0
----
42

query I rowsort
SELECT col1 - + 13 + - col2 AS col1 FROM tab1 AS cor0
----
-34
-67
-95

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 > NULL
----

query II rowsort
SELECT ALL + + col1 AS col0, - col1 AS col2 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL + + MAX( ALL + - col0 ) * 70 FROM tab0 cor0
----
-1050

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL + + MAX ( ALL + - col0 ) * 70 FROM tab0 cor0
----
-1050

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + + col1 / 42 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6866
SELECT CAST( ( + 30 ) AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6866
SELECT CAST ( ( + 30 ) AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6867
SELECT - col2 * - CAST( NULL AS DECIMAL ) - + col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT - col2 * - CAST ( NULL AS REAL ) - + col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 28 AS col0 FROM tab0
----
28

query I rowsort
SELECT DISTINCT + 57 + col0 + col0 AS col0 FROM tab2
----
149
185
207

query III rowsort
SELECT * FROM tab0 WHERE - + col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 + + - col2 col0 FROM tab1
----
0
28
37

query I rowsort
SELECT col0 * - + col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6873
SELECT MIN( ALL - CAST( col0 AS SIGNED ) ) col1 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6873
SELECT MIN ( ALL - CAST ( col0 AS INTEGER ) ) col1 FROM tab1
----
-91

query I rowsort
SELECT ALL + + col1 - 21 + - 30 + - ( - 88 ) AS col1 FROM tab0 AS cor0
----
118
38
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - col1 * + col1
----

query I rowsort
SELECT DISTINCT - 12 - - - col0 * - - col1 AS col2 FROM tab2 AS cor0
----
-2358
-4940
-5037

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 + + col1 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 79 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT MAX( DISTINCT + col0 ) * - 66 FROM tab1
----
-6006

skipif mysql # not compatible
query I rowsort label-6878
SELECT MAX ( DISTINCT + col0 ) * - 66 FROM tab1
----
-6006

query I rowsort
SELECT DISTINCT + 48 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6880
SELECT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6880
SELECT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6881
SELECT + CAST( - - col1 AS SIGNED ), 84 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-6881
SELECT + CAST ( - - col1 AS INTEGER ), 84 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6882
SELECT ALL + + col0 DIV + col2 AS col2 FROM tab0 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL + + col0 / + col2 AS col2 FROM tab0 cor0
----
0
0
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6883
SELECT ALL - col2 DIV + col1 + - - col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL - col2 / + col1 + - - col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6884
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) * + - 75 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6884
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) * + - 75 AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - col1, col0 FROM tab2 AS cor0 WHERE ( + col0 ) <> col1
----
-51
46
-67
75
-77
64

query I rowsort
SELECT col1 * + ( - - col0 ) FROM tab2
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab2 WHERE 67 IS NULL
----

query I rowsort
SELECT ALL + col2 * col0 + + - col2 AS col1 FROM tab2
----
1035
2520
4292

query I rowsort
SELECT ALL + 39 FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 * - - col0 AND NULL
----

query I rowsort
SELECT + 22 * + col0 FROM tab2
----
1012
1408
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT ALL - COUNT( * ) + + ( - + COUNT( * ) ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL - COUNT ( * ) + + ( - + COUNT ( * ) ) FROM tab0
----
-6

query II rowsort
SELECT col2 * + - col1 + + - col1, col2 AS col2 FROM tab2
----
-1224
23
-3157
40
-3953
58

query III rowsort
SELECT DISTINCT + col1, + 83 * 77, + col1 FROM tab0
----
9 values hashing to e186930d90eb348073959b42f425a097

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6894
SELECT ALL - col0 DIV - ( 29 ) + - - 11 + + - col1 + - CAST( + + col2 AS SIGNED ) FROM tab0 AS cor0
----
-117
-17
-86

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL - col0 / - ( 29 ) + - - 11 + + - col1 + - CAST ( + + col2 AS INTEGER ) FROM tab0 AS cor0
----
-117
-17
-86

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT - 24 IS NULL
----
23
40
58

query I rowsort
SELECT ALL + col2 - + ( 78 ) * col2 AS col2 FROM tab2 cor0
----
-1771
-3080
-4466

query II rowsort
SELECT + col0 AS col2, col0 * - 10 FROM tab0 AS cor0
----
15
-150
87
-870
97
-970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6898
SELECT + + COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT + + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT - 93 - + + col2 AS col0 FROM tab2
----
-116
-133
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT COUNT( * ) - + 60 AS col2 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-6900
SELECT COUNT ( * ) - + 60 AS col2 FROM tab1
----
-57

query II rowsort
SELECT + col2 AS col1, col0 - + col2 AS col1 FROM tab1 cor0
----
59
26
68
23
96
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT DISTINCT - MIN( + - ( - col0 ) ) * - - 1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT - MIN ( + - ( - col0 ) ) * - - 1 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + col1, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT DISTINCT + MIN( + ( + 66 ) ) * - 69 AS col2 FROM tab0 AS cor0
----
-4554

skipif mysql # not compatible
query I rowsort label-6904
SELECT DISTINCT + MIN ( + ( + 66 ) ) * - 69 AS col2 FROM tab0 AS cor0
----
-4554

query II rowsort
SELECT col2 AS col1, ( 44 ) + - - col0 + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
134
68
182
96
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT + - SUM( - + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-6906
SELECT + - SUM ( - + col0 ) FROM tab1 AS cor0
----
227

query II rowsort
SELECT + + ( 90 ) AS col2, col1 * + + col0 * - - 86 + - col0 AS col2 FROM tab0 AS cor0
----
90
104475
90
157035
90
8245

query II rowsort
SELECT - col2 AS col0, + col2 + col0 AS col0 FROM tab0
----
-10
97
-47
62
-99
196

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6909
SELECT ALL 51 DIV + CAST( + - col0 AS SIGNED ), col0 FROM tab2
----
-1
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-6909
SELECT ALL 51 / + CAST ( + - col0 AS INTEGER ), col0 FROM tab2
----
-1
46
0
64
0
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6910
SELECT DISTINCT CAST( - + col1 AS SIGNED ) + - 14 FROM tab0
----
-15
-35
-95

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT CAST ( - + col1 AS INTEGER ) + - 14 FROM tab0
----
-15
-35
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-6911
SELECT DISTINCT col2 DIV 35 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT col2 / 35 FROM tab2
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - ( - col0 ) ) col0 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT - + col2 AS col1, + col0 - + col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
80
-68
44
-96
37

query I rowsort
SELECT + 81 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query II rowsort
SELECT DISTINCT col0 + col2 AS col2, 80 - - + col0 FROM tab2 AS cor0
----
104
144
133
155
69
126

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT ALL - 26 + MAX( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL - 26 + MAX ( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-6918
SELECT - - col2 * - - col0 + col0 DIV - 49 AS col0 FROM tab2 cor0
----
1058
2559
4349

skipif mysql # not compatible
query I rowsort label-6918
SELECT - - col2 * - - col0 + col0 / - 49 AS col0 FROM tab2 cor0
----
1058
2559
4349

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ALL MAX( - 91 ) + + MIN( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL MAX ( - 91 ) + + MIN ( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6920
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + CAST( + - col0 AS SIGNED ) NOT BETWEEN 84 * 67 AND - col2 * col2 * + 73 / 99 OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6920
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + CAST ( + - col0 AS INTEGER ) NOT BETWEEN 84 * 67 AND - col2 * col2 * + 73 / 99 OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT DISTINCT + MIN( - - 23 ) col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6921
SELECT DISTINCT + MIN ( - - 23 ) col0 FROM tab2 cor0
----
23

query I rowsort
SELECT ALL ( + ( - - 56 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT DISTINCT + COUNT( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT + COUNT ( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT ALL SUM( DISTINCT - col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL SUM ( DISTINCT - col2 ) AS col2 FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-6925
SELECT 5 DIV - 75 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6925
SELECT 5 / - 75 AS col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6926
SELECT col2 DIV - - col2 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6926
SELECT col2 / - - col2 AS col0 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT + COUNT( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6927
SELECT + COUNT ( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col2 + - 21 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 27 - col0 - + - col1 * + 92 * + ( - 66 ) IS NOT NULL
----

query I rowsort
SELECT - col2 * + - 84 AS col1 FROM tab1
----
4956
5712
8064

query II rowsort
SELECT col1, + col0 * - - 9 + - + 22 AS col2 FROM tab1
----
14
437
47
797
5
743

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT - COUNT( DISTINCT - col2 ) * 16 * - - 64 AS col2 FROM tab0
----
-3072

skipif mysql # not compatible
query I rowsort label-6932
SELECT - COUNT ( DISTINCT - col2 ) * 16 * - - 64 AS col2 FROM tab0
----
-3072

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 99 = - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( 39 ) + + + 93 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6935
SELECT ALL + - ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL + - ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 11 * col1 + col0 + + - 78 AS col2 FROM tab2 cor0
----
529
734
833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6937
SELECT + CAST( NULL AS SIGNED ) + + ( + col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6937
SELECT + CAST ( NULL AS INTEGER ) + + ( + col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 87 + + + col1 FROM tab2 AS cor0
----
138
154
164

query II rowsort
SELECT DISTINCT - col2 AS col0, + 67 FROM tab1 AS cor0
----
-59
67
-68
67
-96
67

query I rowsort
SELECT + - 52 * 49 + + col2 FROM tab2 cor0
----
-2490
-2508
-2525

query I rowsort
SELECT ALL + - 0 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 19 AS col1 FROM tab0 WHERE NOT NULL > - 57
----

query I rowsort
SELECT DISTINCT - col1 * + 78 FROM tab1
----
-1092
-3666
-390

query I rowsort
SELECT col1 * - + 41 * 1 AS col2 FROM tab2
----
-2091
-2747
-3157

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6945
SELECT ALL col1 + - + col2 AS col0, + CAST( NULL AS DECIMAL ) * + - 77 * - + col0 AS col0 FROM tab1
----
-21
NULL
-54
NULL
-82
NULL

skipif mysql # not compatible
query II rowsort label-6945
SELECT ALL col1 + - + col2 AS col0, + CAST ( NULL AS REAL ) * + - 77 * - + col0 AS col0 FROM tab1
----
-21
NULL
-54
NULL
-82
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6946
SELECT - COUNT( ALL col0 ) AS col2, - COUNT( + + col1 ) * + 90 FROM tab1
----
-3
-270

skipif mysql # not compatible
query II rowsort label-6946
SELECT - COUNT ( ALL col0 ) AS col2, - COUNT ( + + col1 ) * + 90 FROM tab1
----
-3
-270

query I rowsort
SELECT + ( col2 ) AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6949
SELECT ALL + + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL + + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT DISTINCT COUNT( * ) + - - 88 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT COUNT ( * ) + - - 88 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
88

query I rowsort
SELECT - + ( - + ( - 64 ) ) AS col0 FROM tab1 AS cor0
----
-64
-64
-64

query I rowsort
SELECT 70 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query II rowsort
SELECT + col1 AS col2, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6954
SELECT ALL + - col1 - + col2 DIV 8 AS col2 FROM tab1 AS cor0
----
-12
-26
-55

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL + - col1 - + col2 / 8 AS col2 FROM tab1 AS cor0
----
-12
-26
-55

query I rowsort
SELECT DISTINCT + col2 * - 18 AS col2 FROM tab0 AS cor0
----
-1782
-180
-846

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 98 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6957
SELECT + CAST( NULL AS SIGNED ) - - + col1 / - col1, - col2 AS col0 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-6957
SELECT + CAST ( NULL AS INTEGER ) - - + col1 / - col1, - col2 AS col0 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

query I rowsort
SELECT DISTINCT - ( - + col1 ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL + - 88 FROM tab0 WHERE NOT 21 * + - 75 + + ( + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6960
SELECT + + col0 + - + col1 DIV + col1 FROM tab1 AS cor0 WHERE NOT 44 > - + col1 * - col0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-6960
SELECT + + col0 + - + col1 / + col1 FROM tab1 AS cor0 WHERE NOT 44 > - + col1 * - col0
----
50
84
90

query I rowsort
SELECT ALL + - 29 AS col1 FROM tab0 AS cor0
----
-29
-29
-29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + + 67 <= - 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE 78 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 20 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6965
SELECT - - CAST( col0 AS SIGNED ) * + col2 AS col2, 8 + 90 + - - col0 FROM tab1 AS cor0
----
4896
149
5015
183
6188
189

skipif mysql # not compatible
query II rowsort label-6965
SELECT - - CAST ( col0 AS INTEGER ) * + col2 AS col2, 8 + 90 + - - col0 FROM tab1 AS cor0
----
4896
149
5015
183
6188
189

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT ALL + SUM( col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL + SUM ( col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT - + ( ( + 66 ) ) FROM tab0 AS cor0
----
-66

query I rowsort
SELECT col2 * - - col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6969
SELECT ALL + 63 * - col0 + col1 + CAST( col2 AS SIGNED ) + + col1 * + 9 AS col1 FROM tab1 AS cor0
----
-2977
-5195
-5246

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL + 63 * - col0 + col1 + CAST ( col2 AS INTEGER ) + + col1 * + 9 AS col1 FROM tab1 AS cor0
----
-2977
-5195
-5246

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6970
SELECT ALL - - CAST( - 62 AS SIGNED ) + + 35 AS col0, col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 - + col0 > NULL
----

skipif mysql # not compatible
query II rowsort label-6970
SELECT ALL - - CAST ( - 62 AS INTEGER ) + + 35 AS col0, col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 - + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT ALL + 47 + - COUNT( * ) FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL + 47 + - COUNT ( * ) FROM tab0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 30 * col1 col2 FROM tab1
----
40320
8850
95880

query I rowsort
SELECT ALL + 71 FROM tab0 WHERE + + col0 * - 39 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 IN ( + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE 47 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6976
SELECT + col2 DIV + col2 + - col0 AS col2 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-6976
SELECT + col2 / + col2 + - col0 AS col2 FROM tab2
----
-45
-63
-74

query II rowsort
SELECT ALL col0, - 0 FROM tab0
----
15
0
87
0
97
0

query I rowsort
SELECT - 58 + - + 4 * col0 * + - col2 FROM tab1
----
19526
20002
24694

query I rowsort
SELECT ALL + ( + 58 ) + col0 AS col2 FROM tab2 AS cor0
----
104
122
133

query I rowsort
SELECT DISTINCT - 41 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = - col0 / 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6981
SELECT + ( - - ( - CAST( NULL AS SIGNED ) ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6981
SELECT + ( - - ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col2 * - col2 + 44 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6983
SELECT + 43 - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6983
SELECT + 43 - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT col2 - - 55, - ( + col2 ) * - col0 AS col1, + col2 FROM tab0 cor0
----
9 values hashing to 25798e582307cecca0232a7176f474c1

query I rowsort
SELECT DISTINCT + - 55 - - + col0 * col1 FROM tab0 AS cor0
----
1160
1772
42

query I rowsort
SELECT 36 + + + col1 FROM tab1 AS cor0
----
41
50
83

query I rowsort
SELECT + - col2 + + + col1 AS col0 FROM tab2 AS cor0
----
28
37
9

query II rowsort
SELECT DISTINCT + 17 + - + col0 AS col0, col2 FROM tab1 AS cor0
----
-34
96
-68
59
-74
68

query I rowsort
SELECT ALL 84 * - + col0 FROM tab2 cor0
----
-3864
-5376
-6300

query I rowsort
SELECT ( - - col2 ) FROM tab2
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 + - col0 * + col0 - col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT - 50 DIV - 58 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6992
SELECT - 50 / - 58 FROM tab0
----
0
0
0

query I rowsort
SELECT 76 * + 9 FROM tab0
----
684
684
684

query II rowsort
SELECT col1 AS col2, 37 AS col0 FROM tab2
----
51
37
67
37
77
37

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 39 IS NOT NULL
----

query I rowsort
SELECT col1 * - 73 * col0 FROM tab0
----
-133371
-7081
-88695

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6997
SELECT + - CAST( col2 AS SIGNED ) * col1, col1 FROM tab2 AS cor0
----
-1173
51
-3080
77
-3886
67

skipif mysql # not compatible
query II rowsort label-6997
SELECT + - CAST ( col2 AS INTEGER ) * col1, col1 FROM tab2 AS cor0
----
-1173
51
-3080
77
-3886
67

query I rowsort
SELECT ALL + 59 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6999
SELECT ALL + - col2 DIV - 93 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL + - col2 / - 93 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7000
SELECT DISTINCT + - col0, - col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
query II rowsort label-7000
SELECT DISTINCT + - col0, - col2 / + col1 AS col1 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

query I rowsort
SELECT col0 FROM tab1 WHERE NULL IN ( + col1 * + col2 )
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( - col2 * + 74 - + 0 ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7003
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( 97 AS SIGNED ) / col1 NOT BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7003
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( 97 AS INTEGER ) / col1 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL 42 AS col2 FROM tab0 WHERE NOT ( 92 ) NOT BETWEEN ( - 12 / + col0 + + 65 * + col1 ) AND ( NULL )
----

query I rowsort
SELECT - 45 FROM tab2 WHERE NULL IS NULL
----
-45
-45
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7006
SELECT ALL + ( col0 ) + + CAST( - 88 - - col0 AS SIGNED ) AS col2 FROM tab1
----
14
82
94

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL + ( col0 ) + + CAST ( - 88 - - col0 AS INTEGER ) AS col2 FROM tab1
----
14
82
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT col1 + + col1 FROM tab0 WHERE ( 56 ) IS NOT NULL
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT - COUNT( * ) * + 76 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-228

skipif mysql # not compatible
query I rowsort label-7009
SELECT - COUNT ( * ) * + 76 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-228

query I rowsort
SELECT + 98 * - 60 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 0 * 47 + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7012
SELECT DISTINCT CAST( - ( + 86 ) AS SIGNED ) FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT CAST ( - ( + 86 ) AS INTEGER ) FROM tab2
----
-86

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col2 IN ( col2 + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT ( - COUNT( * ) ) * COUNT( - col0 ) col2 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7014
SELECT ( - COUNT ( * ) ) * COUNT ( - col0 ) col2 FROM tab0
----
-9

query I rowsort
SELECT ( + 19 ) * 20 AS col1 FROM tab1
----
380
380
380

query I rowsort
SELECT ALL col0 * col0 + 38 FROM tab2
----
2154
4134
5663

query I rowsort
SELECT 92 * - col0 AS col2 FROM tab2
----
-4232
-5888
-6900

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 74 * - col1 + 13 ) >= ( 82 * 28 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT + SUM( + 16 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-7019
SELECT + SUM ( + 16 ) FROM tab0
----
48

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) >= - 35
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 7 ) = - ( - col0 ) * col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > ( + 94 )
----

query I rowsort
SELECT 6 AS col0 FROM tab0 WHERE NOT ( - col2 ) > ( + ( 35 ) )
----
6
6
6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + col0 * col2 )
----

query I rowsort
SELECT DISTINCT 92 * col2 - - 92 FROM tab0 AS cor0 WHERE + col2 + 55 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 + + col0 ) IN ( - col1 )
----

query I rowsort
SELECT ALL - 59 - col2 AS col2 FROM tab0 AS cor0
----
-106
-158
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT COUNT( * ) - MAX( col1 ) * - MIN( DISTINCT col0 ) FROM tab2 AS cor0
----
3545

skipif mysql # not compatible
query I rowsort label-7028
SELECT COUNT ( * ) - MAX ( col1 ) * - MIN ( DISTINCT col0 ) FROM tab2 AS cor0
----
3545

onlyif mysql # DIV for integer division: 
query I rowsort label-7029
SELECT DISTINCT + col0 DIV - 5 AS col1 FROM tab2 AS cor0
----
-12
-15
-9

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT + col0 / - 5 AS col1 FROM tab2 AS cor0
----
-12
-15
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7030
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 = 42 / CAST( col2 AS SIGNED ) + 29
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7030
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 = 42 / CAST ( col2 AS INTEGER ) + 29
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 35 + + col1 AS col0 FROM tab1
----
40
49
82

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT ( col2 ) IN ( - col0 )
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT ALL MAX( - col0 ) * 79 + COUNT( * ) FROM tab1
----
-4026

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL MAX ( - col0 ) * 79 + COUNT ( * ) FROM tab1
----
-4026

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT ALL - COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT - COUNT( ALL 52 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7036
SELECT - COUNT ( ALL 52 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7037
SELECT * FROM tab2 AS cor0 WHERE NOT + 40 * + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7037
SELECT * FROM tab2 AS cor0 WHERE NOT + 40 * + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( col1 ) * 43 IS NOT NULL
----

query I rowsort
SELECT ( - + 84 ) AS col0 FROM tab2
----
-84
-84
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7040
SELECT col0 AS col2 FROM tab2 WHERE NOT 18 * col1 + CAST( col2 AS SIGNED ) = ( + ( + col2 ) )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7040
SELECT col0 AS col2 FROM tab2 WHERE NOT 18 * col1 + CAST ( col2 AS INTEGER ) = ( + ( + col2 ) )
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + - col1 <> NULL
----

query I rowsort
SELECT ALL + col1 * col1 * - col0 AS col2 FROM tab2
----
-119646
-336675
-379456

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + col0 + col2 <= col0 / - 16 - col2
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7044
SELECT CAST( NULL AS SIGNED ) * + col1 / - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7044
SELECT CAST ( NULL AS INTEGER ) * + col1 / - col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab1 cor0 WHERE + col1 IS NOT NULL
----
51
85
91

query I rowsort
SELECT - + 66 + col1 * + 98 AS col2 FROM tab1 cor0
----
1306
424
4540

query I rowsort
SELECT + col1 * - col2 * 44 + col1 FROM tab2 AS cor0
----
-135443
-170917
-51561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7048
SELECT - COUNT( DISTINCT 61 ) DIV - 92 + - COUNT( * ) * - 5 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7048
SELECT - COUNT ( DISTINCT 61 ) / - 92 + - COUNT ( * ) * - 5 FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT - COUNT( + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7049
SELECT - COUNT ( + col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + col0 + - - 36 AS col0 FROM tab0
----
123
133
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7051
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7051
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL 14 FROM tab0 WHERE col1 < - col1 * 47
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + ( - + col2 ) * col1 col1 FROM tab1 AS cor0
----
-1330
-290
-3149

onlyif mysql # DIV for integer division: 
query I rowsort label-7054
SELECT DISTINCT + col0 + - col0 + + 56 DIV col1 AS col2 FROM tab1 AS cor0
----
1
11
4

skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT + col0 + - col0 + + 56 / col1 AS col2 FROM tab1 AS cor0
----
1
11
4

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) NOT IN ( - col0 / 73 + col0 / - col1 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE 47 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 38 - + ( col0 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 51, col0 AS col0 FROM tab0 AS cor0
----
-51
15
-51
87
-51
97

query I rowsort
SELECT - 43 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * - - col1 + + col2 AS col2 FROM tab2 AS cor0
----
2624
4547
5969

onlyif mysql # DIV for integer division: 
query I rowsort label-7061
SELECT + 48 DIV - 78 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7061
SELECT + 48 / - 78 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col0 + + 30 ) IS NOT NULL
----

query I rowsort
SELECT - + ( + col0 ) * + col2 + + col2 AS col1 FROM tab1 AS cor0
----
-4800
-4956
-6120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7064
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7064
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7065
SELECT ALL * FROM tab0 WHERE NOT + 30 NOT IN ( + 64 + col1 * CAST( ( - col0 ) * col0 AS SIGNED ) ) AND NOT ( col0 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7065
SELECT ALL * FROM tab0 WHERE NOT + 30 NOT IN ( + 64 + col1 * CAST ( ( - col0 ) * col0 AS INTEGER ) ) AND NOT ( col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * - col2 + - - col1 * + + 89 AS col1 FROM tab1
----
10462
3926
8807

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE + col2 > ( NULL )
----

query I rowsort
SELECT DISTINCT - 25 + - ( + col2 ) FROM tab1
----
-121
-84
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7069
SELECT col2 + 2 + - col1 * - CAST( col0 AS SIGNED ) FROM tab2
----
2371
4970
5085

skipif mysql # not compatible
query I rowsort label-7069
SELECT col2 + 2 + - col1 * - CAST ( col0 AS INTEGER ) FROM tab2
----
2371
4970
5085

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE - + ( col2 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT DISTINCT ( COUNT( * ) ) + - + COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7071
SELECT DISTINCT ( COUNT ( * ) ) + - + COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL - 26 - col0 AS col1 FROM tab2
----
-101
-72
-90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 65 * + 50 < - col2 / - col2 + - 14
----

query I rowsort
SELECT DISTINCT + 26 FROM tab1 cor0 WHERE + 87 IS NOT NULL
----
26

query I rowsort
SELECT - 79 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( - - 50 ) AS col0 FROM tab2
----
50
50
50

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + 27 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT - - SUM( DISTINCT - + 70 ) * + 71 * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7078
SELECT - - SUM ( DISTINCT - + 70 ) * + 71 * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 38 ) BETWEEN 30 - + 45 + + - 73 AND - 70
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 < ( NULL )
----

query II rowsort
SELECT 34, - col2 AS col1 FROM tab1 AS cor0
----
34
-59
34
-68
34
-96

query I rowsort
SELECT DISTINCT + col0 * + + ( col2 ) FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-7083
SELECT ALL 42 col0, COUNT( * ) AS col1 FROM tab2
----
42
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7083
SELECT ALL 42 col0, COUNT ( * ) AS col1 FROM tab2
----
42
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT 17 * + COUNT( * ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7084
SELECT 17 * + COUNT ( * ) AS col0 FROM tab1
----
51

query I rowsort
SELECT DISTINCT - 92 * + - col2 AS col2 FROM tab0
----
4324
9108
920

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT - COUNT( * ) * - COUNT( * ) * COUNT( * ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-7086
SELECT - COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) FROM tab2
----
27

query I rowsort
SELECT 13 AS col1 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT MAX( + - col1 ) * 24 FROM tab2
----
-1224

skipif mysql # not compatible
query I rowsort label-7088
SELECT MAX ( + - col1 ) * 24 FROM tab2
----
-1224

onlyif mysql # DIV for integer division: 
query I rowsort label-7089
SELECT 58 DIV + 32 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7089
SELECT 58 / + 32 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7090
SELECT 33 col2, - COUNT( * ) AS col0 FROM tab2
----
33
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7090
SELECT 33 col2, - COUNT ( * ) AS col0 FROM tab2
----
33
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT DISTINCT - MIN( 76 ) AS col0 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT - MIN ( 76 ) AS col0 FROM tab0 AS cor0
----
-76

query I rowsort
SELECT ALL col2 + + 78 AS col0 FROM tab1
----
137
146
174

query I rowsort
SELECT + 22 + + - ( + col1 ) AS col1 FROM tab0
----
-59
1
21

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT 74 <= + + col2 * 15
----

query I rowsort
SELECT ALL - - col0 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7096
SELECT - 17 DIV + + col0 * + 67 - - col1 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7096
SELECT - 17 / + + col0 * + 67 - - col1 AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL + - 87 AS col2 FROM tab0 cor0
----
-87
-87
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7098
SELECT + col1 * - ( + ( - col2 ) ) * + CAST( NULL AS SIGNED ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT + col1 * - ( + ( - col2 ) ) * + CAST ( NULL AS INTEGER ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7099
SELECT - COUNT( ALL + col2 ) / + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT - COUNT ( ALL + col2 ) / + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col0, 1 * - ( - + col0 ) FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT ( ( + - 52 ) ) * col2 * + col0 FROM tab0
----
-36660
-45240
-499356

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT ALL - MAX( ALL col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL - MAX ( ALL col1 ) AS col0 FROM tab1
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 18 + - - col1 + - + 18 * + 15 col1 FROM tab1
----
14
-238
47
-205
5
-247

query III rowsort
SELECT * FROM tab0 WHERE - 43 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 66 + - 0 AS col1 FROM tab1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7106
SELECT DISTINCT - MAX( DISTINCT CAST( col2 AS SIGNED ) ) / + COUNT( * ) AS col0 FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT - MAX ( DISTINCT CAST ( col2 AS INTEGER ) ) / + COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----
NULL

query I rowsort
SELECT + - 18 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT - col2 * + 25 * + - 18 FROM tab1 AS cor0
----
26550
30600
43200

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT ALL - COUNT( col2 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL - COUNT ( col2 ) AS col0 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + 42 ) col1, col0 FROM tab1 AS cor0
----
-42
51
-42
85
-42
91

query I rowsort
SELECT DISTINCT + 65 * + col2 * 63 FROM tab0
----
192465
405405
40950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7113
SELECT ALL + col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( ( col2 ) + col2 ) AND + col1 * + CAST( - 80 AS SIGNED ) * + col0 + - - ( col1 ) + 97 * 78
----

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL + col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( ( col2 ) + col2 ) AND + col1 * + CAST ( - 80 AS INTEGER ) * + col0 + - - ( col1 ) + 97 * 78
----

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT + + 76 NOT IN ( + col0 / + - col0 )
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE - 46 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT col1 + - + 63 FROM tab2
----
-12
14
4

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 96 IS NULL
----

query I rowsort
SELECT DISTINCT - 38 * col1 * - + col2 * - - col0 FROM tab1
----
11051768
2604672
952850

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT - COUNT( * ) FROM tab1 WHERE NOT 65 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7119
SELECT - COUNT ( * ) FROM tab1 WHERE NOT 65 IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7120
SELECT ALL + 60 + + + col0 * - col1 col0, + CAST( - + col2 AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7120
SELECT ALL + 60 + + + col0 * - col1 col0, + CAST ( - + col2 AS REAL ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 7 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - - ( + 48 ) AS col2 FROM tab1 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL > + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL > + col2 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7124
SELECT - 47 * - MIN( - col2 ) + 33 * - - 81 DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1835

skipif mysql # not compatible
query I rowsort label-7124
SELECT - 47 * - MIN ( - col2 ) + 33 * - - 81 / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1835

onlyif mysql # DIV for integer division: 
query I rowsort label-7125
SELECT DISTINCT ( - col1 ) * 15 DIV col1 AS col1 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT ( - col1 ) * 15 / col1 AS col1 FROM tab1
----
-15

query III rowsort
SELECT * FROM tab2 WHERE - + 80 NOT IN ( - col1, + 33 - + col0 + - - col0 + + + col2 * + + 65, col2 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 13 * col2 + - ( - col2 ) FROM tab2
----
322
560
812

query I rowsort
SELECT DISTINCT + col1 - + col2 + + + 73 FROM tab0 AS cor0
----
-25
107
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT ALL + ( + - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL + ( + - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7130
SELECT ALL + COUNT( ALL + - col0 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL + COUNT ( ALL + - col0 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 28 NOT BETWEEN - col2 * + col2 + + 93 AND - 33 + col2 * + + 34 AND NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > 4
----

query I rowsort
SELECT col0 + + - 5 AS col1 FROM tab0 AS cor0
----
10
82
92

query I rowsort
SELECT - col2 + - 64 FROM tab0 AS cor0
----
-111
-163
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-7135
SELECT DISTINCT + col1 * col1 + col2 DIV + col0, + ( - + col0 ) - - - 29 + + - col0 AS col2 FROM tab1 AS cor0
----
197
-131
2209
-211
25
-199

skipif mysql # not compatible
query II rowsort label-7135
SELECT DISTINCT + col1 * col1 + col2 / + col0, + ( - + col0 ) - - - 29 + + - col0 AS col2 FROM tab1 AS cor0
----
197
-131
2209
-211
25
-199

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = 49
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7137
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 97 - col2 AS col1 FROM tab1 WHERE ( col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT 51 * - COUNT( * ) FROM tab2, tab0 AS cor0
----
-459

skipif mysql # not compatible
query I rowsort label-7139
SELECT 51 * - COUNT ( * ) FROM tab2, tab0 AS cor0
----
-459

onlyif mysql # DIV for integer division: 
query I rowsort label-7140
SELECT ALL + col1 DIV + ( + + 45 ) AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL + col1 / + ( + + 45 ) AS col1 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7141
SELECT + ( - col1 ) / + CAST( NULL AS SIGNED ) + - 0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7141
SELECT + ( - col1 ) / + CAST ( NULL AS INTEGER ) + - 0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT MAX( col0 ) * - MIN( ALL col2 ) col2 FROM tab2
----
-1725

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7142
SELECT MAX ( col0 ) * - MIN ( ALL col2 ) col2 FROM tab2
----
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT 88 * COUNT( * ) col2 FROM tab0 AS cor0
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7143
SELECT 88 * COUNT ( * ) col2 FROM tab0 AS cor0
----
264

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col2 >= - - ( col0 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < col0 * + 57 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT - 70 * - + COUNT( * ) FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-7146
SELECT - 70 * - + COUNT ( * ) FROM tab0 AS cor0
----
210

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 64 * ( - col1 ) < - - col1
----

query I rowsort
SELECT + + AVG ( ALL col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> - col1
----
NULL

query II rowsort
SELECT ALL 84, 57 AS col1 FROM tab1 AS cor0
----
84
57
84
57
84
57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 <= NULL
----

query II rowsort
SELECT col0, ( - col1 ) + col0 AS col1 FROM tab2 AS cor0
----
46
-5
64
-13
75
8

query I rowsort
SELECT DISTINCT + 6 * - col2 AS col1 FROM tab2 AS cor0
----
-138
-240
-348

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT DISTINCT - col1 + + + 71 DIV 88 + + + 52 FROM tab0
----
-29
31
51

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT - col1 + + + 71 / 88 + + + 52 FROM tab0
----
-29
31
51

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NULL >= + col0 + - ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7155
SELECT ALL + col2 + - col2 + - - CAST( NULL AS SIGNED ) * 68 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL + col2 + - col2 + - - CAST ( NULL AS INTEGER ) * 68 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 21 ) FROM tab1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT ALL COUNT( ALL ( - + ( + 32 ) ) ) * - MAX( DISTINCT + col2 ) FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL COUNT ( ALL ( - + ( + 32 ) ) ) * - MAX ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-288

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > - col0 * 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7159
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-7161
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
9

query I rowsort
SELECT ALL col0 * col2 + + col2 + col2 FROM tab1
----
5088
5133
6324

query I rowsort
SELECT ALL - 10 - + ( col0 ) FROM tab1
----
-101
-61
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 33 col2 FROM tab2
----
56
73
91

query II rowsort
SELECT ALL - - col1 * 87 + 0, - 87 * col2 + + 23 + - + col1 + + + col0 AS col0 FROM tab2 AS cor0
----
4437
-1983
5829
-5015
6699
-3470

query I rowsort
SELECT ALL 72 - 84 AS col0 FROM tab0 AS cor0
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7167
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) + col2 * + + 0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) + col2 * + + 0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7168
SELECT DISTINCT + CAST( + - col2 AS SIGNED ) * + - col2 AS col1, - col0 + - - 40 FROM tab0 AS cor0
----
100
-47
2209
25
9801
-57

skipif mysql # not compatible
query II rowsort label-7168
SELECT DISTINCT + CAST ( + - col2 AS INTEGER ) * + - col2 AS col1, - col0 + - - 40 FROM tab0 AS cor0
----
100
-47
2209
25
9801
-57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( - col2 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT COUNT( * ) * + - MAX( - col2 ) * - - 63 AS col0 FROM tab1 AS cor0
----
11151

skipif mysql # not compatible
query I rowsort label-7171
SELECT COUNT ( * ) * + - MAX ( - col2 ) * - - 63 AS col0 FROM tab1 AS cor0
----
11151

onlyif mysql # DIV for integer division: 
query I rowsort label-7172
SELECT ALL - col2 DIV col1 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7172
SELECT ALL - col2 / col1 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7173
SELECT DISTINCT - 72 DIV - col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT - 72 / - col0 FROM tab1 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT col1 DIV - - col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7174
SELECT col1 / - - col0 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + ( col1 ) / - - col1 IS NULL
----

query I rowsort
SELECT AVG ( ALL + col2 ) AS col1 FROM tab0 cor0 WHERE NULL NOT IN ( - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT - COUNT( * ) * - MIN( ALL - col0 ) - - COUNT( * ) AS col1 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-7177
SELECT - COUNT ( * ) * - MIN ( ALL - col0 ) - - COUNT ( * ) AS col1 FROM tab1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT - 83 - - - MIN( ALL - - col2 ) AS col1 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-7178
SELECT - 83 - - - MIN ( ALL - - col2 ) AS col1 FROM tab0
----
-93

query II rowsort
SELECT DISTINCT + col0, col0 FROM tab1
----
51
51
85
85
91
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND ( + + 30 )
----

query I rowsort
SELECT ( - + ( + 73 ) ) FROM tab1
----
-73
-73
-73

query I rowsort
SELECT ALL + 70 FROM tab0 cor0 WHERE col0 IS NOT NULL
----
70
70
70

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - col0 ) >= + ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7184
SELECT ALL col1 AS col0, - CAST( + 0 AS SIGNED ) * col1 + + col2 * + + col2 * - - col0 FROM tab1 AS cor0
----
14
470016
47
420784
5
295885

skipif mysql # not compatible
query II rowsort label-7184
SELECT ALL col1 AS col0, - CAST ( + 0 AS INTEGER ) * col1 + + col2 * + + col2 * - - col0 FROM tab1 AS cor0
----
14
470016
47
420784
5
295885

query I rowsort
SELECT ALL - - col1 * + + col1 FROM tab0 AS cor0 WHERE ( col0 + + + col0 IS NOT NULL )
----
1
441
6561

query II rowsort
SELECT col1 AS col2, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT DISTINCT + MAX( DISTINCT + col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT + MAX ( DISTINCT + col2 ) AS col0 FROM tab0
----
99

query I rowsort
SELECT DISTINCT + 65 FROM tab1 AS cor0 WHERE NOT - 23 IS NULL
----
65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT - SUM( - ( + 79 ) ) col2 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7190
SELECT - SUM ( - ( + 79 ) ) col2 FROM tab1 AS cor0
----
237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col1 FROM tab2 AS cor0 WHERE NOT NULL > + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7192
SELECT + CAST( - 19 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-7192
SELECT + CAST ( - 19 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-19
-19
-19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7193
SELECT - - 63 DIV - col0 + col1 + col0 * + 26 col0, CAST( NULL AS SIGNED ) + + 28 FROM tab1 AS cor0
----
1339
NULL
2215
NULL
2413
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7193
SELECT - - 63 / - col0 + col1 + col0 * + 26 col0, CAST ( NULL AS INTEGER ) + + 28 FROM tab1 AS cor0
----
1339
NULL
2215
NULL
2413
NULL

query I rowsort
SELECT DISTINCT + col0 + col2 + - - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
198
229
250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 89, - col0 col1 FROM tab0
----
-89
-15
-89
-87
-89
-97

query I rowsort
SELECT ALL + 47 AS col0 FROM tab1, tab2 cor0 WHERE NULL IS NULL
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT + 94 + 71 FROM tab1
----
165
165
165

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE + - 97 * - - col1 = - + col2
----
0

skipif mysql # not compatible
query I rowsort label-7198
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE + - 97 * - - col1 = - + col2
----
0

query I rowsort
SELECT DISTINCT col2 + + + col1 + col1 * - - col0 FROM tab0
----
1343
1858
197

query II rowsort
SELECT ALL - 40 / + 25 * col0, col0 FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT ALL MAX( 85 ) + - COUNT( ALL + col1 ) col2 FROM tab2
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7201
SELECT ALL MAX ( 85 ) + - COUNT ( ALL + col1 ) col2 FROM tab2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7202
SELECT - col0 DIV + ( - 69 ) + col0 AS col0 FROM tab1
----
51
86
92

skipif mysql # not compatible
query I rowsort label-7202
SELECT - col0 / + ( - 69 ) + col0 AS col0 FROM tab1
----
51
86
92

query I rowsort
SELECT ALL 62 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 + + + col1 AND - 65 * - 23 * 50
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7204
SELECT ALL + col0 + 68 + + col0 AS col2, 39 + col2 DIV col0 * - col0 * + + col0 AS col1 FROM tab2 AS cor0
----
160
39
196
39
218
39

skipif mysql # not compatible
query II rowsort label-7204
SELECT ALL + col0 + 68 + + col0 AS col2, 39 + col2 / col0 * - col0 * + + col0 AS col1 FROM tab2 AS cor0
----
160
39
196
39
218
39

query I rowsort
SELECT ALL col1 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 89 * - col0 IS NULL
----
162
2
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7206
SELECT MAX( DISTINCT - - 33 ) * CAST( ( 5 ) AS SIGNED ) FROM tab1 cor0
----
165

skipif mysql # not compatible
query I rowsort label-7206
SELECT MAX ( DISTINCT - - 33 ) * CAST ( ( 5 ) AS INTEGER ) FROM tab1 cor0
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7207
SELECT ALL + + ( + + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL + + ( + + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - + col0 * + col1 AS col0 FROM tab1
----
-25075
-290836
-68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * - col2 - - - col1 col0 FROM tab1
----
1175
1313
1906

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7210
SELECT CAST( 26 AS SIGNED ) - 69 FROM tab0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-7210
SELECT CAST ( 26 AS INTEGER ) - 69 FROM tab0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT - MAX( - col0 ) - + 90 AS col0 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-7211
SELECT - MAX ( - col0 ) - + 90 AS col0 FROM tab2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT ALL 46 + + - COUNT( * ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL 46 + + - COUNT ( * ) FROM tab0
----
43

query I rowsort
SELECT ALL - 13 - + + col2 FROM tab2 AS cor0
----
-36
-53
-71

query I rowsort
SELECT + ( + 4 ) * + 67 + + col0 * + 97 * + col0 * - col1 FROM tab2 cor0
----
-10467584
-30592756
-36556607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + - col0 - + + col1 + col2 col0, col0 FROM tab0 cor0
----
191
15
7558
87
9507
97

query I rowsort
SELECT + 1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + col2 + + - 60 * - ( + 21 ) IS NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( - + col2 ) = - col2
----

query II rowsort
SELECT - ( + col1 ) * + 95, - col2 AS col1 FROM tab0
----
-1995
-10
-7695
-47
-95
-99

query I rowsort
SELECT DISTINCT - 54 * 60 * + - 16 * - 59 FROM tab0
----
-3058560

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT + COUNT( * ) * 52 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-7221
SELECT + COUNT ( * ) * 52 FROM tab1
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + 63 * - col1 AS col2 FROM tab1
----
51
-882
85
-315
91
-2961

query I rowsort
SELECT + col1 * - 54 AS col1 FROM tab1
----
-2538
-270
-756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7224
SELECT DISTINCT + 27 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7224
SELECT DISTINCT + 27 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE NOT - col2 * + col0 >= + col0
----
10
47
99

query II rowsort
SELECT col0 AS col2, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT + MAX( ALL + ( - col0 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT 61 + - - col2 IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-7227
SELECT + MAX ( ALL + ( - col0 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT 61 + - - col2 IS NULL
----
-51

query I rowsort
SELECT + col0 * - + col1 AS col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + 31 + col0 + - 70 AS col0 FROM tab0
----
-24
48
58

query I rowsort
SELECT - 98 * + 68 AS col1 FROM tab2
----
-6664
-6664
-6664

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7231
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR + CAST( - col1 AS DECIMAL ) IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR + CAST ( - col1 AS REAL ) IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 90 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT + + ( COUNT( * ) ) + 22 AS col1 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7233
SELECT + + ( COUNT ( * ) ) + 22 AS col1 FROM tab2 AS cor0
----
25

query II rowsort
SELECT + col2, + col1 * - col0 * - 5 FROM tab0 AS cor0
----
10
9135
47
6075
99
485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7235
SELECT - + SUM( DISTINCT col1 ) DIV COUNT( * ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-7235
SELECT - + SUM ( DISTINCT col1 ) / COUNT ( * ) FROM tab1 AS cor0
----
-22

query I rowsort
SELECT ALL + 81 AS col0 FROM tab2 AS cor0
----
81
81
81

query III rowsort
SELECT * FROM tab2 WHERE - col1 <= NULL
----

query I rowsort
SELECT ALL col2 * 86 * col0 + - col2 AS col0 FROM tab2
----
220120
374042
90965

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 9 / - 83 >= - - 0 + + + col0
----

query II rowsort
SELECT ALL ( + + col1 ) + - 30, + col0 * - col2 AS col1 FROM tab2
----
21
-1058
37
-4350
47
-2560

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 38 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7242
SELECT DISTINCT - COUNT( * ) - + - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7242
SELECT DISTINCT - COUNT ( * ) - + - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7243
SELECT ALL - col2 * - 11 - + col0 + + ( + + 74 ) AS col1, col2 * - CAST( NULL AS SIGNED ) * + + 43 * col2 + + col2 AS col1 FROM tab2 cor0
----
281
NULL
450
NULL
637
NULL

skipif mysql # not compatible
query II rowsort label-7243
SELECT ALL - col2 * - 11 - + col0 + + ( + + 74 ) AS col1, col2 * - CAST ( NULL AS INTEGER ) * + + 43 * col2 + + col2 AS col1 FROM tab2 cor0
----
281
NULL
450
NULL
637
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 * - 7 AND - col1 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT ALL - 11 * MIN( + + 63 ) FROM tab1 AS cor0 WHERE NOT - col0 * col0 IS NULL
----
-693

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL - 11 * MIN ( + + 63 ) FROM tab1 AS cor0 WHERE NOT - col0 * col0 IS NULL
----
-693

query I rowsort
SELECT + + col0 FROM tab2 AS cor0 WHERE ( NOT ( NOT + col2 > + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7247
SELECT ALL - col2 col0, + CAST( NULL AS SIGNED ) 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-7247
SELECT ALL - col2 col0, + CAST ( NULL AS INTEGER ) FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT - + COUNT( * ) * - - SUM( DISTINCT - col2 ) - + 27 FROM tab0 cor0
----
441

skipif mysql # not compatible
query I rowsort label-7248
SELECT - + COUNT ( * ) * - - SUM ( DISTINCT - col2 ) - + 27 FROM tab0 cor0
----
441

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 70 NOT BETWEEN - col0 AND 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 13 col1, col1 * - 67 FROM tab2 AS cor0
----
13
-3417
13
-4489
13
-5159

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT DISTINCT - SUM( ALL + col0 ) col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7251
SELECT DISTINCT - SUM ( ALL + col0 ) col1 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7252
SELECT + 9 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7252
SELECT + 9 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 62 >= + 44 + + + 11
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 - + col0 FROM tab2 WHERE - 94 IS NULL
----

query I rowsort
SELECT col2 * + 76 AS col1 FROM tab0
----
3572
7524
760

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN ( NULL ) AND NULL )
----

query II rowsort
SELECT 72 * - + col2, col2 AS col2 FROM tab1
----
-4248
59
-4896
68
-6912
96

query I rowsort
SELECT DISTINCT - col2 * + 56 FROM tab0
----
-2632
-5544
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + + 25 ) col0, col0 AS col1 FROM tab1 cor0
----
-25
51
-25
85
-25
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7260
SELECT ALL CAST( col2 AS SIGNED ) AS col1, + 82 * + + col0 AS col0 FROM tab2 cor0 WHERE 44 IS NOT NULL
----
23
3772
40
5248
58
6150

skipif mysql # not compatible
query II rowsort label-7260
SELECT ALL CAST ( col2 AS INTEGER ) AS col1, + 82 * + + col0 AS col0 FROM tab2 cor0 WHERE 44 IS NOT NULL
----
23
3772
40
5248
58
6150

query I rowsort
SELECT DISTINCT col2 + + - col2 + col1 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7262
SELECT - 41 + - 42 + + ( + AVG ( ALL + - CAST( NULL AS SIGNED ) ) ) * - + 43 * + 11 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7262
SELECT - 41 + - 42 + + ( + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) ) * - + 43 * + 11 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE - 6 >= NULL
----

query I rowsort
SELECT 56 FROM tab0 WHERE NOT + col2 IS NULL
----
56
56
56

query I rowsort
SELECT + - ( - 98 ) FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT - - col0 * - 57 FROM tab2 AS cor0
----
-2622
-3648
-4275

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NOT - 55 IS NOT NULL )
----

query I rowsort
SELECT + col1 * + 50 * + - ( - col0 ) AS col2 FROM tab0 AS cor0
----
4850
60750
91350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 35 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT + + 38 * - COUNT( * ) - - 4 + 91 AS col1 FROM tab0 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-7270
SELECT + + 38 * - COUNT ( * ) - - 4 + 91 AS col1 FROM tab0 cor0
----
-19

query II rowsort
SELECT + + col2 AS col2, 40 AS col1 FROM tab0 AS cor0
----
10
40
47
40
99
40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 22 ) < NULL
----

query II rowsort
SELECT + col1, - 45 AS col2 FROM tab2 AS cor0
----
51
-45
67
-45
77
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT - 65 + + - col2 DIV - - col2 + - 11 AS col2 FROM tab2 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-7274
SELECT - 65 + + - col2 / - - col2 + - 11 AS col2 FROM tab2 AS cor0
----
-77
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7275
SELECT - + col2 / 58 - CAST( NULL AS SIGNED ) FROM tab2 WHERE 49 >= NULL
----

skipif mysql # not compatible
query I rowsort label-7275
SELECT - + col2 / 58 - CAST ( NULL AS INTEGER ) FROM tab2 WHERE 49 >= NULL
----

query I rowsort
SELECT col0 + - 16 + + col0 + + - 86 * - + col2 FROM tab2
----
2054
3552
5122

query II rowsort
SELECT ALL - col1, - col1 AS col2 FROM tab1
----
-14
-14
-47
-47
-5
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 44 AND - - col0
----

query I rowsort
SELECT + - 15 - - ( - 48 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7280
SELECT ALL 30 DIV + SUM( ALL + col1 ) - 74 AS col2 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL 30 / + SUM ( ALL + col1 ) - 74 AS col2 FROM tab2
----
-74

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * + 57 AS col1 FROM tab1
----
2679
285
798

query I rowsort
SELECT DISTINCT - 65 * - col0 AS col0 FROM tab1
----
3315
5525
5915

query I rowsort
SELECT DISTINCT + ( + + col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - + 2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7286
SELECT - - 7 DIV - - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7286
SELECT - - 7 / - - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7287
SELECT - col2 + 75 DIV ( + 25 ) DIV + - 24 + - col0 col1 FROM tab2
----
-104
-133
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7287
SELECT - col2 + 75 / ( + 25 ) / + - 24 + - col0 col1 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT + col0 * - 10 - + col0 FROM tab0 WHERE - col2 + + col2 - - - col0 IS NOT NULL
----
-1067
-165
-957

onlyif mysql # aggregate syntax: 
query II rowsort label-7289
SELECT - 89 + COUNT( * ), MIN( ALL - + col1 ) * - 27 AS col2 FROM tab1
----
-86
1269

skipif mysql # not compatible
query II rowsort label-7289
SELECT - 89 + COUNT ( * ), MIN ( ALL - + col1 ) * - 27 AS col2 FROM tab1
----
-86
1269

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND 43
----

query I rowsort
SELECT ALL + + 13 * - + col2 FROM tab2 AS cor0
----
-299
-520
-754

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 <> NULL
----

query I rowsort
SELECT ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL col1 + - col1 * col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT ALL COUNT( * ) FROM tab1 WHERE - + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL COUNT ( * ) FROM tab1 WHERE - + col0 IS NULL
----
0

query I rowsort
SELECT col0 + 27 FROM tab1 WHERE - 28 IS NOT NULL
----
112
118
78

query I rowsort
SELECT + + col1 + - col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 92 - col2 - ( + - col1 ) + ( - + ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-105
79
93

query I rowsort
SELECT + - col0 + - - ( + - 90 ) - 8 AS col0 FROM tab1 AS cor0
----
-149
-183
-189

query I rowsort
SELECT - 95 + - col2 FROM tab0
----
-105
-142
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * + 25 col0 FROM tab0 AS cor0
----
2100
2100
2100

query II rowsort
SELECT ALL - col1 AS col2, - 7 FROM tab2 AS cor0
----
-51
-7
-67
-7
-77
-7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > + col2 * + 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT SUM( ALL - + col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7304
SELECT SUM ( ALL - + col2 ) AS col2 FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7305
SELECT CAST( NULL AS SIGNED ) * + - 96 * + - 50 * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7305
SELECT CAST ( NULL AS INTEGER ) * + - 96 * + - 50 * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 69 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + col2 ) * - 51 FROM tab2
----
-1173
-2040
-2958

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT ALL + COUNT( - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL + COUNT ( - col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7310
SELECT - 67 DIV + MAX( + ( + + col2 ) ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7310
SELECT - 67 / + MAX ( + ( + + col2 ) ) FROM tab2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7311
SELECT - ( - CAST( + - COUNT( * ) AS SIGNED ) ) + 31 * + SUM( ALL 44 ) col2 FROM tab0 cor0
----
4089

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7311
SELECT - ( - CAST ( + - COUNT ( * ) AS INTEGER ) ) + 31 * + SUM ( ALL 44 ) col2 FROM tab0 cor0
----
4089

query I rowsort
SELECT - - ( + + 75 ) + 85 + + + 9 FROM tab1 AS cor0
----
169
169
169

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT ALL + - MIN( - 51 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL + - MIN ( - 51 ) FROM tab1 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = + ( - - col2 ) * - ( + 41 ) * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7315
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = ( CAST( NULL AS SIGNED ) ) AND NOT + + col0 - - 68 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7315
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = ( CAST ( NULL AS INTEGER ) ) AND NOT + + col0 - - 68 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7316
SELECT DISTINCT * FROM tab0 WHERE NOT - - 22 * + ( - ( col2 ) ) + col2 < - CAST( + 12 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7316
SELECT DISTINCT * FROM tab0 WHERE NOT - - 22 * + ( - ( col2 ) ) + col2 < - CAST ( + 12 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col2 + - - col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL col0 * + - col2 AS col2 FROM tab1 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - 40 - + 53 FROM tab0 AS cor0
----
-93
-93
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7320
SELECT ALL * FROM tab1 cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - + 17 / - - col2 IN ( - col0, ( col0 ), + col1, col1 * + + col0 + col2 )
----

skipif mysql # not compatible
query III rowsort label-7320
SELECT ALL * FROM tab1 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - + 17 / - - col2 IN ( - col0, ( col0 ), + col1, col1 * + + col0 + col2 )
----

query I rowsort
SELECT - col2 + - 70 AS col1 FROM tab1 AS cor0
----
-129
-138
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT + 45 + COUNT( * ) col1 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7322
SELECT + 45 + COUNT ( * ) col1 FROM tab0 AS cor0
----
48

query II rowsort
SELECT DISTINCT - col2 * + - 78 - - ( col1 ) / - - 17 + - 6, + col2 * + col1 * - col0 * - + col1 FROM tab0 AS cor0 WHERE + 53 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 41 * - ( 26 ) col1 FROM tab2 AS cor0
----
-1066

query I rowsort
SELECT ( + 29 ) AS col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + + col1 * - col1 AND + col2
----
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT ALL - - 42 * MIN( - col0 ) AS col0 FROM tab0 AS cor0
----
-4074

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL - - 42 * MIN ( - col0 ) AS col0 FROM tab0 AS cor0
----
-4074

query I rowsort
SELECT col1 + - - 48 FROM tab2 AS cor0
----
115
125
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 59 >= - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7329
SELECT + ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7329
SELECT + ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE - 65 IS NULL
----

query I rowsort
SELECT ALL + 98 * col2 AS col0 FROM tab1
----
5782
6664
9408

query I rowsort
SELECT ALL col2 + + col2 * + col0 FROM tab2
----
1081
2600
4408

query III rowsort
SELECT * FROM tab0 WHERE NULL <> - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col2 FROM tab2
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT DISTINCT + COUNT( col0 ) - + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT + COUNT ( col0 ) - + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT 77 AS col1 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT - + MIN( DISTINCT + + 25 ) FROM tab2 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-7337
SELECT - + MIN ( DISTINCT + + 25 ) FROM tab2 cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7338
SELECT * FROM tab0 AS cor0 WHERE - CAST( + + col0 AS SIGNED ) BETWEEN col0 * col1 AND - col1
----

skipif mysql # not compatible
query III rowsort label-7338
SELECT * FROM tab0 AS cor0 WHERE - CAST ( + + col0 AS INTEGER ) BETWEEN col0 * col1 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT ALL + ( - 55 ) - COUNT( * ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL + ( - 55 ) - COUNT ( * ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL + 20 * + - 96 + + + COUNT( * ) FROM tab1 AS cor0
----
-1917

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL + 20 * + - 96 + + + COUNT ( * ) FROM tab1 AS cor0
----
-1917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7341
SELECT ALL - ( SUM( DISTINCT + col2 ) ) AS col1, CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NOT 58 + + 80 IS NULL
----
-223
NULL

skipif mysql # not compatible
query II rowsort label-7341
SELECT ALL - ( SUM ( DISTINCT + col2 ) ) AS col1, CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NOT 58 + + 80 IS NULL
----
-223
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7342
SELECT + 36 DIV - col2 + - - col1 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7342
SELECT + 36 / - col2 + - - col1 FROM tab1 cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 col1 FROM tab0 AS cor0
----
-89
-89
-89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 / + col0 * + col2 IS NOT NULL AND NOT + 95 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( - col2 ) col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT + col0 * - 14 + - + col0 + + - col1 AS col0 FROM tab2 WHERE NOT + + col2 * 64 + col2 + - col0 + col0 + + col1 * - 10 / 34 + - - col1 / - 85 IS NULL
----
-1037
-1192
-741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, - 54 col2 FROM tab2
----
-46
-54
-64
-54
-75
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-7348
SELECT ALL 82, - COUNT( * ) + 15 col0 FROM tab1
----
82
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7348
SELECT ALL 82, - COUNT ( * ) + 15 col0 FROM tab1
----
82
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 93 AS col1, col1 col0 FROM tab0
----
-93
1
-93
21
-93
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 83 col0 FROM tab1
----
-2
-8
32

query III rowsort
SELECT col1 AS col2, col0 * - - 59 * - - col0, col0 FROM tab0
----
9 values hashing to 954dd837f59a236b4c132fd88062a65e

query II rowsort
SELECT DISTINCT 72 AS col0, col2 AS col1 FROM tab0
----
72
10
72
47
72
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + ( col1 ) > - - col0
----
85
5
59

query I rowsort
SELECT DISTINCT + 6 AS col2 FROM tab1 cor0 WHERE NULL > ( NULL )
----

query II rowsort
SELECT DISTINCT ( - col0 ), 90 AS col1 FROM tab1
----
-51
90
-85
90
-91
90

query I rowsort
SELECT ALL ( - col1 ) * - - col0 + 12 + - col2 FROM tab0
----
-1250
-1825
-184

onlyif mysql # aggregate syntax: 
query II rowsort label-7357
SELECT - MAX( col0 ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
-91
3

skipif mysql # not compatible
query II rowsort label-7357
SELECT - MAX ( col0 ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-91
3

query I rowsort
SELECT col1 * - col0 * + - col2 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT - col1 * + col0 * - col2 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT DISTINCT 28 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT 28 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
25

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 22 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + - ( - ( 58 ) ) ) FROM tab0 AS cor0
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7364
SELECT DISTINCT - col1 + + col0 + + - CAST( NULL AS SIGNED ) + - ( ( - col1 ) ) + - ( - 81 ) + 18 / col0 + + + col2 / + 51 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7364
SELECT DISTINCT - col1 + + col0 + + - CAST ( NULL AS INTEGER ) + - ( ( - col1 ) ) + - ( - 81 ) + 18 / col0 + + + col2 / + 51 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7365
SELECT col1 DIV 24 - - + 56 AS col1, CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0
----
56
NULL
56
NULL
59
NULL

skipif mysql # not compatible
query II rowsort label-7365
SELECT col1 / 24 - - + 56 AS col1, CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0
----
56
NULL
56
NULL
59
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT ALL MAX( + + 42 ) + + - 15 AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL MAX ( + + 42 ) + + - 15 AS col0 FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT DISTINCT 3 * + - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT 3 * + - COUNT ( * ) FROM tab2
----
-9

query II rowsort
SELECT DISTINCT col2 + - col0 * col1 AS col0, col2 FROM tab1
----
-366
59
-4209
68
-618
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col1 col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT - - COUNT( DISTINCT - + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7370
SELECT - - COUNT ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT + - COUNT( + 40 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7371
SELECT + - COUNT ( + 40 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT - - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7373
SELECT ALL CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 78 * + + ( col0 ) AS col2 FROM tab2
----
3588
4992
5850

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( col0 ) = - col0
----

query I rowsort
SELECT DISTINCT + col0 * 21 AS col0 FROM tab0
----
1827
2037
315

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7377
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST( NULL AS SIGNED ) BETWEEN 6 AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-7377
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST ( NULL AS INTEGER ) BETWEEN 6 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT ALL - COUNT( - 59 ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL - COUNT ( - 59 ) AS col2 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7379
SELECT - + COUNT( * ) DIV MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7379
SELECT - + COUNT ( * ) / MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col0 * - - col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT + + ( - - col1 ) AS col1 FROM tab1 cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT DISTINCT + + SUM( ALL - 85 ) FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT + + SUM ( ALL - 85 ) FROM tab2 AS cor0
----
-255

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT BETWEEN + 96 AND col1
----

query I rowsort
SELECT ALL 76 + - - 69 FROM tab2
----
145
145
145

query I rowsort
SELECT DISTINCT - col1 + 45 FROM tab2
----
-22
-32
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7386
SELECT + + ( + - 49 ) * 10 + - col2 + + - ( - col2 ) + col2 * 35 * - ( + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7386
SELECT + + ( + - 49 ) * 10 + - col2 + + - ( - col2 ) + col2 * 35 * - ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 65 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-65

query I rowsort
SELECT DISTINCT + 16 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
16

query II rowsort
SELECT ALL 51, + col0 AS col2 FROM tab2
----
51
46
51
64
51
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT ALL 97 * MAX( ALL - + col0 ) + - SUM( + 59 ) + COUNT( * ) AS col2 FROM tab2
----
-4636

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL 97 * MAX ( ALL - + col0 ) + - SUM ( + 59 ) + COUNT ( * ) AS col2 FROM tab2
----
-4636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7391
SELECT ALL CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) + + 3 + col2 * 26 / + col0 * col0 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7391
SELECT ALL CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) + + 3 + col2 * 26 / + col0 * col0 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 76 * + col1 - 2 AS col2 FROM tab1 AS cor0
----
1062
3570
378

query I rowsort
SELECT DISTINCT - col1 + + 19 - + + col0 FROM tab1 AS cor0
----
-119
-46
-71

query I rowsort
SELECT ALL - - 11 AS col2 FROM tab2 AS cor0
----
11
11
11

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( + 57 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT MIN( 6 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7396
SELECT MIN ( 6 ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7397
SELECT - MAX( + - col2 ) AS col0, COUNT( * ) FROM tab0
----
10
3

skipif mysql # not compatible
query II rowsort label-7397
SELECT - MAX ( + - col2 ) AS col0, COUNT ( * ) FROM tab0
----
10
3

query I rowsort
SELECT 24 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col1 FROM tab2 cor0
----
78

query I rowsort
SELECT 44 * - col2 AS col2 FROM tab2 AS cor0
----
-1012
-1760
-2552

query I rowsort
SELECT + + col2 AS col1 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7402
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( col1, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7402
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( col1, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + ( - + col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT ALL 3 AS col2, - col2 * - col2 FROM tab2 AS cor0
----
3
1600
3
3364
3
529

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT + 88 + + COUNT( * ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-7405
SELECT + 88 + + COUNT ( * ) FROM tab1 cor0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7406
SELECT ALL COUNT( * ) AS col0, ( + - COUNT( * ) ) * - CAST( NULL AS SIGNED ) * + 90 * - - ( + 13 ) AS col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7406
SELECT ALL COUNT ( * ) AS col0, ( + - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) * + 90 * - - ( + 13 ) AS col1 FROM tab1 AS cor0
----
3
NULL

query I rowsort
SELECT ALL + 12 * + col0 FROM tab0 AS cor0
----
1044
1164
180

onlyif mysql # aggregate syntax: 
query II rowsort label-7408
SELECT DISTINCT - COUNT( * ) AS col1, - MAX( ALL + 19 ) AS col0 FROM tab0 cor0
----
-3
-19

skipif mysql # not compatible
query II rowsort label-7408
SELECT DISTINCT - COUNT ( * ) AS col1, - MAX ( ALL + 19 ) AS col0 FROM tab0 cor0
----
-3
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-7409
SELECT ALL - COUNT( * ) * - SUM( ALL - 63 ), - 94 + + + 99 col0 FROM tab0 AS cor0
----
-567
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7409
SELECT ALL - COUNT ( * ) * - SUM ( ALL - 63 ), - 94 + + + 99 col0 FROM tab0 AS cor0
----
-567
5

query II rowsort
SELECT ALL - col0 * - + col0, - col2 AS col2 FROM tab2
----
2116
-23
4096
-40
5625
-58

query I rowsort
SELECT ALL 91 * - - col2 + col1 + ( - 81 ) * + - col1 * 66 AS col2 FROM tab1
----
257497
32104
83594

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT + COUNT( * ) + 71 AS col0 FROM tab2 WHERE + col2 <= - col1 + - col0
----
71

skipif mysql # not compatible
query I rowsort label-7412
SELECT + COUNT ( * ) + 71 AS col0 FROM tab2 WHERE + col2 <= - col1 + - col0
----
71

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( + - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT COUNT( DISTINCT - - 86 ) + - + 92 * - 67 FROM tab0 AS cor0
----
6165

skipif mysql # not compatible
query I rowsort label-7415
SELECT COUNT ( DISTINCT - - 86 ) + - + 92 * - 67 FROM tab0 AS cor0
----
6165

query I rowsort
SELECT DISTINCT + 22 + + col0 FROM tab1
----
107
113
73

query I rowsort
SELECT DISTINCT + + col1 + - 3 AS col1 FROM tab2 AS cor0
----
48
64
74

query I rowsort
SELECT ALL - col2 + col1 + col1 AS col2 FROM tab1 cor0
----
-49
-68
26

query I rowsort
SELECT - + col1 * + + col2 - + col0 AS col2 FROM tab0 AS cor0
----
-196
-297
-3822

query II rowsort
SELECT - - 26 AS col2, 32 AS col2 FROM tab2 AS cor0
----
26
32
26
32
26
32

query I rowsort
SELECT DISTINCT - 2 FROM tab2 cor0 WHERE NOT 36 + - 89 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - 24
----

query I rowsort
SELECT ( - + col0 ) * col0 * - 91 FROM tab2
----
192556
372736
511875

onlyif mysql # DIV for integer division: 
query I rowsort label-7424
SELECT 84 DIV - col0 AS col2 FROM tab2 WHERE NOT - col2 * - 27 + col1 < + - 64
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7424
SELECT 84 / - col0 AS col2 FROM tab2 WHERE NOT - col2 * - 27 + col1 < + - 64
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7425
SELECT 65 DIV + - MAX( + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7425
SELECT 65 / + - MAX ( + col2 ) FROM tab1
----
0

query I rowsort
SELECT col2 * - 8 AS col1 FROM tab2
----
-184
-320
-464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 26 * - col1 col1, 46 AS col2 FROM tab1 WHERE NOT - + col2 + - + 57 IS NULL
----
-1222
46
-130
46
-364
46

query I rowsort
SELECT 63 * col1 * 41 FROM tab2
----
131733
173061
198891

onlyif mysql # aggregate syntax: 
query II rowsort label-7429
SELECT - 91 col1, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-91
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7429
SELECT - 91 col1, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-91
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 60 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT DISTINCT - - ( COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7431
SELECT DISTINCT - - ( COUNT ( * ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) > + col0 * + col1 + col1 + + col2
----

query I rowsort
SELECT 55 AS col2 FROM tab0 cor0
----
55
55
55

query II rowsort
SELECT col2, + 33 AS col0 FROM tab2 AS cor0
----
23
33
40
33
58
33

onlyif mysql # DIV for integer division: 
query II rowsort label-7435
SELECT - + col2 DIV + + col2 + + 48 * + 73 * - + 37 col1, + 16 FROM tab1 cor0
----
-129649
16
-129649
16
-129649
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7435
SELECT - + col2 / + + col2 + + 48 * + 73 * - + 37 col1, + 16 FROM tab1 cor0
----
-129649
16
-129649
16
-129649
16

query I rowsort
SELECT - 49 * col0 AS col2 FROM tab1 AS cor0
----
-2499
-4165
-4459

query I rowsort
SELECT 6 * + - col2 AS col2 FROM tab0 AS cor0
----
-282
-594
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7438
SELECT ALL - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + ( + col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + ( + col2 ) IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7440
SELECT ALL * FROM tab2 WHERE + 51 + + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7440
SELECT ALL * FROM tab2 WHERE + 51 + + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * 46 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7442
SELECT col1 + - col2 DIV + - col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7442
SELECT col1 + - col2 / + - col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT ALL + SUM( - ( - col1 ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL + SUM ( - ( - col1 ) ) FROM tab2
----
195

query I rowsort
SELECT ALL 15 * - + col0 FROM tab2 AS cor0
----
-1125
-690
-960

onlyif mysql # DIV for integer division: 
query II rowsort label-7445
SELECT + 82 AS col2, - col0 + - 1 DIV col2 * + - 6 AS col1 FROM tab1 AS cor0
----
82
-51
82
-85
82
-91

skipif mysql # not compatible
query II rowsort label-7445
SELECT + 82 AS col2, - col0 + - 1 / col2 * + - 6 AS col1 FROM tab1 AS cor0
----
82
-51
82
-85
82
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 9 + + col0 + + 29 AND - + 22 * + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT MAX( col1 ) col0 FROM tab2 cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7447
SELECT MAX ( col1 ) col0 FROM tab2 cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7448
SELECT - - col0 DIV - 55 AS col2 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7448
SELECT - - col0 / - 55 AS col2 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7449
SELECT ( col2 ) DIV + col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7449
SELECT ( col2 ) / + col0 FROM tab0
----
0
1
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( + 98 )
----

query I rowsort
SELECT DISTINCT ( + 71 ) AS col0 FROM tab0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7452
SELECT ALL + col2 + + col2 DIV col0 FROM tab0 WHERE NULL IS NULL
----
10
100
50

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL + col2 + + col2 / col0 FROM tab0 WHERE NULL IS NULL
----
10
100
50

query III rowsort
SELECT ALL * FROM tab2 WHERE - 38 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT - 87 * - COUNT( * ) - COUNT( DISTINCT col1 ) AS col2 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-7454
SELECT - 87 * - COUNT ( * ) - COUNT ( DISTINCT col1 ) AS col2 FROM tab0
----
258

query I rowsort
SELECT - col0 * - 43 AS col2 FROM tab1
----
2193
3655
3913

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 57 ) = NULL
----

query I rowsort
SELECT ( - col1 ) * col2 AS col2 FROM tab1 WHERE + 94 BETWEEN - 0 + col1 * - col1 AND 59
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7458
SELECT DISTINCT + 55 DIV + col1 AS col0 FROM tab0
----
0
2
55

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT + 55 / + col1 AS col0 FROM tab0
----
0
2
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT COUNT( * ) * SUM( ALL + col1 ) AS col2 FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-7459
SELECT COUNT ( * ) * SUM ( ALL + col1 ) AS col2 FROM tab0
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT COUNT( * ) - COUNT( * ) * + COUNT( DISTINCT + 20 ) FROM tab0 WHERE NOT ( - col1 + ( ( col1 ) + - 70 * 66 ) ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7460
SELECT COUNT ( * ) - COUNT ( * ) * + COUNT ( DISTINCT + 20 ) FROM tab0 WHERE NOT ( - col1 + ( ( col1 ) + - 70 * 66 ) ) < NULL
----
0

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT ( - col1 - 89 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT ALL + COUNT( 37 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL + COUNT ( 37 ) FROM tab1
----
3

query I rowsort
SELECT 22 + + col0 FROM tab0
----
109
119
37

query I rowsort
SELECT 21 - 48 FROM tab2
----
-27
-27
-27

query I rowsort
SELECT col2 * 79 AS col1 FROM tab0 WHERE NOT 26 IS NULL
----
3713
7821
790

onlyif mysql # DIV for integer division: 
query I rowsort label-7466
SELECT + 21 * - col1 - + col1 * - ( + col1 DIV col0 ) AS col1 FROM tab2
----
-1020
-1407
-1540

skipif mysql # not compatible
query I rowsort label-7466
SELECT + 21 * - col1 - + col1 * - ( + col1 / col0 ) AS col1 FROM tab2
----
-1020
-1407
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT + COUNT( DISTINCT - 32 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7467
SELECT + COUNT ( DISTINCT - 32 ) FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 = ( 50 + - col2 )
----

query I rowsort
SELECT DISTINCT ( 89 ) + col0 * 81 FROM tab0
----
1304
7136
7946

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT DISTINCT + COUNT( ALL + col0 ) col1 FROM tab0 WHERE 45 + 22 BETWEEN ( col0 ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7470
SELECT DISTINCT + COUNT ( ALL + col0 ) col1 FROM tab0 WHERE 45 + 22 BETWEEN ( col0 ) AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7471
SELECT - CAST( + SUM( DISTINCT - 42 ) AS SIGNED ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-7471
SELECT - CAST ( + SUM ( DISTINCT - 42 ) AS INTEGER ) FROM tab1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT + MIN( 27 ) col1 FROM tab1
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7472
SELECT + MIN ( 27 ) col1 FROM tab1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7473
SELECT 83 DIV 67 - 74 * col1 AS col2 FROM tab0
----
-1553
-5993
-73

skipif mysql # not compatible
query I rowsort label-7473
SELECT 83 / 67 - 74 * col1 AS col2 FROM tab0
----
-1553
-5993
-73

query I rowsort
SELECT - col0 AS col0 FROM tab2 cor0 WHERE NOT NULL < ( - 91 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT - CAST( col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( - 82 ) < + 92
----

skipif mysql # not compatible
query I rowsort label-7475
SELECT - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( - 82 ) < + 92
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT ( - col2 * + col0 ) IS NULL
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 >= + col2 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT - ( COUNT( * ) ) * - 15 FROM tab0 AS cor0 CROSS JOIN tab0
----
135

skipif mysql # not compatible
query I rowsort label-7478
SELECT - ( COUNT ( * ) ) * - 15 FROM tab0 AS cor0 CROSS JOIN tab0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT + ( + COUNT( + col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7479
SELECT + ( + COUNT ( + col0 ) ) FROM tab1
----
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE 57 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 70 + + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 7 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT DISTINCT + 8 * + COUNT( + 51 * + 13 ) AS col2 FROM tab2 cor0
----
24

skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT + 8 * + COUNT ( + 51 * + 13 ) AS col2 FROM tab2 cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT COUNT( * ) * 11 FROM tab1 cor0
----
33

skipif mysql # not compatible
query I rowsort label-7484
SELECT COUNT ( * ) * 11 FROM tab1 cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7485
SELECT ALL 26 * + col0 FROM tab2 AS cor0 WHERE ( - col1 * - col1 ) IN ( col2 - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL 26 * + col0 FROM tab2 AS cor0 WHERE ( - col1 * - col1 ) IN ( col2 - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL MIN( DISTINCT + ( 83 ) ) * MAX( ALL col1 * + ( 48 ) ) col0 FROM tab0 cor0
----
322704

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7486
SELECT ALL MIN ( DISTINCT + ( 83 ) ) * MAX ( ALL col1 * + ( 48 ) ) col0 FROM tab0 cor0
----
322704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7487
SELECT + 33 DIV COUNT( * ) col1 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7487
SELECT + 33 / COUNT ( * ) col1 FROM tab0 AS cor0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7488
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE ( + col2 * - CAST( NULL AS SIGNED ) - - col1 ) IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE ( + col2 * - CAST ( NULL AS INTEGER ) - - col1 ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7489
SELECT + CAST( NULL AS SIGNED ) / - + COUNT( * ) / - 69 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7489
SELECT + CAST ( NULL AS INTEGER ) / - + COUNT ( * ) / - 69 col2 FROM tab1
----
NULL

query I rowsort
SELECT col0 * 74 * col0 FROM tab2
----
156584
303104
416250

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 + 2 ) IS NULL
----

query I rowsort
SELECT - 93 FROM tab0 WHERE NULL IS NULL
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT - MIN( ALL + ( + 45 ) ) AS col0 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-7493
SELECT - MIN ( ALL + ( + 45 ) ) AS col0 FROM tab1
----
-45

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NULL NOT BETWEEN col1 AND col2 + col2 * + 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + - 37 col0 FROM tab2
----
27
38
9

query I rowsort
SELECT ALL - col0 - - - ( + 89 ) AS col1 FROM tab1
----
-140
-174
-180

query I rowsort
SELECT - col1 FROM tab0 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) <= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + + - col2 + 9 FROM tab1
----
9
9
9

query I rowsort
SELECT + - col1 + - + col2 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE col2 * 50 + col2 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - 23 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7503
SELECT - col1 / - col0 FROM tab0 WHERE ( NULL NOT BETWEEN CAST( NULL AS DECIMAL ) AND col0 )
----

skipif mysql # not compatible
query I rowsort label-7503
SELECT - col1 / - col0 FROM tab0 WHERE ( NULL NOT BETWEEN CAST ( NULL AS REAL ) AND col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7504
SELECT ALL 77 + - CAST( + col2 AS SIGNED ) FROM tab1
----
-19
18
9

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL 77 + - CAST ( + col2 AS INTEGER ) FROM tab1
----
-19
18
9

query I rowsort
SELECT DISTINCT - col0 + 19 FROM tab0
----
-68
-78
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7506
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 57 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 57 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + col0 + + - col1 FROM tab1 AS cor0
----
420
4230
700

query II rowsort
SELECT - col0 AS col0, 91 FROM tab0 AS cor0
----
-15
91
-87
91
-97
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7509
SELECT DISTINCT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE 46 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE 46 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT + SUM( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7511
SELECT + SUM ( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
-103

query II rowsort
SELECT col0, 55 * col2 * + 29 AS col0 FROM tab0 AS cor0
----
15
74965
87
15950
97
157905

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col0 FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT - ( - - 15 ) FROM tab2 AS cor0
----
-15
-15
-15

query II rowsort
SELECT + 80, + col0 FROM tab0 AS cor0
----
80
15
80
87
80
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT - COUNT( * ) * + + 29 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-7516
SELECT - COUNT ( * ) * + + 29 FROM tab1 AS cor0
----
-87

query III rowsort
SELECT * FROM tab1 WHERE NOT 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7518
SELECT ALL CAST( - col0 AS SIGNED ) * - CAST( col2 AS SIGNED ) FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL CAST ( - col0 AS INTEGER ) * - CAST ( col2 AS INTEGER ) FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL + 78 AS col0 FROM tab1
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT COUNT( * ) + - 99 FROM tab1 WHERE NOT NULL = ( + - col1 )
----
-99

skipif mysql # not compatible
query I rowsort label-7520
SELECT COUNT ( * ) + - 99 FROM tab1 WHERE NOT NULL = ( + - col1 )
----
-99

query I rowsort
SELECT ALL ( - + 48 ) FROM tab1
----
-48
-48
-48

query II rowsort
SELECT - 56 + + col2 AS col1, col2 AS col0 FROM tab1 AS cor0
----
12
68
3
59
40
96

query I rowsort
SELECT - 60 + 32 FROM tab0 AS cor0
----
-28
-28
-28

query I rowsort
SELECT + 13 * - col1 * - + 15 * - col1 + col0 FROM tab2 AS cor0
----
-1156091
-507149
-875280

onlyif mysql # DIV for integer division: 
query I rowsort label-7525
SELECT ALL + + col1 DIV + col0 * + + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL + + col1 / + col0 * + + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - 84 * col2 AS col0 FROM tab2 cor0
----
1932
3360
4872

query I rowsort
SELECT + col2 * col0 FROM tab0 AS cor0 WHERE - col0 <> - 31
----
705
870
9603

query I rowsort
SELECT + col2 * col1 FROM tab0 AS cor0 WHERE - 75 / + col0 IS NOT NULL
----
210
3807
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN - + col1 AND - col1
----

query I rowsort
SELECT DISTINCT - - col2 * - - ( + col2 ) AS col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT col0 + + + col0 AS col2 FROM tab0 cor0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7532
SELECT - col2 + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7532
SELECT - col2 + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7533
SELECT ALL CAST( - + col2 AS SIGNED ) + - col2 * col1 FROM tab1
----
-1440
-3264
-354

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL CAST ( - + col2 AS INTEGER ) + - col2 * col1 FROM tab1
----
-1440
-3264
-354

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7534
SELECT col2 DIV + ( - col0 ) + CAST( + col0 AS SIGNED ) col2 FROM tab0
----
12
87
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7534
SELECT col2 / + ( - col0 ) + CAST ( + col0 AS INTEGER ) col2 FROM tab0
----
12
87
96

query I rowsort
SELECT DISTINCT ( - col1 ) * col2 - col2 AS col0 FROM tab2 WHERE ( ( ( + 52 ) >= ( NULL ) ) )
----

query I rowsort
SELECT ALL + 57 + col1 AS col0 FROM tab0
----
138
58
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7537
SELECT ALL - 11 DIV - + 43 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL - 11 / - + 43 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + - 23 NOT BETWEEN 39 - + + col1 + ( 14 ) / 29 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN ( 10 ) AND 53
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT SUM( - col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7540
SELECT SUM ( - col2 ) AS col1 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> + 29 + - 64
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) col0 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT ALL col1 * - 20 * + col1, col2 AS col0 FROM tab1
----
-3920
96
-44180
68
-500
59

query I rowsort
SELECT DISTINCT 81 * - 56 FROM tab0
----
-4536

query II rowsort
SELECT col1, col1 AS col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7546
SELECT ALL CAST( NULL AS SIGNED ) / + COUNT( * ) / - ( 61 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL CAST ( NULL AS INTEGER ) / + COUNT ( * ) / - ( 61 ) FROM tab1
----
NULL

query I rowsort
SELECT + col2 * + - 69 FROM tab1 AS cor0
----
-4071
-4692
-6624

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * + col1 <= NULL
----

query I rowsort
SELECT 7 * col2 + + 40 FROM tab2
----
201
320
446

query III rowsort
SELECT * FROM tab1 WHERE NULL > ( - ( + + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE ( NOT ( 44 ) IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-7551
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE ( NOT ( 44 ) IS NULL )
----
3

query I rowsort
SELECT col2 - - 3 FROM tab1 WHERE ( - col1 ) NOT IN ( - col1 * + + col2 )
----
62
71
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7553
SELECT - MIN( + ( CAST( NULL AS DECIMAL ) ) ) FROM tab2 WHERE NULL BETWEEN 84 + - + col1 AND ( + 20 * col2 / + 15 + - col2 * - - col1 * col1 + - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7553
SELECT - MIN ( + ( CAST ( NULL AS REAL ) ) ) FROM tab2 WHERE NULL BETWEEN 84 + - + col1 AND ( + 20 * col2 / + 15 + - col2 * - - col1 * col1 + - 46 )
----
NULL

query I rowsort
SELECT ALL ( col0 ) + col1 AS col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7555
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col2 * + col0 + 10 - + col0 * - CAST( NULL AS SIGNED ) ) < ( + 25 + - + 46 * + ( col1 ) * col2 )
----

skipif mysql # not compatible
query III rowsort label-7555
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col2 * + col0 + 10 - + col0 * - CAST ( NULL AS INTEGER ) ) < ( + 25 + - + 46 * + ( col1 ) * col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7556
SELECT DISTINCT COUNT( + - col0 ) * - + CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7556
SELECT DISTINCT COUNT ( + - col0 ) * - + CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 62 ) * - 82 col0 FROM tab0 AS cor0
----
5084
5084
5084

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT ALL MAX( ALL + + ( + + ( - col0 ) ) ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL MAX ( ALL + + ( + + ( - col0 ) ) ) AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7559
SELECT * FROM tab0 AS cor0 WHERE NULL <= + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7559
SELECT * FROM tab0 AS cor0 WHERE NULL <= + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT - COUNT( * ) * - - 23 + - 70 FROM tab0 AS cor0
----
-139

skipif mysql # not compatible
query I rowsort label-7560
SELECT - COUNT ( * ) * - - 23 + - 70 FROM tab0 AS cor0
----
-139

query I rowsort
SELECT ALL ( 35 ) FROM tab1
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT DISTINCT - 71 * MIN( DISTINCT + col2 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT - 71 * MIN ( DISTINCT + col2 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + col0 - + col2 AS col2 FROM tab0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7564
SELECT + col0 - - 27 + + - 32 DIV - col0 + - - col0 FROM tab1
----
129
197
209

skipif mysql # not compatible
query I rowsort label-7564
SELECT + col0 - - 27 + + - 32 / - col0 + - - col0 FROM tab1
----
129
197
209

query I rowsort
SELECT ALL - col1 + 72 * - col1 FROM tab1
----
-1022
-3431
-365

query I rowsort
SELECT DISTINCT col2 + - + col0 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7567
SELECT DISTINCT + CAST( - col0 AS SIGNED ) + - - 97 + - + CAST( NULL AS SIGNED ) * 83 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( + - 76 ) AND 59
----

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) + - - 97 + - + CAST ( NULL AS INTEGER ) * 83 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( + - 76 ) AND 59
----

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7569
SELECT DISTINCT 51 * + + col2 - + CAST( NULL AS SIGNED ) - col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT 51 * + + col2 - + CAST ( NULL AS INTEGER ) - col2 FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - col1 ) > NULL
----

query I rowsort
SELECT col1 * - col1 * - - 28 AS col2 FROM tab1
----
-5488
-61852
-700

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7572
SELECT 20 * ( + CAST( NULL AS DECIMAL ) ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7572
SELECT 20 * ( + CAST ( NULL AS REAL ) ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 61 + 87 FROM tab0 WHERE NOT + - 16 IS NULL
----
26
26
26

query I rowsort
SELECT - - 87 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7575
SELECT DISTINCT CAST( - 95 AS SIGNED ) * + col0 AS col2 FROM tab2
----
-4370
-6080
-7125

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT CAST ( - 95 AS INTEGER ) * + col0 AS col2 FROM tab2
----
-4370
-6080
-7125

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IS NOT NULL AND NULL < + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 < - col1 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, ( - - col0 ) FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT DISTINCT + - 30 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7580
SELECT - col0 DIV col1 + 22 * col0 AS col0 FROM tab2 AS cor0
----
1012
1408
1649

skipif mysql # not compatible
query I rowsort label-7580
SELECT - col0 / col1 + 22 * col0 AS col0 FROM tab2 AS cor0
----
1012
1408
1649

query I rowsort
SELECT col1 * 69 AS col0 FROM tab2 AS cor0
----
3519
4623
5313

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7582
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE NULL = CAST( NULL AS DECIMAL ) * - + col0 * - - ( col0 )
----

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE NULL = CAST ( NULL AS REAL ) * - + col0 * - - ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT MIN( - 35 ) AS col0 FROM tab0 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-7583
SELECT MIN ( - 35 ) AS col0 FROM tab0 cor0
----
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-7584
SELECT + 53 AS col0, col1 DIV col1 AS col1 FROM tab2 AS cor0
----
53
1
53
1
53
1

skipif mysql # not compatible
query II rowsort label-7584
SELECT + 53 AS col0, col1 / col1 AS col1 FROM tab2 AS cor0
----
53
1
53
1
53
1

query I rowsort
SELECT DISTINCT + - ( + 14 ) FROM tab1 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-7586
SELECT DISTINCT 65 * COUNT( * ) AS col2, + COUNT( * ) col1 FROM tab0 AS cor0
----
195
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7586
SELECT DISTINCT 65 * COUNT ( * ) AS col2, + COUNT ( * ) col1 FROM tab0 AS cor0
----
195
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 21 > NULL
----

query I rowsort
SELECT ALL + - 22 * + col2 AS col1 FROM tab0 AS cor0
----
-1034
-2178
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT + 90 * COUNT( * ) AS col0 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT + 90 * COUNT ( * ) AS col0 FROM tab0
----
270

query III rowsort
SELECT ALL * FROM tab2 WHERE - 13 IS NULL
----

query I rowsort
SELECT ALL - col0 * - 39 * - col1 AS col0 FROM tab1
----
-16575
-166803
-27846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7592
SELECT DISTINCT MIN( col1 ) * 98 * - CAST( - - ( + + ( ( - MAX( ALL + col2 ) ) ) ) AS SIGNED ) FROM tab0
----
9702

skipif mysql # not compatible
query I rowsort label-7592
SELECT DISTINCT MIN ( col1 ) * 98 * - CAST ( - - ( + + ( ( - MAX ( ALL + col2 ) ) ) ) AS INTEGER ) FROM tab0
----
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT 96 + + COUNT( * ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-7593
SELECT 96 + + COUNT ( * ) FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT ALL - SUM( col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL - SUM ( col1 ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL + 11 + + - 64 FROM tab0
----
-53
-53
-53

query I rowsort
SELECT ALL + 42 * - + col2 + - - ( + col2 ) + + 45 AS col2 FROM tab1 WHERE 32 - - col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7597
SELECT ALL - col0 DIV + col0 + + col2 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-7597
SELECT ALL - col0 / + col0 + + col2 FROM tab2
----
22
39
57

onlyif mysql # DIV for integer division: 
query I rowsort label-7598
SELECT + 97 DIV + ( + + 87 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7598
SELECT + 97 / + ( + + 87 ) FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT - COUNT( * ) - + SUM( DISTINCT 3 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-7599
SELECT - COUNT ( * ) - + SUM ( DISTINCT 3 ) FROM tab2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7600
SELECT DISTINCT + col2 DIV + + col0 + + col0 AS col1 FROM tab0 AS cor0
----
18
87
98

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT + col2 / + + col0 + + col0 AS col1 FROM tab0 AS cor0
----
18
87
98

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL > - col0 * - col1
----

query I rowsort
SELECT DISTINCT + col2 - 23 FROM tab2 AS cor0
----
0
17
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7603
SELECT - 66 * + - 0 * + 22 + 69 + + 79 * SUM( + - col1 ) * + - ( ( CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7603
SELECT - 66 * + - 0 * + 22 + 69 + + 79 * SUM ( + - col1 ) * + - ( ( CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7604
SELECT DISTINCT - - MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL = 11 * + + ( + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT - - MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL = 11 * + + ( + 9 )
----
NULL

query II rowsort
SELECT - col2 + + + 74 * + col0 AS col1, col2 AS col1 FROM tab2 AS cor0
----
3381
23
4696
40
5492
58

query I rowsort
SELECT ALL - col0 * - + col1 * - col2 FROM tab0 cor0
----
-18270
-57105
-9603

query I rowsort
SELECT DISTINCT + 81 - - col1 * + col1 + col1 FROM tab1 cor0
----
111
2337
291

query I rowsort
SELECT + col1 * + + col2 AS col1 FROM tab0 AS cor0 WHERE + col0 * - - 90 NOT IN ( + col0 )
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7609
SELECT DISTINCT - col2 DIV col0 col2 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7609
SELECT DISTINCT - col2 / col0 col2 FROM tab0
----
-1
-3
0

query II rowsort
SELECT + col0 * + 38 AS col1, + col0 FROM tab0
----
3306
87
3686
97
570
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT ALL - COUNT( * ) FROM tab2 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL - COUNT ( * ) FROM tab2 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7613
SELECT ALL - col0 FROM tab2 AS cor0 WHERE ( + 28 * - col1 - CAST( NULL AS SIGNED ) + - - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL - col0 FROM tab2 AS cor0 WHERE ( + 28 * - col1 - CAST ( NULL AS INTEGER ) + - - col1 ) IS NOT NULL
----

query I rowsort
SELECT + col1 * - 68 FROM tab2
----
-3468
-4556
-5236

query I rowsort
SELECT DISTINCT - + 18 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

query I rowsort
SELECT ALL - 46 AS col2 FROM tab1 cor0
----
-46
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7617
SELECT DISTINCT - + CAST( - 0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT - + CAST ( - 0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 <> - - 7
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> ( + col1 ) + + + col0
----

query II rowsort
SELECT 64, - col0 AS col1 FROM tab1 AS cor0
----
64
-51
64
-85
64
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT DISTINCT - - 48 + - - COUNT( * ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT - - 48 + - - COUNT ( * ) FROM tab1 AS cor0
----
51

query II rowsort
SELECT col0, ( + ( + - col2 ) ) AS col1 FROM tab0
----
15
-47
87
-10
97
-99

query II rowsort
SELECT 10 AS col0, + ( - col0 ) AS col0 FROM tab2
----
10
-46
10
-64
10
-75

query I rowsort
SELECT DISTINCT - col1 + + 31 AS col1 FROM tab0
----
-50
10
30

query I rowsort
SELECT ALL col0 + + col2 * - ( col1 ) * + col2 + + col1 AS col1 FROM tab2
----
-123059
-225246
-26882

query I rowsort
SELECT ALL + 43 FROM tab2 WHERE NULL IS NULL
----
43
43
43

query I rowsort
SELECT DISTINCT + 26 * - col1 + + col2 FROM tab2
----
-1303
-1684
-1962

query II rowsort
SELECT ALL 88, - col1 AS col0 FROM tab1
----
88
-14
88
-47
88
-5

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT col2 + - - col1 + 97 * 75 IN ( - + 21 + - col2 * 21 + col2, + col0 )
----
59
68
96

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( ( NOT NULL > NULL ) )
----

query III rowsort
SELECT * FROM tab2 WHERE - 10 BETWEEN NULL AND - - col2
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - 64 <> - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT - COUNT( * ) * + ( + MAX( + - col0 ) ) + - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-7635
SELECT - COUNT ( * ) * + ( + MAX ( + - col0 ) ) + - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
129

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 = + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 33 IN ( col0, + ( - - col2 ) * col1 - ( + 37 ) + - col0 * col2, + - 69 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7638
SELECT + + col1 DIV - + 78 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7638
SELECT + + col1 / - + 78 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT DISTINCT + MIN( + ( + col1 ) ) * COUNT( * ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7639
SELECT DISTINCT + MIN ( + ( + col1 ) ) * COUNT ( * ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT 48 - - col1 AS col0 FROM tab2
----
115
125
99

query I rowsort
SELECT ALL - 28 * + col1 AS col1 FROM tab0
----
-2268
-28
-588

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 98 * - 90 + + col2 <= 34
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 9 * 66 AS col1 FROM tab1 cor0
----
-594

query II rowsort
SELECT col2, col0 + + 25 AS col0 FROM tab0 AS cor0
----
10
112
47
40
99
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7646
SELECT + CAST( - COUNT( * ) AS SIGNED ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7646
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT - - MIN( - col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7647
SELECT - - MIN ( - col1 ) AS col1 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT - col0 AS col0, ( - ( - + col1 ) ) AS col2, + 4 AS col0 FROM tab0 WHERE NOT NULL <= - - 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7649
SELECT COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT - 40 * + - COUNT( * ) FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT - 40 * + - COUNT ( * ) FROM tab1 AS cor0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-7651
SELECT + 20 DIV - + col1 AS col0 FROM tab1 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7651
SELECT + 20 / - + col1 AS col0 FROM tab1 AS cor0
----
-1
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT DISTINCT + SUM( DISTINCT - 22 ) * - COUNT( * ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT + SUM ( DISTINCT - 22 ) * - COUNT ( * ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT - - 1 * - - 21 AS col0 FROM tab0 cor0
----
21
21
21

query I rowsort
SELECT ALL ( - 61 ) + - col0 AS col1 FROM tab1
----
-112
-146
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT DISTINCT 65 + + + COUNT( * ) FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT 65 + + + COUNT ( * ) FROM tab0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 25 * - + col1 + - col2 * + + col2 FROM tab0
----
-4234
-625
-9826

query I rowsort
SELECT ALL + col0 * + - col0 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT col2 + - - col0 AS col1 FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT col0 + 70 FROM tab1 AS cor0
----
121
155
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT + 86 + + COUNT( * ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-7661
SELECT + 86 + + COUNT ( * ) FROM tab0 AS cor0
----
89

query I rowsort
SELECT DISTINCT + 83 * + + col2 * - - col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 8
----

query II rowsort
SELECT ( 95 ) * - 70, col0 FROM tab1 AS cor0
----
-6650
51
-6650
85
-6650
91

query I rowsort
SELECT DISTINCT + - 21 * + - col2 AS col2 FROM tab1 AS cor0
----
1239
1428
2016

query I rowsort
SELECT DISTINCT col2 + - 37 + - col1 * - 80 + 10 AS col0 FROM tab2
----
4076
5391
6173

onlyif mysql # aggregate syntax: 
query II rowsort label-7667
SELECT DISTINCT COUNT( * ) AS col1, - 58 AS col1 FROM tab0
----
3
-58

skipif mysql # not compatible
query II rowsort label-7667
SELECT DISTINCT COUNT ( * ) AS col1, - 58 AS col1 FROM tab0
----
3
-58

query I rowsort
SELECT - col1 * + - col2 - - col1 FROM tab1
----
1358
300
3243

query I rowsort
SELECT col1 + col1 + 15 * 19 AS col1 FROM tab0 AS cor0
----
287
327
447

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT + 32 + + + COUNT( - 57 ) col0 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7670
SELECT + 32 + + + COUNT ( - 57 ) col0 FROM tab1 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT DISTINCT + + COUNT( * ) - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT + + COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - - 40 NOT IN ( - + col2, + 98 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 - - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT ( COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7674
SELECT ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7675
SELECT DISTINCT 93 * + + 76 AS col1, + COUNT( * ) FROM tab0 AS cor0
----
7068
3

skipif mysql # not compatible
query II rowsort label-7675
SELECT DISTINCT 93 * + + 76 AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
7068
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT ALL + - COUNT( * ) * - + 34 * COUNT( * ) - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - ( + 31 ) + - col0 * + col1 * + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL + - COUNT ( * ) * - + 34 * COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - ( + 31 ) + - col0 * + col1 * + col2 >= NULL
----
0

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT 48 IS NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT + 1 * + col2 - - 13 IS NOT NULL
----

query II rowsort
SELECT - ( - + col2 ), - 53 + - - 31 * - + col2 AS col1 FROM tab1
----
59
-1882
68
-2161
96
-3029

query I rowsort
SELECT DISTINCT + col0 * col0 * + - col2 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT ALL - MIN( DISTINCT + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - MIN ( DISTINCT + col1 ) FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT MIN( DISTINCT col1 ) * + + ( - 46 ) AS col0 FROM tab0 WHERE NOT NULL <> - col1 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT MIN ( DISTINCT col1 ) * + + ( - 46 ) AS col0 FROM tab0 WHERE NOT NULL <> - col1 * 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7684
SELECT ALL - COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT ALL + 32 DIV - - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL + 32 / - - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL MIN( + + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL MIN ( + + col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT - col1 * + + 39 FROM tab2
----
-1989
-2613
-3003

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 85 = NULL
----

query I rowsort
SELECT + - ( + 44 ) AS col0 FROM tab2 AS cor0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT DISTINCT MIN( DISTINCT - 68 ) AS col0 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT MIN ( DISTINCT - 68 ) AS col0 FROM tab0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT - SUM( - - ( - - col2 ) ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7691
SELECT - SUM ( - - ( - - col2 ) ) AS col2 FROM tab0
----
-156

query II rowsort
SELECT DISTINCT col2 + col2, - 11 + col2 AS col0 FROM tab2
----
116
47
46
12
80
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + - + col0 col0, + col1 FROM tab1
----
-23
47
-26
5
45
14

query I rowsort
SELECT DISTINCT + 77 + + col2 AS col1 FROM tab0
----
124
176
87

query II rowsort
SELECT DISTINCT - col0 + + - col1, 83 AS col0 FROM tab0
----
-108
83
-96
83
-98
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT - - COUNT( * ) + + ( - - COUNT( * ) ) * + COUNT( - col2 ) col0 FROM tab0 cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7696
SELECT - - COUNT ( * ) + + ( - - COUNT ( * ) ) * + COUNT ( - col2 ) col0 FROM tab0 cor0
----
12

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - - 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT ALL - col0 / - + 87 * + CAST( NULL AS SIGNED ) + - ( - col2 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL - col0 / - + 87 * + CAST ( NULL AS INTEGER ) + - ( - col2 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 84 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT - + SUM( DISTINCT - ( + + col0 ) ) col2 FROM tab0 AS cor0 WHERE NOT col0 + - 85 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7700
SELECT - + SUM ( DISTINCT - ( + + col0 ) ) col2 FROM tab0 AS cor0 WHERE NOT col0 + - 85 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7701
SELECT - 75 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7701
SELECT - 75 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 69 col1 FROM tab1 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT + COUNT( * ) FROM tab1 cor0 WHERE NOT ( ( ( NULL ) >= NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-7703
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( ( ( NULL ) >= NULL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT DISTINCT - MAX( - 51 ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT - MAX ( - 51 ) FROM tab0 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7705
SELECT + - CAST( + - 63 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-7705
SELECT + - CAST ( + - 63 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT - col2 * - 33 AS col0 FROM tab2
----
1320
1914
759

query I rowsort
SELECT DISTINCT col2 * + 71 FROM tab1
----
4189
4828
6816

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * - ( + col2 ) FROM tab2
----
1600
3364
529

query II rowsort
SELECT ALL col1, col0 FROM tab0 cor0
----
1
97
21
87
81
15

query I rowsort
SELECT ALL col0 * - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 14, ( - + ( + col2 ) ) + - 31 col1 FROM tab1 AS cor0
----
-14
-127
-14
-90
-14
-99

query I rowsort
SELECT ALL 19 + - col0 * - - 20 * - col1 FROM tab0 AS cor0
----
1959
24319
36559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7714
SELECT 79 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 63 + CAST( - + 26 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-7714
SELECT 79 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 63 + CAST ( - + 26 AS INTEGER ) <= NULL
----

query I rowsort
SELECT DISTINCT 84 + + + col2 FROM tab2
----
107
124
142

query I rowsort
SELECT ( 49 ) * + col2 FROM tab0
----
2303
4851
490

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7717
SELECT + CAST( AVG ( + 26 ) AS SIGNED ) + - - 83, - 35 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL > - 80 )
----
NULL
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7717
SELECT + CAST ( AVG ( + 26 ) AS INTEGER ) + - - 83, - 35 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL > - 80 )
----
NULL
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT 32 * COUNT( * ) * - COUNT( * ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-7718
SELECT 32 * COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-288

query I rowsort
SELECT 13 * col2 AS col0 FROM tab1 AS cor0
----
1248
767
884

onlyif mysql # aggregate syntax: 
query II rowsort label-7720
SELECT ALL - MAX( DISTINCT + - col1 ) AS col1, 9 AS col2 FROM tab0 AS cor0
----
1
9

skipif mysql # not compatible
query II rowsort label-7720
SELECT ALL - MAX ( DISTINCT + - col1 ) AS col1, 9 AS col2 FROM tab0 AS cor0
----
1
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 61 col0 FROM tab2 AS cor0
----
1403
2440
3538

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - 78 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - 78 IS NOT NULL
----
3

query I rowsort
SELECT - 65 * - + col1 + + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
1006
3123
384

onlyif mysql # DIV for integer division: 
query I rowsort label-7724
SELECT + + col1 DIV col0 + + 1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7724
SELECT + + col1 / col0 + + 1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - col0 + 51 + - + col0 * col1 AS col2 FROM tab2 AS cor0
----
-2341
-4941
-5049

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT DISTINCT - 50 + COUNT( * ) * + 36 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT - 50 + COUNT ( * ) * + 36 FROM tab0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7727
SELECT DISTINCT + ( - 82 ) / - col2 * + CAST( NULL AS SIGNED ) / col1 + + - col2 + - 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-7727
SELECT DISTINCT + ( - 82 ) / - col2 * + CAST ( NULL AS INTEGER ) / col1 + + - col2 + - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query I rowsort
SELECT - col1 + + col0 + + 47 FROM tab0
----
-19
113
143

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7729
SELECT DISTINCT - 38 * - + 58 * + CAST( NULL AS SIGNED ) + - - CAST( - col1 AS DECIMAL ) / - + col2 + + col2 * col2 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7729
SELECT DISTINCT - 38 * - + 58 * + CAST ( NULL AS INTEGER ) + - - CAST ( - col1 AS REAL ) / - + col2 + + col2 * col2 col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 - 95 FROM tab0
----
-8
-80
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT DISTINCT + MIN( 70 ) - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT + MIN ( 70 ) - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT + 35 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-7732
SELECT + 35 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
105

query II rowsort
SELECT ALL - col0 AS col1, col2 AS col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT + MAX( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7734
SELECT + MAX ( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT DISTINCT + COUNT( - + 22 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7735
SELECT DISTINCT + COUNT ( - + 22 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 + col2 + - + col1 + col1 * + 45 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND 63
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7737
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT - COUNT( * ) * + - COUNT( + col1 ) * COUNT( * ) AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-7738
SELECT - COUNT ( * ) * + - COUNT ( + col1 ) * COUNT ( * ) AS col0 FROM tab2
----
27

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NULL ) = + 15 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 44 > + 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1 AS col0, - 20 AS col0 FROM tab0
----
1
-20
21
-20
81
-20

query I rowsort
SELECT - 63 * - 46 FROM tab0
----
2898
2898
2898

query I rowsort
SELECT DISTINCT + 90 * + - 6 FROM tab1
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT DISTINCT - SUM( + 36 ) AS col2 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-7744
SELECT DISTINCT - SUM ( + 36 ) AS col2 FROM tab0
----
-108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 * col2 col0 FROM tab1 cor0
----
4602
5304
7488

query I rowsort
SELECT ALL - 74 - + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - ( - - 86 ) AS col1 FROM tab0 AS cor0
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7748
SELECT * FROM tab2 AS cor0 WHERE NOT 2 * + col1 NOT BETWEEN - CAST( col2 AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-7748
SELECT * FROM tab2 AS cor0 WHERE NOT 2 * + col1 NOT BETWEEN - CAST ( col2 AS INTEGER ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7749
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT col1 * 67 + + + 68 FROM tab0
----
135
1475
5495

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL = NULL
----

query II rowsort
SELECT ALL 65, col2 FROM tab2
----
65
23
65
40
65
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * - 67 * - ( - 66 ) * + col1 * + col1 + 19 < - 40 * 34 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col2 + + + col0 - col2 FROM tab0 cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7755
SELECT ALL + - 44, - ( + col2 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-44
NULL
-44
NULL
-44
NULL

skipif mysql # not compatible
query II rowsort label-7755
SELECT ALL + - 44, - ( + col2 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-44
NULL
-44
NULL
-44
NULL

query II rowsort
SELECT - 9 AS col0, col1 FROM tab0 AS cor0
----
-9
1
-9
21
-9
81

query I rowsort
SELECT DISTINCT - 74 * - 80 FROM tab1 AS cor0
----
5920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7758
SELECT - CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7758
SELECT - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - 30 AS col2 FROM tab2 cor0
----
-30
-30
-30

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE - 64 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL 88 * + 44 FROM tab1
----
3872
3872
3872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7762
SELECT ALL - MAX( col1 ) / CAST( NULL AS SIGNED ) * + + ( - MIN( + + col0 ) ) AS col1 FROM tab2 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL - MAX ( col1 ) / CAST ( NULL AS INTEGER ) * + + ( - MIN ( + + col0 ) ) AS col1 FROM tab2 WHERE - col2 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE 37 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT 84 * - COUNT( * ) + - + MAX( + ( + + ( ( - 8 ) ) ) ) + 1 AS col2 FROM tab1 cor0
----
-243

skipif mysql # not compatible
query I rowsort label-7764
SELECT 84 * - COUNT ( * ) + - + MAX ( + ( + + ( ( - 8 ) ) ) ) + 1 AS col2 FROM tab1 cor0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7765
SELECT - 95 + + col2 AS col0, - col1 * - CAST( NULL AS SIGNED ) * - col0 + + 46 + + 91 FROM tab2 AS cor0
----
-37
NULL
-55
NULL
-72
NULL

skipif mysql # not compatible
query II rowsort label-7765
SELECT - 95 + + col2 AS col0, - col1 * - CAST ( NULL AS INTEGER ) * - col0 + + 46 + + 91 FROM tab2 AS cor0
----
-37
NULL
-55
NULL
-72
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7766
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE - 66 >= ( - 15 ) * CAST( - col0 AS SIGNED ) + + CAST( NULL AS SIGNED ) - - col1 + + 92 * - - 57 - - + ( - + col0 ) + + 80 * - - col1
----
0

skipif mysql # not compatible
query I rowsort label-7766
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE - 66 >= ( - 15 ) * CAST ( - col0 AS INTEGER ) + + CAST ( NULL AS INTEGER ) - - col1 + + 92 * - - 57 - - + ( - + col0 ) + + 80 * - - col1
----
0

query I rowsort
SELECT DISTINCT + 90 * - ( + - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT + - MIN( DISTINCT - ( 76 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
76

skipif mysql # not compatible
query I rowsort label-7768
SELECT + - MIN ( DISTINCT - ( 76 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7769
SELECT + SUM( - CAST( NULL AS SIGNED ) ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7769
SELECT + SUM ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + - col0, col1 AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7772
SELECT + - COUNT( * ) * - - CAST( + MAX( ALL col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-7772
SELECT + - COUNT ( * ) * - - CAST ( + MAX ( ALL col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-141

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 85 + + + ( - col2 ) IN ( col2 )
----

query II rowsort
SELECT col0 AS col0, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT + ( - COUNT( * ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7775
SELECT + ( - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ( 15 ) AS col1 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT + 21 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * - + col1 * col0 AND NULL
----

query I rowsort
SELECT ( 5 ) FROM tab0
----
5
5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7779
SELECT ALL - MIN( ALL - col0 ) AS col1, - COUNT( - - CAST( + col0 AS SIGNED ) ) + + 87 AS col2 FROM tab2
----
75
84

skipif mysql # not compatible
query II rowsort label-7779
SELECT ALL - MIN ( ALL - col0 ) AS col1, - COUNT ( - - CAST ( + col0 AS INTEGER ) ) + + 87 AS col2 FROM tab2
----
75
84

query I rowsort
SELECT + 31 * - col2 FROM tab0 WHERE NOT NULL NOT IN ( - col2, col2, + + 22 * + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT 22 * + COUNT( DISTINCT - col0 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7781
SELECT 22 * + COUNT ( DISTINCT - col0 ) AS col2 FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 col2 FROM tab0
----
-12

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 98 - + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7784
SELECT - col0 * - col2 + - 64 DIV - col1 + + + 4 FROM tab1
----
4904
5031
6193

skipif mysql # not compatible
query I rowsort label-7784
SELECT - col0 * - col2 + - 64 / - col1 + + + 4 FROM tab1
----
4904
5031
6193

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT ALL - + 24 * + COUNT( * ) + + 62 + - 87 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-241

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL - + 24 * + COUNT ( * ) + + 62 + - 87 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 + - + col2 col1 FROM tab2
----
-103
-68
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-7787
SELECT - col0 - - - col0 DIV 28 * - - col2 col2 FROM tab0 AS cor0
----
-117
-15
-394

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7787
SELECT - col0 - - - col0 / 28 * - - col2 col2 FROM tab0 AS cor0
----
-117
-15
-394

query I rowsort
SELECT DISTINCT - 39 AS col2 FROM tab1 cor0
----
-39

query I rowsort
SELECT + 98 * 48 + col1 + 29 FROM tab2 AS cor0
----
4784
4800
4810

query I rowsort
SELECT ALL - + col0 * + ( 66 ) FROM tab0 AS cor0
----
-5742
-6402
-990

query I rowsort
SELECT ALL + col2 + + - 16 AS col2 FROM tab1 AS cor0
----
43
52
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT COUNT( - 83 ) + 44 AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7792
SELECT COUNT ( - 83 ) + 44 AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT - 2 * - - col1 * col1 * col2 AS col1 FROM tab2 cor0
----
-119646
-474320
-520724

query II rowsort
SELECT DISTINCT + 59, 52 + + + 13 AS col1 FROM tab1 AS cor0
----
59
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT DISTINCT - 33 * - - COUNT( * ) col0 FROM tab1 cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7795
SELECT DISTINCT - 33 * - - COUNT ( * ) col0 FROM tab1 cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + - col0 col1 FROM tab1
----
-4368
-510
-765

onlyif mysql # DIV for integer division: 
query I rowsort label-7797
SELECT ALL 97 + - + col1 + - col1 DIV - ( col2 ) FROM tab1
----
50
83
92

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL 97 + - + col1 + - col1 / - ( col2 ) FROM tab1
----
50
83
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7798
SELECT ALL * FROM tab1 WHERE NOT - - CAST( + + col0 AS SIGNED ) + - + ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7798
SELECT ALL * FROM tab1 WHERE NOT - - CAST ( + + col0 AS INTEGER ) + - + ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT ALL + COUNT( * ) FROM tab0 WHERE - 95 + - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL + COUNT ( * ) FROM tab0 WHERE - 95 + - col1 IS NOT NULL
----
3

query I rowsort
SELECT ALL + 32 * col0 + - - col1 FROM tab1
----
1646
2725
2959

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE col2 * + col2 * - 55 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + col0 + - 89 AS col0 FROM tab1 AS cor0
----
4807
4926
6099

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 - + 4 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 51 + - + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7805
SELECT DISTINCT + + col2 DIV + - col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT + + col2 / + - col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT DISTINCT col2 * + 77 AS col2 FROM tab2
----
1771
3080
4466

query I rowsort
SELECT ALL 59 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query II rowsort
SELECT - col2 * col1, col0 FROM tab1 cor0
----
-1344
51
-295
85
-3196
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7809
SELECT CAST( - col1 AS SIGNED ) AS col2, - col2 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

skipif mysql # not compatible
query II rowsort label-7809
SELECT CAST ( - col1 AS INTEGER ) AS col2, - col2 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7810
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT ALL - 29 * + 36 + + COUNT( * ) FROM tab2 cor0
----
-1041

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL - 29 * + 36 + + COUNT ( * ) FROM tab2 cor0
----
-1041

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 45 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7813
SELECT + col1 + - col1 / 0 * 88 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - + CAST( + col0 AS DECIMAL ) * col0 * - - 39 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7813
SELECT + col1 + - col1 / 0 * 88 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - + CAST ( + col0 AS REAL ) * col0 * - - 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT DISTINCT + COUNT( * ) + - + COUNT( * ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7814
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( * ) col2 FROM tab2
----
0

query I rowsort
SELECT - 6 + 88 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT + COUNT( - + col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7816
SELECT + COUNT ( - + col2 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL + col1 + - 34 + + 31 FROM tab1
----
11
2
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7818
SELECT - CAST( + 92 AS SIGNED ) FROM tab1
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-7818
SELECT - CAST ( + 92 AS INTEGER ) FROM tab1
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT + ( + ( MAX( - col1 ) ) ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7819
SELECT + ( + ( MAX ( - col1 ) ) ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT ( - ( + col2 ) ) * 20 FROM tab2
----
-1160
-460
-800

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab2 WHERE NOT - 74 * + - 32 IS NOT NULL
----

query II rowsort
SELECT 42, + col0 AS col1 FROM tab1
----
42
51
42
85
42
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 59 + - 75 AND + - col0
----

query I rowsort
SELECT ALL + 24 AS col1 FROM tab0 cor0
----
24
24
24

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT + 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7826
SELECT COUNT( * ) AS col2, - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-7826
SELECT COUNT ( * ) AS col2, - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
0

query II rowsort
SELECT - 53 + 20 + - col2 AS col0, 13 + + 78 FROM tab0 cor0
----
-132
91
-43
91
-80
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT DISTINCT - COUNT( * ) + ( + - COUNT( * ) ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-18

skipif mysql # not compatible
query I rowsort label-7828
SELECT DISTINCT - COUNT ( * ) + ( + - COUNT ( * ) ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL + ( SUM( ALL + col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL + ( SUM ( ALL + col2 ) ) FROM tab0
----
156

query I rowsort
SELECT - 74 + 90 * - 20 + - - ( + 83 ) - - ( - 35 ) FROM tab1
----
-1826
-1826
-1826

query I rowsort
SELECT + 59 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT + MIN( DISTINCT + 22 ) + - + COUNT( * ) AS col0 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-7832
SELECT + MIN ( DISTINCT + 22 ) + - + COUNT ( * ) AS col0 FROM tab0
----
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= + col1 * - 98 * - 67
----

query I rowsort
SELECT DISTINCT 83 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7835
SELECT ALL col0 * + col1 + - - 10 + 16 + + col0 AS col2, 12 + - col1 DIV + col2 AS col1 FROM tab2 AS cor0
----
2418
10
5018
11
5126
11

skipif mysql # not compatible
query II rowsort label-7835
SELECT ALL col0 * + col1 + - - 10 + 16 + + col0 AS col2, 12 + - col1 / + col2 AS col1 FROM tab2 AS cor0
----
2418
10
5018
11
5126
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7836
SELECT ALL + CAST( NULL AS SIGNED ) * + + col2 + + + col0 - - 3 AS col2, col1 - + ( - col0 ) FROM tab1 AS cor0
----
NULL
138
NULL
65
NULL
90

skipif mysql # not compatible
query II rowsort label-7836
SELECT ALL + CAST ( NULL AS INTEGER ) * + + col2 + + + col0 - - 3 AS col2, col1 - + ( - col0 ) FROM tab1 AS cor0
----
NULL
138
NULL
65
NULL
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT + COUNT( * ) FROM tab1 cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7837
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT + + 15 * - COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7838
SELECT + + 15 * - COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-7839
SELECT col2 - 39 + - col2 + + + 24 DIV 43 + + + col1 AS col1 FROM tab2 AS cor0
----
12
28
38

skipif mysql # not compatible
query I rowsort label-7839
SELECT col2 - 39 + - col2 + + + 24 / 43 + + + col1 AS col1 FROM tab2 AS cor0
----
12
28
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NOT 48 - - col2 NOT BETWEEN + + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7840
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT 48 - - col2 NOT BETWEEN + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT + 69 - + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7841
SELECT + 69 - + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
72

query I rowsort
SELECT 85 * 59 - + col2 FROM tab1
----
4919
4947
4956

onlyif mysql # aggregate syntax: 
query II rowsort label-7843
SELECT 83 - - + MAX( col2 ) - - MIN( col2 ), - 46 AS col1 FROM tab2
----
164
-46

skipif mysql # not compatible
query II rowsort label-7843
SELECT 83 - - + MAX ( col2 ) - - MIN ( col2 ), - 46 AS col1 FROM tab2
----
164
-46

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT ( - 81 ) IS NULL AND NOT + col2 - + 88 IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7845
SELECT - 74 DIV - 21 - col1 + - 93 * col2 AS col0 FROM tab1
----
-5489
-6368
-8939

skipif mysql # not compatible
query I rowsort label-7845
SELECT - 74 / - 21 - col1 + - 93 * col2 AS col0 FROM tab1
----
-5489
-6368
-8939

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT DISTINCT - MAX( - col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT - MAX ( - col1 ) AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT + + ( - 10 ) FROM tab2 cor0
----
-10
-10
-10

query I rowsort
SELECT ALL + + 20 AS col0 FROM tab0 AS cor0
----
20
20
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7849
SELECT + 76 DIV 65 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7849
SELECT + 76 / 65 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - 51 * - col1 + ( + col1 ) + col1 AS col2 FROM tab0 AS cor0
----
1113
4293
53

query I rowsort
SELECT col0 * col0 + - 47 + ( - + col0 ) * - + col1 AS col1 FROM tab2 AS cor0
----
10603
4415
8977

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT DISTINCT - MIN( col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT - MIN ( col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7854
SELECT col2 DIV 80 * col0 FROM tab1 cor0
----
0
0
51

skipif mysql # not compatible
query I rowsort label-7854
SELECT col2 / 80 * col0 FROM tab1 cor0
----
0
0
51

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7856
SELECT ALL - 92 AS col1, + CAST( NULL AS SIGNED ) + + col1 + 86 + - col0 + + col0 * - col2 * - - 32 FROM tab2 AS cor0
----
-92
NULL
-92
NULL
-92
NULL

skipif mysql # not compatible
query II rowsort label-7856
SELECT ALL - 92 AS col1, + CAST ( NULL AS INTEGER ) + + col1 + 86 + - col0 + + col0 * - col2 * - - 32 FROM tab2 AS cor0
----
-92
NULL
-92
NULL
-92
NULL

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( NULL < col1 )
----

query I rowsort
SELECT ALL - col1 * - - col1 + 59 + - - col2 AS col2 FROM tab0
----
-372
-6455
157

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT ( - 11 IS NOT NULL )
----

query I rowsort
SELECT col1 * 98 + col1 AS col1 FROM tab1
----
1386
4653
495

query I rowsort
SELECT col2 + + - col1 AS col0 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7862
SELECT DISTINCT + MIN( DISTINCT 18 ) DIV + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT + MIN ( DISTINCT 18 ) / + COUNT ( * ) FROM tab0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7863
SELECT DISTINCT COUNT( * ) * + 1 * - SUM( + - col1 ) DIV + + 31 + - SUM( - + col0 ) FROM tab1
----
233

skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT COUNT ( * ) * + 1 * - SUM ( + - col1 ) / + + 31 + - SUM ( - + col0 ) FROM tab1
----
233

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT DISTINCT - + COUNT( * ) FROM tab0 AS cor0 WHERE 42 = - col2
----
0

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT - + COUNT ( * ) FROM tab0 AS cor0 WHERE 42 = - col2
----
0

query II rowsort
SELECT ( col1 ) AS col2, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 - col1 col1 FROM tab0
----
-34
26
46

query I rowsort
SELECT ALL + - 90 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT 31 + + col2 AS col1 FROM tab2 AS cor0
----
54
71
89

query I rowsort
SELECT col2 * + - col1 + + + col0 FROM tab1 AS cor0
----
-1293
-210
-3105

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < + ( - col2 ) + + 94
----

query I rowsort
SELECT 47 + + + col2 AS col2 FROM tab2 AS cor0
----
105
70
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7872
SELECT ALL - COUNT( * ) AS col2, 39 FROM tab0 AS cor0
----
-3
39

skipif mysql # not compatible
query II rowsort label-7872
SELECT ALL - COUNT ( * ) AS col2, 39 FROM tab0 AS cor0
----
-3
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col0 FROM tab0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ( - SUM( DISTINCT + col1 ) ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7874
SELECT ( - SUM ( DISTINCT + col1 ) ) AS col0 FROM tab2
----
-195

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7876
SELECT + CAST( + + col1 AS SIGNED ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7876
SELECT + CAST ( + + col1 AS INTEGER ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + ( + + col0 ) FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT + MIN( ALL - - col1 ) col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7878
SELECT + MIN ( ALL - - col1 ) col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE col1 * - col2 * + 66 IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7880
SELECT DISTINCT - col2 DIV - 77 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT - col2 / - 77 FROM tab1
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7881
SELECT DISTINCT 77 DIV col1 FROM tab0
----
0
3
77

skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT 77 / col1 FROM tab0
----
0
3
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT + 97 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-7882
SELECT + 97 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
100

query I rowsort
SELECT DISTINCT - + col1 * + - col2 * 81 FROM tab0 AS cor0
----
17010
308367
8019

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT DISTINCT 83 * 33 * SUM( ALL 10 ) FROM tab0 AS cor0
----
82170

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT 83 * 33 * SUM ( ALL 10 ) FROM tab0 AS cor0
----
82170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7885
SELECT ALL CAST( - AVG ( + ( 42 ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL CAST ( - AVG ( + ( 42 ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-42

query II rowsort
SELECT - + col2, + 69 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 70 ) col1 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT ALL + 35 * + + col1 FROM tab2 AS cor0
----
1785
2345
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT ALL COUNT( * ) + 60 col2 FROM tab1 cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7889
SELECT ALL COUNT ( * ) + 60 col2 FROM tab1 cor0
----
63

query I rowsort
SELECT ( - 10 ) AS col1 FROM tab0
----
-10
-10
-10

query II rowsort
SELECT col0, col1 AS col0 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT ALL 63 + - col1 FROM tab0
----
-18
42
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7893
SELECT - 10 FROM tab2 WHERE NULL NOT BETWEEN - 63 / col2 AND col0 - - + 12 + + CAST( - + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7893
SELECT - 10 FROM tab2 WHERE NULL NOT BETWEEN - 63 / col2 AND col0 - - + 12 + + CAST ( - + col2 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7894
SELECT SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7894
SELECT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7895
SELECT - - col1 - - CAST( col1 AS SIGNED ) + 72, col0 FROM tab2 WHERE - 74 * - 93 * - CAST( NULL AS SIGNED ) * + - col1 - 96 - - ( - CAST( NULL AS SIGNED ) ) * + 29 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7895
SELECT - - col1 - - CAST ( col1 AS INTEGER ) + 72, col0 FROM tab2 WHERE - 74 * - 93 * - CAST ( NULL AS INTEGER ) * + - col1 - 96 - - ( - CAST ( NULL AS INTEGER ) ) * + 29 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 AS col1, + col2 + + col0 + col0 FROM tab0 AS cor0
----
10
184
47
77
99
293

query I rowsort
SELECT 97 + + + col2 * 62 * col2 FROM tab1 AS cor0
----
215919
286785
571489

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 23 - + col2 * + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * 25 AS col0 FROM tab0 AS cor0
----
2175
2425
375

onlyif mysql # DIV for integer division: 
query I rowsort label-7900
SELECT + + col2 DIV 75 + + ( - 84 ) + + col1 FROM tab2 AS cor0
----
-17
-33
-7

skipif mysql # not compatible
query I rowsort label-7900
SELECT + + col2 / 75 + + ( - 84 ) + + col1 FROM tab2 AS cor0
----
-17
-33
-7

query I rowsort
SELECT + col2 + 77 AS col0 FROM tab2 cor0
----
100
117
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT DISTINCT - 47 + - COUNT( * ) FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT - 47 + - COUNT ( * ) FROM tab1
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-7903
SELECT DISTINCT + col1 DIV - 44 - ( - col0 ) - col1 + col2 AS col1 FROM tab1 AS cor0
----
111
133
139

skipif mysql # not compatible
query I rowsort label-7903
SELECT DISTINCT + col1 / - 44 - ( - col0 ) - col1 + col2 AS col1 FROM tab1 AS cor0
----
111
133
139

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + - 69 / col0 >= NULL
----

query I rowsort
SELECT + col0 - - 64 AS col2 FROM tab1 AS cor0
----
115
149
155

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT DISTINCT - + 31 - 11 - SUM( ALL - 67 ) + - 72 AS col0 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT - + 31 - 11 - SUM ( ALL - 67 ) + - 72 AS col0 FROM tab0 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT - MAX( ALL + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7907
SELECT - MAX ( ALL + col1 ) FROM tab1 AS cor0
----
-47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 < + + col1 - 76
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ALL - MAX( col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL - MAX ( col1 ) AS col2 FROM tab0
----
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( 50 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * - + 57 AS col0 FROM tab1
----
-3363
-3876
-5472

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 * 38 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * - col0 - 96 * - 94 - 45 FROM tab1 AS cor0
----
1754
6378
698

query II rowsort
SELECT col0, + col1 AS col0 FROM tab1 AS cor0
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 93 col0, 34 + + + col0 AS col2 FROM tab2 AS cor0
----
-93
109
-93
80
-93
98

query I rowsort
SELECT col0 - - ( 28 ) * ( + 94 + - col1 * col2 ) AS col2 FROM tab0
----
-103949
-3161
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7917
SELECT ALL CAST( NULL AS SIGNED ) * + 4 + 20 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL CAST ( NULL AS INTEGER ) * + 4 + 20 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 * col0 + - 27 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT DISTINCT COUNT( ALL 26 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT COUNT ( ALL 26 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT - col2 * + col0 + - col0 FROM tab2
----
-1104
-2624
-4425

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col2 * + 7 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col1 FROM tab0 WHERE NOT col1 * - 24 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * 25 FROM tab2
----
1150
1600
1875

onlyif mysql # DIV for integer division: 
query I rowsort label-7924
SELECT - col1 DIV + 61 + + col0 FROM tab0
----
14
87
97

skipif mysql # not compatible
query I rowsort label-7924
SELECT - col1 / + 61 + + col0 FROM tab0
----
14
87
97

query I rowsort
SELECT + 35 + 32 FROM tab2
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7926
SELECT ALL * FROM tab0 WHERE NOT NULL > - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7926
SELECT ALL * FROM tab0 WHERE NOT NULL > - CAST ( col2 AS INTEGER )
----

query I rowsort
SELECT - col1 + - 80 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 + col2 AS col1 FROM tab0 WHERE NOT 72 * + 89 IS NULL
----
100
128
31

query I rowsort
SELECT DISTINCT col1 * - col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + 88 AND + ( - ( - col0 ) ) * + col1
----

query I rowsort
SELECT col0 - col0 * 92 FROM tab2
----
-4186
-5824
-6825

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7931
SELECT + CAST( NULL AS DECIMAL ) + - col1 * 63 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT + CAST ( NULL AS REAL ) + - col1 * 63 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 60 + col2 AS col1 FROM tab2 WHERE NOT NULL >= + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 = 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT MAX( 37 ) - + 32 * 77 FROM tab2
----
-2427

skipif mysql # not compatible
query I rowsort label-7935
SELECT MAX ( 37 ) - + 32 * 77 FROM tab2
----
-2427

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( col0 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) NOT IN ( + col0 * - 15 + + col2 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 50 * 28 AS col2 FROM tab0
----
-1400

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7939
SELECT * FROM tab0 WHERE NOT + 57 / - 32 <> + 10 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7939
SELECT * FROM tab0 WHERE NOT + 57 / - 32 <> + 10 * CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7940
SELECT - 47 DIV + 48 FROM tab1 WHERE NOT + 40 + col0 * + col1 BETWEEN ( - col1 ) AND + col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7940
SELECT - 47 / + 48 FROM tab1 WHERE NOT + 40 + col0 * + col1 BETWEEN ( - col1 ) AND + col2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col2 FROM tab0 cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( 42 ) >= - 23
----
0

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( 42 ) >= - 23
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7943
SELECT 9 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7943
SELECT 9 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT ALL COUNT( * ) + 32 AS col0 FROM tab0 AS cor0 WHERE ( 71 ) NOT BETWEEN NULL AND col1 + + col1
----
34

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL COUNT ( * ) + 32 AS col0 FROM tab0 AS cor0 WHERE ( 71 ) NOT BETWEEN NULL AND col1 + + col1
----
34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 / + col2 + col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7946
SELECT - + CAST( NULL AS SIGNED ) * ( + 47 + - col0 ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT - + CAST ( NULL AS INTEGER ) * ( + 47 + - col0 ) FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <= ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - col1 col1 FROM tab1 cor0
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-7949
SELECT DISTINCT - 39 DIV col1 FROM tab0 AS cor0
----
-1
-39
0

skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT - 39 / col1 FROM tab0 AS cor0
----
-1
-39
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + col2 NOT IN ( + col1 + + 15 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + - col0 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT 23 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - - col2 ) AS col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT COUNT( * ) FROM tab1 WHERE NOT - 80 + 64 / col1 > ( + col2 * 31 + + 59 )
----
3

skipif mysql # not compatible
query I rowsort label-7954
SELECT COUNT ( * ) FROM tab1 WHERE NOT - 80 + 64 / col1 > ( + col2 * 31 + + 59 )
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 73 * col2 - - col1 BETWEEN col2 + col1 AND 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT - 97 DIV col1 FROM tab1
----
-19
-2
-6

skipif mysql # not compatible
query I rowsort label-7956
SELECT - 97 / col1 FROM tab1
----
-19
-2
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 + - 11 / 85 ) = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 * + col2 ) < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + col0 ) * - col1 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 + 17 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7961
SELECT ALL 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-7961
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT - - MIN( - - col2 ) + - MIN( col0 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7962
SELECT - - MIN ( - - col2 ) + - MIN ( col0 ) FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> - 97 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT + + SUM( DISTINCT 61 ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-7964
SELECT + + SUM ( DISTINCT 61 ) FROM tab0 AS cor0
----
61

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 / col2 BETWEEN - 10 AND NULL
----

query I rowsort
SELECT ALL 15 AS col2 FROM tab1 AS cor0 WHERE col0 + - ( col2 ) - col1 IS NOT NULL
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT + - ( + MIN( DISTINCT col1 ) ) * 81 FROM tab2 AS cor0
----
-4131

skipif mysql # not compatible
query I rowsort label-7967
SELECT + - ( + MIN ( DISTINCT col1 ) ) * 81 FROM tab2 AS cor0
----
-4131

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT + COUNT( * ) - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + 80 BETWEEN ( NULL ) AND col2
----
0

skipif mysql # not compatible
query I rowsort label-7968
SELECT + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + 80 BETWEEN ( NULL ) AND col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT + 95 * + COUNT( * ) + - COUNT( * ) + 98 FROM tab0 AS cor0
----
380

skipif mysql # not compatible
query I rowsort label-7969
SELECT + 95 * + COUNT ( * ) + - COUNT ( * ) + 98 FROM tab0 AS cor0
----
380

query I rowsort
SELECT + ( - 21 ) * + col0 * col2 + 43 FROM tab1 AS cor0
----
-102773
-105272
-129905

query I rowsort
SELECT + 36 * - + 1 FROM tab0
----
-36
-36
-36

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) = col0
----

query I rowsort
SELECT DISTINCT + 8 * + col2 AS col1 FROM tab0
----
376
792
80

query III rowsort
SELECT ALL * FROM tab2 WHERE + 76 BETWEEN NULL AND ( - 62 )
----

query I rowsort
SELECT ALL + col2 + - ( - col1 ) FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT + COUNT( * ) * + MAX( DISTINCT - col2 ) * - SUM( + col0 ) AS col2 FROM tab0
----
5970

skipif mysql # not compatible
query I rowsort label-7976
SELECT + COUNT ( * ) * + MAX ( DISTINCT - col2 ) * - SUM ( + col0 ) AS col2 FROM tab0
----
5970

query I rowsort
SELECT DISTINCT 69 + + col0 FROM tab2
----
115
133
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT CAST( NULL AS SIGNED ) - - col0 / - col1 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7978
SELECT CAST ( NULL AS INTEGER ) - - col0 / - col1 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + col0 + - - ( + - 1 ) FROM tab1
----
4895
5014
6187

query I rowsort
SELECT DISTINCT + col2 + - 2 FROM tab1
----
57
66
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7981
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NULL > NULL
----
0

query I rowsort
SELECT - 69 + col2 + - col0 AS col1 FROM tab1 cor0
----
-24
-92
-95

query I rowsort
SELECT ALL 65 FROM tab0 AS cor0 WHERE NOT ( 93 + 49 ) NOT IN ( 90 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7984
SELECT DISTINCT - 16 DIV - SUM( + - 38 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT - 16 / - SUM ( + - 38 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND 85
----

query I rowsort
SELECT ALL - + ( - 6 ) * 31 * + 12 * + 36 FROM tab2 AS cor0
----
80352
80352
80352

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT - ( - ( + MIN( + - 21 ) ) ) col0 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7987
SELECT - ( - ( + MIN ( + - 21 ) ) ) col0 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT ALL - col1 * + col1 + - 80 + + col1 FROM tab0 AS cor0
----
-500
-6560
-80

query I rowsort
SELECT DISTINCT col1 + - 56 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col2 ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT - - 72 * - COUNT( * ) FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-7990
SELECT - - 72 * - COUNT ( * ) FROM tab2 AS cor0
----
-216

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 14 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7992
SELECT DISTINCT MAX( + - CAST( NULL AS SIGNED ) ) / + 10 * - SUM( ALL - 68 ) * - MAX( 80 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT MAX ( + - CAST ( NULL AS INTEGER ) ) / + 10 * - SUM ( ALL - 68 ) * - MAX ( 80 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT col0 AS col0, + col0 AS col0 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT + col1 AS col2, - col2 + 57 + + 89 FROM tab2
----
51
123
67
88
77
106

query II rowsort
SELECT ALL + 39, col0 + + col2 AS col1 FROM tab2
----
39
104
39
133
39
69

query I rowsort
SELECT DISTINCT - 68 + - 59 FROM tab1 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT DISTINCT + ( - MIN( - col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT + ( - MIN ( - col0 ) ) FROM tab0
----
97

query I rowsort
SELECT DISTINCT col2 * 1 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 29 + - + col1 * - col0 col0 FROM tab2 AS cor0
----
3825
6968
7161

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - - col2 AND + - 25
----
0

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - - col2 AND + - 25
----
0

query II rowsort
SELECT - 57 AS col1, col1 FROM tab1 AS cor0
----
-57
14
-57
47
-57
5

query I rowsort
SELECT DISTINCT - 71 * - - 30 + + - 96 FROM tab1 AS cor0
----
-2226

query I rowsort
SELECT DISTINCT - col1 * + col1 + col1 + - - col1 * - col0 * + col0 FROM tab2
----
-110466
-321244
-381297

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + ( + 2 ) + col0 AS col2 FROM tab0 AS cor0
----
17
89
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8007
SELECT + - col2 + + col2 DIV - col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8007
SELECT + - col2 + + col2 / - col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT - col1 * - + col2 + 76 AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
175
286
3883

query II rowsort
SELECT + col0 + - col2, - ( col2 ) * + + col1 AS col2 FROM tab1 AS cor0
----
-45
-1344
23
-3196
26
-295

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col2 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
-84
-84
-84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = ( - - col0 + - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 ) NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0, + 92 AS col2 FROM tab2
----
46
92
64
92
75
92

query I rowsort
SELECT ALL + 42 + - col2 * - col2 * + col2 FROM tab2
----
12209
195154
64042

query I rowsort
SELECT ALL - 59 + + - ( + + col2 ) FROM tab0
----
-106
-158
-69

query I rowsort
SELECT DISTINCT - col2 + + + col1 AS col0 FROM tab0
----
-98
11
34

query I rowsort
SELECT ALL col2 - - col1 + + 29 * - ( - + col2 ) AS col0 FROM tab1
----
1775
2087
2894

query I rowsort
SELECT + + 2 FROM tab1 WHERE + col2 <> + col0 * + ( + col2 )
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 99 col2, + col1 * - col0 FROM tab2 cor0
----
99
-2346
99
-4928
99
-5025

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query II rowsort
SELECT col2 AS col0, 78 FROM tab1 AS cor0
----
59
78
68
78
96
78

query I rowsort
SELECT ALL - col2 - - col0 + + col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT - col1 - - - col1 AS col2 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8024
SELECT DISTINCT - ( + + MIN( 85 ) ) FROM tab1 WHERE NULL BETWEEN NULL AND ( + - CAST( NULL AS SIGNED ) + - ( + col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT - ( + + MIN ( 85 ) ) FROM tab1 WHERE NULL BETWEEN NULL AND ( + - CAST ( NULL AS INTEGER ) + - ( + col1 ) )
----
NULL

query II rowsort
SELECT - 85 * - + 60 AS col2, + col1 AS col1 FROM tab2
----
5100
51
5100
67
5100
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8026
SELECT CAST( - - 51 AS SIGNED ) AS col0, - COUNT( * ) FROM tab1 AS cor0
----
51
-3

skipif mysql # not compatible
query II rowsort label-8026
SELECT CAST ( - - 51 AS INTEGER ) AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
51
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT ALL - + COUNT( * ) * - 57 AS col2 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL - + COUNT ( * ) * - 57 AS col2 FROM tab2 AS cor0
----
171

query I rowsort
SELECT - 2 * - 41 * 77 AS col1 FROM tab0 AS cor0
----
6314
6314
6314

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 78 IS NOT NULL
----

query I rowsort
SELECT ALL 32 FROM tab0 AS cor0 WHERE ( 96 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + + col0 IS NOT NULL
----

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8033
SELECT ALL + + CAST( + + col0 AS SIGNED ), + CAST( + col0 AS SIGNED ) FROM tab2 cor0
----
46
46
64
64
75
75

skipif mysql # not compatible
query II rowsort label-8033
SELECT ALL + + CAST ( + + col0 AS INTEGER ), + CAST ( + col0 AS INTEGER ) FROM tab2 cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT ALL SUM( + 87 ) FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL SUM ( + 87 ) FROM tab2
----
261

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 BETWEEN - 53 + + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT DISTINCT 71 + + SUM( + 54 ) FROM tab2
----
233

skipif mysql # not compatible
query I rowsort label-8036
SELECT DISTINCT 71 + + SUM ( + 54 ) FROM tab2
----
233

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT + CAST( NULL AS SIGNED ) * - ( col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT + CAST ( NULL AS INTEGER ) * - ( col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8039
SELECT MAX( col0 ) DIV - - 77 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8039
SELECT MAX ( col0 ) / - - 77 AS col1 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 col0 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT ALL + - AVG ( ALL - col2 ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col1 * - 32 * - - 20 - - col2 AND - col1 * col0
----
NULL

query I rowsort
SELECT ALL 4 + col0 - - 98 AS col0 FROM tab2
----
148
166
177

query I rowsort
SELECT DISTINCT + 8 + + col0 FROM tab1
----
59
93
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2, + 92 * 42 FROM tab1 AS cor0
----
59
3864
68
3864
96
3864

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8046
SELECT ALL + 70 + - - CAST( NULL AS SIGNED ) col0, col0 * - 55 + col0 - - + 5 col0 FROM tab1 AS cor0
----
NULL
-2749
NULL
-4585
NULL
-4909

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8046
SELECT ALL + 70 + - - CAST ( NULL AS INTEGER ) col0, col0 * - 55 + col0 - - + 5 col0 FROM tab1 AS cor0
----
NULL
-2749
NULL
-4585
NULL
-4909

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT - MIN( ALL - 50 ) FROM tab1 cor0
----
50

skipif mysql # not compatible
query I rowsort label-8047
SELECT - MIN ( ALL - 50 ) FROM tab1 cor0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8048
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 - - - CAST( col1 AS SIGNED ) + + 90 <= NULL
----

skipif mysql # not compatible
query III rowsort label-8048
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 - - - CAST ( col1 AS INTEGER ) + + 90 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + ( + col1 ) * - 76 col0 FROM tab2 AS cor0
----
234080
295336
89148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, - col1 * + - col2 - col1 * col1 col1 FROM tab2 AS cor0
----
51
-1428
67
-603
77
-2849

query II rowsort
SELECT + + col2 * + 34, - col0 FROM tab1 AS cor0 WHERE - 88 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + 61 ) FROM tab1 AS cor0
----
-61

query I rowsort
SELECT + 31 * + ( + col1 ) AS col0 FROM tab2 AS cor0
----
1581
2077
2387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - + col2 ) col0, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT SUM( 81 ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT SUM ( 81 ) FROM tab0
----
243

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 93 > NULL
----

query I rowsort
SELECT ALL col2 * - 84 AS col2 FROM tab2 WHERE NULL IN ( - + 32, col2 / 11, - + 7 + + col1 )
----

query I rowsort
SELECT ALL - - 66 AS col2 FROM tab0 AS cor0
----
66
66
66

query I rowsort
SELECT - - 7 AS col0 FROM tab2 AS cor0
----
7
7
7

query II rowsort
SELECT + + 41 AS col2, + col1 FROM tab2 AS cor0
----
41
51
41
67
41
77

query II rowsort
SELECT + 19, - col0 AS col0 FROM tab1 AS cor0
----
19
-51
19
-85
19
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT - - MIN( - - col0 ) FROM tab1 WHERE NOT NULL < + ( - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8062
SELECT - - MIN ( - - col0 ) FROM tab1 WHERE NOT NULL < + ( - - col2 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - ( - - col2 ) ) <> - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - ( + col1 ) ) BETWEEN - col2 AND + - 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8065
SELECT ALL CAST( ( - 93 ) AS SIGNED ) FROM tab2
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL CAST ( ( - 93 ) AS INTEGER ) FROM tab2
----
-93
-93
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8066
SELECT DISTINCT 95 * - col0 DIV + col0 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT 95 * - col0 / + col0 FROM tab0
----
-95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + col1 BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * 39 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * 39 AS col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - 46 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8071
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 FROM tab1 WHERE - + col2 + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 FROM tab1 WHERE - + col2 + - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 27 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT DISTINCT - + 87 AS col2 FROM tab0 WHERE + 83 - + 18 NOT IN ( col0, col0, - + ( + + col1 ) )
----
-87

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col2 >= NULL
----

query I rowsort
SELECT DISTINCT + + col1 + 81 AS col0 FROM tab2 AS cor0
----
132
148
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - - col2 * col2 col0 FROM tab1 AS cor0
----
-3396
-4533
-9165

query I rowsort
SELECT - 55 + ( - - 84 ) AS col1 FROM tab1 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8078
SELECT + CAST( - ( + col0 ) AS SIGNED ) + + col0 - col0 col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8078
SELECT + CAST ( - ( + col0 ) AS INTEGER ) + + col0 - col0 col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8079
SELECT DISTINCT - 90 + CAST( NULL AS SIGNED ) + - 4 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT - 90 + CAST ( NULL AS INTEGER ) + - 4 FROM tab1
----
NULL

query I rowsort
SELECT - - col2 AS col1 FROM tab1 WHERE 82 BETWEEN 37 AND - ( + 24 ) - + - 93
----

query III rowsort
SELECT * FROM tab2 WHERE + + 11 + + ( + col0 ) IN ( - - col0 )
----

query I rowsort
SELECT - + col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE + 47 IN ( + col1, col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8084
SELECT - COUNT( * ) AS col2, - CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-8084
SELECT - COUNT ( * ) AS col2, - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT ALL - MAX( DISTINCT + ( + - col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL - MAX ( DISTINCT + ( + - col2 ) ) FROM tab1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8086
SELECT ( - + CAST( - - ( ( + COUNT( - + 29 ) ) ) AS SIGNED ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8086
SELECT ( - + CAST ( - - ( ( + COUNT ( - + 29 ) ) ) AS INTEGER ) ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT DISTINCT 16 - 65 * + CAST( NULL AS SIGNED ) + + - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT 16 - 65 * + CAST ( NULL AS INTEGER ) + + - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col0, + 54 * + 79 AS col1 FROM tab2 AS cor0
----
23
4266
40
4266
58
4266

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT DISTINCT + 9 * 33 * COUNT( * ) AS col2 FROM tab1
----
891

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT + 9 * 33 * COUNT ( * ) AS col2 FROM tab1
----
891

query I rowsort
SELECT DISTINCT 44 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8091
SELECT DISTINCT COUNT( * ), 82 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
82

skipif mysql # not compatible
query II rowsort label-8091
SELECT DISTINCT COUNT ( * ), 82 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 col2 FROM tab2 AS cor0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8093
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( - + CAST( - col2 AS SIGNED ) AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8093
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( - + CAST ( - col2 AS INTEGER ) AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8094
SELECT ALL + CAST( 73 AS SIGNED ) FROM tab1 AS cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL + CAST ( 73 AS INTEGER ) FROM tab1 AS cor0
----
73
73
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8095
SELECT + 42 * + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT + 42 * + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 20 * + col1 AS col1 FROM tab2 AS cor0
----
-1020
-1340
-1540

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8098
SELECT + COUNT( ALL - + CAST( - col0 AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8098
SELECT + COUNT ( ALL - + CAST ( - col0 AS INTEGER ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + + col2 * + - col1 IS NULL
----

query I rowsort
SELECT + 25 FROM tab0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT + 64 + 50 AS col1 FROM tab2
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8102
SELECT COUNT( * ) AS col1, + COUNT( * ) * - + ( - + MIN( DISTINCT CAST( NULL AS SIGNED ) ) ) - 91 AS col0 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8102
SELECT COUNT ( * ) AS col1, + COUNT ( * ) * - + ( - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) ) - 91 AS col0 FROM tab2
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT - MIN( DISTINCT col0 ) - + + COUNT( * ) + + + 13 FROM tab0 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8103
SELECT - MIN ( DISTINCT col0 ) - + + COUNT ( * ) + + + 13 FROM tab0 WHERE - col1 IS NULL
----
NULL

query I rowsort
SELECT ( - col2 ) * + + col2 * + col0 * 27 FROM tab2
----
-2764800
-657018
-6812100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col1 FROM tab2
----
12
12
12

query I rowsort
SELECT ALL + 49 AS col1 FROM tab1 WHERE 27 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT + SUM( ALL 62 ) col2 FROM tab1, tab0 AS cor0
----
558

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8107
SELECT + SUM ( ALL 62 ) col2 FROM tab1, tab0 AS cor0
----
558

query I rowsort
SELECT - col0 + - - 91 + + + 3 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT ALL 77 + - COUNT( * ) AS col2 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL 77 + - COUNT ( * ) AS col2 FROM tab1
----
74

query I rowsort
SELECT DISTINCT 65 * + - col1 FROM tab2
----
-3315
-4355
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT + + 29 * + - MIN( ALL + + col1 ) * 72 FROM tab2 AS cor0
----
-106488

skipif mysql # not compatible
query I rowsort label-8111
SELECT + + 29 * + - MIN ( ALL + + col1 ) * 72 FROM tab2 AS cor0
----
-106488

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + + col1, - ( - - ( - + col1 ) ) + - 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT - 30 + + SUM( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8113
SELECT - 30 + + SUM ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NULL = NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8114
SELECT DISTINCT col1 * - col0 + - 5 DIV - + col0 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT col1 * - col0 + - 5 / - + col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL - 8 + + col2 FROM tab2
----
15
32
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT DISTINCT 47 * + 79 - - - COUNT( * ) FROM tab1
----
3710

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT 47 * + 79 - - - COUNT ( * ) FROM tab1
----
3710

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 > - - 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL + - ( + MAX( ALL + col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL + - ( + MAX ( ALL + col2 ) ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8119
SELECT - 24 - - - COUNT( * ) col1, 30 FROM tab2 cor0
----
-27
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8119
SELECT - 24 - - - COUNT ( * ) col1, 30 FROM tab2 cor0
----
-27
30

query I rowsort
SELECT ALL + col0 * - 91 * + 14 - col1 AS col2 FROM tab1 AS cor0
----
-108295
-115981
-64988

query I rowsort
SELECT - + col1 - - + 71 + - + col2 AS col2 FROM tab2 AS cor0
----
-3
-46
-54

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 * - - col1 <= - - 83
----

query II rowsort
SELECT col1 - - 11 AS col1, - col0 FROM tab1 AS cor0
----
16
-85
25
-51
58
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8124
SELECT DISTINCT + 86 - col0 DIV + 59 AS col2 FROM tab0
----
85
86

skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT + 86 - col0 / + 59 AS col2 FROM tab0
----
85
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 col1 FROM tab2 WHERE NOT + col2 <> 24 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 col0 FROM tab1
----
4

query II rowsort
SELECT ALL 94, + col1 FROM tab0
----
94
1
94
21
94
81

query I rowsort
SELECT DISTINCT - + 15 * + + col2 FROM tab0 AS cor0
----
-1485
-150
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT SUM( DISTINCT - - 53 ) AS col1 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8129
SELECT SUM ( DISTINCT - - 53 ) AS col1 FROM tab0 AS cor0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8130
SELECT - - CAST( - - MIN( ALL col0 ) AS SIGNED ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8130
SELECT - - CAST ( - - MIN ( ALL col0 ) AS INTEGER ) FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT - 31 * - COUNT( ALL 45 ) AS col1 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-8132
SELECT - 31 * - COUNT ( ALL 45 ) AS col1 FROM tab0 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT + - SUM( + + col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8133
SELECT + - SUM ( + + col1 ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT + SUM( 74 ) * + + 60 AS col2 FROM tab0 AS cor0
----
13320

skipif mysql # not compatible
query I rowsort label-8134
SELECT + SUM ( 74 ) * + + 60 AS col2 FROM tab0 AS cor0
----
13320

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT SUM( + 93 ) FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-8135
SELECT SUM ( + 93 ) FROM tab2 AS cor0
----
279

onlyif mysql # aggregate syntax: 
query II rowsort label-8136
SELECT COUNT( * ), + 26 AS col0 FROM tab1 AS cor0
----
3
26

skipif mysql # not compatible
query II rowsort label-8136
SELECT COUNT ( * ), + 26 AS col0 FROM tab1 AS cor0
----
3
26

query I rowsort
SELECT ALL col0 + - + ( + + ( + col0 ) ) FROM tab2 AS cor0 WHERE 88 * col0 <> NULL
----

query II rowsort
SELECT - - col2 - col1 AS col0, col2 * 69 AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
-11
690
-34
3243
98
6831

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 < - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + - col1 + + col2 * + + 48 FROM tab1
----
2886
3285
4690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8141
SELECT - 60 + - 52 + + col0 / + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT - 60 + - 52 + + col0 / + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8142
SELECT ALL + 8 + + col1 DIV col0 col0 FROM tab1
----
8
8
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8142
SELECT ALL + 8 + + col1 / col0 col0 FROM tab1
----
8
8
8

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 24 >= NULL
----

query I rowsort
SELECT DISTINCT - col2 - 89 - + 99 * - col2 FROM tab0 AS cor0
----
4517
891
9613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8145
SELECT ( + + CAST( - - MAX( DISTINCT col2 ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8145
SELECT ( + + CAST ( - - MAX ( DISTINCT col2 ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT + 79 * - 88 * 56 - 2 FROM tab0
----
-389314
-389314
-389314

query I rowsort
SELECT ALL + 1 * + - 27 * + ( + 67 ) + + col2 * + col1 - - 19 AS col0 FROM tab1 AS cor0
----
-1495
-446
1406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8148
SELECT + CAST( NULL AS SIGNED ) + + col1 - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT + CAST ( NULL AS INTEGER ) + + col1 - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 + - - 1 AS col1 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT - ( - col0 ) + col1 * + col1 FROM tab0 AS cor0
----
528
6576
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT SUM( ALL - + 66 ) AS col0 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-8151
SELECT SUM ( ALL - + 66 ) AS col0 FROM tab1 AS cor0
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8152
SELECT - 55, col1 + 75 * + - col1 + - CAST( + col1 AS SIGNED ) * - - col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-55
-4947
-55
-8778
-55
-8844

skipif mysql # not compatible
query II rowsort label-8152
SELECT - 55, col1 + 75 * + - col1 + - CAST ( + col1 AS INTEGER ) * - - col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-55
-4947
-55
-8778
-55
-8844

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( + 84 ) + + 91 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8154
SELECT ALL 66 * 18 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL 66 * 18 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - 37 FROM tab1
----
1739
185
518

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT + 33 * - COUNT( * ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-8156
SELECT + 33 * - COUNT ( * ) FROM tab1
----
-99

query I rowsort
SELECT DISTINCT + 75 * col2 * - - 44 FROM tab0
----
155100
326700
33000

onlyif mysql # DIV for integer division: 
query II rowsort label-8158
SELECT DISTINCT + col2 DIV + - 58, - 17 AS col0 FROM tab2
----
-1
-17
0
-17

skipif mysql # not compatible
query II rowsort label-8158
SELECT DISTINCT + col2 / + - 58, - 17 AS col0 FROM tab2
----
-1
-17
0
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT MAX( 27 ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8159
SELECT MAX ( 27 ) AS col1 FROM tab1 AS cor0
----
27

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < + - 45 + 39
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 INNER JOIN tab0 AS cor1 ON NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT ( 3 ) * COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8162
SELECT ( 3 ) * COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
12

query I rowsort
SELECT - col1 * + col0 * - - 44 * col0 AS col2 FROM tab0 cor0 WHERE NOT NULL <> - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8164
SELECT + + 84 + + 24 * - + col2 FROM tab1 cor0 WHERE NOT NULL NOT IN ( - col0, + CAST( + - col0 AS SIGNED ) - 34, CAST( - CAST( 84 AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8164
SELECT + + 84 + + 24 * - + col2 FROM tab1 cor0 WHERE NOT NULL NOT IN ( - col0, + CAST ( + - col0 AS INTEGER ) - 34, CAST ( - CAST ( 84 AS INTEGER ) AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT DISTINCT + + col2 DIV - + col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT + + col2 / - + col2 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8166
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NOT - 11 / - + col0 - - ( col1 ) * + CAST( NULL AS SIGNED ) * - - col0 - + 36 + col0 + - col2 * + 22 - - 43 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8166
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT - 11 / - + col0 - - ( col1 ) * + CAST ( NULL AS INTEGER ) * - - col0 - + 36 + col0 + - col2 * + 22 - - 43 IS NOT NULL )
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + 57 * + col1 + + col1 * 96 NOT BETWEEN ( NULL ) AND + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8168
SELECT ALL 74 DIV col1 * - col2 FROM tab2 AS cor0
----
-23
-58
0

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL 74 / col1 * - col2 FROM tab2 AS cor0
----
-23
-58
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 55 >= - ( + + col2 ) )
----
15
81
47
87
21
10

query I rowsort
SELECT ALL + - ( - - 97 ) AS col1 FROM tab2 AS cor0
----
-97
-97
-97

query I rowsort
SELECT DISTINCT - + 64 FROM tab1 cor0
----
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 35 col0 FROM tab0 AS cor0
----
-14
-34
46

query I rowsort
SELECT + 69 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT - SUM( 42 ) FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-8174
SELECT - SUM ( 42 ) FROM tab0
----
-126

query I rowsort
SELECT DISTINCT + 68 + - 68 + col0 + + col1 + + col1 + + 27 FROM tab1
----
106
122
212

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8176
SELECT + CAST( NULL AS SIGNED ) col0, 78 FROM tab1
----
NULL
78
NULL
78
NULL
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8176
SELECT + CAST ( NULL AS INTEGER ) col0, 78 FROM tab1
----
NULL
78
NULL
78
NULL
78

query I rowsort
SELECT ALL + 35 + 41 + - col2 * col1 FROM tab0
----
-134
-23
-3731

query I rowsort
SELECT DISTINCT 85 + col0 AS col2 FROM tab1
----
136
170
176

query I rowsort
SELECT DISTINCT col0 * - - 73 + 50 FROM tab0
----
1145
6401
7131

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT ALL col1 DIV - 71 + col1 * col1 AS col0 FROM tab0
----
1
441
6560

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL col1 / - 71 + col1 * col1 AS col0 FROM tab0
----
1
441
6560

query I rowsort
SELECT 56 - col2 - - - col2 AS col1 FROM tab0
----
-142
-38
36

query I rowsort
SELECT 74 + + col2 FROM tab1
----
133
142
170

query III rowsort
SELECT * FROM tab2 cor0 WHERE - + 5 IS NOT NULL AND NOT - col1 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8184
SELECT col0 FROM tab1 WHERE - CAST( + 62 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8184
SELECT col0 FROM tab1 WHERE - CAST ( + 62 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN col1 AND NULL
----

query II rowsort
SELECT DISTINCT col2 AS col1, col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + 49 AS col1 FROM tab1 cor0
----
-49
-49
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8188
SELECT 50 * - 46 AS col2, + col2 + + col2 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
-2300
NULL
-2300
NULL
-2300
NULL

skipif mysql # not compatible
query II rowsort label-8188
SELECT 50 * - 46 AS col2, + col2 + + col2 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
-2300
NULL
-2300
NULL
-2300
NULL

query I rowsort
SELECT - col2 * col1 * - col0 - - + col1 - + + 32 * 73 FROM tab2 AS cor0
----
194861
289181
51673

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 61 + 12 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT + COUNT( * ) * COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8191
SELECT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2
----
9

query I rowsort
SELECT DISTINCT col2 * 36 FROM tab1
----
2124
2448
3456

query I rowsort
SELECT col2 * - + 89 FROM tab0
----
-4183
-8811
-890

query II rowsort
SELECT col1, col2 AS col0 FROM tab1
----
14
96
47
68
5
59

query II rowsort
SELECT + 61 AS col2, - col2 + - - col0 FROM tab1
----
61
-45
61
23
61
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT ALL COUNT( * ) * + - ( - 89 ) col2 FROM tab1
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8196
SELECT ALL COUNT ( * ) * + - ( - 89 ) col2 FROM tab1
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT - - COUNT( - col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8197
SELECT - - COUNT ( - col0 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8198
SELECT + - col2 * CAST( 31 AS SIGNED ) + - ( - 56 ) * + col2 AS col0 FROM tab1 AS cor0
----
1475
1700
2400

skipif mysql # not compatible
query I rowsort label-8198
SELECT + - col2 * CAST ( 31 AS INTEGER ) + - ( - 56 ) * + col2 AS col0 FROM tab1 AS cor0
----
1475
1700
2400

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE NOT col0 - + col2 IN ( - 10, col2, + ( - col2 ) )
----
51
85
91

query I rowsort
SELECT + ( 96 ) FROM tab2
----
96
96
96

query I rowsort
SELECT DISTINCT col2 + - col1 + 82 FROM tab1
----
103
136
164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 57 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT - 35 + 32 * - col2 AS col1 FROM tab0
----
-1539
-3203
-355

query I rowsort
SELECT DISTINCT 8 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 87 * - 76 * + col1 col0 FROM tab0 AS cor0
----
12080124
641364
8033580

query I rowsort
SELECT - - col2 * + 9 * - col1 FROM tab2 AS cor0
----
-10557
-27720
-34974

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8207
SELECT COUNT( * ) DIV - + 67 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8207
SELECT COUNT ( * ) / - + 67 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + - col1 > NULL AND NOT ( - + 28 ) - ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT 94 + MAX( + + ( col2 ) ) + + SUM( + col2 ) AS col0 FROM tab0 AS cor0
----
349

skipif mysql # not compatible
query I rowsort label-8209
SELECT 94 + MAX ( + + ( col2 ) ) + + SUM ( + col2 ) AS col0 FROM tab0 AS cor0
----
349

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT DISTINCT - COUNT( ALL - 4 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT - COUNT ( ALL - 4 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8211
SELECT + col0 * + col2 + - 76 - + 97 DIV 24 FROM tab2 AS cor0
----
2480
4270
978

skipif mysql # not compatible
query I rowsort label-8211
SELECT + col0 * + col2 + - 76 - + 97 / 24 FROM tab2 AS cor0
----
2480
4270
978

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8212
SELECT DISTINCT + + MAX( + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT + + MAX ( + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 + ( - 85 ) + col2 FROM tab2 AS cor0
----
-113
-122
-94

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 + 95 <> + col2 + - + col1 / + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col1 + + 9 + + col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT 83 + - 32 FROM tab0
----
51

query III rowsort
SELECT * FROM tab2 WHERE - col2 = - 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT ALL + + 62 - COUNT( ( col2 ) ) FROM tab1 WHERE NOT col1 IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL + + 62 - COUNT ( ( col2 ) ) FROM tab1 WHERE NOT col1 IS NULL
----
59

query I rowsort
SELECT ALL col1 * + 63 - col0 AS col1 FROM tab0
----
-34
1236
5088

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT MIN( ALL - 24 ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-8220
SELECT MIN ( ALL - 24 ) FROM tab1
----
-24

query I rowsort
SELECT + col0 * 57 AS col2 FROM tab0
----
4959
5529
855

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE - ( 44 ) IS NOT NULL OR NULL IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col1 FROM tab2 cor0
----
46

query II rowsort
SELECT ALL + col0 * + + col1 AS col1, col0 FROM tab0
----
1215
15
1827
87
97
97

query II rowsort
SELECT DISTINCT + col2 AS col0, - ( + - col2 ) AS col2 FROM tab1
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 56 * 93 - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT DISTINCT + - 82 * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT + - 82 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, 68 col0 FROM tab0 AS cor0
----
1
68
21
68
81
68

query I rowsort
SELECT ALL - ( + 47 ) FROM tab2 AS cor0
----
-47
-47
-47

query II rowsort
SELECT DISTINCT - - 54, col0 AS col1 FROM tab2 AS cor0
----
54
46
54
64
54
75

query I rowsort
SELECT ALL + 81 * - - col0 AS col2 FROM tab1 AS cor0
----
4131
6885
7371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8232
SELECT - CAST( col2 AS SIGNED ) FROM tab1 cor0 WHERE NOT NULL < + 65
----

skipif mysql # not compatible
query I rowsort label-8232
SELECT - CAST ( col2 AS INTEGER ) FROM tab1 cor0 WHERE NOT NULL < + 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8233
SELECT ALL * FROM tab0 WHERE + + col0 + CAST( NULL AS SIGNED ) - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8233
SELECT ALL * FROM tab0 WHERE + + col0 + CAST ( NULL AS INTEGER ) - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT - MAX( ALL - col2 ) col0 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8234
SELECT DISTINCT - MAX ( ALL - col2 ) col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ( - - MIN( DISTINCT col2 ) ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8235
SELECT ( - - MIN ( DISTINCT col2 ) ) AS col0 FROM tab1
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 ) > ( NULL )
----

query I rowsort
SELECT 16 * - ( col2 ) AS col0 FROM tab1
----
-1088
-1536
-944

query I rowsort
SELECT col1 * + col1 * - + col1 - + + 50 FROM tab1 WHERE NOT - col2 NOT BETWEEN col1 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT COUNT( * ) * ( + - 40 ) AS col2 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-8239
SELECT COUNT ( * ) * ( + - 40 ) AS col2 FROM tab2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT + MIN( DISTINCT + col2 ) col2 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8240
SELECT + MIN ( DISTINCT + col2 ) col2 FROM tab0
----
10

onlyif mysql # DIV for integer division: 
query II rowsort label-8241
SELECT DISTINCT - col1 DIV + - col1 AS col2, - col1 AS col1 FROM tab2 AS cor0
----
1
-51
1
-67
1
-77

skipif mysql # not compatible
query II rowsort label-8241
SELECT DISTINCT - col1 / + - col1 AS col2, - col1 AS col1 FROM tab2 AS cor0
----
1
-51
1
-67
1
-77

query I rowsort
SELECT - - 76 AS col1 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT ALL - + 51 * + + col1 FROM tab2 AS cor0
----
-2601
-3417
-3927

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8244
SELECT ALL 83 * + + CAST( - 19 AS SIGNED ) FROM tab2 cor0
----
-1577
-1577
-1577

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL 83 * + + CAST ( - 19 AS INTEGER ) FROM tab2 cor0
----
-1577
-1577
-1577

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = 87
----

query I rowsort
SELECT ALL col2 * + ( 4 ) AS col2 FROM tab0
----
188
396
40

query II rowsort
SELECT DISTINCT + col2 AS col2, + col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT ALL - MIN( DISTINCT col1 ) * - COUNT( * ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL - MIN ( DISTINCT col1 ) * - COUNT ( * ) FROM tab2 AS cor0
----
153

query I rowsort
SELECT + 91 + 19 AS col0 FROM tab2 AS cor0 WHERE + 25 IS NULL
----

query II rowsort
SELECT DISTINCT + 79, + col0 FROM tab1 AS cor0
----
79
51
79
85
79
91

query II rowsort
SELECT DISTINCT - + col1, col2 * - col2 AS col1 FROM tab1 AS cor0
----
-14
-9216
-47
-4624
-5
-3481

query I rowsort
SELECT DISTINCT col1 * - - 64 AS col1 FROM tab0 AS cor0
----
1344
5184
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8253
SELECT DISTINCT col1 DIV col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * col0 < - col2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT col1 / col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * col0 < - col2
----
0
1
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 15 * + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8255
SELECT - col2 DIV - col1 AS col0, - col1 AS col0 FROM tab2
----
0
-51
0
-67
0
-77

skipif mysql # not compatible
query II rowsort label-8255
SELECT - col2 / - col1 AS col0, - col1 AS col0 FROM tab2
----
0
-51
0
-67
0
-77

query I rowsort
SELECT DISTINCT + col2 + + - col1 FROM tab1
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8257
SELECT DISTINCT 79 - - col1 DIV + - col1 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT 79 - - col1 / + - col1 FROM tab1
----
78

query I rowsort
SELECT col0 / - + 43 + - col0 * - + 73 + - - col2 AS col1 FROM tab1 cor0 WHERE 5 * + - col2 IS NULL
----

query I rowsort
SELECT - col0 * + + col0 * + col1 / - col2 / + col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * - 98 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 68 AND NULL
----

query I rowsort
SELECT - + col2 * + + col2 * - col0 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8263
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 NOT IN ( col0 * + 2 + - CAST( - - col2 AS SIGNED ), 24 )
----

skipif mysql # not compatible
query III rowsort label-8263
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 NOT IN ( col0 * + 2 + - CAST ( - - col2 AS INTEGER ), 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT DISTINCT - SUM( + 73 ) FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT - SUM ( + 73 ) FROM tab0 AS cor0
----
-219

query I rowsort
SELECT + 33 FROM tab1 AS cor0 WHERE NOT NULL <> col0
----

query I rowsort
SELECT ALL + - 15 AS col1 FROM tab1 cor0
----
-15
-15
-15

query I rowsort
SELECT ALL col2 * + 32 AS col2 FROM tab0 AS cor0
----
1504
3168
320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8268
SELECT + CAST( + 11 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-8268
SELECT + CAST ( + 11 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT + MAX( DISTINCT ( - 95 ) ) AS col1 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-8269
SELECT + MAX ( DISTINCT ( - 95 ) ) AS col1 FROM tab2 AS cor0
----
-95

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - col0 - 36
----

query I rowsort
SELECT ALL + - ( col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 73 * - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( NOT NULL < - 44 * col1 ) )
----

query II rowsort
SELECT col1 AS col1, col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8275
SELECT DISTINCT col1 AS col2, CAST( NULL AS DECIMAL ) * + - 50 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-8275
SELECT DISTINCT col1 AS col2, CAST ( NULL AS REAL ) * + - 50 FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT - 70 + + 0 * - col1 + - col2 + + 39 FROM tab0
----
-130
-41
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-8277
SELECT 85 DIV + + col2 + col1 AS col2 FROM tab0
----
1
29
82

skipif mysql # not compatible
query I rowsort label-8277
SELECT 85 / + + col2 + col1 AS col2 FROM tab0
----
1
29
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT ALL COUNT( * ) * + 63 + - 71 AS col0 FROM tab0, tab0 AS cor0
----
496

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL COUNT ( * ) * + 63 + - 71 AS col0 FROM tab0, tab0 AS cor0
----
496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 23 ) + 63 col0 FROM tab1 cor0
----
86
86
86

query II rowsort
SELECT DISTINCT - col0 AS col0, - col2 AS col1 FROM tab0 cor0
----
-15
-47
-87
-10
-97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, + ( - col2 ) FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, col0 * + col2 AS col0 FROM tab2 AS cor0
----
23
1058
40
2560
58
4350

query I rowsort
SELECT ( col2 ) * + col2 AS col1 FROM tab1 cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8284
SELECT - MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT - MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - - 73 FROM tab0 AS cor0
----
-1095
-6351
-7081

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + col2 * col1 >= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8287
SELECT + col2 AS col2, col0 * + + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
10
870
47
705
99
9603

skipif mysql # not compatible
query II rowsort label-8287
SELECT + col2 AS col2, col0 * + + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
10
870
47
705
99
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8288
SELECT ALL - col0 + - col2 + col0 * - col2 * + col0 + col0 FROM tab1 AS cor0 WHERE col1 + + col2 * + CAST( NULL AS SIGNED ) IS NULL
----
-249792
-426334
-563176

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL - col0 + - col2 + col0 * - col2 * + col0 + col0 FROM tab1 AS cor0 WHERE col1 + + col2 * + CAST ( NULL AS INTEGER ) IS NULL
----
-249792
-426334
-563176

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT SUM( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8289
SELECT SUM ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT - + 82 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8291
SELECT DISTINCT + col2 * + CAST( NULL AS DECIMAL ) * - 22 * col2 + - col1 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT + col2 * + CAST ( NULL AS REAL ) * - 22 * col2 + - col1 AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8292
SELECT - col1 DIV col2 - col0 + col2 col1 FROM tab2
----
-18
-25
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8292
SELECT - col1 / col2 - col0 + col2 col1 FROM tab2
----
-18
-25
-25

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT OUTER JOIN tab0 cor1 ON NOT - 9 = NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT + ( + + col0 ) * + + CAST( NULL AS SIGNED ) + - + 16 + - 23 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8294
SELECT + ( + + col0 ) * + + CAST ( NULL AS INTEGER ) + - + 16 + - 23 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + col2 * + col2 AS col2 FROM tab0 cor0
----
121
2290
9802

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT DISTINCT + + SUM( ALL - 23 ) * ( + 80 ) AS col0 FROM tab0 AS cor0
----
-5520

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT + + SUM ( ALL - 23 ) * ( + 80 ) AS col0 FROM tab0 AS cor0
----
-5520

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 - - 21 IS NULL )
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 * - 70 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 * - 70 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT + MAX( + ( 56 ) ) + + 97 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8300
SELECT + MAX ( + ( 56 ) ) + + 97 FROM tab1 AS cor0
----
153

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT ALL - MAX( + col2 ) + + 37 AS col1 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL - MAX ( + col2 ) + + 37 AS col1 FROM tab0 AS cor0
----
-62

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE 53 * + col0 - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT ALL + COUNT( * ) + - + 93 FROM tab0 WHERE NOT + col2 > NULL
----
-93

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL + COUNT ( * ) + - + 93 FROM tab0 WHERE NOT + col2 > NULL
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8306
SELECT ALL + col2 DIV + - col0 col2 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8306
SELECT ALL + col2 / + - col0 col2 FROM tab0
----
-1
-3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8307
SELECT DISTINCT 87 + col0 * - + col0 + - 77 DIV + + ( - col1 ) AS col0 FROM tab0
----
-138
-7479
-9245

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT 87 + col0 * - + col0 + - 77 / + + ( - col1 ) AS col0 FROM tab0
----
-138
-7479
-9245

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 4 / + 60 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL COUNT( * ) + MAX( ALL - col1 ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL COUNT ( * ) + MAX ( ALL - col1 ) FROM tab0
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-8310
SELECT + col0, col1 DIV - col0 + + col1 FROM tab0
----
15
76
87
21
97
1

skipif mysql # not compatible
query II rowsort label-8310
SELECT + col0, col1 / - col0 + + col1 FROM tab0
----
15
76
87
21
97
1

query I rowsort
SELECT DISTINCT + col0 - - col0 * - col1 FROM tab2
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT - SUM( ALL col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8312
SELECT - SUM ( ALL col0 ) FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT ALL COUNT( * ) + - ( 8 ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL COUNT ( * ) + - ( 8 ) FROM tab2 AS cor0
----
-5

query I rowsort
SELECT ALL - 55 * + + col0 - ( + ( 10 ) ) FROM tab1 AS cor0
----
-2815
-4685
-5015

query I rowsort
SELECT col0 - - - col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT col0 * + 24 AS col0 FROM tab0 AS cor0
----
2088
2328
360

query I rowsort
SELECT DISTINCT - 5 * - col2 - col1 AS col2 FROM tab0 AS cor0
----
154
29
494

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8318
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab2 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < + 70 + + + 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8320
SELECT DISTINCT - col1 DIV + ( + + ( - 81 ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8320
SELECT DISTINCT - col1 / + ( + + ( - 81 ) ) AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col1 FROM tab0
----
58
58
58

query II rowsort
SELECT + col2 * col2 * + col0 * 98, col1 + col2 AS col2 FROM tab2
----
10035200
117
2384732
74
24725400
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 col0 FROM tab0 AS cor0
----
21
21
21

onlyif mysql # DIV for integer division: 
query I rowsort label-8324
SELECT + col0 * + col0 DIV - + col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8324
SELECT + col0 * + col0 / - + col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8325
SELECT + 8 DIV + COUNT( + + col0 ) AS col2 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8325
SELECT + 8 / + COUNT ( + + col0 ) AS col2 FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8326
SELECT DISTINCT + + CAST( CAST( col1 AS SIGNED ) AS SIGNED ) / - col2 - 0 AS col1 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8326
SELECT DISTINCT + + CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) / - col2 - 0 AS col1 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8327
SELECT ALL + + CAST( NULL AS SIGNED ) * + 64 * + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN + + col1 AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL + + CAST ( NULL AS INTEGER ) * + 64 * + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN + + col1 AND - col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT - SUM( - ( - 39 ) ) AS col2 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-8330
SELECT - SUM ( - ( - 39 ) ) AS col2 FROM tab2 AS cor0
----
-117

query I rowsort
SELECT DISTINCT col1 + + - 52 AS col2 FROM tab2
----
-1
15
25

query II rowsort
SELECT col0, - 76 AS col1 FROM tab2
----
46
-76
64
-76
75
-76

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < - - col2
----

query I rowsort
SELECT - col2 * 79 * + col2 FROM tab2
----
-126400
-265756
-41791

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT - COUNT( + 62 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8335
SELECT - COUNT ( + 62 ) AS col2 FROM tab0
----
-3

query II rowsort
SELECT ALL + col2 AS col0, col2 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 15 = + + 80 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * - 58 * + col1 FROM tab1 AS cor0
----
-17110
-185368
-77952

query II rowsort
SELECT + col1 + col2 AS col1, + col2 FROM tab1
----
110
96
115
68
64
59

query I rowsort
SELECT ALL 80 + - col2 + + col2 * - col0 * - col2 AS col1 FROM tab0
----
33168
8770
950678

query I rowsort
SELECT ALL - ( - 13 ) * + - 78 + - col2 AS col1 FROM tab0 WHERE - + col1 NOT BETWEEN - + col2 AND + col1 + col0
----
-1024
-1061

query I rowsort
SELECT DISTINCT 65 - - col2 - + col0 FROM tab2
----
41
42
48

query I rowsort
SELECT ALL - 41 + + col2 + + 98 FROM tab0 AS cor0
----
104
156
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8344
SELECT ALL - + 4 AS col2, - COUNT( * ) FROM tab1 AS cor0
----
-4
-3

skipif mysql # not compatible
query II rowsort label-8344
SELECT ALL - + 4 AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
-4
-3

query I rowsort
SELECT DISTINCT - + col1 + - 94 FROM tab2 AS cor0
----
-145
-161
-171

query I rowsort
SELECT DISTINCT - + col1 * 14 AS col0 FROM tab1 AS cor0
----
-196
-658
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8347
SELECT ALL 56 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL 56 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 78 - - + col1 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1146
3079
3875

query I rowsort
SELECT + col0 - col0 * - - 48 FROM tab2 AS cor0
----
-2162
-3008
-3525

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8350
SELECT ALL CAST( - - CAST( - + col1 AS DECIMAL ) AS SIGNED ) - + - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL CAST ( - - CAST ( - + col1 AS REAL ) AS INTEGER ) - + - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8351
SELECT DISTINCT + col1 DIV + 40 AS col1, col1 AS col1 FROM tab2 AS cor0
----
1
51
1
67
1
77

skipif mysql # not compatible
query II rowsort label-8351
SELECT DISTINCT + col1 / + 40 AS col1, col1 AS col1 FROM tab2 AS cor0
----
1
51
1
67
1
77

query II rowsort
SELECT DISTINCT + ( col0 ) AS col0, 51 AS col0 FROM tab1
----
51
51
85
51
91
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT COUNT( ALL + 73 ) * - COUNT( * ) - + ( 16 ) + + - COUNT( * ) FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-8353
SELECT COUNT ( ALL + 73 ) * - COUNT ( * ) - + ( 16 ) + + - COUNT ( * ) FROM tab0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8354
SELECT + col2 * col1 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8354
SELECT + col2 * col1 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 20 AS col2 FROM tab0
----
-20
-20
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-8356
SELECT DISTINCT + 17 DIV - col2 + - col0 * col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT + 17 / - col2 + - col0 * col2 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 > NULL )
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL > + col2 + - col2 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 * col1, col0 col0 FROM tab0 cor0
----
1
97
441
87
6561
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT 5 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8360
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 5 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT + MIN( DISTINCT + 96 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT + MIN ( DISTINCT + 96 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8362
SELECT ALL + col1 DIV - col0 col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8362
SELECT ALL + col1 / - col0 col1 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col1 FROM tab2 AS cor0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8364
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) AS col1, + CAST( - 71 AS SIGNED ) FROM tab0 AS cor0
----
0
-71

skipif mysql # not compatible
query II rowsort label-8364
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) AS col1, + CAST ( - 71 AS INTEGER ) FROM tab0 AS cor0
----
0
-71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8365
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / + CAST( NULL AS SIGNED ) / + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8365
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / + CAST ( NULL AS INTEGER ) / + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT DISTINCT - COUNT( - - col0 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8366
SELECT DISTINCT - COUNT ( - - col0 ) col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT + COUNT( + - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8367
SELECT + COUNT ( + - col1 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 78 = NULL
----

query II rowsort
SELECT - col2 AS col1, col0 - + col2 AS col1 FROM tab1
----
-59
26
-68
23
-96
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8370
SELECT - + 43 DIV + col0 - + 37 col1 FROM tab2 cor0
----
-37
-37
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8370
SELECT - + 43 / + col0 - + 37 col1 FROM tab2 cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8371
SELECT + 77 DIV - ( - COUNT( * ) ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-8371
SELECT + 77 / - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8372
SELECT DISTINCT + - COUNT( * ) / + + COUNT( * ) + COUNT( ALL + - 52 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT + - COUNT ( * ) / + + COUNT ( * ) + COUNT ( ALL + - 52 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL MIN( DISTINCT - + col2 ) col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8373
SELECT ALL MIN ( DISTINCT - + col2 ) col0 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8374
SELECT DISTINCT CAST( - col0 AS SIGNED ) FROM tab1 AS cor0 WHERE 86 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE 86 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8375
SELECT + - 1 AS col1, + ( + COUNT( * ) ) + + COUNT( * ) FROM tab2 AS cor0
----
-1
6

skipif mysql # not compatible
query II rowsort label-8375
SELECT + - 1 AS col1, + ( + COUNT ( * ) ) + + COUNT ( * ) FROM tab2 AS cor0
----
-1
6

query I rowsort
SELECT - + 35 AS col1 FROM tab2 cor0
----
-35
-35
-35

query I rowsort
SELECT 65 AS col1 FROM tab1 AS cor0 WHERE NOT col1 + - col0 IS NULL
----
65
65
65

query II rowsort
SELECT - 81 AS col0, - col0 FROM tab1 AS cor0
----
-81
-51
-81
-85
-81
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-8379
SELECT DISTINCT 43 * - - 1 DIV + col0 + 69 AS col1, col1 AS col2 FROM tab2
----
69
51
69
67
69
77

skipif mysql # not compatible
query II rowsort label-8379
SELECT DISTINCT 43 * - - 1 / + col0 + 69 AS col1, col1 AS col2 FROM tab2
----
69
51
69
67
69
77

query III rowsort
SELECT * FROM tab2 WHERE col0 = + + 88
----

query I rowsort
SELECT col0 + - - 38 AS col0 FROM tab1
----
123
129
89

query II rowsort
SELECT DISTINCT ( + - 28 ) AS col1, - col1 * - 60 + + - col1 FROM tab2 cor0
----
-28
3009
-28
3953
-28
4543

query I rowsort
SELECT DISTINCT - col1 + + ( 44 ) FROM tab1 AS cor0
----
-3
30
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 2 col0 FROM tab0 AS cor0
----
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 90 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT DISTINCT - + COUNT( DISTINCT 54 ) col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8386
SELECT DISTINCT - + COUNT ( DISTINCT 54 ) col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-1

query I rowsort
SELECT 26 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT - COUNT( * ) * - + COUNT( * ) FROM tab0, tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8389
SELECT - COUNT ( * ) * - + COUNT ( * ) FROM tab0, tab1 AS cor0
----
81

query I rowsort
SELECT 75 + 46 + - col2 FROM tab1 cor0
----
25
53
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8391
SELECT * FROM tab0 cor0 WHERE - 68 BETWEEN NULL AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8391
SELECT * FROM tab0 cor0 WHERE - 68 BETWEEN NULL AND + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT DISTINCT + SUM( DISTINCT col0 ) - - COUNT( * ) col1 FROM tab2 AS cor0
----
188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8392
SELECT DISTINCT + SUM ( DISTINCT col0 ) - - COUNT ( * ) col1 FROM tab2 AS cor0
----
188

query I rowsort
SELECT col0 + - + 98 + - col0 FROM tab2 AS cor0
----
-98
-98
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8394
SELECT DISTINCT - 61 DIV 8 - + col1 + - col1 DIV - col0 + + 26 * - 97 * + 6 FROM tab2 AS cor0
----
-15189
-15206
-15215

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT - 61 / 8 - + col1 + - col1 / - col0 + + 26 * - 97 * + 6 FROM tab2 AS cor0
----
-15189
-15206
-15215

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - 43 IS NULL
----

query I rowsort
SELECT ALL + + col2 - - col0 FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2 * + col0, + ( - col0 ) * - col2 * + col0 + - + 50 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8398
SELECT + CAST( - 34 AS SIGNED ) FROM tab1 cor0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-8398
SELECT + CAST ( - 34 AS INTEGER ) FROM tab1 cor0
----
-34
-34
-34

query I rowsort
SELECT ALL + ( - + col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query II rowsort
SELECT DISTINCT + col0, + col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT - + 87 - - 25 * - 1 AS col2 FROM tab0 AS cor0
----
-112

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 < + + 86
----

query II rowsort
SELECT DISTINCT - col1 AS col0, - col2 + 25 FROM tab2
----
-51
2
-67
-33
-77
-15

query II rowsort
SELECT ALL col2, + 16 * col1 - + + col2 AS col2 FROM tab1
----
59
21
68
684
96
128

onlyif mysql # DIV for integer division: 
query I rowsort label-8405
SELECT 0 DIV + + col0 * - col1 * col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8405
SELECT 0 / + + col0 * - col1 * col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 * - - col0 AS col2 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8407
SELECT CAST( + - col1 AS SIGNED ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8407
SELECT CAST ( + - col1 AS INTEGER ) AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL col0 * - + col0 AS col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT + 19 DIV ( 91 ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8409
SELECT + 19 / ( 91 ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT MIN( ALL 23 ) AS col0 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-8411
SELECT MIN ( ALL 23 ) AS col0 FROM tab1
----
23

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 22 / col2 >= - col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ALL 82 * + ( - + MAX( col0 ) ) AS col0 FROM tab0
----
-7954

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL 82 * + ( - + MAX ( col0 ) ) AS col0 FROM tab0
----
-7954

query I rowsort
SELECT ALL + col1 * + 49 AS col2 FROM tab0
----
1029
3969
49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 = NULL
----

query I rowsort
SELECT ALL col2 * + 14 * - col0 AS col2 FROM tab2 AS cor0
----
-14812
-35840
-60900

onlyif mysql # DIV for integer division: 
query I rowsort label-8417
SELECT - - col2 DIV col0 * - - 26 AS col2 FROM tab1 AS cor0
----
0
0
26

skipif mysql # not compatible
query I rowsort label-8417
SELECT - - col2 / col0 * - - 26 AS col2 FROM tab1 AS cor0
----
0
0
26

query I rowsort
SELECT 71 * - col2 AS col0 FROM tab2 AS cor0
----
-1633
-2840
-4118

onlyif mysql # DIV for integer division: 
query I rowsort label-8419
SELECT ALL 21 DIV + 35 * - + col2 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL 21 / + 35 * - + col2 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL + - MAX( - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL + - MAX ( - col2 ) FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 13 col2 FROM tab1 AS cor0
----
-1248
-767
-884

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 <> NULL
----

query II rowsort
SELECT DISTINCT + - 3 * + 13, 77 AS col1 FROM tab1 AS cor0
----
-39
77

query II rowsort
SELECT col1, 97 AS col1 FROM tab1
----
14
97
47
97
5
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8425
SELECT DISTINCT COUNT( * ) * - 8 + - + ( - CAST( COUNT( * ) AS SIGNED ) ) AS col1 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT COUNT ( * ) * - 8 + - + ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT MIN( ALL - 55 ) AS col1 FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-8426
SELECT MIN ( ALL - 55 ) AS col1 FROM tab1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT - 88 * - COUNT( * ) FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-8427
SELECT - 88 * - COUNT ( * ) FROM tab0
----
264

query I rowsort
SELECT - + col2 + - 23 + 11 FROM tab0 WHERE + col0 > + + col1
----
-111
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 72 ) + - - 40 col1 FROM tab2
----
-32

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN 29 AND + col0 + - + col1 * + 33 * + 91
----

query I rowsort
SELECT 47 + - col0 AS col0 FROM tab2
----
-17
-28
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8432
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = col1 * - + col2 * + col1 * - - col0 + - col0 - + + CAST( - + 68 AS DECIMAL ) * + + col1
----

skipif mysql # not compatible
query III rowsort label-8432
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = col1 * - + col2 * + col1 * - - col0 + - col0 - + + CAST ( - + 68 AS REAL ) * + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, col0 col0 FROM tab0
----
15
15
87
87
97
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col1 * - col2, + 78 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8436
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT - + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT - col1 + col2 * - - col1 AS col1 FROM tab1 AS cor0
----
1330
290
3149

query I rowsort
SELECT col0 + + 95 * - 92 AS col0 FROM tab0 AS cor0
----
-8643
-8653
-8725

query I rowsort
SELECT 10 * col2 AS col2 FROM tab1
----
590
680
960

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT DISTINCT 36 + - COUNT( * ) * 3 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT 36 + - COUNT ( * ) * 3 FROM tab0
----
27

query I rowsort
SELECT - 45 * col1 + col2 FROM tab1
----
-166
-2047
-534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8442
SELECT ALL - 3 + + ( - ( col1 ) ) FROM tab2 WHERE NOT - 17 NOT IN ( - col1 + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL - 3 + + ( - ( col1 ) ) FROM tab2 WHERE NOT - 17 NOT IN ( - col1 + CAST ( col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT DISTINCT COUNT( * ) + - 16 AS col2 FROM tab1 WHERE NOT ( col1 - + col1 ) NOT IN ( - col0 )
----
-16

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT COUNT ( * ) + - 16 AS col2 FROM tab1 WHERE NOT ( col1 - + col1 ) NOT IN ( - col0 )
----
-16

query I rowsort
SELECT DISTINCT ( - col2 ) * col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT + COUNT( * ) * - 43 + - COUNT( * ) col2 FROM tab2
----
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8445
SELECT + COUNT ( * ) * - 43 + - COUNT ( * ) col2 FROM tab2
----
-132

query III rowsort
SELECT * FROM tab0 WHERE + col0 + 25 * + col2 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 + + col2 col2 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT ALL 88 * + COUNT( * ) FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL 88 * + COUNT ( * ) FROM tab2
----
264

query I rowsort
SELECT ALL col1 / - ( + 11 * - col0 ) FROM tab0 WHERE NOT ( NULL ) = - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT DISTINCT - 33 DIV col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT - 33 / col2 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT DISTINCT 78 * COUNT( * ) FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT 78 * COUNT ( * ) FROM tab1
----
234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8452
SELECT ALL COUNT( * ) DIV + 42 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL COUNT ( * ) / + 42 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT - 39 + - COUNT( * ) AS col2 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-8453
SELECT - 39 + - COUNT ( * ) AS col2 FROM tab0
----
-42

query I rowsort
SELECT 38 * 46 + - col0 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND col2 * + 82 - + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT + COUNT( * ) FROM tab0 WHERE col2 * - 52 BETWEEN - col2 / col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8455
SELECT + COUNT ( * ) FROM tab0 WHERE col2 * - 52 BETWEEN - col2 / col2 AND NULL
----
0

query I rowsort
SELECT ALL + col0 - 52 FROM tab2
----
-6
12
23

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT DISTINCT - ( MIN( + 44 ) ) FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT - ( MIN ( + 44 ) ) FROM tab2
----
-44

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + col1 IS NOT NULL
----

query I rowsort
SELECT + col1 + col1 * 94 AS col0 FROM tab2
----
4845
6365
7315

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT col2 * + col0 - - col1 IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + col0 * ( 21 ) + - 99 / + col2 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8463
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN ( + col2 ) AND CAST( 96 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8463
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN ( + col2 ) AND CAST ( 96 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 40 + + col0 FROM tab1 cor0 WHERE NULL BETWEEN col1 / - col2 AND ( + col2 + - 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT ALL + 5 * COUNT( * ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL + 5 * COUNT ( * ) FROM tab1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8466
SELECT ALL + col2 + + col1 DIV col2 FROM tab0
----
12
48
99

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL + col2 + + col1 / col2 FROM tab0
----
12
48
99

query I rowsort
SELECT DISTINCT 32 + + col1 * 66 AS col0 FROM tab1 AS cor0
----
3134
362
956

query I rowsort
SELECT + ( - 96 ) * - col1 AS col2 FROM tab0 cor0
----
2016
7776
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 21 ) * + col2 col0 FROM tab0 AS cor0
----
2079
210
987

query I rowsort
SELECT col0 + col1 * - col1 FROM tab0 AS cor0
----
-354
-6546
96

query I rowsort
SELECT DISTINCT + 75 * col2 FROM tab0 cor0
----
3525
7425
750

onlyif mysql # DIV for integer division: 
query I rowsort label-8472
SELECT col2 DIV col2 + col2 AS col1 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-8472
SELECT col2 / col2 + col2 AS col1 FROM tab1
----
60
69
97

query I rowsort
SELECT DISTINCT 24 / - 20 AS col1 FROM tab2 WHERE ( ( + 74 ) ) IS NULL
----

query I rowsort
SELECT ALL col2 + - + ( + 37 ) FROM tab2
----
-14
21
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8475
SELECT ALL CAST( 18 AS SIGNED ) * - 8 AS col2 FROM tab2
----
-144
-144
-144

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL CAST ( 18 AS INTEGER ) * - 8 AS col2 FROM tab2
----
-144
-144
-144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab1 WHERE 62 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8477
SELECT DISTINCT CAST( - ( 34 ) AS SIGNED ) + COUNT( * ) col1 FROM tab1
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8477
SELECT DISTINCT CAST ( - ( 34 ) AS INTEGER ) + COUNT ( * ) col1 FROM tab1
----
-31

query I rowsort
SELECT ALL - col1 + 90 FROM tab0
----
69
89
9

query III rowsort
SELECT ALL * FROM tab1 WHERE 25 * + col0 NOT BETWEEN ( - 76 ) AND ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE + 55 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8480
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE + 55 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 + + - col2 + col1 col0 FROM tab1
----
15
43
76

query I rowsort
SELECT DISTINCT + 67 + col1 AS col2 FROM tab2
----
118
134
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT ALL - col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL - col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8484
SELECT DISTINCT + CAST( - 59 AS SIGNED ) + - 27 AS col1 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT + CAST ( - 59 AS INTEGER ) + - 27 AS col1 FROM tab2
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8485
SELECT DISTINCT + 9 * col0 + - CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL > ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT + 9 * col0 + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL > ( - col1 )
----

query I rowsort
SELECT DISTINCT col2 * - - col1 * col2 + 21 AS col2 FROM tab0 AS cor0
----
178950
2121
9822

onlyif mysql # DIV for integer division: 
query I rowsort label-8487
SELECT - + 55 DIV + 85 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8487
SELECT - + 55 / + 85 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 * + 98 FROM tab2 AS cor0
----
-2254
-3920
-5684

query I rowsort
SELECT 38 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query III rowsort
SELECT * FROM tab0 WHERE ( - 25 ) IS NULL
----

query I rowsort
SELECT ALL + 80 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8492
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT - + ( 50 ) FROM tab0 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT + - SUM( + - 98 ) FROM tab1 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-8494
SELECT + - SUM ( + - 98 ) FROM tab1 AS cor0
----
294

query I rowsort
SELECT ALL - - 13 AS col2 FROM tab1 AS cor0
----
13
13
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8496
SELECT - MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8496
SELECT - MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, + col2 - col2 + - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT + 28 + 16 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( - 22 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL ( - 36 ) * COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 - col1 IN ( - col0 )
----
-108

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL ( - 36 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 - col1 IN ( - col0 )
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE - 33 <= + - col0 * + col1 - - col2
----
0

skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE - 33 <= + - col0 * + col1 - - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL COUNT( * ) * - 60 AS col1 FROM tab0 WHERE NOT - 91 IS NULL
----
-180

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL COUNT ( * ) * - 60 AS col1 FROM tab0 WHERE NOT - 91 IS NULL
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + ( - 74 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + ( - 74 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8503
SELECT COUNT( * ) DIV + 62 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8503
SELECT COUNT ( * ) / + 62 col1 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8504
SELECT - MIN( ALL CAST( NULL AS DECIMAL ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8504
SELECT - MIN ( ALL CAST ( NULL AS REAL ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 * col2 col2 FROM tab1
----
-177
-204
-288

query I rowsort
SELECT DISTINCT 42 FROM tab1 WHERE NOT ( - col0 ) + - col0 IS NOT NULL
----

query I rowsort
SELECT + col0 * - 82 AS col2 FROM tab1
----
-4182
-6970
-7462

query I rowsort
SELECT ALL 94 AS col0 FROM tab1 WHERE NOT ( - - col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8509
SELECT + - COUNT( * ) * 90, 0 AS col0 FROM tab2 AS cor0
----
-270
0

skipif mysql # not compatible
query II rowsort label-8509
SELECT + - COUNT ( * ) * 90, 0 AS col0 FROM tab2 AS cor0
----
-270
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8510
SELECT ( + - col0 ) DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8510
SELECT ( + - col0 ) / + col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT DISTINCT COUNT( + 11 ) AS col1 FROM tab1 AS cor0 WHERE ( NOT ( NULL ) BETWEEN + 89 AND col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT COUNT ( + 11 ) AS col1 FROM tab1 AS cor0 WHERE ( NOT ( NULL ) BETWEEN + 89 AND col0 )
----
0

query I rowsort
SELECT ALL col0 * col2 * - + col1 AS col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT ( AVG ( DISTINCT col0 ) ) + 86 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > col2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( ( 77 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT + SUM( - 63 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-567

skipif mysql # not compatible
query I rowsort label-8515
SELECT + SUM ( - 63 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT COUNT( * ) + 18 AS col2 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-8516
SELECT COUNT ( * ) + 18 AS col2 FROM tab1
----
21

query I rowsort
SELECT 45 + - col2 - col2 FROM tab0
----
-153
-49
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT ALL - + SUM( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL - + SUM ( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8519
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + + col2 / + col2 >= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8519
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + + col2 / + col2 >= ( NULL )
----

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT ( ( + 16 ) ) * - 74 + col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT + - MAX( ALL - 16 ) AS col0 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-8521
SELECT + - MAX ( ALL - 16 ) AS col0 FROM tab0 AS cor0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8522
SELECT DISTINCT MAX( DISTINCT - col1 ) + 44 FROM tab1 AS cor0 WHERE NOT CAST( + - col0 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT MAX ( DISTINCT - col1 ) + 44 FROM tab1 AS cor0 WHERE NOT CAST ( + - col0 AS INTEGER ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 / - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( col2 - + - col2 )
----

query I rowsort
SELECT + + 65 FROM tab1 AS cor0 WHERE + col0 * - - col0 < - + 86
----

query I rowsort
SELECT DISTINCT - 62 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 * 31 * 65 <> + 68 / 68
----

query I rowsort
SELECT ( + col1 ) * + - col2 * col2 + - 21 * 58 AS col0 FROM tab1 AS cor0
----
-130242
-18623
-218546

query I rowsort
SELECT ALL + 66 * - - 0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT ALL col2 + col0 AS col1 FROM tab0 WHERE NOT + col2 - + + col2 + 60 * CAST( NULL AS SIGNED ) = ( - col1 * CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL col2 + col0 AS col1 FROM tab0 WHERE NOT + col2 - + + col2 + 60 * CAST ( NULL AS INTEGER ) = ( - col1 * CAST ( col2 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 31 * - + col0 + 20 FROM tab0
----
-2677
-2987
-445

query II rowsort
SELECT + 75 AS col2, col2 + - 5 AS col1 FROM tab1
----
75
54
75
63
75
91

query I rowsort
SELECT + col0 - 38 FROM tab0
----
-23
49
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT DISTINCT SUM( - - 16 ) + - + COUNT( * ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT SUM ( - - 16 ) + - + COUNT ( * ) FROM tab2
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col1 * - + 91 col2 FROM tab0 WHERE ( + + col2 ) IS NULL
----

query I rowsort
SELECT ALL + col1 - col0 * + col0 FROM tab1
----
-2587
-7220
-8234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8537
SELECT DISTINCT - col1 FROM tab1 WHERE - 9 + 11 IN ( - + CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT - col1 FROM tab1 WHERE - 9 + 11 IN ( - + CAST ( col0 AS INTEGER ) )
----

query I rowsort
SELECT + 56 * + - col1 * col0 + - 80 FROM tab1
----
-23880
-239592
-40064

query I rowsort
SELECT DISTINCT col2 - - 46 * - col1 AS col1 FROM tab0
----
-3679
-956
53

query I rowsort
SELECT DISTINCT - 87 + col1 AS col1 FROM tab2 cor0
----
-10
-20
-36

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 39 > ( - 77 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 * - col1 col0 FROM tab2 AS cor0
----
1275
1675
1925

query III rowsort
SELECT * FROM tab1 WHERE ( + ( + col0 ) ) * + col1 NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + + col1 ) AS col0 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT + col1 / - + 39 + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8545
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col1 / - + 39 + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8546
SELECT ALL SUM( - col0 ), 33 AS col2 FROM tab0
----
-199
33

skipif mysql # not compatible
query II rowsort label-8546
SELECT ALL SUM ( - col0 ), 33 AS col2 FROM tab0
----
-199
33

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + col2 * col0 - 3 / - col0 ) <> 6 + + 1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 <> NULL
----

query II rowsort
SELECT ALL col2 * + + 43 * + col0 AS col2, + 24 FROM tab0 AS cor0
----
30315
24
37410
24
412929
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8550
SELECT - CAST( NULL AS DECIMAL ) * + 32 * + col0 + ( + + col2 ) * + col0 + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8550
SELECT - CAST ( NULL AS REAL ) * + 32 * + col0 + ( + + col2 ) * + col0 + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8551
SELECT ALL + CAST( + col1 AS SIGNED ) DIV - col2 * - - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL + CAST ( + col1 AS INTEGER ) / - col2 * - - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8552
SELECT DISTINCT - 79 col0, MAX( ALL - col1 ) AS col2 FROM tab0
----
-79
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8552
SELECT DISTINCT - 79 col0, MAX ( ALL - col1 ) AS col2 FROM tab0
----
-79
-1

query II rowsort
SELECT ALL + col2, - col0 - col1 FROM tab1
----
59
-90
68
-138
96
-65

query II rowsort
SELECT DISTINCT + 21, 20 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
21
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT - + COUNT( * ) * - COUNT( DISTINCT + + ( + 12 ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8555
SELECT - + COUNT ( * ) * - COUNT ( DISTINCT + + ( + 12 ) ) col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT + + ( col1 ) * + col1 AS col2, col0 FROM tab0 AS cor0
----
1
97
441
87
6561
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 + - col0 + - 77 col2 FROM tab0
----
-146
-218
-228

query II rowsort
SELECT DISTINCT col0 + + ( - 7 ) * col0, - col2 AS col1 FROM tab2
----
-276
-23
-384
-40
-450
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 * col0 + + col1 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8560
SELECT ALL - col1 DIV col0 + - col1 + - col1 + + col1 col0 FROM tab0 AS cor0
----
-1
-21
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8560
SELECT ALL - col1 / col0 + - col1 + - col1 + + col1 col0 FROM tab0 AS cor0
----
-1
-21
-86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 73 + - 70, 23 col1 FROM tab2 AS cor0
----
-143
23
-143
23
-143
23

query I rowsort
SELECT + 74 + + 95 AS col0 FROM tab0 AS cor0
----
169
169
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8564
SELECT DISTINCT - - ( + 12 ) * - - CAST( NULL AS SIGNED ) / + COUNT( - + col1 ) - + 49 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT - - ( + 12 ) * - - CAST ( NULL AS INTEGER ) / + COUNT ( - + col1 ) - + 49 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + col1, col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8566
SELECT + col1 DIV 83 + 84 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
84
84
84

skipif mysql # not compatible
query I rowsort label-8566
SELECT + col1 / 83 + 84 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
84
84
84

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + 63
----

query I rowsort
SELECT ALL + 2 * + 36 * col2 FROM tab2 AS cor0
----
1656
2880
4176

onlyif mysql # DIV for integer division: 
query I rowsort label-8569
SELECT ALL - 24 * + 64 + - 16 DIV + col0 * + + 55 FROM tab1 cor0
----
-1536
-1536
-1536

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL - 24 * + 64 + - 16 / + col0 * + + 55 FROM tab1 cor0
----
-1536
-1536
-1536

onlyif mysql # DIV for integer division: 
query I rowsort label-8570
SELECT DISTINCT 22 * col0 + - - 24 DIV - col2 FROM tab1
----
1122
1870
2002

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT 22 * col0 + - - 24 / - col2 FROM tab1
----
1122
1870
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT DISTINCT + 98 + + + COUNT( * ) AS col1 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT + 98 + + + COUNT ( * ) AS col1 FROM tab0
----
101

query II rowsort
SELECT - col0 AS col2, + col2 AS col0 FROM tab2
----
-46
23
-64
40
-75
58

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL IN ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - - col0 ) + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab1 AS cor0 WHERE ( 40 * - + col1 * + 16 / + + col0 ) NOT BETWEEN col2 + - - 5 AND - col0
----
51
85
91

query I rowsort
SELECT DISTINCT - 26 * - - 28 FROM tab2
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL + 6 * - MIN( ALL 8 ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL + 6 * - MIN ( ALL 8 ) FROM tab1 AS cor0
----
-48

query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab1 cor0 WHERE NOT 96 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 5 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT 74 AS col1, col1 * 33 FROM tab2 cor0
----
74
1683
74
2211
74
2541

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + col0 + + 66
----

query II rowsort
SELECT DISTINCT col0 * - 59, - col2 AS col0 FROM tab1
----
-3009
-96
-5015
-59
-5369
-68

query I rowsort
SELECT DISTINCT - 71 * + + 8 FROM tab1
----
-568

query I rowsort
SELECT 81 * + 73 FROM tab1
----
5913
5913
5913

query I rowsort
SELECT DISTINCT + col1 * - + col0 + - - col0 FROM tab1
----
-340
-4186
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT DISTINCT - SUM( DISTINCT 67 ) AS col2 FROM tab0 cor0
----
-67

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT - SUM ( DISTINCT 67 ) AS col2 FROM tab0 cor0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-8588
SELECT + col2 DIV + col2 - - col0 + - col1 * - col0 + - - col1 AS col0 FROM tab2 AS cor0
----
2444
5070
5168

skipif mysql # not compatible
query I rowsort label-8588
SELECT + col2 / + col2 - - col0 + - col1 * - col0 + - - col1 AS col0 FROM tab2 AS cor0
----
2444
5070
5168

query I rowsort
SELECT + 78 * - 28 * - 99 + - + col0 AS col2 FROM tab0
----
216119
216129
216201

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT DISTINCT CAST( - 77 AS SIGNED ) + - 5 * col2 AS col1 FROM tab0
----
-127
-312
-572

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT CAST ( - 77 AS INTEGER ) + - 5 * col2 AS col1 FROM tab0
----
-127
-312
-572

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = - + ( 7 ) + + - col2
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 47 * - col1 AS col1 FROM tab2 AS cor0
----
2397
3149
3619

query I rowsort
SELECT - col0 - col1 * + + col2 * col1 AS col1 FROM tab1 AS cor0
----
-150303
-1560
-18867

onlyif mysql # aggregate syntax: 
query II rowsort label-8596
SELECT COUNT( * ) - - SUM( ALL - 19 ) AS col2, 45 * - COUNT( * ) FROM tab2 AS cor0
----
-54
-135

skipif mysql # not compatible
query II rowsort label-8596
SELECT COUNT ( * ) - - SUM ( ALL - 19 ) AS col2, 45 * - COUNT ( * ) FROM tab2 AS cor0
----
-54
-135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col1 FROM tab0
----
8
8
8

query I rowsort
SELECT DISTINCT ( - col1 ) * + col2 + 82 AS col0 FROM tab2
----
-1091
-2998
-3804

query II rowsort
SELECT col0 - + + col0 AS col0, 17 AS col1 FROM tab0
----
0
17
0
17
0
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8600
SELECT - col2 - + col0 DIV - 39 AS col0 FROM tab1
----
-57
-66
-95

skipif mysql # not compatible
query I rowsort label-8600
SELECT - col2 - + col0 / - 39 AS col0 FROM tab1
----
-57
-66
-95

query I rowsort
SELECT 82 * - - col1 + col1 FROM tab0
----
1743
6723
83

query I rowsort
SELECT + 2 + - - 9 * + 68 AS col0 FROM tab2
----
614
614
614

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT ALL SUM( + col2 ) + + COUNT( * ) AS col1 FROM tab1
----
226

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL SUM ( + col2 ) + + COUNT ( * ) AS col1 FROM tab1
----
226

query I rowsort
SELECT col2 + + col1 + + col2 + - 30 + - col0 FROM tab1
----
125
62
8

query I rowsort
SELECT - 78 FROM tab1 WHERE 31 NOT IN ( + ( col2 ), col0 - + col2, 32 )
----
-78
-78
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8606
SELECT ALL + CAST( 12 AS SIGNED ) FROM tab0 AS cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL + CAST ( 12 AS INTEGER ) FROM tab0 AS cor0
----
12
12
12

query I rowsort
SELECT DISTINCT + 40 AS col1 FROM tab2 AS cor0 WHERE 14 = col2
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT + SUM( 0 ) * - 35 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8609
SELECT + SUM ( 0 ) * - 35 FROM tab2
----
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) * + - 71 AS col1 FROM tab0
----
-639

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) * + - 71 AS col1 FROM tab0
----
-639

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8612
SELECT 99 AS col1, ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT ( NOT NULL = + col0 )
----

skipif mysql # not compatible
query II rowsort label-8612
SELECT 99 AS col1, ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT ( NOT NULL = + col0 )
----

query I rowsort
SELECT ALL + col2 * col2 + - 45 * + ( + col1 ) FROM tab0 cor0
----
-1436
-845
9756

query I rowsort
SELECT 71 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT + COUNT( ALL + 80 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8615
SELECT + COUNT ( ALL + 80 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - 25 * ( + col0 ) FROM tab0 AS cor0
----
2175
2425
375

query I rowsort
SELECT - + col1 * + ( - col0 ) FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT - MIN( col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8618
SELECT - MIN ( col2 ) AS col1 FROM tab0 AS cor0
----
-10

query II rowsort
SELECT ( col0 ), 0 AS col0 FROM tab2
----
46
0
64
0
75
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 4 * - 14 AS col0, - 39 col0 FROM tab1
----
56
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT - 5 + + COUNT( * ) + 54 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-8621
SELECT - 5 + + COUNT ( * ) + 54 FROM tab0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT CAST( NULL AS SIGNED ) + + 44 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8622
SELECT CAST ( NULL AS INTEGER ) + + 44 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8623
SELECT ALL 20 + + col2 DIV 52 AS col2 FROM tab0
----
20
20
21

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL 20 + + col2 / 52 AS col2 FROM tab0
----
20
20
21

query I rowsort
SELECT DISTINCT - 33 * - col1 + - col0 FROM tab0
----
-64
2658
606

query I rowsort
SELECT col2 + col2 * - + col0 + - col2 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + 35 * - + col0 FROM tab1 AS cor0
----
-1785
-2975
-3185

query I rowsort
SELECT col0 * - 59 FROM tab0 AS cor0
----
-5133
-5723
-885

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT DISTINCT ( - COUNT( * ) ) + - - MIN( - ( - + 34 ) ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT ( - COUNT ( * ) ) + - - MIN ( - ( - + 34 ) ) FROM tab1
----
31

query I rowsort
SELECT + col0 + + 45 FROM tab0
----
132
142
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT + 98 + - - COUNT( * ) + - + 11 AS col1 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-8630
SELECT + 98 + - - COUNT ( * ) + - + 11 AS col1 FROM tab2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8631
SELECT DISTINCT - - CAST( + col1 AS SIGNED ) * 94 + ( - + 84 ) AS col2 FROM tab2 AS cor0
----
4710
6214
7154

skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT - - CAST ( + col1 AS INTEGER ) * 94 + ( - + 84 ) AS col2 FROM tab2 AS cor0
----
4710
6214
7154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8632
SELECT col2 * CAST( NULL AS SIGNED ) * + col0 + - col1 * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8632
SELECT col2 * CAST ( NULL AS INTEGER ) * + col0 + - col1 * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * col2 * + ( - + col1 ) * - col2 + + col1 - col1 * col1 + - col0 FROM tab2 AS cor0
----
1373333
15096499
9480484

query I rowsort
SELECT + 42 + - + col1 FROM tab2 AS cor0
----
-25
-35
-9

query I rowsort
SELECT - 9 + col2 + + col0 FROM tab0 AS cor0
----
187
53
88

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8637
SELECT DISTINCT - + ( + - 84 ) - - col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
84
85

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT - + ( + - 84 ) - - col0 / + col2 AS col0 FROM tab1 AS cor0
----
84
85

onlyif mysql # DIV for integer division: 
query II rowsort label-8638
SELECT + col1 + col0 + - - col0 + + + col2 * col0 * - col2 * - 98 * 13 + + col0 DIV + 35 AS col1, col2 * + col1 * - col2 FROM tab1 cor0
----
376957667
-17405
536079047
-217328
598800501
-129024

skipif mysql # not compatible
query II rowsort label-8638
SELECT + col1 + col0 + - - col0 + + + col2 * col0 * - col2 * - 98 * 13 + + col0 / + 35 AS col1, col2 * + col1 * - col2 FROM tab1 cor0
----
376957667
-17405
536079047
-217328
598800501
-129024

query I rowsort
SELECT + col0 * - col0 + - + ( 5 ) AS col1 FROM tab0 AS cor0
----
-230
-7574
-9414

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT - COUNT( DISTINCT col0 ) * - - 89 + 17 AS col1 FROM tab0 AS cor0
----
-250

skipif mysql # not compatible
query I rowsort label-8640
SELECT - COUNT ( DISTINCT col0 ) * - - 89 + 17 AS col1 FROM tab0 AS cor0
----
-250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8641
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - SUM( + - col0 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - SUM ( + - col0 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8642
SELECT 52 DIV + 19 + - + COUNT( * ) col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8642
SELECT 52 / + 19 + - + COUNT ( * ) col2 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT DISTINCT - 44, ( col1 ) FROM tab1
----
-44
14
-44
47
-44
5

query II rowsort
SELECT ALL col2 AS col0, 18 AS col1 FROM tab1
----
59
18
68
18
96
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8645
SELECT DISTINCT + + AVG ( - col0 ) / - 97 * - - 56 - CAST( NULL AS SIGNED ) * + 94 FROM tab0 WHERE NOT + - 32 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8645
SELECT DISTINCT + + AVG ( - col0 ) / - 97 * - - 56 - CAST ( NULL AS INTEGER ) * + 94 FROM tab0 WHERE NOT + - 32 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + 85 AS col0, - 96 * - - col1 AS col1 FROM tab0
----
85
-2016
85
-7776
85
-96

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE + - col2 NOT IN ( col0 )
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + - col2 ) = col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8649
SELECT - 18 AS col2, + COUNT( * ) AS col2 FROM tab2
----
-18
3

skipif mysql # not compatible
query II rowsort label-8649
SELECT - 18 AS col2, + COUNT ( * ) AS col2 FROM tab2
----
-18
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 97 + - col1 < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 59 AS col0 FROM tab2 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT + - MAX( col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8652
SELECT + - MAX ( col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8653
SELECT DISTINCT COUNT( * ) DIV - + 72 AS col0 FROM tab0 AS cor0 WHERE NOT + 14 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT COUNT ( * ) / - + 72 AS col0 FROM tab0 AS cor0 WHERE NOT + 14 = NULL
----
0

query I rowsort
SELECT - 83 * + - col1 FROM tab0
----
1743
6723
83

query I rowsort
SELECT - col2 * + ( + col2 ) FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ALL - - 33 AS col0 FROM tab1 AS cor0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8657
SELECT + + col2 * + - 67 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8657
SELECT + + col2 * + - 67 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 90 <> - + 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT + MIN( - col0 ) col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8659
SELECT + MIN ( - col0 ) col0 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8660
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * - - col0 FROM tab1 AS cor0 WHERE - 80 > + 30
----

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * - - col0 FROM tab1 AS cor0 WHERE - 80 > + 30
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 * 15 * + 4 AND - + col0 - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8662
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-8662
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT AVG ( DISTINCT - ( + ( + + col1 ) ) ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT SUM( DISTINCT - 25 ) FROM tab1 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8664
SELECT SUM ( DISTINCT - 25 ) FROM tab1 cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT ALL - COUNT( * ) * 65 col1 FROM tab0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8665
SELECT ALL - COUNT ( * ) * 65 col1 FROM tab0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT DISTINCT - COUNT( + - 50 ) + + - 18 AS col2 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT - COUNT ( + - 50 ) + + - 18 AS col2 FROM tab2
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8667
SELECT COUNT( * ), 51 DIV + COUNT( * ) + COUNT( + 47 ) - - + COUNT( ALL + + col2 ) col1 FROM tab0
----
3
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8667
SELECT COUNT ( * ), 51 / + COUNT ( * ) + COUNT ( + 47 ) - - + COUNT ( ALL + + col2 ) col1 FROM tab0
----
3
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8668
SELECT + CAST( COUNT( * ) AS SIGNED ) * + 85 * - COUNT( * ) FROM tab0
----
-765

skipif mysql # not compatible
query I rowsort label-8668
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * + 85 * - COUNT ( * ) FROM tab0
----
-765

query I rowsort
SELECT ALL - col2 + + 42 AS col2 FROM tab1
----
-17
-26
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT DISTINCT - MAX( DISTINCT - 78 ) AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT - MAX ( DISTINCT - 78 ) AS col0 FROM tab0
----
78

query I rowsort
SELECT - col0 * + 87 AS col1 FROM tab0
----
-1305
-7569
-8439

onlyif mysql # DIV for integer division: 
query I rowsort label-8672
SELECT ALL col1 DIV col2 AS col1 FROM tab0 WHERE ( - col0 - - col2 ) IS NOT NULL
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL col1 / col2 AS col1 FROM tab0 WHERE ( - col0 - - col2 ) IS NOT NULL
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8673
SELECT - col0 * CAST( col0 AS SIGNED ) - CAST( col0 AS SIGNED ) + + 3 FROM tab1 AS cor0
----
-2649
-7307
-8369

skipif mysql # not compatible
query I rowsort label-8673
SELECT - col0 * CAST ( col0 AS INTEGER ) - CAST ( col0 AS INTEGER ) + + 3 FROM tab1 AS cor0
----
-2649
-7307
-8369

onlyif mysql # aggregate syntax: 
query II rowsort label-8674
SELECT DISTINCT - - COUNT( * ), COUNT( * ) AS col1 FROM tab2 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8674
SELECT DISTINCT - - COUNT ( * ), COUNT ( * ) AS col1 FROM tab2 cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT ( col0 ) + - CAST( NULL AS SIGNED ) * + col2 / - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT ( col0 ) + - CAST ( NULL AS INTEGER ) * + col2 / - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 71 * - - col2 AS col1 FROM tab0
----
3337
7029
710

query I rowsort
SELECT ALL 17 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8678
SELECT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT col1 - + - col1 AS col2 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8682
SELECT DISTINCT col2 * + 4 * col2 + - CAST( - - col0 AS SIGNED ) - col0 col0 FROM tab0 AS cor0
----
226
39010
8806

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8682
SELECT DISTINCT col2 * + 4 * col2 + - CAST ( - - col0 AS INTEGER ) - col0 col0 FROM tab0 AS cor0
----
226
39010
8806

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL - SUM( - col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL - SUM ( - col0 ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-8684
SELECT 3 * - - ( + 66 ) DIV + 2 + col2 * - - col1 DIV col2 DIV - col2 + + col2 AS col2 FROM tab1
----
158
167
195

skipif mysql # not compatible
query I rowsort label-8684
SELECT 3 * - - ( + 66 ) / + 2 + col2 * - - col1 / col2 / - col2 + + col2 AS col2 FROM tab1
----
158
167
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT - MIN( DISTINCT + col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8685
SELECT - MIN ( DISTINCT + col2 ) FROM tab0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8686
SELECT - COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8686
SELECT - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + col0 * - ( + 33 ) FROM tab1 AS cor0 WHERE NOT col2 + col2 IS NULL
----
-1683
-2805
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT MAX( - col1 ) AS col0 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8688
SELECT MAX ( - col1 ) AS col0 FROM tab2 cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8689
SELECT CAST( NULL AS SIGNED ) AS col1, - col1 AS col0 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-8689
SELECT CAST ( NULL AS INTEGER ) AS col1, - col1 AS col0 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 = + col0
----

query I rowsort
SELECT - + 6 + - + 59 FROM tab2 AS cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT DISTINCT - + COUNT( DISTINCT + + col2 ) * + 95 AS col2 FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT - + COUNT ( DISTINCT + + col2 ) * + 95 AS col2 FROM tab2 AS cor0
----
-285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8693
SELECT + 65 + - - CAST( + - 74 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE col1 + + - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8693
SELECT + 65 + - - CAST ( + - 74 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE col1 + + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT 95 + + - COUNT( * ) col1 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8694
SELECT 95 + + - COUNT ( * ) col1 FROM tab2 AS cor0
----
92

query I rowsort
SELECT ALL + col0 * + + 34 + - + 15 FROM tab0
----
2943
3283
495

query II rowsort
SELECT DISTINCT + col1 + + 77 AS col0, - ( - 27 ) FROM tab0
----
158
27
78
27
98
27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col0 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8698
SELECT DISTINCT 13 + + col1 DIV col0 FROM tab2
----
13
14

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT 13 + + col1 / col0 FROM tab2
----
13
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8699
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - ( + + col1 ) * col2 + + col0 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - ( + + col1 ) * col2 + + col0 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ALL - MIN( ALL - col2 ) + COUNT( * ) AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL - MIN ( ALL - col2 ) + COUNT ( * ) AS col2 FROM tab2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8701
SELECT DISTINCT + 33 + + + CAST( + + COUNT( + 62 ) AS SIGNED ) AS col1 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT + 33 + + + CAST ( + + COUNT ( + 62 ) AS INTEGER ) AS col1 FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT - ( - + MIN( DISTINCT - 26 ) ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-8702
SELECT - ( - + MIN ( DISTINCT - 26 ) ) FROM tab2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8703
SELECT ALL + + AVG ( col2 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL + + AVG ( col2 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + col2 - - + 97, - 30 + + + col0 AS col1 FROM tab2 AS cor0
----
120
16
137
34
155
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT DISTINCT - col1 DIV col0 + - col2 + + col0 + 16 + - 92 AS col2 FROM tab1 AS cor0
----
-121
-50
-53

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT - col1 / col0 + - col2 + + col0 + 16 + - 92 AS col2 FROM tab1 AS cor0
----
-121
-50
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT ALL 74 - - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL 74 - - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
71

query I rowsort
SELECT DISTINCT + col2 * - 44 AS col1 FROM tab0 AS cor0
----
-2068
-4356
-440

query I rowsort
SELECT - - col0 * + 82 FROM tab0 AS cor0
----
1230
7134
7954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 * - 94 col2 FROM tab2 AS cor0
----
-4418

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT DISTINCT + MAX( - col1 ) AS col2 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8710
SELECT DISTINCT + MAX ( - col1 ) AS col2 FROM tab1 cor0
----
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 59 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8712
SELECT ALL col2 DIV - - col2 + + col2 AS col0 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL col2 / - - col2 + + col2 AS col0 FROM tab1 AS cor0
----
60
69
97

query I rowsort
SELECT - col1 * + - 81 AS col0 FROM tab2
----
4131
5427
6237

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT NULL = + ( col2 )
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8716
SELECT col1 DIV - + 59 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8716
SELECT col1 / - + 59 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT col2 + col2 - + 69 IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + 99 * + 38 AS col1 FROM tab0
----
3762
3762
3762

query I rowsort
SELECT col0 FROM tab0 WHERE NOT + 27 - - 12 + + col1 * - + 74 = ( + col0 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8720
SELECT COUNT( * ), COUNT( - ( - - col0 ) ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8720
SELECT COUNT ( * ), COUNT ( - ( - - col0 ) ) AS col0 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8721
SELECT DISTINCT - 31 AS col2, MIN( + col0 ) FROM tab2
----
-31
46

skipif mysql # not compatible
query II rowsort label-8721
SELECT DISTINCT - 31 AS col2, MIN ( + col0 ) FROM tab2
----
-31
46

query I rowsort
SELECT + ( + + col0 ) AS col1 FROM tab0
----
15
87
97

query II rowsort
SELECT ALL + col1 AS col0, 10 AS col2 FROM tab0 AS cor0
----
1
10
21
10
81
10

query I rowsort
SELECT + ( - - col0 ) * col2 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + 68 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8726
SELECT ALL - col0 DIV + 74 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL - col0 / + 74 FROM tab0 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 65, ( col2 ) )
----

query I rowsort
SELECT DISTINCT - col0 * - col0 + - col2 AS col0 FROM tab2
----
2093
4056
5567

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8729
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8729
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col0 + - col1 - - 56 AS col0 FROM tab0
----
-10
122
152

query I rowsort
SELECT 48 * col0 FROM tab1 cor0
----
2448
4080
4368

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + 25 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT ALL + COUNT( DISTINCT col2 ) * + 45 + - - 54 col2 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8733
SELECT ALL + COUNT ( DISTINCT col2 ) * + 45 + - - 54 col2 FROM tab0 AS cor0
----
189

query II rowsort
SELECT - col0, - col0 FROM tab2
----
-46
-46
-64
-64
-75
-75

query III rowsort
SELECT * FROM tab1 WHERE 70 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8736
SELECT DISTINCT col1 * + 40 + + - CAST( - + CAST( + col1 AS SIGNED ) AS SIGNED ) FROM tab2
----
2091
2747
3157

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT col1 * + 40 + + - CAST ( - + CAST ( + col1 AS INTEGER ) AS INTEGER ) FROM tab2
----
2091
2747
3157

query II rowsort
SELECT ALL + col1 AS col0, - col1 - - col0 + + 26 FROM tab2
----
51
21
67
34
77
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT ALL + COUNT( + col1 ) - - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL + COUNT ( + col1 ) - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
6

query I rowsort
SELECT ALL + 66 + - + col2 AS col0 FROM tab2
----
26
43
8

query II rowsort
SELECT DISTINCT col2 + - 21 + + col2, col1 FROM tab0
----
-1
21
177
1
73
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT + COUNT( * ) + + + 61 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-8741
SELECT + COUNT ( * ) + + + 61 FROM tab0
----
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8742
SELECT - CAST( NULL AS DECIMAL ) / col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8742
SELECT - CAST ( NULL AS REAL ) / col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8743
SELECT + col2 DIV + ( col0 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8743
SELECT + col2 / + ( col0 ) AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * 87 + col2 IS NULL
----

query III rowsort
SELECT - col2 AS col2, ( col0 ) AS col1, - col1 - col1 FROM tab1 AS cor0 WHERE NOT + col0 / + 60 + 52 IS NULL
----
9 values hashing to 1f9e0d5a5b882e63067bc6b7c9686a6c

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 ) BETWEEN - col1 AND NULL
----

query I rowsort
SELECT + - 71 * + col1 AS col1 FROM tab1 AS cor0
----
-3337
-355
-994

query II rowsort
SELECT + 53 AS col0, col1 FROM tab0
----
53
1
53
21
53
81

query I rowsort
SELECT ALL - ( + 63 ) * - col1 AS col0 FROM tab0
----
1323
5103
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT ALL COUNT( * ) * - 59 * - ( + 78 ) AS col2 FROM tab2
----
13806

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL COUNT ( * ) * - 59 * - ( + 78 ) AS col2 FROM tab2
----
13806

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NULL ) <> - 10 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT DISTINCT - 95 * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT - 95 * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT DISTINCT - - MIN( DISTINCT col2 ) col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8754
SELECT DISTINCT - - MIN ( DISTINCT col2 ) col2 FROM tab0 AS cor0
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 * + + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT + SUM( ALL 4 ) AS col0 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-8756
SELECT + SUM ( ALL 4 ) AS col0 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT ALL + 67 * + 99 + - + COUNT( * ) * - COUNT( * ) + COUNT( * ) FROM tab2
----
6645

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL + 67 * + 99 + - + COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) FROM tab2
----
6645

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 + - - col1 col0 FROM tab2 AS cor0
----
26
42
52

query I rowsort
SELECT ALL col2 * - - col2 + + 63 + + - 49 * - - col0 FROM tab1 AS cor0
----
-621
228
6780

query I rowsort
SELECT + col0 + + + 51 FROM tab2 AS cor0
----
115
126
97

query I rowsort
SELECT + 98 * col0 + + col0 FROM tab0 AS cor0
----
1485
8613
9603

query II rowsort
SELECT DISTINCT - col0 AS col2, - col0 + - col1 FROM tab2 cor0
----
-46
-97
-64
-141
-75
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL - COUNT( ALL + col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL - COUNT ( ALL + col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8764
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8765
SELECT + - 13 + - COUNT( * ) AS col0, + SUM( ALL + - col0 ) AS col2 FROM tab1 cor0
----
-16
-227

skipif mysql # not compatible
query II rowsort label-8765
SELECT + - 13 + - COUNT ( * ) AS col0, + SUM ( ALL + - col0 ) AS col2 FROM tab1 cor0
----
-16
-227

query I rowsort
SELECT ALL + - 32 + - ( + col2 ) + + - col1 FROM tab1 AS cor0 WHERE NOT 64 IS NULL
----
-142
-147
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8767
SELECT ALL - MIN( + CAST( + col1 AS SIGNED ) ) + + COUNT( - 78 ) AS col2, - 91 * - - SUM( + 20 ) FROM tab2
----
-48
-5460

skipif mysql # not compatible
query II rowsort label-8767
SELECT ALL - MIN ( + CAST ( + col1 AS INTEGER ) ) + + COUNT ( - 78 ) AS col2, - 91 * - - SUM ( + 20 ) FROM tab2
----
-48
-5460

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 9 <= col0 - + col1 / 53 * - 65 / - 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE - 61 BETWEEN - col0 AND - 11 * col1 * + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8770
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) - + - COUNT( * ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8770
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) - + - COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8771
SELECT - - COUNT( * ) DIV ( 84 ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-8771
SELECT - - COUNT ( * ) / ( 84 ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
0

query I rowsort
SELECT - 96 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT DISTINCT + 58 * + - COUNT( * ) - COUNT( * ) + + ( + + 23 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-508

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT + 58 * + - COUNT ( * ) - COUNT ( * ) + + ( + + 23 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8774
SELECT + ( + + 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-8774
SELECT + ( + + 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-8775
SELECT DISTINCT MIN( - 19 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-19

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT MIN ( - 19 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-19

query I rowsort
SELECT + ( + ( + - col1 ) ) * - col2 FROM tab1 cor0
----
1344
295
3196

query II rowsort
SELECT + 22 AS col1, col0 + + col2 * - 87 - + - col1 FROM tab2 AS cor0
----
22
-1904
22
-3339
22
-4904

onlyif mysql # DIV for integer division: 
query I rowsort label-8778
SELECT DISTINCT 49 DIV + + 53 * - col2 - col1 AS col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT 49 / + + 53 * - col2 - col1 AS col1 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT - - COUNT( - col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8779
SELECT - - COUNT ( - col0 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + + 25 AS col0 FROM tab0 AS cor0
----
25
25
25

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 * + col1 >= + - col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT SUM( ALL + - 9 ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-8782
SELECT SUM ( ALL + - 9 ) FROM tab1
----
-27

query I rowsort
SELECT DISTINCT - col2 * - - col2 AS col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT - 65 * - COUNT( * ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8784
SELECT - 65 * - COUNT ( * ) AS col1 FROM tab2
----
195

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> col0 * + col0
----

query II rowsort
SELECT + col0 * - 48, 57 AS col1 FROM tab2
----
-2208
57
-3072
57
-3600
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8787
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 54 ) col0, + col1 * col0 FROM tab1
----
54
425
54
4277
54
714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8789
SELECT 72 DIV - COUNT( * ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-8789
SELECT 72 / - COUNT ( * ) FROM tab2
----
-24

query III rowsort
SELECT * FROM tab0 WHERE NOT 33 + - col1 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col0 * + + col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query II rowsort label-8792
SELECT + 46 AS col1, - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
46
-9

skipif mysql # not compatible
query II rowsort label-8792
SELECT + 46 AS col1, - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
46
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8793
SELECT - COUNT( ( - col0 ) ), 63 AS col2 FROM tab2 AS cor0
----
-3
63

skipif mysql # not compatible
query II rowsort label-8793
SELECT - COUNT ( ( - col0 ) ), 63 AS col2 FROM tab2 AS cor0
----
-3
63

query I rowsort
SELECT + + 38 AS col1 FROM tab2 AS cor0 WHERE NULL <> - 61
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8795
SELECT ALL CAST( NULL AS DECIMAL ) * + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL CAST ( NULL AS REAL ) * + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8796
SELECT + 1 DIV + 11 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-8796
SELECT + 1 / + 11 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col2 + + col0 + 63 + + 28 AS col0 FROM tab1 AS cor0
----
114
117
46

query I rowsort
SELECT + col0 - + 48 AS col0 FROM tab2
----
-2
16
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8799
SELECT - CAST( NULL AS SIGNED ) - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8799
SELECT - CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT 68 * col0 + - col1 FROM tab2
----
3077
4275
5033

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT COUNT( * ) FROM tab1 WHERE + - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8801
SELECT COUNT ( * ) FROM tab1 WHERE + - col1 IS NOT NULL
----
3

query I rowsort
SELECT - col2 * + col0 + + + col2 AS col2 FROM tab2
----
-1035
-2520
-4292

onlyif mysql # DIV for integer division: 
query I rowsort label-8803
SELECT DISTINCT + + col0 * - col1 - + col0 - + col2 DIV - col0 FROM tab2 AS cor0
----
-2392
-4992
-5100

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT + + col0 * - col1 - + col0 - + col2 / - col0 FROM tab2 AS cor0
----
-2392
-4992
-5100

query I rowsort
SELECT ALL col2 * + col1 - - - col0 AS col1 FROM tab1 AS cor0
----
1293
210
3105

query I rowsort
SELECT col0 * - - ( col0 ) AS col1 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8806
SELECT 11 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + col2 NOT IN ( col1 + 85 * - + 38 * - - 29 ) OR NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8806
SELECT 11 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + col2 NOT IN ( col1 + 85 * - + 38 * - - 29 ) OR NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 12 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL 46 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT ALL + COUNT( - - 79 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL + COUNT ( - - 79 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT + CAST( + 27 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-8810
SELECT + CAST ( + 27 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
27
27
27

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 21 + + + 36 * - col2 = 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT DISTINCT + + COUNT( - 24 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT + + COUNT ( - 24 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL SUM( DISTINCT + 47 ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL SUM ( DISTINCT + 47 ) FROM tab0 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT + SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8814
SELECT + SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ALL + COUNT( col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL + COUNT ( col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT - col1 - + col0 / + - col1 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN 95 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8818
SELECT ALL - col0 * + + col1 * - + 97 AS col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
117855
NULL
177219
NULL
9409
NULL

skipif mysql # not compatible
query II rowsort label-8818
SELECT ALL - col0 * + + col1 * - + 97 AS col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
117855
NULL
177219
NULL
9409
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT DISTINCT MIN( + col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT MIN ( + col2 ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8820
SELECT DISTINCT COUNT( - - ( - col0 ) ) AS col0, 67 AS col1 FROM tab0
----
3
67

skipif mysql # not compatible
query II rowsort label-8820
SELECT DISTINCT COUNT ( - - ( - col0 ) ) AS col0, 67 AS col1 FROM tab0
----
3
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - ( + col2 ) col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 * - + col2 col0 FROM tab2 AS cor0
----
-1320
-1914
-759

onlyif mysql # DIV for integer division: 
query II rowsort label-8823
SELECT 13 AS col1, 57 DIV + col2 DIV 22 * 14 * + ( + 89 ) * + + col2 - 14 * col0 AS col0 FROM tab2 cor0
----
13
-1050
13
-644
13
-896

skipif mysql # not compatible
query II rowsort label-8823
SELECT 13 AS col1, 57 / + col2 / 22 * 14 * + ( + 89 ) * + + col2 - 14 * col0 AS col0 FROM tab2 cor0
----
13
-1050
13
-644
13
-896

query I rowsort
SELECT ALL ( - col0 ) + + col2 + + 81 * + col2 AS col2 FROM tab2 AS cor0
----
1840
3216
4681

onlyif mysql # DIV for integer division: 
query I rowsort label-8825
SELECT - 43 DIV + col1 FROM tab1 cor0
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-8825
SELECT - 43 / + col1 FROM tab1 cor0
----
-3
-8
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT col1 DIV + - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8826
SELECT col1 / + - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT DISTINCT + ( - + COUNT( * ) ) + - - 25 AS col2 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-8827
SELECT DISTINCT + ( - + COUNT ( * ) ) + - - 25 AS col2 FROM tab1
----
22

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE - 14 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # DIV for integer division: 
query I rowsort label-8829
SELECT - + col0 DIV + col0 + - - 38 AS col2 FROM tab0 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-8829
SELECT - + col0 / + col0 + - - 38 AS col2 FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT ALL - 29 FROM tab2 AS cor0 WHERE - 82 * col0 - 30 + - col1 * - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8831
SELECT ALL - col2 DIV col0 * + - 5 * + + col2 + - + 78 + 8 AS col0 FROM tab0 cor0
----
-70
425
635

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL - col2 / col0 * + - 5 * + + col2 + - + 78 + 8 AS col0 FROM tab0 cor0
----
-70
425
635

query II rowsort
SELECT - + col1, - col0 * col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col1 * + - 54
----

query I rowsort
SELECT DISTINCT ( + col1 ) + + + 12 - - col2 * - - 68 * - 3 * + + ( - col1 ) AS col1 FROM tab2 AS cor0
----
239355
628409
792823

onlyif mysql # DIV for integer division: 
query I rowsort label-8834
SELECT DISTINCT - col0 DIV - - 58 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT - col0 / - - 58 AS col1 FROM tab1
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8835
SELECT ALL * FROM tab0 WHERE - CAST( - 45 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8835
SELECT ALL * FROM tab0 WHERE - CAST ( - 45 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL col0 * + col1 - - col1 FROM tab2
----
2397
5005
5092

query I rowsort
SELECT - 12 - - col0 FROM tab2
----
34
52
63

query I rowsort
SELECT 65 - - 69 AS col1 FROM tab1
----
134
134
134

query II rowsort
SELECT - col1 AS col2, - col0 * - - col1 * col2 AS col0 FROM tab1 AS cor0
----
-14
-68544
-47
-290836
-5
-25075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8840
SELECT ALL + + CAST( + - MIN( - 9 ) AS SIGNED ) * - COUNT( + col2 ) / - + 6 + - - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL + + CAST ( + - MIN ( - 9 ) AS INTEGER ) * - COUNT ( + col2 ) / - + 6 + - - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col1 * + + col0 col1 FROM tab2 AS cor0
----
119646
336675
379456

query II rowsort
SELECT DISTINCT col0, - col2 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8843
SELECT ALL + 74, COUNT( * ) * - COUNT( * ) col2 FROM tab0 AS cor0
----
74
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8843
SELECT ALL + 74, COUNT ( * ) * - COUNT ( * ) col2 FROM tab0 AS cor0
----
74
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 63 * - col1 col0 FROM tab1 AS cor0
----
-18585
-201348
-84672

query II rowsort
SELECT col1, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE 40 * col0 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT DISTINCT - SUM( 89 ) col2 FROM tab2 cor0
----
-267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8847
SELECT DISTINCT - SUM ( 89 ) col2 FROM tab2 cor0
----
-267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8848
SELECT DISTINCT - col1 * - CAST( - col0 AS SIGNED ) FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT - col1 * - CAST ( - col0 AS INTEGER ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query II rowsort label-8849
SELECT - SUM( + - col1 ), - COUNT( * ) * + 91 AS col0 FROM tab0
----
103
-273

skipif mysql # not compatible
query II rowsort label-8849
SELECT - SUM ( + - col1 ), - COUNT ( * ) * + 91 AS col0 FROM tab0
----
103
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 WHERE NOT 88 IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 87 > NULL
----

query I rowsort
SELECT - col1 + - + 35 AS col2 FROM tab0 AS cor0
----
-116
-36
-56

query I rowsort
SELECT - col1 + - + col1 AS col0 FROM tab0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT + COUNT( * ) col2 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-8855
SELECT + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 * 36 - col0 col2 FROM tab2
----
1653
1664
1682

query I rowsort
SELECT + col1 - + col0 AS col1 FROM tab1 AS cor0 WHERE - 30 + - col2 + - col0 NOT BETWEEN 65 * - col2 AND ( + - col0 )
----

query I rowsort
SELECT DISTINCT - 40 * + col2 * 2 * col0 * + col2 FROM tab2 AS cor0
----
-1946720
-20184000
-8192000

query I rowsort
SELECT ALL + 90 - 70 FROM tab0 AS cor0
----
20
20
20

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + - col1 <= + + col2
----

query I rowsort
SELECT + - 21 - + 30 FROM tab0 AS cor0
----
-51
-51
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT - CAST( + 64 AS SIGNED ) * col0 * - ( + + 76 ) FROM tab1 cor0 WHERE ( - col1 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-8863
SELECT - CAST ( + 64 AS INTEGER ) * col0 * - ( + + 76 ) FROM tab1 cor0 WHERE ( - col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT 55 - - COUNT( ALL 37 ) col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8864
SELECT 55 - - COUNT ( ALL 37 ) col1 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT COUNT( + 75 ) - - - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8865
SELECT COUNT ( + 75 ) - - - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT ALL col2 * + 62 AS col2 FROM tab1
----
3658
4216
5952

query I rowsort
SELECT + 42 * - col2 + + 24 FROM tab2
----
-1656
-2412
-942

query I rowsort
SELECT + col1 + + + col2 + col1 * + col2 AS col2 FROM tab1
----
1454
3311
359

query I rowsort
SELECT ALL 37 AS col2 FROM tab2
----
37
37
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8870
SELECT ALL ( ( - col1 ) ) * + CAST( NULL AS SIGNED ) + - 74 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL ( ( - col1 ) ) * + CAST ( NULL AS INTEGER ) + - 74 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8871
SELECT 63 DIV col2 * - - col2 * + col1 AS col1 FROM tab1
----
0
0
295

skipif mysql # not compatible
query I rowsort label-8871
SELECT 63 / col2 * - - col2 * + col1 AS col1 FROM tab1
----
0
0
295

query I rowsort
SELECT ALL + ( - - 39 ) * 86 AS col0 FROM tab0
----
3354
3354
3354

onlyif mysql # DIV for integer division: 
query I rowsort label-8873
SELECT DISTINCT 90 DIV col2 AS col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT 90 / col2 AS col2 FROM tab2
----
1
2
3

query II rowsort
SELECT DISTINCT col2, col1 * + + 59 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + - 94 * - 72 * - col1 AS col0 FROM tab2
----
-15877728
-33352704
-34009200

onlyif mysql # DIV for integer division: 
query I rowsort label-8876
SELECT 93 DIV - 69 + + - col1 * col2 FROM tab0 AS cor0
----
-100
-211
-3808

skipif mysql # not compatible
query I rowsort label-8876
SELECT 93 / - 69 + + - col1 * col2 FROM tab0 AS cor0
----
-100
-211
-3808

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT MIN( ALL + col1 ) col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8877
SELECT MIN ( ALL + col1 ) col1 FROM tab1 AS cor0
----
5

query I rowsort
SELECT 10 * + col1 * + col2 FROM tab2 AS cor0
----
11730
30800
38860

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8879
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - col2, col1 * - - 82 AS col0 FROM tab0 AS cor0
----
-10
1722
-47
6642
-99
82

query I rowsort
SELECT 80 + + col1 FROM tab0 AS cor0
----
101
161
81

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 WHERE + + 25 + - + 78 IS NOT NULL
----
1
21
81

query II rowsort
SELECT ALL col2 + col2 AS col2, col1 FROM tab2
----
116
67
46
51
80
77

query I rowsort
SELECT DISTINCT - col0 + + + col1 * - - col0 AS col2 FROM tab2
----
2300
4864
4950

query I rowsort
SELECT ALL col2 + + + 58 AS col2 FROM tab1
----
117
126
154

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ( + SUM( DISTINCT - col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8886
SELECT ( + SUM ( DISTINCT - col1 ) ) FROM tab2
----
-195

query II rowsort
SELECT col0, + col1 AS col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT - - ( + col2 ) FROM tab1 WHERE - col1 < + - col1 + - 59
----

query I rowsort
SELECT ALL + col0 + 21 + - ( col2 ) AS col1 FROM tab2
----
38
44
45

query I rowsort
SELECT DISTINCT + col2 - - - col1 + - col2 FROM tab2 cor0 WHERE col2 + + col0 = + col2 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL COUNT( * ) - + + ( ( + 87 ) ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL COUNT ( * ) - + + ( ( + 87 ) ) FROM tab2 AS cor0
----
-84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> 64
----

query I rowsort
SELECT DISTINCT + ( col1 ) - - col0 - col2 FROM tab1 AS cor0
----
-31
31
70

query I rowsort
SELECT ALL col0 - - - col1 FROM tab1 AS cor0
----
37
44
80

query II rowsort
SELECT ALL 0 * + ( col1 ) AS col0, col1 * + - col2 AS col2 FROM tab0
----
0
-210
0
-3807
0
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8896
SELECT DISTINCT 18 * 79 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT 18 * 79 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col0 * + + col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT + col0 * 3 AS col1 FROM tab1
----
153
255
273

query II rowsort
SELECT - col1 * - 75 * + col1, 7 AS col2 FROM tab0
----
33075
7
492075
7
75
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8900
SELECT DISTINCT + 24 * ( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT + 24 * ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query II rowsort
SELECT col2, + 52 FROM tab0 AS cor0
----
10
52
47
52
99
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT DISTINCT + 40 DIV col0 * - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-162
0

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT + 40 / col0 * - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-162
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * col1 * + ( + 53 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - ( - 43 ) AS col2 FROM tab0 cor0
----
3741
4171
645

query I rowsort
SELECT DISTINCT + + 75 FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT ALL COUNT( * ) * - 21 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL COUNT ( * ) * - 21 FROM tab0 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8907
SELECT ( - 37 ) AS col0 FROM tab2 WHERE NOT ( CAST( - col0 AS SIGNED ) ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8907
SELECT ( - 37 ) AS col0 FROM tab2 WHERE NOT ( CAST ( - col0 AS INTEGER ) ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8908
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 * CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8908
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 * CAST ( NULL AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 / - col0 = ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT ( col0 * + ( col1 ) ) = NULL
----

query I rowsort
SELECT DISTINCT ( + col2 ) - - col0 * + 59 FROM tab1
----
3105
5074
5437

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 WHERE NOT - 37 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * 56 FROM tab0 WHERE NULL NOT BETWEEN col2 AND ( - 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT + SUM( ( - col0 ) ) col1 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8914
SELECT + SUM ( ( - col0 ) ) col1 FROM tab1
----
-227

query I rowsort
SELECT + 11 * + col1 + col1 * col1 FROM tab0
----
12
672
7452

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT ALL + 44 + - COUNT( 44 ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL + 44 + - COUNT ( 44 ) FROM tab1
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 3 + + col1 col0 FROM tab0
----
-296
-60
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 + + col1 ) = 69
----

query I rowsort
SELECT ALL col1 + + col1 * + col2 FROM tab0
----
100
231
3888

query I rowsort
SELECT ( 23 ) AS col1 FROM tab0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT - MIN( DISTINCT + col0 ) col1 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8922
SELECT - MIN ( DISTINCT + col0 ) col1 FROM tab2
----
-46

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 * - col1 ) IN ( - 58 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT - ( + SUM( col0 ) ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8924
SELECT - ( + SUM ( col0 ) ) AS col0 FROM tab1
----
-227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8925
SELECT CAST( SUM( DISTINCT col2 ) AS SIGNED ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8925
SELECT CAST ( SUM ( DISTINCT col2 ) AS INTEGER ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL - MIN( ( - col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL - MIN ( ( - col0 ) ) FROM tab2
----
75

query I rowsort
SELECT + col2 * 96 - col1 FROM tab1 WHERE ( - ( col2 ) ) <= + 58
----
5659
6481
9202

query I rowsort
SELECT DISTINCT 79 * col1 FROM tab0
----
1659
6399
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8929
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT ( col1 + col0 ) < - CAST( NULL AS SIGNED ) + col2
----
0

skipif mysql # not compatible
query I rowsort label-8929
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( col1 + col0 ) < - CAST ( NULL AS INTEGER ) + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8930
SELECT ALL col0 FROM tab2 WHERE NOT ( col0 * + ( + col1 ) + + ( + CAST( + col2 AS SIGNED ) ) * + 69 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL col0 FROM tab2 WHERE NOT ( col0 * + ( + col1 ) + + ( + CAST ( + col2 AS INTEGER ) ) * + 69 ) IS NOT NULL
----

query I rowsort
SELECT ALL 38 * col0 + 19 AS col2 FROM tab1
----
1957
3249
3477

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT MIN( col1 ) + + COUNT( * ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8934
SELECT MIN ( col1 ) + + COUNT ( * ) FROM tab2 AS cor0
----
54

query I rowsort
SELECT DISTINCT - col1 - + col2 * - ( col0 - + col2 * col1 ) AS col1 FROM tab1 cor0
----
-12395
-124142
-211187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE col1 * 72 = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8936
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE col1 * 72 = ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8937
SELECT - 50 DIV COUNT( * ) AS col2 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-8937
SELECT - 50 / COUNT ( * ) AS col2 FROM tab1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT SUM( ALL col0 ) AS col2 FROM tab2 WHERE col0 * + ( - col1 ) NOT BETWEEN + col0 AND 3 + 46
----
185

skipif mysql # not compatible
query I rowsort label-8938
SELECT SUM ( ALL col0 ) AS col2 FROM tab2 WHERE col0 * + ( - col1 ) NOT BETWEEN + col0 AND 3 + 46
----
185

query I rowsort
SELECT ALL ( 34 ) * - col0 + + col2 * 7 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN - 22 AND - 80 * col0 + ( + 97 ) * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 62 * + 64 ) = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE + col2 + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 + col0 IS NULL
----
0

query I rowsort
SELECT ALL + - ( 60 ) FROM tab2 AS cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT + ( 90 ) FROM tab2 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT COUNT( * ) * 5 AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8945
SELECT COUNT ( * ) * 5 AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT - ( - 26 ) AS col1 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT + 47 / col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT - + SUM( DISTINCT + col2 ) col0 FROM tab0 cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8948
SELECT - + SUM ( DISTINCT + col2 ) col0 FROM tab0 cor0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( col0 ) + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 * col0 col0 FROM tab2
----
-3864
-5376
-6300

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT MAX( - + col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8951
SELECT MAX ( - + col2 ) AS col2 FROM tab1
----
-59

query I rowsort
SELECT DISTINCT + 51 * - 25 AS col1 FROM tab1
----
-1275

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND col2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT DISTINCT + SUM( ALL + 68 ) AS col1 FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT + SUM ( ALL + 68 ) AS col1 FROM tab2
----
204

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) >= ( 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT DISTINCT - + 15 * - + COUNT( DISTINCT ( col2 ) ) + - COUNT( * ) FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT - + 15 * - + COUNT ( DISTINCT ( col2 ) ) + - COUNT ( * ) FROM tab2 cor0
----
42

query I rowsort
SELECT DISTINCT - - 72 AS col0 FROM tab0 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8958
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 16 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8958
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 16 = - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8959
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 85 col2 FROM tab0
----
3995
8415
850

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 - - 85 BETWEEN ( col0 ) AND + 57 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 70 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8964
SELECT DISTINCT - COUNT( * ), SUM( DISTINCT + col0 ) AS col0 FROM tab1
----
-3
227

skipif mysql # not compatible
query II rowsort label-8964
SELECT DISTINCT - COUNT ( * ), SUM ( DISTINCT + col0 ) AS col0 FROM tab1
----
-3
227

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT DISTINCT 89 + - MIN( ALL - 96 ) * + MIN( 6 * col0 ) FROM tab2
----
26585

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT 89 + - MIN ( ALL - 96 ) * + MIN ( 6 * col0 ) FROM tab2
----
26585

query I rowsort
SELECT ALL 79 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8967
SELECT * FROM tab1 cor0 WHERE NOT + + col1 IN ( - col0 * col2 ) OR ( + col1 / + 96 + CAST( NULL AS SIGNED ) ) = - 59
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8967
SELECT * FROM tab1 cor0 WHERE NOT + + col1 IN ( - col0 * col2 ) OR ( + col1 / + 96 + CAST ( NULL AS INTEGER ) ) = - 59
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + - 9, + col0 FROM tab2 AS cor0
----
-9
46
-9
64
-9
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * 16 * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8971
SELECT col1 + col1 + - col0 DIV col2 FROM tab0 AS cor0
----
162
2
34

skipif mysql # not compatible
query I rowsort label-8971
SELECT col1 + col1 + - col0 / col2 FROM tab0 AS cor0
----
162
2
34

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + + 58 - + 95 FROM tab1 AS cor0
----
-42
-51
-84

query I rowsort
SELECT + + 4 + + col0 AS col0 FROM tab0 AS cor0
----
101
19
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 85 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 55 / 76 FROM tab1 WHERE - - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 82 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE col0 + + 81 IS NULL
----

query I rowsort
SELECT - col1 * + - ( - col1 ) FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * 78 + col1 NOT IN ( + col2 + 78 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 85 - - - col0 AS col0 FROM tab0 AS cor0
----
-100
-172
-182

query I rowsort
SELECT - col0 - col0 * + + col2 * + + col1 FROM tab2 AS cor0
----
-197184
-291525
-54004

query I rowsort
SELECT col0 - + col1 * 82 * + + col1 * col0 + col1 FROM tab0 AS cor0
----
-3145986
-7856
-8069934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 45 col1 FROM tab1 AS cor0
----
-45

query I rowsort
SELECT DISTINCT + col0 * - col1 + 67 AS col0 FROM tab1 cor0
----
-358
-4210
-647

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 94 * + col0 > ( + + col0 * + 55 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT - COUNT( - ( - - 21 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8988
SELECT - COUNT ( - ( - - 21 ) ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL <> 30
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8990
SELECT DISTINCT - - 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-8990
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col0 FROM tab0 AS cor0 WHERE NOT - col0 + - col1 = - 33
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 70 col0 FROM tab2 AS cor0
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + 4 * + col0 + 51 - col1 AND ( NULL )
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 62 * + col2 + + col2 + - col0 * - col2 >= col1 * + 47 + 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 + + 82
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 32 col1, - col0 FROM tab1 AS cor0
----
32
-51
32
-85
32
-91

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NULL = NULL
----

query II rowsort
SELECT 35 AS col2, col1 FROM tab1
----
35
14
35
47
35
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT DISTINCT ( + + MIN( ALL - + col1 ) ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT ( + + MIN ( ALL - + col1 ) ) AS col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9001
SELECT DISTINCT COUNT( * ) AS col1, 60 FROM tab2
----
3
60

skipif mysql # not compatible
query II rowsort label-9001
SELECT DISTINCT COUNT ( * ) AS col1, 60 FROM tab2
----
3
60

query I rowsort
SELECT ALL - + col1 + - col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 4 + + col0 * - 44
----

query I rowsort
SELECT col2 * + + col2 * + col2 AS col0 FROM tab2
----
12167
195112
64000

query I rowsort
SELECT ( + col1 ) * + col0 * ( 21 ) + - 54 + 28 FROM tab2
----
103462
105499
49240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9005
SELECT - ( - - CAST( - CAST( NULL AS SIGNED ) 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-9005
SELECT - ( - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9006
SELECT - 41 AS col2, COUNT( * ) col0 FROM tab0
----
-41
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9006
SELECT - 41 AS col2, COUNT ( * ) col0 FROM tab0
----
-41
3

query I rowsort
SELECT DISTINCT - - ( 84 ) FROM tab1 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-9008
SELECT DISTINCT + + 51 AS col2, COUNT( * ) FROM tab0 AS cor0
----
51
3

skipif mysql # not compatible
query II rowsort label-9008
SELECT DISTINCT + + 51 AS col2, COUNT ( * ) FROM tab0 AS cor0
----
51
3

query I rowsort
SELECT col1 * 72 AS col1 FROM tab0 AS cor0
----
1512
5832
72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 81 <= col1
----

query I rowsort
SELECT - 4 AS col2 FROM tab1 cor0 WHERE NOT col2 - 26 + 4 BETWEEN ( NULL ) AND ( + col1 * - col0 )
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9012
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - 83 NOT IN ( - 96 )
----

skipif mysql # not compatible
query III rowsort label-9012
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - 83 NOT IN ( - 96 )
----

query I rowsort
SELECT - 99 + + 15 FROM tab2
----
-84
-84
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9014
SELECT + col2 * + + 39 * CAST( NULL AS SIGNED ) + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9014
SELECT + col2 * + + 39 * CAST ( NULL AS INTEGER ) + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * col0 - col0 FROM tab2 AS cor0
----
2300
4864
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT DISTINCT + SUM( ALL - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT + SUM ( ALL - col0 ) FROM tab0 AS cor0
----
-199

query II rowsort
SELECT - - ( + + 19 ) AS col1, + 8 AS col0 FROM tab0 AS cor0
----
19
8
19
8
19
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = col0 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 = 88 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < 24
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 * - - col0 col0 FROM tab0 cor0 WHERE col2 BETWEEN NULL AND ( + col0 )
----

query I rowsort
SELECT ALL 53 + col1 FROM tab0
----
134
54
74

query I rowsort
SELECT DISTINCT 84 + + + col2 + - col1 * + 0 + col2 FROM tab2
----
130
164
200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 + col2 + col1 * - 83 col1 FROM tab2
----
-4232
-5525
-6373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9025
SELECT + COUNT( * ) / - 6 + - COUNT( * ) + SUM( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT + COUNT ( * ) / - 6 + - COUNT ( * ) + SUM ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col2 + - 84 AS col0 FROM tab0
----
-37
-74
15

query I rowsort
SELECT ALL + 95 + - col1 FROM tab1
----
48
81
90

query I rowsort
SELECT ALL + col2 - col0 * + 74 AS col2 FROM tab2
----
-3381
-4696
-5492

query I rowsort
SELECT ALL + - col0 * - + col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT ALL + col2 + - - col1 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT DISTINCT + 6 * + - col0 AS col2 FROM tab0 AS cor0
----
-522
-582
-90

query I rowsort
SELECT - - 87 * - + col1 FROM tab2 AS cor0
----
-4437
-5829
-6699

onlyif mysql # DIV for integer division: 
query I rowsort label-9033
SELECT ALL + - col2 DIV - col1 + + - col0 + - + col1 col2 FROM tab2 AS cor0
----
-141
-142
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9033
SELECT ALL + - col2 / - col1 + + - col0 + - + col1 col2 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9034
SELECT DISTINCT col2 + - 80 * 14 FROM tab1 AS cor0 WHERE NOT CAST( - ( col0 ) AS SIGNED ) NOT BETWEEN - + col0 * 32 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT col2 + - 80 * 14 FROM tab1 AS cor0 WHERE NOT CAST ( - ( col0 ) AS INTEGER ) NOT BETWEEN - + col0 * 32 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * - + col0 * + col0 >= + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT DISTINCT COUNT( * ) FROM tab2, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT COUNT ( * ) FROM tab2, tab1 cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 < + - ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ALL - - ( - 25 ) * COUNT( DISTINCT ( + + 43 ) ) + 93 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL - - ( - 25 ) * COUNT ( DISTINCT ( + + 43 ) ) + 93 FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT + SUM( 85 ) AS col2 FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-9039
SELECT + SUM ( 85 ) AS col2 FROM tab2 AS cor0
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9040
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9040
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9041
SELECT ALL MIN( DISTINCT + - col2 ) DIV - COUNT( - - col1 ) AS col0 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL MIN ( DISTINCT + - col2 ) / - COUNT ( - - col1 ) AS col0 FROM tab0
----
33

query II rowsort
SELECT - col2 AS col0, - col1 * - - col2 FROM tab2
----
-23
-1173
-40
-3080
-58
-3886

query II rowsort
SELECT ALL - col1 AS col1, - ( - col0 ) AS col2 FROM tab1
----
-14
51
-47
91
-5
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9044
SELECT DISTINCT AVG ( - col0 ) col0 FROM tab0 WHERE CAST( NULL AS DECIMAL ) * + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9044
SELECT DISTINCT AVG ( - col0 ) col0 FROM tab0 WHERE CAST ( NULL AS REAL ) * + col1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 55 col2, + col2 * - ( - 24 ) AS col2 FROM tab2
----
55
1392
55
552
55
960

query I rowsort
SELECT - - 36 * + col0 AS col0 FROM tab2 AS cor0
----
1656
2304
2700

query I rowsort
SELECT ( - - col1 ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - 52 + 17 FROM tab1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT + COUNT( * ) + + ( + 79 ) AS col1 FROM tab0 cor0
----
82

skipif mysql # not compatible
query I rowsort label-9049
SELECT + COUNT ( * ) + + ( + 79 ) AS col1 FROM tab0 cor0
----
82

query I rowsort
SELECT ALL + 83 * 58 FROM tab0 AS cor0
----
4814
4814
4814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9051
SELECT MIN( DISTINCT CAST( - col2 AS SIGNED ) ) + - COUNT( - - ( col0 ) ) FROM tab2 AS cor0 WHERE col2 * 68 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9051
SELECT MIN ( DISTINCT CAST ( - col2 AS INTEGER ) ) + - COUNT ( - - ( col0 ) ) FROM tab2 AS cor0 WHERE col2 * 68 IS NULL
----
NULL

query I rowsort
SELECT + 24 + col1 AS col2 FROM tab2 AS cor0
----
101
75
91

query II rowsort
SELECT DISTINCT + - col1 AS col2, + col2 AS col1 FROM tab2 cor0
----
-51
23
-67
58
-77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9054
SELECT col0 + 62 - + - 82 DIV + + 14 FROM tab2 AS cor0
----
113
131
142

skipif mysql # not compatible
query I rowsort label-9054
SELECT col0 + 62 - + - 82 / + + 14 FROM tab2 AS cor0
----
113
131
142

query I rowsort
SELECT ALL - + 41 + + + 28 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT 67 + + 3 AS col0 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE ( 93 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT ALL COUNT( * ) + + 50 AS col0 FROM tab2, tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL COUNT ( * ) + + 50 AS col0 FROM tab2, tab2 AS cor0
----
59

query I rowsort
SELECT DISTINCT + 29 + col1 * 80 * + 91 FROM tab2
----
371309
487789
560589

query II rowsort
SELECT + ( col0 ) AS col0, col0 + + col2 FROM tab2
----
46
69
64
104
75
133

query I rowsort
SELECT ALL - 47 - col1 - - + col2 FROM tab0
----
-58
-81
51

query I rowsort
SELECT DISTINCT 18 + - - 16 - + col1 AS col2 FROM tab1 cor0
----
-13
20
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9063
SELECT - - CAST( NULL AS SIGNED ) - - + COUNT( * ) / - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9063
SELECT - - CAST ( NULL AS INTEGER ) - - + COUNT ( * ) / - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT DISTINCT COUNT( ALL + + col2 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT COUNT ( ALL + + col2 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9065
SELECT + col0 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT + col0 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + - col0 AS col1, + col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT 45 * + + 70 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9068
SELECT ALL - + col2 DIV - 2 + - ( 70 ) * col0 + - col0 col2 FROM tab1 AS cor0
----
-3573
-6006
-6427

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9068
SELECT ALL - + col2 / - 2 + - ( 70 ) * col0 + - col0 col2 FROM tab1 AS cor0
----
-3573
-6006
-6427

onlyif mysql # DIV for integer division: 
query II rowsort label-9069
SELECT 42 DIV + - 67 - - col1 AS col1, col2 col0 FROM tab2 cor0
----
51
23
67
58
77
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9069
SELECT 42 / + - 67 - - col1 AS col1, col2 col0 FROM tab2 cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9070
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) DIV + 64 FROM tab2 AS cor0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9070
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) / + 64 FROM tab2 AS cor0
----
NULL
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9071
SELECT col1 - + 50 + + col1 AS col1, + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1, CAST( NULL AS DECIMAL ), - + col2 * + 64 - - col0 )
----

skipif mysql # not compatible
query II rowsort label-9071
SELECT col1 - + 50 + + col1 AS col1, + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1, CAST ( NULL AS REAL ), - + col2 * + 64 - - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 IN ( + - 14 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 57 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT + COUNT( ALL col1 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9074
SELECT + COUNT ( ALL col1 ) col0 FROM tab2
----
3

query I rowsort
SELECT - col0 * + + 47 * - + col1 FROM tab1
----
19975
201019
33558

query I rowsort
SELECT DISTINCT 72 + - col2 * - 81 AS col0 FROM tab2
----
1935
3312
4770

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9077
SELECT ALL * FROM tab0 WHERE NOT NULL <> - + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9077
SELECT ALL * FROM tab0 WHERE NOT NULL <> - + CAST ( + col2 AS INTEGER )
----

query II rowsort
SELECT - col0 * + 72 AS col0, - col2 + - - 89 FROM tab0
----
-1080
42
-6264
79
-6984
-10

query II rowsort
SELECT + 19 * - col2, 77 + - - col2 - - col0 AS col1 FROM tab2
----
-1102
210
-437
146
-760
181

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 98 / - 7 + + col1 + - ( - 96 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT - - MIN( ( - col0 ) ) * - - COUNT( DISTINCT col1 ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-9081
SELECT - - MIN ( ( - col0 ) ) * - - COUNT ( DISTINCT col1 ) FROM tab2 AS cor0
----
-225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 * + col2 col1 FROM tab2 cor0
----
322
560
812

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NULL AND ( NULL ) = - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT 86 * - COUNT( * ) + - COUNT( * ) AS col1 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-9084
SELECT 86 * - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9085
SELECT ALL col1 * - ( - - CAST( NULL AS SIGNED ) ) + - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL col1 * - ( - - CAST ( NULL AS INTEGER ) ) + - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + + 46 * + ( + + col1 ) AS col2, - 35 FROM tab0 cor0
----
3726
-35
46
-35
966
-35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 35 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9088
SELECT ALL 74 col1, col1 + - col2 AS col2, + - CAST( - col2 AS SIGNED ) * + 14 - - col0 * - col1 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - 75 * - col2 + 85 AND NULL
----
9 values hashing to 26add79571b2bd4b16577758129fd085

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9088
SELECT ALL 74 col1, col1 + - col2 AS col2, + - CAST ( - col2 AS INTEGER ) * + 14 - - col0 * - col1 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - 75 * - col2 + 85 AND NULL
----
9 values hashing to 26add79571b2bd4b16577758129fd085

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 55 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9090
SELECT DISTINCT col2 * + 32 + CAST( col1 AS DECIMAL ) - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT col2 * + 32 + CAST ( col1 AS REAL ) - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT ALL - + MAX( + + 65 ) FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL - + MAX ( + + 65 ) FROM tab0 AS cor0
----
-65

query II rowsort
SELECT DISTINCT col1, 92 FROM tab2
----
51
92
67
92
77
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col0, - 9 * + 21 * + 81 col0 FROM tab2
----
23
-15309
40
-15309
58
-15309

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + col0 AS col1, + col2 col0 FROM tab1
----
102
96
170
59
182
68

query I rowsort
SELECT ALL col1 * - 76 + - col0 AS col0 FROM tab1
----
-1115
-3663
-465

query I rowsort
SELECT DISTINCT - ( - - 5 ) AS col2 FROM tab2
----
-5

query I rowsort
SELECT DISTINCT + col2 * + 62 + 17 AS col1 FROM tab0
----
2931
6155
637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9098
SELECT 28 + + col1 + - CAST( NULL AS SIGNED ) + + col2 * + col2 * 58 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT 28 + + col1 + - CAST ( NULL AS INTEGER ) + + col2 * + col2 * 58 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col1 ) + - - col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * 28 * - + col1 * - col2 + 23 FROM tab0
----
123503
2795
8634299

query I rowsort
SELECT - 24 FROM tab0 WHERE NOT - col0 BETWEEN ( - col0 ) * - - 4 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 31 + - + col1 IN ( - + ( + + col2 ) * + col2 )
----

query II rowsort
SELECT - 92 AS col0, col1 FROM tab0 AS cor0
----
-92
1
-92
21
-92
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * + + col2 * 79 * col0 col2 FROM tab2
----
1420894
3438080
5842050

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT ALL - MAX( + 72 ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL - MAX ( + 72 ) FROM tab2
----
-72

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN NULL AND + 52
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + 9 ) + - + 11 <= + 73 * 78 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + 37 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col2 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 69 * - col2 * - col2 AS col2 FROM tab1 AS cor0
----
-240189
-319056
-635904

query I rowsort
SELECT DISTINCT 63 + - + col0 + - 17 * + 33 AS col1 FROM tab0
----
-513
-585
-595

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL >= NULL )
----

query I rowsort
SELECT ALL - 11 * + 77 FROM tab2
----
-847
-847
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT + COUNT( * ) * + COUNT( * ) FROM tab0 WHERE + col2 * 12 + - col0 + - + 57 IN ( + 41, - col1 + - col2, 34 + + 73 * - + 96 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9117
SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE + col2 * 12 + - col0 + - + 57 IN ( + 41, - col1 + - col2, 34 + + 73 * - + 96 + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT - MAX( + col0 ) * - SUM( col1 ) * COUNT( * ) col2 FROM tab0
----
29973

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9118
SELECT - MAX ( + col0 ) * - SUM ( col1 ) * COUNT ( * ) col2 FROM tab0
----
29973

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT COUNT( - + col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9119
SELECT COUNT ( - + col2 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT DISTINCT - COUNT( * ) - - COUNT( * ) col1 FROM tab2 cor0 WHERE col1 * + col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9120
SELECT DISTINCT - COUNT ( * ) - - COUNT ( * ) col1 FROM tab2 cor0 WHERE col1 * + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT - - COUNT( DISTINCT 77 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9121
SELECT - - COUNT ( DISTINCT 77 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 WHERE ( - - ( - col0 ) ) BETWEEN NULL AND + col2
----

query II rowsort
SELECT 42 * + col1, 28 AS col2 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
1974
28
210
28
588
28

query I rowsort
SELECT - + col1 + - + col2 + col1 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT - col0 * col1 - - - col1 FROM tab2 AS cor0
----
-2397
-5005
-5092

onlyif mysql # aggregate syntax: 
query II rowsort label-9126
SELECT + + 10 * + - 66, + ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-660
3

skipif mysql # not compatible
query II rowsort label-9126
SELECT + + 10 * + - 66, + ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-660
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + - + col1 / + ( + + col1 ) NOT BETWEEN ( + + col1 ) AND ( NULL )
----

query II rowsort
SELECT DISTINCT + col1 AS col2, + col2 AS col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT SUM( - col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9129
SELECT SUM ( - col0 ) AS col0 FROM tab0
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9130
SELECT DISTINCT + MAX( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9130
SELECT DISTINCT + MAX ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9131
SELECT + - ( CAST( - ( 19 ) AS SIGNED ) ) FROM tab2 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-9131
SELECT + - ( CAST ( - ( 19 ) AS INTEGER ) ) FROM tab2 AS cor0
----
19
19
19

query II rowsort
SELECT DISTINCT + + col0 AS col0, - col1 * - - 10 FROM tab1 AS cor0
----
51
-140
85
-50
91
-470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9133
SELECT ALL CAST( + - 32 AS SIGNED ) FROM tab0 AS cor0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL CAST ( + - 32 AS INTEGER ) FROM tab0 AS cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT ALL - - COUNT( col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL - - COUNT ( col1 ) FROM tab1 cor0
----
3

query I rowsort
SELECT 12 * 26 FROM tab2
----
312
312
312

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT ALL - MIN( DISTINCT col2 ) * + - SUM( - col0 ) + + COUNT( * ) FROM tab2
----
-4252

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL - MIN ( DISTINCT col2 ) * + - SUM ( - col0 ) + + COUNT ( * ) FROM tab2
----
-4252

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + 98 + - + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9138
SELECT + 69 + - + CAST( NULL AS SIGNED ) + col2 + + 92 * + col1 * col2 AS col1 FROM tab0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9138
SELECT + 69 + - + CAST ( NULL AS INTEGER ) + col2 + + 92 * + col1 * col2 AS col1 FROM tab0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 51 * - 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT + MIN( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9140
SELECT + MIN ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT ALL + - MIN( DISTINCT 96 ) FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL + - MIN ( DISTINCT 96 ) FROM tab2 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 13 col2, + ( - 93 ) FROM tab2 AS cor0
----
13
-93
13
-93
13
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE - col2 BETWEEN - - 80 AND col1 + + + col1 * + + 58 * - + col2 / - 82
----
0

skipif mysql # not compatible
query I rowsort label-9143
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 BETWEEN - - 80 AND col1 + + + col1 * + + 58 * - + col2 / - 82
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9144
SELECT ( - 32 ), COUNT( * ) AS col2 FROM tab0
----
-32
3

skipif mysql # not compatible
query II rowsort label-9144
SELECT ( - 32 ), COUNT ( * ) AS col2 FROM tab0
----
-32
3

query III rowsort
SELECT * FROM tab0 WHERE - ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT - COUNT( * ) * - ( + - COUNT( * ) ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9146
SELECT - COUNT ( * ) * - ( + - COUNT ( * ) ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL + - COUNT( * ) - + 80 FROM tab0 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL + - COUNT ( * ) - + 80 FROM tab0 cor0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9148
SELECT ALL MIN( + 69 ) + + 8 + - 16 * CAST( - MIN( ALL + - col1 ) AS SIGNED ) FROM tab0
----
-1219

skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL MIN ( + 69 ) + + 8 + - 16 * CAST ( - MIN ( ALL + - col1 ) AS INTEGER ) FROM tab0
----
-1219

onlyif mysql # DIV for integer division: 
query I rowsort label-9149
SELECT ALL col1 DIV + - col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL col1 / + - col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE - 87 * - 33 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT col1 * col1 - - - 39 AS col2 FROM tab2 AS cor0
----
2562
4450
5890

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + + 38 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT DISTINCT + COUNT( * ) - + + COUNT( ALL - + col2 ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9153
SELECT DISTINCT + COUNT ( * ) - + + COUNT ( ALL - + col2 ) AS col0 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9154
SELECT DISTINCT + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - ( - col1 ) * + 52 + + 77 FROM tab2 AS cor0
----
2729
3561
4081

query II rowsort
SELECT + col2 AS col2, 65 * col2 + + - col2 * - ( - + 45 ) * - col0 FROM tab1 AS cor0
----
59
229510
68
282880
96
226560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9157
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 53 * 17 col0 FROM tab0
----
13515
78387
87397

query III rowsort
SELECT * FROM tab1 WHERE NOT 29 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT ALL SUM( - + col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL SUM ( - + col1 ) AS col0 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT ALL - MIN( col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL - MIN ( col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, - col1 col2 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT ALL - col1 * + col1 + + 87 FROM tab2 AS cor0
----
-2514
-4402
-5842

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT + COUNT( * ) * - + ( + 90 ) col1 FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9164
SELECT + COUNT ( * ) * - + ( + 90 ) col1 FROM tab1 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT - - ( + COUNT( DISTINCT + col1 ) ) + 60 AS col0 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9165
SELECT - - ( + COUNT ( DISTINCT + col1 ) ) + 60 AS col0 FROM tab1 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9166
SELECT 24 + COUNT( DISTINCT - col1 ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
27
3

skipif mysql # not compatible
query II rowsort label-9166
SELECT 24 + COUNT ( DISTINCT - col1 ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
27
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * ( + col0 ) + + 72 * + + 15 - + - 3 col0 FROM tab2 AS cor0
----
3429
6011
6108

query I rowsort
SELECT + col2 + 73 * col1 * 61 AS col0 FROM tab2 AS cor0
----
227126
298409
342921

query I rowsort
SELECT - col0 + - + col2 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9170
SELECT + CAST( - col2 AS SIGNED ) DIV - CAST( col2 AS SIGNED ) + - 48 * - col2 + 57 FROM tab1
----
2890
3322
4666

skipif mysql # not compatible
query I rowsort label-9170
SELECT + CAST ( - col2 AS INTEGER ) / - CAST ( col2 AS INTEGER ) + - 48 * - col2 + 57 FROM tab1
----
2890
3322
4666

query I rowsort
SELECT DISTINCT + AVG ( - 15 ) AS col1 FROM tab1 WHERE + 3 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT ALL - COUNT( * ) + + + 65 * + 57 FROM tab1
----
3702

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL - COUNT ( * ) + + + 65 * + 57 FROM tab1
----
3702

query I rowsort
SELECT DISTINCT col2 + + col2 + + + 13 * - + 5 FROM tab0
----
-45
133
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 66 col2 FROM tab2 WHERE + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9175
SELECT ALL + col2 + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL + col2 + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 AS col2, + col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9177
SELECT + - CAST( 79 AS SIGNED ) FROM tab0 AS cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-9177
SELECT + - CAST ( 79 AS INTEGER ) FROM tab0 AS cor0
----
-79
-79
-79

query I rowsort
SELECT + 32 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 * + 0 + + 53 col0 FROM tab2
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9180
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-9180
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + - col0 + - + col0 * 36 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( + - 43 ) + - col1 FROM tab1 AS cor0
----
-4
29
38

query I rowsort
SELECT DISTINCT - + col2 - - - col2 + col2 * col0 AS col1 FROM tab0 AS cor0
----
611
850
9405

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( - + ( - + col0 ) ) BETWEEN - + col1 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL + - ( - MAX( + 68 ) ) * + COUNT( - col1 ) AS col2 FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL + - ( - MAX ( + 68 ) ) * + COUNT ( - col1 ) AS col2 FROM tab0 AS cor0
----
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9186
SELECT ALL + CAST( NULL AS SIGNED ) / + ( - MIN( DISTINCT + + col2 ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL + CAST ( NULL AS INTEGER ) / + ( - MIN ( DISTINCT + + col2 ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT + MIN( DISTINCT 82 ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-9187
SELECT + MIN ( DISTINCT 82 ) FROM tab1 AS cor0
----
82

query I rowsort
SELECT DISTINCT col1 * - 70 * - 45 AS col1 FROM tab0 AS cor0
----
255150
3150
66150

query I rowsort
SELECT col1 - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-98
11
34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 / col1 + 24 = NULL
----

query I rowsort
SELECT DISTINCT col1 * + 31 AS col1 FROM tab1
----
1457
155
434

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT DISTINCT - MAX( ALL + ( col1 ) ) col1 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9192
SELECT DISTINCT - MAX ( ALL + ( col1 ) ) col1 FROM tab1
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 24 AS col2, - 15 col1 FROM tab0
----
24
-15
24
-15
24
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT DISTINCT COUNT( ALL - - col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT COUNT ( ALL - - col1 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT + MAX( + + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9195
SELECT + MAX ( + + col0 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT - COUNT( * ) * - COUNT( DISTINCT - col0 ) * - COUNT( * ) * 79 AS col1 FROM tab1
----
-2133

skipif mysql # not compatible
query I rowsort label-9196
SELECT - COUNT ( * ) * - COUNT ( DISTINCT - col0 ) * - COUNT ( * ) * 79 AS col1 FROM tab1
----
-2133

onlyif mysql # aggregate syntax: 
query II rowsort label-9197
SELECT + 35 AS col0, + ( COUNT( * ) ) FROM tab0
----
35
3

skipif mysql # not compatible
query II rowsort label-9197
SELECT + 35 AS col0, + ( COUNT ( * ) ) FROM tab0
----
35
3

query I rowsort
SELECT ALL - 57 + - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-104
-62
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-9199
SELECT + 24 DIV - - col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9199
SELECT + 24 / - - col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9200
SELECT ALL col2 DIV - 20 FROM tab0 AS cor0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL col2 / - 20 FROM tab0 AS cor0
----
-2
-4
0

query II rowsort
SELECT - col2, col0 + col1 * - - 81 AS col2 FROM tab2 cor0
----
-23
4177
-40
6301
-58
5502

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT DISTINCT COUNT( - ( + - col2 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT COUNT ( - ( + - col2 ) ) AS col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 AND - - col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT MAX( + + 73 ) AS col1 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9204
SELECT MAX ( + + 73 ) AS col1 FROM tab0 AS cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 87 ) + + 14 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT - 16 * col1 - + col0 FROM tab2
----
-1147
-1296
-862

query III rowsort
SELECT * FROM tab1 WHERE col1 * 46 >= NULL
----

query II rowsort
SELECT DISTINCT - 62 AS col2, ( + 60 ) FROM tab1
----
-62
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 * - 2 col2 FROM tab1 AS cor0
----
-135
-165
-88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9210
SELECT * FROM tab2 AS cor0 WHERE - CAST( + + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9210
SELECT * FROM tab2 AS cor0 WHERE - CAST ( + + col1 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - 38 AND NULL
----

query I rowsort
SELECT ALL ( 97 ) FROM tab1 AS cor0 WHERE NOT NULL <= - 61
----

query I rowsort
SELECT ALL + col0 - - + 12 AS col1 FROM tab1 AS cor0
----
103
63
97

query I rowsort
SELECT DISTINCT - 33 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-33

query I rowsort
SELECT ALL col1 * col0 + - + 19 + + col1 AS col0 FROM tab2 AS cor0
----
2378
4986
5073

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9216
SELECT ALL COUNT( * ) DIV + ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL COUNT ( * ) / + ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - - col2 * 3 FROM tab1 AS cor0
----
177
204
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT - col2 * - 26 / + 61 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT - col2 * - 26 / + 61 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9219
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT - MIN( DISTINCT + 94 ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-9220
SELECT - MIN ( DISTINCT + 94 ) FROM tab2
----
-94

query II rowsort
SELECT ALL col0 * - col2 AS col0, ( - - col1 ) AS col2 FROM tab0
----
-705
81
-870
21
-9603
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9222
SELECT ALL MAX( ALL - CAST( col2 AS SIGNED ) ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL MAX ( ALL - CAST ( col2 AS INTEGER ) ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT ALL - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9224
SELECT ALL - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT ALL ( 92 ) AS col0 FROM tab0
----
92
92
92

query I rowsort
SELECT ALL - col2 + - col1 + - col2 + - + col2 * - + col0 AS col2 FROM tab1 AS cor0
----
4690
4892
6005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9227
SELECT + col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9227
SELECT + col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 + 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9229
SELECT col0 * + + col0 + - 11 - CAST( - 5 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
2595
7219
8275

skipif mysql # not compatible
query I rowsort label-9229
SELECT col0 * + + col0 + - 11 - CAST ( - 5 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
2595
7219
8275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9230
SELECT DISTINCT MIN( - 62 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 + CAST( NULL AS SIGNED ) + + col1 ) IS NOT NULL
----
-62

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT MIN ( - 62 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 + CAST ( NULL AS INTEGER ) + + col1 ) IS NOT NULL
----
-62

query I rowsort
SELECT ALL ( - ( col1 ) ) AS col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT DISTINCT MAX( col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT MAX ( col2 ) AS col0 FROM tab0
----
99

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + 75
----

query I rowsort
SELECT DISTINCT + 95 + + ( - ( + 98 ) ) AS col2 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 + - col2 col0 FROM tab0
----
-48
4
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT DISTINCT + COUNT( * ) + + - 19 AS col0 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT + COUNT ( * ) + + - 19 AS col0 FROM tab0
----
-16

query III rowsort
SELECT * FROM tab2 WHERE + + col0 BETWEEN - + 40 + + + col2 * + col0 AND 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT DISTINCT COUNT( * ) * + + 36 col2 FROM tab1 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9240
SELECT DISTINCT COUNT ( * ) * + + 36 col2 FROM tab1 AS cor0 WHERE NULL > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9241
SELECT ALL - 74 * - col1 - + 3 + + CAST( + 42 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
113
1593
6033

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL - 74 * - col1 - + 3 + + CAST ( + 42 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
113
1593
6033

query I rowsort
SELECT DISTINCT + col1 - - + col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT DISTINCT - col1 FROM tab0 cor0 WHERE - 57 * 98 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + col2 * - + 26 FROM tab1
----
-1534
-1768
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT - MAX( - col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9245
SELECT - MAX ( - col1 ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
3

query I rowsort
SELECT ALL + 41 FROM tab2 cor0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 97 * + col2 + + col2 AS col1, col0 col2 FROM tab0 AS cor0
----
4606
15
9702
97
980
87

query II rowsort
SELECT ALL + - col0, + col2 AS col1 FROM tab0 cor0
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9250
SELECT DISTINCT + CAST( + SUM( ALL 66 ) AS SIGNED ) AS col0 FROM tab1 cor0
----
198

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT + CAST ( + SUM ( ALL 66 ) AS INTEGER ) AS col0 FROM tab1 cor0
----
198

query I rowsort
SELECT ALL + 91 AS col0 FROM tab0 AS cor0
----
91
91
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 - - - 68 > NULL
----

query II rowsort
SELECT DISTINCT col0, + col0 * - + 16 - col1 AS col2 FROM tab2
----
46
-787
64
-1101
75
-1267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9254
SELECT - COUNT( * ) * - - CAST( + 71 AS SIGNED ) FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-9254
SELECT - COUNT ( * ) * - - CAST ( + 71 AS INTEGER ) FROM tab0
----
-213

query I rowsort
SELECT ALL + - col1 / + col0 + - 26 + - 41 AS col2 FROM tab1 WHERE NOT + + 6 NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT SUM( ALL - col2 ) col0 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9256
SELECT SUM ( ALL - col2 ) col0 FROM tab1
----
-223

query I rowsort
SELECT 40 * + col0 AS col2 FROM tab0
----
3480
3880
600

query I rowsort
SELECT - 55 * + + 8 FROM tab2
----
-440
-440
-440

query I rowsort
SELECT col0 * - ( + + col2 ) * col0 AS col2 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT COUNT( - 91 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9260
SELECT COUNT ( - 91 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT 89 * COUNT( * ) FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-9261
SELECT 89 * COUNT ( * ) FROM tab2
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT - + MAX( - col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9262
SELECT - + MAX ( - col0 ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9263
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * col1 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9263
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col1 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + - 72 * 42 FROM tab0
----
-2943
-3003
-3023

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT COUNT( * ) * COUNT( * ) + 55 AS col0 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-9265
SELECT COUNT ( * ) * COUNT ( * ) + 55 AS col0 FROM tab2
----
64

query I rowsort
SELECT ALL - 59 * + col0 * - col1 + col1 + - - col2 + + + ( + col1 ) FROM tab0
----
107845
5824
71894

query I rowsort
SELECT DISTINCT + col0 + - ( col1 ) FROM tab0
----
-66
66
96

query I rowsort
SELECT ALL + - ( - - col0 ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT + COUNT( - col2 ) AS col1 FROM tab2 cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9269
SELECT + COUNT ( - col2 ) AS col1 FROM tab2 cor0 WHERE col1 IS NOT NULL
----
3

query I rowsort
SELECT ALL - 37 FROM tab0 cor0
----
-37
-37
-37

query I rowsort
SELECT + - col2 - + + 62 FROM tab0 AS cor0
----
-109
-161
-72

query I rowsort
SELECT ALL + 90 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + + col1 * - 10 * - col1 IS NULL
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT - MIN( ALL - 98 ) - - + 0 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-9273
SELECT - MIN ( ALL - 98 ) - - + 0 FROM tab0 AS cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9274
SELECT ( - - col2 ) + - CAST( + 99 AS SIGNED ) * + + col1 FROM tab0
----
-2069
-7972
0

skipif mysql # not compatible
query I rowsort label-9274
SELECT ( - - col2 ) + - CAST ( + 99 AS INTEGER ) * + + col1 FROM tab0
----
-2069
-7972
0

query I rowsort
SELECT + col0 + + + col2 AS col1 FROM tab2
----
104
133
69

query I rowsort
SELECT + ( ( - col0 ) ) + - 33 AS col1 FROM tab0
----
-120
-130
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 22 - - - 47 + + col2 * col0 col0 FROM tab2
----
2458
4258
982

query I rowsort
SELECT DISTINCT 60 - + + 85 AS col2 FROM tab0
----
-25

query I rowsort
SELECT + 39 + - + col0 FROM tab2
----
-25
-36
-7

query I rowsort
SELECT ALL 79 - col2 AS col2 FROM tab0
----
-20
32
69

onlyif mysql # aggregate syntax: 
query II rowsort label-9281
SELECT DISTINCT - + COUNT( * ) AS col1, - 15 AS col1 FROM tab1 cor0
----
-3
-15

skipif mysql # not compatible
query II rowsort label-9281
SELECT DISTINCT - + COUNT ( * ) AS col1, - 15 AS col1 FROM tab1 cor0
----
-3
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-9282
SELECT - 24, ( + + COUNT( ALL + col2 ) ) - - 28 AS col0 FROM tab0 AS cor0
----
-24
31

skipif mysql # not compatible
query II rowsort label-9282
SELECT - 24, ( + + COUNT ( ALL + col2 ) ) - - 28 AS col0 FROM tab0 AS cor0
----
-24
31

query I rowsort
SELECT ALL - col1 * - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT ALL + MIN( + + col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL + MIN ( + + col0 ) AS col1 FROM tab2 AS cor0
----
46

query II rowsort
SELECT ALL ( col0 ), col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( + 91 ) AND - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9287
SELECT DISTINCT SUM( col0 ) AS col0, SUM( + + 99 ) FROM tab1 AS cor0
----
227
297

skipif mysql # not compatible
query II rowsort label-9287
SELECT DISTINCT SUM ( col0 ) AS col0, SUM ( + + 99 ) FROM tab1 AS cor0
----
227
297

query I rowsort
SELECT - 46 * col2 + + col1 FROM tab0
----
-2081
-439
-4553

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - ( - - col0 ) + + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT + COUNT( * ) + 12 AS col1 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-9290
SELECT + COUNT ( * ) + 12 AS col1 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT DISTINCT MIN( + - 82 ) FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT MIN ( + - 82 ) FROM tab1
----
-82

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE - + col2 * + - 97 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - 44 FROM tab0 WHERE NOT + col2 IS NULL
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT 58 + - SUM( - 97 ) col2 FROM tab1 WHERE NOT - col0 IS NULL
----
349

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9294
SELECT 58 + - SUM ( - 97 ) col2 FROM tab1 WHERE NOT - col0 IS NULL
----
349

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col1, 0 )
----

query I rowsort
SELECT DISTINCT - 55 + + col0 FROM tab1 AS cor0 WHERE NOT 20 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT + COUNT( - 69 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9297
SELECT + COUNT ( - 69 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 * + - col1 AS col1 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9299
SELECT DISTINCT - ( - CAST( + col0 AS DECIMAL ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> - ( col2 ) + - 97 * - col0 + + 31
----

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT - ( - CAST ( + col0 AS REAL ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> - ( col2 ) + - 97 * - col0 + + 31
----

query I rowsort
SELECT - 50 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT - col0 * 56 * - col1 * - - col1 + + - col0 FROM tab1
----
11256973
118915
559725

query I rowsort
SELECT + 79 + col0 AS col0 FROM tab2 AS cor0
----
125
143
154

query I rowsort
SELECT col2 + + - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9304
SELECT + - ( - + col1 ) + + + CAST( col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-9304
SELECT + - ( - + col1 ) + + + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
138
65
90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 26 <= NULL
----

query I rowsort
SELECT + - ( - col2 ) + - 49 FROM tab0 cor0
----
-2
-39
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT DISTINCT + COUNT( * ) * - - 14 AS col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT + COUNT ( * ) * - - 14 AS col0 FROM tab1 AS cor0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9308
SELECT MAX( ALL + + CAST( - 76 AS SIGNED ) ) FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-9308
SELECT MAX ( ALL + + CAST ( - 76 AS INTEGER ) ) FROM tab0 AS cor0
----
-76

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 24 NOT IN ( - col2 - - 66 + - col1, col2 )
----

query I rowsort
SELECT ( - + 94 ) AS col0 FROM tab0
----
-94
-94
-94

query I rowsort
SELECT - 46 FROM tab1 WHERE ( ( - col0 IS NOT NULL ) )
----
-46
-46
-46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 65 <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9313
SELECT + CAST( NULL AS SIGNED ) / 38 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9313
SELECT + CAST ( NULL AS INTEGER ) / 38 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT - - 1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query I rowsort
SELECT - col2 * - + 23 FROM tab1
----
1357
1564
2208

query I rowsort
SELECT + 70 * + + col0 * - col1 FROM tab0 AS cor0
----
-127890
-6790
-85050

query I rowsort
SELECT DISTINCT - - 61 FROM tab0 cor0
----
61

query I rowsort
SELECT ALL + + ( + ( - col2 ) ) * - col1 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - 49 + 69 - ( + 25 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 67 / + col1 * col2 NOT IN ( 84 )
----

query I rowsort
SELECT ALL + col0 + - + ( - col1 ) * col1 FROM tab0
----
528
6576
98

query I rowsort
SELECT DISTINCT - 22 * - col0 + - col1 AS col0 FROM tab2
----
1331
1583
961

query I rowsort
SELECT DISTINCT - 7 * + 35 + + - ( - + 80 ) - - col1 AS col2 FROM tab1
----
-118
-151
-160

query II rowsort
SELECT + + ( - 86 ) * ( 29 ), + col0 AS col2 FROM tab1 WHERE NULL <> - 36
----

query I rowsort
SELECT DISTINCT - + 96 + + + 60 + + + col1 + + col0 * ( - + col2 ) FROM tab2 AS cor0
----
-1043
-2519
-4319

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT COUNT( * ) + - COUNT( DISTINCT + + 31 ) AS col0 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-9328
SELECT COUNT ( * ) + - COUNT ( DISTINCT + + 31 ) AS col0 FROM tab1
----
2

query I rowsort
SELECT ALL - col1 + - + col0 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT + SUM( DISTINCT - 89 ) col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9330
SELECT + SUM ( DISTINCT - 89 ) col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 64 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col2 + - 72 FROM tab1 AS cor0
----
-13
-4
24

query I rowsort
SELECT ALL + col0 - - + col0 AS col0 FROM tab0 cor0
----
174
194
30

query I rowsort
SELECT ALL + + 5 * - - 12 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT 28 * 9 FROM tab1 cor0
----
252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + ( + col1 ) ) - + col1 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - + col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL + - col1 + 2 AS col2 FROM tab0 AS cor0
----
-19
-79
1

query I rowsort
SELECT 45 + - - col0 * col1 + - col1 + 75 AS col2 FROM tab2 AS cor0
----
2415
4971
5078

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT + COUNT( * ) + - 21 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-9340
SELECT + COUNT ( * ) + - 21 FROM tab0
----
-18

query I rowsort
SELECT col0 * + 31 FROM tab0
----
2697
3007
465

onlyif mysql # DIV for integer division: 
query I rowsort label-9342
SELECT ALL 67 DIV - + 91 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL 67 / - + 91 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= - + col1 * + 12
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9344
SELECT 68 AS col1, COUNT( * ) col1 FROM tab1 AS cor0
----
68
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9344
SELECT 68 AS col1, COUNT ( * ) col1 FROM tab1 AS cor0
----
68
3

query II rowsort
SELECT DISTINCT + - col1 AS col2, + 72 AS col1 FROM tab2 AS cor0
----
-51
72
-67
72
-77
72

query I rowsort
SELECT ALL - ( - + 99 ) AS col1 FROM tab1
----
99
99
99

query I rowsort
SELECT + + 72 FROM tab1 cor0
----
72
72
72

query I rowsort
SELECT - + 5 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN col2 AND + + col0
----
75
67
58

onlyif mysql # DIV for integer division: 
query II rowsort label-9350
SELECT ALL - 74 DIV + 55 AS col0, - col0 AS col0 FROM tab2 AS cor0
----
-1
-46
-1
-64
-1
-75

skipif mysql # not compatible
query II rowsort label-9350
SELECT ALL - 74 / + 55 AS col0, - col0 AS col0 FROM tab2 AS cor0
----
-1
-46
-1
-64
-1
-75

query I rowsort
SELECT DISTINCT - ( - + 75 ) FROM tab0 AS cor0
----
75

query I rowsort
SELECT ALL - 38 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9353
SELECT ALL CAST( NULL AS SIGNED ) * 33 + + COUNT( * ) AS col2, MAX( DISTINCT - + col2 ) AS col2 FROM tab2
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-9353
SELECT ALL CAST ( NULL AS INTEGER ) * 33 + + COUNT ( * ) AS col2, MAX ( DISTINCT - + col2 ) AS col2 FROM tab2
----
NULL
-23

query I rowsort
SELECT ALL 58 + - col0 AS col2 FROM tab2
----
-17
-6
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT - MAX( + 44 ) FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT - MAX ( + 44 ) FROM tab0
----
-44

query II rowsort
SELECT ALL ( + 92 ) * + 0 AS col2, col0 FROM tab2 WHERE NOT - 37 IS NULL
----
0
46
0
64
0
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9357
SELECT CAST( 59 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-9357
SELECT CAST ( 59 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT DISTINCT + col1 * col1 + - - col0 + + col2 AS col1 FROM tab2 AS cor0
----
2670
4622
6033

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9359
SELECT ALL - + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL - + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * 38 AS col1 FROM tab2
----
1748
2432
2850

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9361
SELECT - CAST( NULL AS DECIMAL ) * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9361
SELECT - CAST ( NULL AS REAL ) * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 + col2 col1 FROM tab2
----
-30
-48
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9363
SELECT + CAST( NULL AS SIGNED ) * 34 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9363
SELECT + CAST ( NULL AS INTEGER ) * 34 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + 2 AS col2 FROM tab0
----
17
89
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9365
SELECT DISTINCT + 3 DIV col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9365
SELECT DISTINCT + 3 / col0 FROM tab2
----
0

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE col2 * col2 + col2 NOT BETWEEN NULL AND 16 / - 26 + - 56
----
-1
-21
-81

query I rowsort
SELECT col1 * - 87 AS col0 FROM tab0
----
-1827
-7047
-87

query I rowsort
SELECT 93 - - col1 * + col0 FROM tab2
----
2439
5021
5118

onlyif mysql # DIV for integer division: 
query I rowsort label-9369
SELECT ALL + col2 DIV 49 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL + col2 / 49 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9370
SELECT DISTINCT col1 DIV 99 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9370
SELECT DISTINCT col1 / 99 col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( - col2 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT - ( 45 ) * 3 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( 22 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col2 FROM tab2
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT + MAX( col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9375
SELECT + MAX ( col2 ) AS col0 FROM tab0
----
99

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT + 49 + col1 AS col2 FROM tab1
----
54
63
96

query I rowsort
SELECT DISTINCT col0 + 83 * + 91 FROM tab1
----
7604
7638
7644

query I rowsort
SELECT - col1 - col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-28
-94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 + col2 * 21 col1 FROM tab2
----
1274
539
896

query I rowsort
SELECT DISTINCT - 49 * 5 + col1 AS col1 FROM tab2
----
-168
-178
-194

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 / 80 - + col2 < ( NULL )
----

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT + col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col1 * - 53 AS col2 FROM tab1 AS cor0
----
-2491
-265
-742

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE 12 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE 12 IS NULL
----
0

query I rowsort
SELECT 8 FROM tab1 cor0 CROSS JOIN tab2
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT 61 + - col1 AS col1 FROM tab2
----
-16
-6
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9389
SELECT ALL - 53 + + MIN( 62 ) DIV 87 AS col1 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL - 53 + + MIN ( 62 ) / 87 AS col1 FROM tab1
----
-53

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col0 + + col2 * - ( - 90 ) BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9391
SELECT - col2 * - ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT - col2 * - ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT ALL ( + col1 ) DIV col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL ( + col1 ) / col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + 15 * 97 FROM tab2 AS cor0
----
1455
1455
1455

query I rowsort
SELECT ALL + + 34 + + col0 FROM tab1 AS cor0
----
119
125
85

query I rowsort
SELECT DISTINCT - 69 + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-22
-59
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9396
SELECT * FROM tab1 WHERE ( NULL ) > 11 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9396
SELECT * FROM tab1 WHERE ( NULL ) > 11 / CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 39 * - + col0 + - 26 AS col1 FROM tab0
----
-3419
-3809
-611

query I rowsort
SELECT DISTINCT col2 * - col0 + 96 * col1 AS col1 FROM tab2
----
2082
3838
4832

query I rowsort
SELECT ALL col1 FROM tab2 WHERE col0 / - col2 NOT IN ( col1 + col2 / + col2 )
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ALL SUM( + col1 ) + - COUNT( * ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL SUM ( + col1 ) + - COUNT ( * ) FROM tab1
----
63

query I rowsort
SELECT - col1 + col1 - col1 AS col1 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * - col1 IN ( - col2 )
----

query I rowsort
SELECT + col1 + + 38 + - col1 FROM tab0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT ALL MIN( col2 ) AS col0 FROM tab1 WHERE - col0 > + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL MIN ( col2 ) AS col0 FROM tab1 WHERE - col0 > + col1
----
NULL

query I rowsort
SELECT ALL + 37 * + + 82 + 87 FROM tab1
----
3121
3121
3121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9407
SELECT ALL + 80 + + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL + 80 + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9408
SELECT 32 FROM tab0 WHERE ( - col0 + + 22 ) IN ( ( + CAST( NULL AS SIGNED ) ) * col1 + col2 )
----

skipif mysql # not compatible
query I rowsort label-9408
SELECT 32 FROM tab0 WHERE ( - col0 + + 22 ) IN ( ( + CAST ( NULL AS INTEGER ) ) * col1 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT - COUNT( * ) * - + ( MIN( col1 ) ) + 24 * - COUNT( * ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9409
SELECT - COUNT ( * ) * - + ( MIN ( col1 ) ) + 24 * - COUNT ( * ) FROM tab1 AS cor0
----
-57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 33 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9411
SELECT + + col1 DIV - + col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-9411
SELECT + + col1 / - + col0 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9412
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( col2 AS DECIMAL ) * + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9412
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( col2 AS REAL ) * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 86 + 71 )
----

query I rowsort
SELECT col1 * - 56 FROM tab2
----
-2856
-3752
-4312

query II rowsort
SELECT ALL col2, - 91 AS col0 FROM tab1
----
59
-91
68
-91
96
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT 51 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
459

skipif mysql # not compatible
query I rowsort label-9416
SELECT 51 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT DISTINCT + ( 47 ) col0 FROM tab1 WHERE CAST( 30 AS SIGNED ) * col2 >= col1 * - 11
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9417
SELECT DISTINCT + ( 47 ) col0 FROM tab1 WHERE CAST ( 30 AS INTEGER ) * col2 >= col1 * - 11
----
47

query I rowsort
SELECT DISTINCT col2 * + - col2 - + col2 AS col1 FROM tab0
----
-110
-2256
-9900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 4 col0 FROM tab0 AS cor0
----
-4

query I rowsort
SELECT - 82 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT 3 AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL + ( + col1 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col1, - col1 + 4 FROM tab2 AS cor0
----
-51
-47
-67
-63
-77
-73

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE + 82 * - - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT - CAST( 13 AS SIGNED ) FROM tab2 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-9426
SELECT - CAST ( 13 AS INTEGER ) FROM tab2 AS cor0
----
-13
-13
-13

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 - + 37 + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT ALL + - MAX( + + col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL + - MAX ( + + col2 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9429
SELECT - 4 * - - col2 DIV col2 FROM tab1 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-9429
SELECT - 4 * - - col2 / col2 FROM tab1 AS cor0
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + + col0 * - col1 col2 FROM tab1
----
-201019
-2125
-9996

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9431
SELECT ALL + col1 * - + CAST( NULL AS DECIMAL ) AS col2, + 73 AS col2 FROM tab1
----
NULL
73
NULL
73
NULL
73

skipif mysql # not compatible
query II rowsort label-9431
SELECT ALL + col1 * - + CAST ( NULL AS REAL ) AS col2, + 73 AS col2 FROM tab1
----
NULL
73
NULL
73
NULL
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND + - ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND + - ( + col0 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9433
SELECT + col1 DIV - col2, + col0 FROM tab2
----
-1
64
-1
75
-2
46

skipif mysql # not compatible
query II rowsort label-9433
SELECT + col1 / - col2, + col0 FROM tab2
----
-1
64
-1
75
-2
46

query I rowsort
SELECT col0 FROM tab2 WHERE NOT col2 * - - 65 + + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9435
SELECT ALL col0 + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + col2 / col2 * - col0 = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL col0 + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + col2 / col2 * - col0 = ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 35 AS col0 FROM tab0 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 cor0 WHERE 62 * 13 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE 62 * 13 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT - + ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9439
SELECT - + ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - + col1 * - - col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col0 FROM tab1 AS cor0
----
50
50
50

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 - + - 5 NOT BETWEEN + col0 / + 48 + col0 / + 40 AND - col1 / + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT + ( - + ( - COUNT( * ) ) ) + 58 * - 78 AS col2 FROM tab0 AS cor0 WHERE 90 IS NULL
----
-4524

skipif mysql # not compatible
query I rowsort label-9443
SELECT + ( - + ( - COUNT ( * ) ) ) + 58 * - 78 AS col2 FROM tab0 AS cor0 WHERE 90 IS NULL
----
-4524

query I rowsort
SELECT DISTINCT - - col1 + + col1 * 33 * + col2 FROM tab0 AS cor0
----
125712
3268
6951

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9445
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - 14 col2 FROM tab2 AS cor0
----
NULL
-14
NULL
-14
NULL
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9445
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - 14 col2 FROM tab2 AS cor0
----
NULL
-14
NULL
-14
NULL
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9446
SELECT - col1 DIV + col0 + - + 87 AS col1 FROM tab2 AS cor0
----
-87
-88
-88

skipif mysql # not compatible
query I rowsort label-9446
SELECT - col1 / + col0 + - + 87 AS col1 FROM tab2 AS cor0
----
-87
-88
-88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 * - + col1 * - ( - 51 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT + COUNT( DISTINCT + col1 ) + COUNT( DISTINCT - col0 ) AS col2 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9448
SELECT + COUNT ( DISTINCT + col1 ) + COUNT ( DISTINCT - col0 ) AS col2 FROM tab1 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT + COUNT( * ) * + 12 + + 50 FROM tab2 cor0
----
86

skipif mysql # not compatible
query I rowsort label-9449
SELECT + COUNT ( * ) * + 12 + + 50 FROM tab2 cor0
----
86

query I rowsort
SELECT DISTINCT + 81 + + - 68 * col1 * 78 FROM tab2 AS cor0
----
-270423
-355287
-408327

query I rowsort
SELECT + col0 + col2 + - col1 AS col1 FROM tab1 AS cor0
----
112
133
139

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * 35 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT - COUNT( * ) + + + 42 AS col2 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-9454
SELECT - COUNT ( * ) + + + 42 AS col2 FROM tab2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9455
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9455
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9456
SELECT ALL 78 + - COUNT( * ) DIV - 12 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL 78 + - COUNT ( * ) / - 12 FROM tab0
----
78

query I rowsort
SELECT ALL col2 + - 82 FROM tab2
----
-24
-42
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT + SUM( - 64 ) AS col0 FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-9458
SELECT + SUM ( - 64 ) AS col0 FROM tab0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT ALL - 90 * ( - MAX( + col0 ) ) - 77 AS col0 FROM tab1
----
8113

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL - 90 * ( - MAX ( + col0 ) ) - 77 AS col0 FROM tab1
----
8113

query III rowsort
SELECT * FROM tab2 WHERE + 99 * + - 24 + - col1 * 86 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9461
SELECT - ( + CAST( - 44 AS SIGNED ) ) FROM tab0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-9461
SELECT - ( + CAST ( - 44 AS INTEGER ) ) FROM tab0
----
44
44
44

query I rowsort
SELECT DISTINCT - 40 - + ( + 82 ) AS col1 FROM tab0 AS cor0
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 < + col2
----
3

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 < + col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9464
SELECT DISTINCT - col1 DIV + 76 + - + col0 * 93 FROM tab0 cor0
----
-1396
-8091
-9021

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT - col1 / + 76 + - + col0 * 93 FROM tab0 cor0
----
-1396
-8091
-9021

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9465
SELECT - - 67 - - col2 AS col0, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
107
NULL
125
NULL
90
NULL

skipif mysql # not compatible
query II rowsort label-9465
SELECT - - 67 - - col2 AS col0, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
107
NULL
125
NULL
90
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9466
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - + col0 + - - CAST( NULL AS SIGNED ) + + CAST( + col0 AS SIGNED ) * - 78 * - 85 AND - col0 - 2
----

skipif mysql # not compatible
query III rowsort label-9466
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - + col0 + - - CAST ( NULL AS INTEGER ) + + CAST ( + col0 AS INTEGER ) * - 78 * - 85 AND - col0 - 2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 >= NULL
----

query I rowsort
SELECT - col1 * + col2 * - col1 FROM tab1 AS cor0
----
1475
150212
18816

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9469
SELECT - + ( - 0 ), CAST( NULL AS DECIMAL ) * - + col0 AS col1 FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-9469
SELECT - + ( - 0 ), CAST ( NULL AS REAL ) * - + col0 AS col1 FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT MAX( col0 ) col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9470
SELECT MAX ( col0 ) col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT + ( - - col1 ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9472
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 82 + + - col2 IN ( - ( CAST( + ( col0 ) AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9472
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 82 + + - col2 IN ( - ( CAST ( + ( col0 ) AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9473
SELECT 11 - + col1 FROM tab2 WHERE NOT - + col2 + - col0 + + 13 + + col0 / - CAST( NULL AS SIGNED ) BETWEEN - col2 * col0 - ( 16 ) / col0 AND ( col0 )
----

skipif mysql # not compatible
query I rowsort label-9473
SELECT 11 - + col1 FROM tab2 WHERE NOT - + col2 + - col0 + + 13 + + col0 / - CAST ( NULL AS INTEGER ) BETWEEN - col2 * col0 - ( 16 ) / col0 AND ( col0 )
----

query I rowsort
SELECT ALL + col2 * + + col0 * 9 + - + ( - col1 ) * + col0 FROM tab1 WHERE + - col0 / - + col1 IS NOT NULL
----
44778
45560
59969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9475
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9476
SELECT DISTINCT - CAST( + 69 AS SIGNED ) AS col2 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT - CAST ( + 69 AS INTEGER ) AS col2 FROM tab0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9477
SELECT COUNT( * ), + ( - - COUNT( * ) ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9477
SELECT COUNT ( * ), + ( - - COUNT ( * ) ) AS col1 FROM tab2
----
3
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN col0 + - col0 AND ( NULL )
----

query I rowsort
SELECT - 71 * col1 AS col0 FROM tab0
----
-1491
-5751
-71

query I rowsort
SELECT ALL - 53 * col2 AS col0 FROM tab1
----
-3127
-3604
-5088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9481
SELECT - COUNT( * ) * COUNT( * ) * + CAST( NULL AS SIGNED ), COUNT( * ) AS col1 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9481
SELECT - COUNT ( * ) * COUNT ( * ) * + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1 FROM tab2
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT - SUM( col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-9482
SELECT - SUM ( col0 ) AS col1 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT ALL MIN( DISTINCT col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL MIN ( DISTINCT col1 ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT col1 + - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9484
SELECT + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT col1 + - col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9485
SELECT ALL - COUNT( * ), - COUNT( * ) FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9485
SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT DISTINCT + MIN( ALL + + 30 ) + + COUNT( * ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT + MIN ( ALL + + 30 ) + + COUNT ( * ) FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT + col0 * + 7 + - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9487
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT + col0 * + 7 + - col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT ALL COUNT( ALL col0 ) + - 12 AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL COUNT ( ALL col0 ) + - 12 AS col0 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT + - ( + col2 ) * col0 * - 6 FROM tab2 AS cor0
----
15360
26100
6348

query I rowsort
SELECT - + col2 * - + col2 + + 97 + - + 65 * + 94 - 67 AS col2 FROM tab1 AS cor0
----
-1456
-2599
3136

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 71 = - - ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9492
SELECT ( col2 ) AS col2 FROM tab2 cor0 WHERE + CAST( NULL AS SIGNED ) / + col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-9492
SELECT ( col2 ) AS col2 FROM tab2 cor0 WHERE + CAST ( NULL AS INTEGER ) / + col0 > NULL
----

query I rowsort
SELECT 4 - col2 AS col0 FROM tab1
----
-55
-64
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT DISTINCT + 80 * - + COUNT( - + col0 ) FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT + 80 * - + COUNT ( - + col0 ) FROM tab2
----
-240

query I rowsort
SELECT - col2 + col0 + + 21 AS col1 FROM tab1
----
-24
44
47

query I rowsort
SELECT DISTINCT ( + col2 ) + + - col0 AS col0 FROM tab0
----
-77
2
32

query I rowsort
SELECT 59 * + col1 + ( + 54 ) FROM tab2
----
3063
4007
4597

query I rowsort
SELECT ALL + 48 - + 91 * col2 AS col1 FROM tab0
----
-4229
-862
-8961

query I rowsort
SELECT DISTINCT col1 + - + col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT + col0 + + 74 AS col0 FROM tab2
----
120
138
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + col1 col1 FROM tab0 AS cor0 WHERE NOT col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9502
SELECT ALL col1 - - - CAST( + col0 AS SIGNED ) + + col0 * - col0 * - col0 * col0 FROM tab1 cor0
----
52200545
6765164
68574917

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL col1 - - - CAST ( + col0 AS INTEGER ) + + col0 * - col0 * - col0 * col0 FROM tab1 cor0
----
52200545
6765164
68574917

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT - COUNT( DISTINCT + 6 ) * + MIN( ALL + - 2 ) FROM tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-9504
SELECT - COUNT ( DISTINCT + 6 ) * + MIN ( ALL + - 2 ) FROM tab2 cor0
----
2

query I rowsort
SELECT ALL 51 AS col0 FROM tab2 WHERE NOT 71 IS NOT NULL
----

query I rowsort
SELECT ALL 8 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - - col0 AND + 12
----

query II rowsort
SELECT DISTINCT 97, + col2 AS col0 FROM tab0 AS cor0
----
97
10
97
47
97
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT ALL + MIN( ALL ( + + col2 ) ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL + MIN ( ALL ( + + col2 ) ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9510
SELECT - + 79, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-79
3

skipif mysql # not compatible
query II rowsort label-9510
SELECT - + 79, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-79
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9511
SELECT DISTINCT + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL = - col1 * - col0
----

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL = - col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT DISTINCT + COUNT( ALL + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT + COUNT ( ALL + col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9513
SELECT ALL col0 DIV 99 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL col0 / 99 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9514
SELECT ALL + CAST( - 55 AS SIGNED ) col1, 4 AS col2 FROM tab2 AS cor0
----
-55
4
-55
4
-55
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9514
SELECT ALL + CAST ( - 55 AS INTEGER ) col1, 4 AS col2 FROM tab2 AS cor0
----
-55
4
-55
4
-55
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9515
SELECT DISTINCT - + ( + col1 ) + ( - ( + + CAST( NULL AS SIGNED ) ) ) col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9515
SELECT DISTINCT - + ( + col1 ) + ( - ( + + CAST ( NULL AS INTEGER ) ) ) col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) = col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col2 FROM tab1
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-9518
SELECT DISTINCT COUNT( * ), COUNT( * ) col1 FROM tab2, tab1 cor0
----
9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9518
SELECT DISTINCT COUNT ( * ), COUNT ( * ) col1 FROM tab2, tab1 cor0
----
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT COUNT( * ) FROM tab0 cor0 WHERE NOT NULL < ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9519
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL < ( col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT 67 * + 75 * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-15075

skipif mysql # not compatible
query I rowsort label-9520
SELECT 67 * + 75 * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-15075

onlyif mysql # DIV for integer division: 
query I rowsort label-9521
SELECT + - col1 DIV - + col0 + - col1 FROM tab0 AS cor0
----
-1
-21
-76

skipif mysql # not compatible
query I rowsort label-9521
SELECT + - col1 / - + col0 + - col1 FROM tab0 AS cor0
----
-1
-21
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col0 + 11 NOT BETWEEN + col1 AND ( + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-9522
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col0 + 11 NOT BETWEEN + col1 AND ( + col1 )
----
3

query I rowsort
SELECT DISTINCT 0 + + + 73 * - 90 AS col1 FROM tab0
----
-6570

query I rowsort
SELECT ALL + col0 * - + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 68 <= + 36
----

query I rowsort
SELECT - + col1 + - - 87 AS col0 FROM tab2 cor0
----
10
20
36

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9527
SELECT - + CAST( + + col1 AS SIGNED ) + + col2 DIV 51 AS col2 FROM tab0 AS cor0
----
-21
-81
0

skipif mysql # not compatible
query I rowsort label-9527
SELECT - + CAST ( + + col1 AS INTEGER ) + + col2 / 51 AS col2 FROM tab0 AS cor0
----
-21
-81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT DISTINCT - + 2 * + COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT - + 2 * + COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT - col2 + + + col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT + - 26 + col1 AS col1 FROM tab0 AS cor0
----
-25
-5
55

query I rowsort
SELECT - 85 * + + col0 FROM tab1
----
-4335
-7225
-7735

onlyif mysql # DIV for integer division: 
query I rowsort label-9532
SELECT col2 DIV - col0 - + + col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9532
SELECT col2 / - col0 - + + col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT + - COUNT( * ) - - + 69 AS col2 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9533
SELECT + - COUNT ( * ) - - + 69 AS col2 FROM tab0 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT SUM( DISTINCT - + 32 ) AS col1 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-9534
SELECT SUM ( DISTINCT - + 32 ) AS col1 FROM tab0 AS cor0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9535
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 BETWEEN NULL AND NULL OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + 60 ) FROM tab1 AS cor0
----
-60
-60
-60

query II rowsort
SELECT DISTINCT col1 AS col1, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ( - + 64 ) FROM tab0 AS cor0
----
-64
-64
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9540
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + col2 IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-9540
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + col2 IN ( + col2 )
----

query I rowsort
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT + COUNT( + - col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9542
SELECT + COUNT ( + - col0 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 * col1 + - 50 / 61 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9544
SELECT DISTINCT - CAST( col1 AS SIGNED ) FROM tab0 WHERE NOT + + col1 IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT - CAST ( col1 AS INTEGER ) FROM tab0 WHERE NOT + + col1 IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + col2 * + ( + + col0 ) * + 64 AS col2 FROM tab0
----
45120
55680
614592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9546
SELECT 47 FROM tab1 WHERE NOT - col1 * + - CAST( - + col0 AS SIGNED ) BETWEEN ( - - 51 ) AND col1
----
47
47
47

skipif mysql # not compatible
query I rowsort label-9546
SELECT 47 FROM tab1 WHERE NOT - col1 * + - CAST ( - + col0 AS INTEGER ) BETWEEN ( - - 51 ) AND col1
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9547
SELECT ALL col0 * + col0 * + - CAST( + - 93 AS SIGNED ) * + + ( + col2 ) + col0 FROM tab0
----
7039257
86628760
983490

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL col0 * + col0 * + - CAST ( + - 93 AS INTEGER ) * + + ( + col2 ) + col0 FROM tab0
----
7039257
86628760
983490

query II rowsort
SELECT col1 * - - col1 AS col0, col2 * - - 18 * + - col1 FROM tab0
----
1
-1782
441
-3780
6561
-68526

query I rowsort
SELECT DISTINCT + - col2 + + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9550
SELECT + col0 * + - col0 * + CAST( NULL AS SIGNED ) * + - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9550
SELECT + col0 * + - col0 * + CAST ( NULL AS INTEGER ) * + - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + col0 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 23 - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1321
-272
-3173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9553
SELECT ALL CAST( - + col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT 89 + - col1 AS col0 FROM tab2
----
12
22
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT ALL MAX( + 2 ) AS col0 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL MAX ( + 2 ) AS col0 FROM tab2
----
2

query I rowsort
SELECT 37 + + col2 FROM tab0
----
136
47
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9557
SELECT ALL col2 + - + col0 * + col2 * - - col0 DIV + col0 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
-1035
-2520
-4292

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL col2 + - + col0 * + col2 * - - col0 / + col0 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
-1035
-2520
-4292

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 NOT IN ( - col1 / col2, col1 * 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT + SUM( ALL + 6 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9559
SELECT + SUM ( ALL + 6 ) FROM tab0 AS cor0
----
18

query I rowsort
SELECT - 68 * + + 55 FROM tab2
----
-3740
-3740
-3740

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT ALL - MAX( - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL - MAX ( - col1 ) FROM tab2
----
51

query I rowsort
SELECT DISTINCT 55 * col1 * 22 FROM tab1
----
16940
56870
6050

query I rowsort
SELECT DISTINCT + col1 * + ( - - 10 ) AS col0 FROM tab1
----
140
470
50

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 90 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT ALL - 19 * COUNT( * ) + + MAX( + - col0 ) + - - COUNT( * ) FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL - 19 * COUNT ( * ) + + MAX ( + - col0 ) + - - COUNT ( * ) FROM tab1 AS cor0
----
-105

query I rowsort
SELECT DISTINCT + col2 * + 21 FROM tab2 AS cor0
----
1218
483
840

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT DISTINCT + - MAX( - + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT + - MAX ( - + col1 ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT DISTINCT + - ( COUNT( * ) ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9569
SELECT DISTINCT + - ( COUNT ( * ) ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - ( - - 5 ) * + col1 + + col1 FROM tab0 AS cor0
----
-324
-4
-84

query I rowsort
SELECT col2 + - + col2 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 / + 71 < + ( + 58 )
----

query I rowsort
SELECT col1 + 59 * col1 FROM tab1
----
2820
300
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 + + - 97 col0 FROM tab2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT ALL MAX( DISTINCT + col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL MAX ( DISTINCT + col0 ) AS col0 FROM tab0
----
97

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col1 * - - col0 AND - col1 * col1
----

query I rowsort
SELECT col1 FROM tab1 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / ( + col0 ) + - ( - - 63 ) * + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col2 FROM tab0 AS cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT - 46 * - COUNT( * ) col0 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9580
SELECT - 46 * - COUNT ( * ) col0 FROM tab2 AS cor0
----
138

query I rowsort
SELECT DISTINCT - col1 + - 74 + col0 AS col2 FROM tab2 AS cor0
----
-66
-79
-87

query I rowsort
SELECT DISTINCT - 77 * col0 * + col1 FROM tab2 AS cor0
----
-180642
-379456
-386925

query II rowsort
SELECT - col2 + col1 AS col2, + col1 FROM tab0
----
-98
1
11
21
34
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col1 ) + - - col0 * + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT + 77 * - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
-231

skipif mysql # not compatible
query I rowsort label-9585
SELECT + 77 * - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
-231

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT - ( + 84 ) * + col0 + + + 4 DIV - col2 FROM tab2 AS cor0
----
-3864
-5376
-6300

skipif mysql # not compatible
query I rowsort label-9586
SELECT - ( + 84 ) * + col0 + + + 4 / - col2 FROM tab2 AS cor0
----
-3864
-5376
-6300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9587
SELECT * FROM tab0 cor0 WHERE + CAST( 33 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9587
SELECT * FROM tab0 cor0 WHERE + CAST ( 33 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 10 AS col2, col1 FROM tab0 AS cor0
----
10
1
10
21
10
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT CAST( - 24 AS SIGNED ) * 65 + - col0 FROM tab1 AS cor0
----
-1611
-1645
-1651

skipif mysql # not compatible
query I rowsort label-9589
SELECT CAST ( - 24 AS INTEGER ) * 65 + - col0 FROM tab1 AS cor0
----
-1611
-1645
-1651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9590
SELECT DISTINCT + + MIN( - CAST( - col0 AS SIGNED ) ) - - + MIN( ALL col1 ) AS col2 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT + + MIN ( - CAST ( - col0 AS INTEGER ) ) - - + MIN ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL - ( + COUNT( * ) ) - 60 AS col1 FROM tab2 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL - ( + COUNT ( * ) ) - 60 AS col1 FROM tab2 cor0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) * + + ( 73 ) col1 FROM tab0 AS cor0
----
1533
5913
73

query I rowsort
SELECT + 70 * 72 AS col1 FROM tab1 AS cor0
----
5040
5040
5040

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 <> + 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 31 / + - 25 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * ( - - col2 ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9598
SELECT 6 * col2 AS col2, CAST( + + 71 AS SIGNED ) FROM tab1
----
354
71
408
71
576
71

skipif mysql # not compatible
query II rowsort label-9598
SELECT 6 * col2 AS col2, CAST ( + + 71 AS INTEGER ) FROM tab1
----
354
71
408
71
576
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT DISTINCT ( 26 ) * - + 98 + - COUNT( * ) FROM tab0
----
-2551

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT ( 26 ) * - + 98 + - COUNT ( * ) FROM tab0
----
-2551

query II rowsort
SELECT ALL - col1 * - col2, + col2 FROM tab2
----
1173
23
3080
40
3886
58

query I rowsort
SELECT - - 22 AS col1 FROM tab2 cor0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col2 FROM tab0 AS cor0
----
91
91
91

query II rowsort
SELECT DISTINCT + ( col1 ), col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - 45 / + col1 + + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 37 AS col2, 66 AS col2 FROM tab2
----
37
66
37
66
37
66

query I rowsort
SELECT - 72 * col0 + - - col0 FROM tab2 AS cor0
----
-3266
-4544
-5325

query I rowsort
SELECT + + 82 * - + ( + col2 ) AS col0 FROM tab1 AS cor0
----
-4838
-5576
-7872

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT - MAX( DISTINCT + 94 ) AS col1 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-9609
SELECT - MAX ( DISTINCT + 94 ) AS col1 FROM tab0 AS cor0
----
-94

query II rowsort
SELECT - col0 AS col0, + col0 + + + col2 AS col0 FROM tab2 AS cor0
----
-46
69
-64
104
-75
133

query I rowsort
SELECT DISTINCT 67 * col2 AS col1 FROM tab0 cor0
----
3149
6633
670

query I rowsort
SELECT DISTINCT + col0 * + + col1 + + 97 AS col2 FROM tab1
----
4374
522
811

query I rowsort
SELECT DISTINCT - col0 + - - 24 * + 15 FROM tab2
----
285
296
314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9614
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + + + col0 FROM tab0
----
196
62
97

query I rowsort
SELECT + + 62 AS col1 FROM tab2 WHERE - 44 IS NULL
----

query I rowsort
SELECT + col1 + + col2 + + col2 AS col0 FROM tab2
----
157
183
97

query I rowsort
SELECT ALL - col0 + + col0 + - 7 AS col2 FROM tab2
----
-7
-7
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9619
SELECT - 83 + + COUNT( * ) DIV + + 44 * - 74 * 87 + 57 AS col1 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-9619
SELECT - 83 + + COUNT ( * ) / + + 44 * - 74 * 87 + 57 AS col1 FROM tab1
----
-26

query I rowsort
SELECT DISTINCT ( - + col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - 68 - col1 FROM tab0 AS cor0
----
-149
-69
-89

query I rowsort
SELECT DISTINCT 18 + + col0 AS col2 FROM tab0
----
105
115
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9623
SELECT ALL CAST( NULL AS SIGNED ) + - + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL CAST ( NULL AS INTEGER ) + - + col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9624
SELECT ALL - col0 DIV col1 - col1 col2 FROM tab1 AS cor0
----
-17
-22
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9624
SELECT ALL - col0 / col1 - col1 col2 FROM tab1 AS cor0
----
-17
-22
-48

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 5 IS NULL
----

query I rowsort
SELECT 42 * + 93 * + 25 - - col2 FROM tab0 AS cor0
----
97660
97697
97749

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9627
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9627
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col0 * + - ( 18 ) + - col0 FROM tab1 AS cor0
----
-1615
-1729
-969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT DISTINCT 39 / CAST( NULL AS SIGNED ) + - col0 * + col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT 39 / CAST ( NULL AS INTEGER ) + - col0 * + col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9630
SELECT ALL + - CAST( - 42 AS SIGNED ) DIV + + 62 - col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL + - CAST ( - 42 AS INTEGER ) / + + 62 - col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9631
SELECT CAST( NULL AS SIGNED ) * + 6 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9631
SELECT CAST ( NULL AS INTEGER ) * + 6 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 13 AS col1 FROM tab1 WHERE NOT + - col0 < + col0
----

query II rowsort
SELECT DISTINCT + 45 AS col0, + 48 * col1 FROM tab1
----
45
2256
45
240
45
672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, - col0 - + col0 col1 FROM tab0
----
15
-30
87
-174
97
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT DISTINCT MAX( - ( + 56 ) ) FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT MAX ( - ( + 56 ) ) FROM tab0
----
-56

query I rowsort
SELECT DISTINCT + col0 / ( 65 ) FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - 86, + col1 FROM tab0
----
-86
1
-86
21
-86
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9638
SELECT ALL - COUNT( * ), + CAST( - 4 AS SIGNED ) AS col0 FROM tab2
----
-3
-4

skipif mysql # not compatible
query II rowsort label-9638
SELECT ALL - COUNT ( * ), + CAST ( - 4 AS INTEGER ) AS col0 FROM tab2
----
-3
-4

query II rowsort
SELECT + 87, + ( + 0 ) AS col0 FROM tab0
----
87
0
87
0
87
0

query II rowsort
SELECT DISTINCT col2, - 71 + + + col1 FROM tab2
----
23
-20
40
6
58
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-9641
SELECT DISTINCT + 70 AS col0, COUNT( * ) FROM tab1
----
70
3

skipif mysql # not compatible
query II rowsort label-9641
SELECT DISTINCT + 70 AS col0, COUNT ( * ) FROM tab1
----
70
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT DISTINCT - COUNT( + - ( - col2 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT - COUNT ( + - ( - col2 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT DISTINCT SUM( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT SUM ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL 59 - - ( - - col0 ) - - + 31 FROM tab2 cor0 WHERE NULL IS NULL
----
136
154
165

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL BETWEEN - - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 25 * + ( + 64 ) + - 35 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-1635

query I rowsort
SELECT ALL - + 63 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-63
-63
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-9648
SELECT - col2 DIV - - col1 + - + col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9648
SELECT - col2 / - - col1 + - + col1 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT - col2 / - 45 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9650
SELECT ALL + 6 * + - col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL + 6 * + - col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9651
SELECT ALL + MAX( ALL + - col2 ), + 52 AS col0 FROM tab2 AS cor0
----
-23
52

skipif mysql # not compatible
query II rowsort label-9651
SELECT ALL + MAX ( ALL + - col2 ), + 52 AS col0 FROM tab2 AS cor0
----
-23
52

query I rowsort
SELECT - 44 * + col0 + col2 AS col0 FROM tab1 AS cor0
----
-2148
-3681
-3936

query I rowsort
SELECT DISTINCT + col2 + + 60 - + col0 * 53 + + - col2 - + col1 + - 16 * + col0 AS col0 FROM tab2
----
-3165
-4433
-5182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + + col2 ) + - 42 AS col0, - 14 col0 FROM tab1
----
17
-14
26
-14
54
-14

query II rowsort
SELECT - col2 * - - 66 * + - col1, + 58 AS col1 FROM tab1
----
19470
58
210936
58
88704
58

query III rowsort
SELECT * FROM tab2 WHERE - 81 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9657
SELECT ALL - col0 FROM tab0 WHERE + + CAST( - 47 AS SIGNED ) - - 10 BETWEEN - col1 * - col0 + - - col1 AND + col2
----

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL - col0 FROM tab0 WHERE + + CAST ( - 47 AS INTEGER ) - - 10 BETWEEN - col1 * - col0 + - - col1 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT DISTINCT - 5 + - COUNT( * ) + MAX( - col0 ) * COUNT( * ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT - 5 + - COUNT ( * ) + MAX ( - col0 ) * COUNT ( * ) FROM tab0
----
-53

query I rowsort
SELECT DISTINCT - col0 * - + col0 * + col2 FROM tab2
----
163840
326250
48668

query I rowsort
SELECT - col2 * - + 91 * - col0 AS col1 FROM tab2 AS cor0
----
-232960
-395850
-96278

query I rowsort
SELECT DISTINCT - 61 * - col0 AS col0 FROM tab1 AS cor0
----
3111
5185
5551

query I rowsort
SELECT DISTINCT - - 44 * + - col1 FROM tab0 AS cor0
----
-3564
-44
-924

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN 54 * - ( col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT + COUNT( * ) - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9664
SELECT + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT - COUNT( * ) - - MIN( - col2 ) AS col0 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9665
SELECT - COUNT ( * ) - - MIN ( - col2 ) AS col0 FROM tab1 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9666
SELECT DISTINCT + + col1 DIV + + 62 * - col2 - 42 * + - 93 AS col0 FROM tab1 AS cor0
----
3906

skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT + + col1 / + + 62 * - col2 - 42 * + - 93 AS col0 FROM tab1 AS cor0
----
3906

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = + col1
----

query I rowsort
SELECT - - 41 * + col0 + + - col2 * 54 + + col1 FROM tab2 AS cor0
----
10
541
695

query I rowsort
SELECT DISTINCT - - 42 AS col1 FROM tab2 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 * - - col0 col0 FROM tab2 AS cor0
----
1426
1984
2325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9671
SELECT - + CAST( NULL AS SIGNED ) * - ( - COUNT( * ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9671
SELECT - + CAST ( NULL AS INTEGER ) * - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9672
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 AS col1, 97 * col2 FROM tab0 cor0
----
NULL
4559
NULL
9603
NULL
970

skipif mysql # not compatible
query II rowsort label-9672
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 AS col1, 97 * col2 FROM tab0 cor0
----
NULL
4559
NULL
9603
NULL
970

query II rowsort
SELECT DISTINCT - col2, 75 * - 15 + + col0 FROM tab0 AS cor0 WHERE - col0 + - - col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9674
SELECT - col1 AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-9674
SELECT - col1 AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT DISTINCT ( SUM( ALL - col1 ) ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT ( SUM ( ALL - col1 ) ) AS col1 FROM tab1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 col0 FROM tab1
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9677
SELECT col1 DIV + ( - col2 ) AS col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9677
SELECT col1 / + ( - col2 ) AS col2 FROM tab0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT DISTINCT - CAST( - 79 AS SIGNED ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT - CAST ( - 79 AS INTEGER ) FROM tab0 AS cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 28 col2, - col1 FROM tab2 cor0
----
28
-51
28
-67
28
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL + MIN( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL + MIN ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT COUNT( * ) * 85 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9681
SELECT COUNT ( * ) * 85 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT MIN( ALL 18 ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9683
SELECT MIN ( ALL 18 ) FROM tab1 AS cor0
----
18

query I rowsort
SELECT 88 + 50 AS col1 FROM tab0 AS cor0
----
138
138
138

query I rowsort
SELECT + col0 * - col0 + + + col0 - - col0 FROM tab0
----
-195
-7395
-9215

query II rowsort
SELECT - col0, - col2 AS col2 FROM tab2
----
-46
-23
-64
-40
-75
-58

query I rowsort
SELECT DISTINCT - ( + col2 ) AS col1 FROM tab0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9688
SELECT col2 * ( - col0 ) DIV - col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9688
SELECT col2 * ( - col0 ) / - col2 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col1 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT COUNT( * ) * - 34 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-9691
SELECT COUNT ( * ) * - 34 FROM tab1 AS cor0
----
-102

query II rowsort
SELECT DISTINCT 74, - col2 AS col0 FROM tab2 cor0
----
74
-23
74
-40
74
-58

query I rowsort
SELECT ALL 48 * 91 AS col0 FROM tab1 AS cor0
----
4368
4368
4368

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - col1
----

query I rowsort
SELECT ALL 79 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
79
79
79

query II rowsort
SELECT DISTINCT + col1, 76 AS col2 FROM tab1 AS cor0
----
14
76
47
76
5
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9697
SELECT - MIN( DISTINCT col2 ) * - COUNT( * ) + - MAX( DISTINCT + 53 ) DIV - + 16 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-9697
SELECT - MIN ( DISTINCT col2 ) * - COUNT ( * ) + - MAX ( DISTINCT + 53 ) / - + 16 FROM tab1
----
180

query I rowsort
SELECT DISTINCT - col1 + 1 AS col2 FROM tab2
----
-50
-66
-76

query I rowsort
SELECT 28 + - 11 AS col1 FROM tab0
----
17
17
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9700
SELECT + COUNT( * ) + - + MAX( - + col0 ) AS col1, - 75 AS col2 FROM tab2
----
49
-75

skipif mysql # not compatible
query II rowsort label-9700
SELECT + COUNT ( * ) + - + MAX ( - + col0 ) AS col1, - 75 AS col2 FROM tab2
----
49
-75

query I rowsort
SELECT ALL - - ( - 96 ) AS col1 FROM tab2 WHERE - col1 <= col1
----
-96
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 WHERE 73 * - 79 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9703
SELECT ALL + 60 * + + MIN( + col0 ) + 25 - - MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL + 60 * + + MIN ( + col0 ) + 25 - - MIN ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT - col1 + ( 36 ), 67 + - + 24 + + col1 + + 21 - - col2 AS col2 FROM tab1
----
-11
179
22
174
31
128

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9705
SELECT - col2 DIV + - CAST( - + col0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9705
SELECT - col2 / + - CAST ( - + col0 AS INTEGER ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 63 AS col0 FROM tab0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT DISTINCT + 50 * + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
450

skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT + 50 * + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
450

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9708
SELECT - AVG ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9708
SELECT - AVG ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9709
SELECT DISTINCT - - col1 DIV + 86 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT - - col1 / + 86 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col2 * + 25 AS col2 FROM tab0 cor0
----
-1175
-2475
-250

query I rowsort
SELECT ALL - col1 + - + col1 / + - ( 14 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 10 * - 63 AS col0 FROM tab0 AS cor0
----
-630
-630
-630

query II rowsort
SELECT - col2 AS col2, + 98 * col0 AS col0 FROM tab0 AS cor0
----
-10
8526
-47
1470
-99
9506

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 49 * + col1 NOT IN ( - col2, col0, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT + 5 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9715
SELECT + 5 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + - col1 col1, col1 FROM tab2
----
1173
51
3080
77
3886
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT + COUNT( * ) FROM tab2 WHERE NOT 94 >= - col1
----
0

skipif mysql # not compatible
query I rowsort label-9717
SELECT + COUNT ( * ) FROM tab2 WHERE NOT 94 >= - col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 col2 FROM tab2
----
70
70
70

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 58 * - + col2 * + col2 <= + 49
----

query I rowsort
SELECT - col1 * - - col2 * + + col0 AS col0 FROM tab2
----
-197120
-291450
-53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * col0 AS col0, col0 - + col2 col2 FROM tab1
----
4896
-45
5015
26
6188
23

query I rowsort
SELECT DISTINCT col2 * + col1 * - col1 * col0 FROM tab0
----
-383670
-4625505
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9723
SELECT MAX( ALL + + 6 ) DIV + 49 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9723
SELECT MAX ( ALL + + 6 ) / + 49 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-3

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 II rowsort label-9726
SELECT DISTINCT - COUNT( * ) + + 21 AS col2, - COUNT( * ) FROM tab1 AS cor0
----
18
-3

skipif mysql # not compatible
query II rowsort label-9726
SELECT DISTINCT - COUNT ( * ) + + 21 AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
18
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT + SUM( - 32 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9727
SELECT + SUM ( - 32 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT - 73 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - + 24 col0 FROM tab0
----
-9
63
73

query I rowsort
SELECT ALL 93 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9731
SELECT ALL + - MAX( ALL + ( - 88 ) ) DIV + 75 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL + - MAX ( ALL + ( - 88 ) ) / + 75 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 / + - col0 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 + - - col0 FROM tab1 AS cor0
----
138
65
90

query II rowsort
SELECT ALL - 25, col2 AS col0 FROM tab2 AS cor0
----
-25
23
-25
40
-25
58

query I rowsort
SELECT + 85 + ( col0 ) FROM tab2 AS cor0
----
131
149
160

onlyif mysql # DIV for integer division: 
query I rowsort label-9736
SELECT col0 DIV + col2 + + 1 col0 FROM tab0 AS cor0
----
1
1
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9736
SELECT col0 / + col2 + + 1 col0 FROM tab0 AS cor0
----
1
1
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( + - col0 ) * - ( 69 ) * + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL - - SUM( ALL col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL - - SUM ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9739
SELECT col2 / + col2 * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9739
SELECT col2 / + col2 * - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT 59 - + col2 AS col2 FROM tab0
----
-40
12
49

query I rowsort
SELECT - col2 - + 48 FROM tab2
----
-106
-71
-88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 14 ) - - 88 * col0 * - 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - ( + col1 ) ) FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT + + ( + col2 ) AS col2, - col1 + - 96 FROM tab2 AS cor0
----
23
-147
40
-173
58
-163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9746
SELECT ALL - - CAST( + col0 AS SIGNED ) * + col1 col1 FROM tab2 cor0
----
2346
4928
5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9746
SELECT ALL - - CAST ( + col0 AS INTEGER ) * + col1 col1 FROM tab2 cor0
----
2346
4928
5025

query I rowsort
SELECT - 87 FROM tab0 AS cor0 WHERE NOT NULL <= + 59 + + - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9748
SELECT ALL - + col0 AS col0 FROM tab1 WHERE col1 + + + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL - + col0 AS col0 FROM tab1 WHERE col1 + + + CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL + COUNT( DISTINCT + - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL + COUNT ( DISTINCT + - col2 ) FROM tab1
----
3

query I rowsort
SELECT col2 * ( - + col2 ) * col1 * + - col0 AS col0 FROM tab0
----
182700
2683935
950697

query I rowsort
SELECT DISTINCT - col2 * 15 AS col0 FROM tab2
----
-345
-600
-870

query III rowsort
SELECT ALL * FROM tab2 WHERE + 29 IS NULL
----

query I rowsort
SELECT + col1 * + col0 * - + 51 FROM tab0
----
-4947
-61965
-93177

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9754
SELECT CAST( + col0 AS SIGNED ) DIV + + 19 - - + col1 FROM tab2 AS cor0
----
53
70
80

skipif mysql # not compatible
query I rowsort label-9754
SELECT CAST ( + col0 AS INTEGER ) / + + 19 - - + col1 FROM tab2 AS cor0
----
53
70
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9755
SELECT DISTINCT + - CAST( - + ( col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT + - CAST ( - + ( col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - - 64 * - 41 - - col0 + + col1 AS col1 FROM tab0 AS cor0
----
-2516
-2526
-2528

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT ALL - 70 + + - MAX( - - col1 ) - - 97 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL - 70 + + - MAX ( - - col1 ) - - 97 FROM tab0 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT + 56 + + ( - - COUNT( * ) ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT + 56 + + ( - - COUNT ( * ) ) AS col0 FROM tab1
----
59

query I rowsort
SELECT - 29 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - col2 - + ( + 1 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 + + + col1 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9762
SELECT ALL col2 * - ( + + col0 ) * + - 91 + + + col2 + - - col2 * CAST( - 5 AS SIGNED ) AS col2 FROM tab0
----
63967
79130
873477

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL col2 * - ( + + col0 ) * + - 91 + + + col2 + - - col2 * CAST ( - 5 AS INTEGER ) AS col2 FROM tab0
----
63967
79130
873477

query I rowsort
SELECT + col0 + col2 + + col2 FROM tab2
----
144
191
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9764
SELECT col1 + col1 DIV + + 83 + - 52 FROM tab0
----
-31
-51
29

skipif mysql # not compatible
query I rowsort label-9764
SELECT col1 + col1 / + + 83 + - 52 FROM tab0
----
-31
-51
29

query I rowsort
SELECT + 31 + + 47 * - col0 FROM tab0
----
-4058
-4528
-674

query III rowsort
SELECT * FROM tab1 WHERE + ( - + ( + 55 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9767
SELECT col2 + + 77 DIV + - col1 FROM tab1
----
44
67
91

skipif mysql # not compatible
query I rowsort label-9767
SELECT col2 + + 77 / + - col1 FROM tab1
----
44
67
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9768
SELECT ALL col1 * - 32 - - col1 * + CAST( + 59 AS SIGNED ) + col1 FROM tab0
----
2268
28
588

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL col1 * - 32 - - col1 * + CAST ( + 59 AS INTEGER ) + col1 FROM tab0
----
2268
28
588

query I rowsort
SELECT ALL - ( + 86 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-86
-86
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( + - 75 ) AS col0 FROM tab1
----
-75
-75
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9772
SELECT + COUNT( col1 ) FROM tab1 WHERE NOT NULL IN ( + CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-9772
SELECT + COUNT ( col1 ) FROM tab1 WHERE NOT NULL IN ( + CAST ( NULL AS REAL ) )
----
0

query I rowsort
SELECT DISTINCT 71 * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < - col1 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 30 col1, 25 * + col1 FROM tab1 AS cor0
----
-30
1175
-30
125
-30
350

query II rowsort
SELECT + col1 AS col2, col2 AS col1 FROM tab1 cor0
----
14
96
47
68
5
59

query I rowsort
SELECT - col2 + ( 33 ) FROM tab0
----
-14
-66
23

query I rowsort
SELECT + + col2 FROM tab1 WHERE NOT ( NOT 61 NOT BETWEEN + col0 + col1 AND col1 )
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9779
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) col1, 68 FROM tab1 WHERE ( NOT ( + col2 ) IS NULL )
----
NULL
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9779
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1, 68 FROM tab1 WHERE ( NOT ( + col2 ) IS NULL )
----
NULL
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9780
SELECT DISTINCT 76 + - 65, - MIN( DISTINCT 89 ) + 1 + - SUM( col0 ) AS col0 FROM tab2
----
11
-273

skipif mysql # not compatible
query II rowsort label-9780
SELECT DISTINCT 76 + - 65, - MIN ( DISTINCT 89 ) + 1 + - SUM ( col0 ) AS col0 FROM tab2
----
11
-273

query II rowsort
SELECT + + col1 * 27, col2 FROM tab2 AS cor0
----
1377
23
1809
58
2079
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9782
SELECT DISTINCT + - 42 + - 36 AS col0, - COUNT( col1 ) FROM tab1 AS cor0
----
-78
-3

skipif mysql # not compatible
query II rowsort label-9782
SELECT DISTINCT + - 42 + - 36 AS col0, - COUNT ( col1 ) FROM tab1 AS cor0
----
-78
-3

query I rowsort
SELECT ALL + 39 + - col0 FROM tab0
----
-48
-58
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9785
SELECT ALL - CAST( - + 30 AS SIGNED ) AS col0 FROM tab0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL - CAST ( - + 30 AS INTEGER ) AS col0 FROM tab0
----
30
30
30

query I rowsort
SELECT ALL col0 - + 89 AS col2 FROM tab0 cor0
----
-2
-74
8

query I rowsort
SELECT - 71 + - 73 FROM tab2 cor0
----
-144
-144
-144

query II rowsort
SELECT - + 94 * + 94 + - - 57 AS col0, - 93 + + col0 AS col2 FROM tab1 AS cor0
----
-8779
-2
-8779
-42
-8779
-8

query II rowsort
SELECT DISTINCT ( - + ( - col1 ) ) AS col1, + ( + + col2 ) AS col1 FROM tab1 AS cor0
----
14
96
47
68
5
59

query II rowsort
SELECT ALL + col2, 93 AS col1 FROM tab0 AS cor0
----
10
93
47
93
99
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9791
SELECT - col2 AS col1, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-9791
SELECT - col2 AS col1, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT DISTINCT + COUNT( * ) * - - MAX( ALL + col0 ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT + COUNT ( * ) * - - MAX ( ALL + col0 ) FROM tab0 AS cor0
----
291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9793
SELECT 0 DIV - - SUM( - col1 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9793
SELECT 0 / - - SUM ( - col1 ) AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + col2 + + col1
----

query III rowsort
SELECT * FROM tab2 WHERE + + 18 BETWEEN col2 AND 71
----

query I rowsort
SELECT - - col1 FROM tab0 WHERE NOT - 31 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT ALL + 34 * + + 52 + - COUNT( * ) FROM tab1 AS cor0 WHERE col2 <> NULL
----
1768

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL + 34 * + + 52 + - COUNT ( * ) FROM tab1 AS cor0 WHERE col2 <> NULL
----
1768

query I rowsort
SELECT + col2 * - 2 AS col0 FROM tab0 AS cor0
----
-198
-20
-94

query II rowsort
SELECT col0, 2 + - 60 + + + 72 AS col0 FROM tab0
----
15
14
87
14
97
14

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 32 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-32

query II rowsort
SELECT ALL + col2, + col0 AS col1 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9803
SELECT DISTINCT COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9803
SELECT DISTINCT COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 col1 FROM tab2
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9805
SELECT - COUNT( * ) DIV + 8 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9805
SELECT - COUNT ( * ) / + 8 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9806
SELECT - - COUNT( * ) DIV + 50 AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9806
SELECT - - COUNT ( * ) / + 50 AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT ( col1 ) <= + 74
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 cor0 WHERE NULL >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT DISTINCT - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NULL < col0
----
0

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NULL < col0
----
0

query I rowsort
SELECT + - col1 FROM tab0 WHERE NOT - 34 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL 86 * COUNT( * ) AS col1 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL 86 * COUNT ( * ) AS col1 FROM tab0
----
258

query I rowsort
SELECT ALL ( - - col2 ) + 62 FROM tab2
----
102
120
85

query II rowsort
SELECT DISTINCT - ( - 35 ) * col1 + col0, + col0 AS col2 FROM tab0
----
132
97
2850
15
822
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 57 AS col1, col2 col1 FROM tab2
----
-57
23
-57
40
-57
58

query I rowsort
SELECT + + col1 AS col1 FROM tab0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + + + col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT - + col0 + + 53 FROM tab1 AS cor0
----
-32
-38
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT ALL + COUNT( * ) - - + COUNT( - - 24 ) AS col0 FROM tab2 AS cor0 WHERE NOT - 12 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL + COUNT ( * ) - - + COUNT ( - - 24 ) AS col0 FROM tab2 AS cor0 WHERE NOT - 12 IS NOT NULL
----
0

query I rowsort
SELECT ALL + + col1 * - 5 AS col1 FROM tab0 AS cor0
----
-105
-405
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT + + SUM( DISTINCT - 78 ) + - 18 AS col0 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9821
SELECT + + SUM ( DISTINCT - 78 ) + - 18 AS col0 FROM tab2 AS cor0
----
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - 10 < - col1 - col2 * col1
----

query I rowsort
SELECT DISTINCT - 1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-1

query I rowsort
SELECT DISTINCT col2 * - 43 AS col2 FROM tab1
----
-2537
-2924
-4128

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9825
SELECT ALL - + 41 col2 FROM tab0 WHERE - 45 + - + CAST( + col2 AS DECIMAL ) + - col2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9825
SELECT ALL - + 41 col2 FROM tab0 WHERE - 45 + - + CAST ( + col2 AS REAL ) + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - - col1 AS col0 FROM tab0
----
108
96
98

query I rowsort
SELECT - col2 * + - col1 * + col1 FROM tab1
----
1475
150212
18816

query I rowsort
SELECT DISTINCT - 62 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-62

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 ) * - + col1 IS NULL
----

query I rowsort
SELECT ALL + 72 * col1 AS col0 FROM tab0
----
1512
5832
72

query I rowsort
SELECT ALL col2 - - - col1 + + col0 * - + col0 * - + col0 AS col2 FROM tab0 cor0
----
3341
658492
912771

query I rowsort
SELECT + col1 - - ( + col0 ) + + col0 AS col1 FROM tab1 AS cor0
----
116
175
229

query I rowsort
SELECT ALL - col0 * - 91 - col1 AS col2 FROM tab2 cor0
----
4135
5747
6758

query I rowsort
SELECT ALL 34 * - + col0 FROM tab1 AS cor0
----
-1734
-2890
-3094

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT + - ( - 37 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-9835
SELECT + - ( - 37 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9836
SELECT DISTINCT + + 22 DIV - 84 + + col2 AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT + + 22 / - 84 + + col2 AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9837
SELECT + col2 DIV col2 * + col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9837
SELECT + col2 / col2 * + col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9838
SELECT * FROM tab2 WHERE NOT ( NOT ( NOT - - CAST( - col2 AS SIGNED ) = + col1 / + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9838
SELECT * FROM tab2 WHERE NOT ( NOT ( NOT - - CAST ( - col2 AS INTEGER ) = + col1 / + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9839
SELECT ALL COUNT( + - col2 ) DIV COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9839
SELECT ALL COUNT ( + - col2 ) / COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT DISTINCT - 61 * + COUNT( * ) * + + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1
----
-1647

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT - 61 * + COUNT ( * ) * + + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1
----
-1647

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT DISTINCT COUNT( * ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9841
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL 97 AS col0 FROM tab2 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 36 AS col2 FROM tab1 AS cor0
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 col2 FROM tab0 WHERE ( + 48 * - 12 ) IN ( + col1 * col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND 15
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT + col0 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9848
SELECT * FROM tab0 WHERE NOT 40 * CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-9848
SELECT * FROM tab0 WHERE NOT 40 * CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * + col1 + 29 * 72 AS col0 FROM tab1
----
2513
2802
6365

onlyif mysql # DIV for integer division: 
query I rowsort label-9850
SELECT ( + 40 ) DIV - 83 - col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9850
SELECT ( + 40 ) / - 83 - col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT col1 - + ( col2 ) * - 27 FROM tab1
----
1598
1883
2606

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * col0 NOT IN ( + col1 * - 1 - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 * - col2 ) BETWEEN - col1 * + col1 + - 61 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT DISTINCT + SUM( - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT + SUM ( - col2 ) FROM tab0
----
-156

query I rowsort
SELECT - 18 * - 30 FROM tab1
----
540
540
540

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE ( + 83 ) BETWEEN col2 + ( col1 ) AND ( - col0 * - col2 )
----
-10

query I rowsort
SELECT + 8 * + col2 AS col2 FROM tab0
----
376
792
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9858
SELECT - 8 * + ( col0 DIV + col1 ) FROM tab1
----
-136
-24
-8

skipif mysql # not compatible
query I rowsort label-9858
SELECT - 8 * + ( col0 / + col1 ) FROM tab1
----
-136
-24
-8

query I rowsort
SELECT + 98 * col0 FROM tab0
----
1470
8526
9506

query I rowsort
SELECT ( 71 ) AS col0 FROM tab1
----
71
71
71

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 5 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE ( 72 ) <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 + col2 ) NOT BETWEEN ( - ( 20 ) + col2 ) AND ( col0 * 52 - 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ( + SUM( - ( - col1 ) ) ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9864
SELECT ( + SUM ( - ( - col1 ) ) ) AS col2 FROM tab2
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9865
SELECT - CAST( 43 AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= col0
----
-43

skipif mysql # not compatible
query I rowsort label-9865
SELECT - CAST ( 43 AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= col0
----
-43

query I rowsort
SELECT 16 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( 60 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 col1 FROM tab1 AS cor0
----
19
19
19

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 54 / 79 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9869
SELECT + 16 * COUNT( * ) - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9869
SELECT + 16 * COUNT ( * ) - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT 29 - + col2 AS col2 FROM tab2 AS cor0
----
-11
-29
6

query I rowsort
SELECT + col1 FROM tab2 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 85 + 83 / - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 25 * - col2 + 39 AS col1 FROM tab2 AS cor0
----
-1411
-536
-961

query I rowsort
SELECT DISTINCT 8 * - col1 AS col0 FROM tab1 AS cor0
----
-112
-376
-40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( ( + col0 ) )
----

query I rowsort
SELECT ALL - col0 * - 55 - col1 * - col1 FROM tab1 AS cor0
----
3001
4700
7214

query I rowsort
SELECT DISTINCT + col0 - col2 AS col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT 50 * - col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT - SUM( - ( + ( - col1 ) ) ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-9880
SELECT - SUM ( - ( + ( - col1 ) ) ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-585

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 57 >= - 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ALL - - COUNT( * ) * 96 FROM tab0 cor0
----
288

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL - - COUNT ( * ) * 96 FROM tab0 cor0
----
288

query I rowsort
SELECT ALL + 56 * col0 + col0 * + col0 AS col2 FROM tab1 cor0 WHERE NOT col2 / 35 >= ( NULL )
----

query I rowsort
SELECT ( + col1 ) / + col2 AS col2 FROM tab1 WHERE NOT col2 + + 45 <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9885
SELECT - col0 / - CAST( + 45 AS SIGNED ) AS col0 FROM tab1 WHERE NOT ( - 49 ) <= - col1
----

skipif mysql # not compatible
query I rowsort label-9885
SELECT - col0 / - CAST ( + 45 AS INTEGER ) AS col0 FROM tab1 WHERE NOT ( - 49 ) <= - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 ) NOT IN ( - 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT - SUM( ALL col2 ) * 52 AS col0 FROM tab2
----
-6292

skipif mysql # not compatible
query I rowsort label-9887
SELECT - SUM ( ALL col2 ) * 52 AS col0 FROM tab2
----
-6292

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT ALL - 33 * + COUNT( * ) col2 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9888
SELECT ALL - 33 * + COUNT ( * ) col2 FROM tab0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9889
SELECT + col2 DIV 82 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9889
SELECT + col2 / 82 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9890
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + col1 FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT - SUM( + + 80 ) AS col0 FROM tab2 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-9891
SELECT - SUM ( + + 80 ) AS col0 FROM tab2 AS cor0
----
-240

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT - MAX( 24 ) FROM tab2 AS cor0 WHERE NOT col0 - 83 * - col2 IN ( - 31 )
----
-24

skipif mysql # not compatible
query I rowsort label-9893
SELECT - MAX ( 24 ) FROM tab2 AS cor0 WHERE NOT col0 - 83 * - col2 IN ( - 31 )
----
-24

query I rowsort
SELECT ALL - 78 + - 0 FROM tab1
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT + ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9895
SELECT + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT DISTINCT - 84 + + SUM( ALL - col1 ) FROM tab0
----
-187

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT - 84 + + SUM ( ALL - col1 ) FROM tab0
----
-187

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > ( + - col0 )
----

query I rowsort
SELECT - 88 * - - col0 AS col2 FROM tab0
----
-1320
-7656
-8536

query I rowsort
SELECT DISTINCT - col0 * - + col1 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 * col1 ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9901
SELECT col0 DIV col2 + - col0 + col2 * col0 AS col0 FROM tab2 AS cor0
----
1014
2497
4276

skipif mysql # not compatible
query I rowsort label-9901
SELECT col0 / col2 + - col0 + col2 * col0 AS col0 FROM tab2 AS cor0
----
1014
2497
4276

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9902
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( + + col1 AS SIGNED ) - + col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-9902
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( + + col1 AS INTEGER ) - + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT - + COUNT( * ) * + 51 AS col1 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-9903
SELECT - + COUNT ( * ) * + 51 AS col1 FROM tab0 AS cor0
----
-153

query I rowsort
SELECT DISTINCT - 49 * - + 62 FROM tab1 AS cor0
----
3038

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - ( - 77 ) + + col2 + - col2 FROM tab0 cor0
----
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + 49 ) AND ( 62 ) + 79
----

query I rowsort
SELECT ALL + col2 + - - ( - - 51 ) + + 93 AS col1 FROM tab0
----
154
191
243

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT ALL - 47 * - 41 + - MAX( DISTINCT - col1 ) FROM tab2
----
1978

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL - 47 * - 41 + - MAX ( DISTINCT - col1 ) FROM tab2
----
1978

query I rowsort
SELECT ALL 6 + + + 14 * - col0 FROM tab1
----
-1184
-1268
-708

query I rowsort
SELECT - 45 + 32 AS col2 FROM tab2
----
-13
-13
-13

query I rowsort
SELECT ALL - 5 + - col1 FROM tab0
----
-26
-6
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 15 ) + col1 + + col0 col2 FROM tab1
----
123
50
75

query I rowsort
SELECT col1 * - - 52 + - 98 FROM tab1 AS cor0
----
162
2346
630

query I rowsort
SELECT DISTINCT + 3 FROM tab1 AS cor0 WHERE NOT ( + col1 * - col0 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9916
SELECT DISTINCT + + col2 + + 31 DIV - - col1 + col2 + col0 FROM tab2 AS cor0
----
144
191
92

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT + + col2 + + 31 / - - col1 + col2 + col0 FROM tab2 AS cor0
----
144
191
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 49 * col1 / + 16 IN ( - 86 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - ( + + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9921
SELECT ALL COUNT( * ) AS col1, 44 FROM tab0 cor0
----
3
44

skipif mysql # not compatible
query II rowsort label-9921
SELECT ALL COUNT ( * ) AS col1, 44 FROM tab0 cor0
----
3
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT ALL 10 * - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN 58 AND ( - + col1 * col2 + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL 10 * - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN 58 AND ( - + col1 * col2 + + col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 / + 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT ALL MAX( 97 ) AS col2 FROM tab2 AS cor0 WHERE col1 + col1 < - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL MAX ( 97 ) AS col2 FROM tab2 AS cor0 WHERE col1 + col1 < - col2
----
NULL

query I rowsort
SELECT - 54 AS col1 FROM tab0 cor0
----
-54
-54
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-9926
SELECT col2 * + 8 - - col2 DIV col2 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
377
793
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9926
SELECT col2 * + 8 - - col2 / col2 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
377
793
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9927
SELECT DISTINCT * 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-9927
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - CAST ( col2 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( col2 ) FROM tab2 WHERE NOT NULL NOT BETWEEN + - 61 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9929
SELECT * FROM tab1 WHERE NOT ( NOT col2 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9929
SELECT * FROM tab1 WHERE NOT ( NOT col2 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + - col0 * 53 FROM tab1
----
-259488
-265795
-327964

query II rowsort
SELECT DISTINCT col2, - col2 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT DISTINCT ( + + col0 ) * - - col1 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9933
SELECT ALL * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + col0 BETWEEN NULL AND - - 85 * - col0 * - col1 + col1 * - col0
----

skipif mysql # not compatible
query III rowsort label-9933
SELECT ALL * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + col0 BETWEEN NULL AND - - 85 * - col0 * - col1 + col1 * - col0
----

query I rowsort
SELECT 80 FROM tab2 WHERE NOT + 34 IN ( + col1 + col0 )
----
80
80
80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 * + ( + + col2 ) - + col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 col2 FROM tab2 WHERE NOT ( col2 * + col0 NOT IN ( - + col0 ) )
----

query II rowsort
SELECT ALL + col1 AS col0, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT DISTINCT + COUNT( * ) * + 75 AS col2 FROM tab1 AS cor0 WHERE 83 IS NOT NULL
----
225

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT + COUNT ( * ) * + 75 AS col2 FROM tab1 AS cor0 WHERE 83 IS NOT NULL
----
225

query II rowsort
SELECT - + col0 AS col1, col2 AS col2 FROM tab2 cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT DISTINCT - 4 AS col2 FROM tab2
----
-4

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE 26 + + 22 IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9942
SELECT - + col0 + + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-9942
SELECT - + col0 + + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT - col0 + + 96 AS col2 FROM tab0 AS cor0
----
-1
81
9

query I rowsort
SELECT 11 + + - col2 AS col1 FROM tab2 AS cor0
----
-12
-29
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9945
SELECT DISTINCT - col2 DIV CAST( 73 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9945
SELECT DISTINCT - col2 / CAST ( 73 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT + 52 + - COUNT( * ) AS col1 FROM tab0 cor0
----
49

skipif mysql # not compatible
query I rowsort label-9946
SELECT + 52 + - COUNT ( * ) AS col1 FROM tab0 cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT - + 23 + - COUNT( * ) + - - ( + 90 ) AS col1 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-9947
SELECT - + 23 + - COUNT ( * ) + - - ( + 90 ) AS col1 FROM tab0 AS cor0
----
64

query I rowsort
SELECT - 61 + - 92 AS col0 FROM tab2 AS cor0
----
-153
-153
-153

query I rowsort
SELECT col0 * col2 * + col1 + + 47 + + ( col0 ) * - col0 AS col1 FROM tab1 AS cor0
----
17897
282602
65990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9950
SELECT + CAST( + - 24 AS SIGNED ) + + + ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-70
-88
-99

skipif mysql # not compatible
query I rowsort label-9950
SELECT + CAST ( + - 24 AS INTEGER ) + + + ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-70
-88
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, col0 col2 FROM tab0
----
1
97
21
87
81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 * - col0 col1 FROM tab1
----
3621
6035
6461

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( - 73 * + col1 * col0 * + col1 ) AND 77 * + 56 * - col0 + col0
----

query I rowsort
SELECT ALL - 33 + + 75 FROM tab2
----
42
42
42

query III rowsort
SELECT ALL * FROM tab1 WHERE - 5 * col1 BETWEEN + - 47 + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT ALL 42 - - COUNT( * ) AS col1 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL 42 - - COUNT ( * ) AS col1 FROM tab1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9957
SELECT + CAST( NULL AS SIGNED ) / - + 10 + - col1 + - col0 - ( + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT + CAST ( NULL AS INTEGER ) / - + 10 + - col1 + - col0 - ( + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 98 - col1 * 61 FROM tab1 cor0
----
-2965
-403
-952

query II rowsort
SELECT + + col0 AS col0, ( + - ( - col2 ) ) + + + 55 * col0 AS col2 FROM tab2 AS cor0 WHERE NULL <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT - COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-9960
SELECT - COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query I rowsort
SELECT - ( - col0 ) * + + 70 AS col2 FROM tab2
----
3220
4480
5250

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT DISTINCT MIN( + ( - + 29 ) ) AS col2 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT MIN ( + ( - + 29 ) ) AS col2 FROM tab1 AS cor0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - ( + + col2 ) ) col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9964
SELECT - CAST( + - 80 AS SIGNED ) FROM tab0 AS cor0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-9964
SELECT - CAST ( + - 80 AS INTEGER ) FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT ALL 54 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + ( - col0 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 87 * 40 + + 2 + + 51 * - - col1 <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 45 / - col2 + col2 * + + col0 BETWEEN ( - col0 * + 14 * + col0 - - col1 + + col2 ) AND - col0 - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + - 20 FROM tab1
----
-100
-280
-940

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT + + 40 IS NOT NULL
----

query I rowsort
SELECT - 94 * + - col2 AS col0 FROM tab0
----
4418
9306
940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - - 18 col0 FROM tab1
----
252
846
90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 89 <= 3
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 28 * + col2 FROM tab0 cor0
----
1316
2772
280

query I rowsort
SELECT - + 25 * 9 AS col0 FROM tab1 AS cor0
----
-225
-225
-225

query I rowsort
SELECT + - col1 + 67 FROM tab2 AS cor0
----
-10
0
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9976
SELECT - + 71 + - - col2 DIV 69 - 66 col2 FROM tab2 AS cor0
----
-137
-137
-137

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9976
SELECT - + 71 + - - col2 / 69 - 66 col2 FROM tab2 AS cor0
----
-137
-137
-137

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + ( + + col0 ) + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT ALL + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT 16 * + 68 FROM tab0 AS cor0
----
1088
1088
1088

onlyif mysql # DIV for integer division: 
query I rowsort label-9980
SELECT DISTINCT - + col1 * col0 DIV - col0 + col1 col0 FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9980
SELECT DISTINCT - + col1 * col0 / - col0 + col1 col0 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT ALL + + 44 AS col2 FROM tab0 AS cor0
----
44
44
44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 0 + + 81 * col2 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT DISTINCT - MIN( ALL + 91 ) * + - 6 AS col2 FROM tab2 cor0
----
546

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT - MIN ( ALL + 91 ) * + - 6 AS col2 FROM tab2 cor0
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT ALL - - COUNT( * ) * + 56 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL - - COUNT ( * ) * + 56 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT - 30 - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT - 30 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col0 * - - ( + 64 ) + 53 FROM tab2 AS cor0
----
-2891
-4043
-4747

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 98 AND + col2
----

query I rowsort
SELECT DISTINCT + - col0 * - 40 + 11 AS col0 FROM tab0 AS cor0
----
3491
3891
611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9989
SELECT ALL - + col0 * + col2 - - - ( - CAST( - + col0 AS SIGNED ) ) + + 12 * + col2 * col1 FROM tab2 AS cor0
----
12972
34336
42207

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL - + col0 * + col2 - - - ( - CAST ( - + col0 AS INTEGER ) ) + + 12 * + col2 * col1 FROM tab2 AS cor0
----
12972
34336
42207

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE + col1 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT + ( 17 ) * + + col1 + - - 0 * - - col0 AS col0 FROM tab2
----
1139
1309
867

onlyif mysql # aggregate syntax: 
query II rowsort label-9992
SELECT COUNT( col2 ) + - - COUNT( * ) * - 61 col0, COUNT( * ) AS col2 FROM tab0 WHERE ( NOT NULL IS NULL )
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9992
SELECT COUNT ( col2 ) + - - COUNT ( * ) * - 61 col0, COUNT ( * ) AS col2 FROM tab0 WHERE ( NOT NULL IS NULL )
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9993
SELECT DISTINCT - col0 DIV + - col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT - col0 / + - col1 FROM tab1
----
1
17
3

query I rowsort
SELECT 71 FROM tab1 WHERE ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT ALL + 78 + - COUNT( DISTINCT + 75 ) AS col0 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL + 78 + - COUNT ( DISTINCT + 75 ) AS col0 FROM tab1
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9996
SELECT DISTINCT COUNT( * ) AS col2, - COUNT( * ) FROM tab0, tab1 cor0
----
9
-9

skipif mysql # not compatible
query II rowsort label-9996
SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) FROM tab0, tab1 cor0
----
9
-9

query III rowsort
SELECT * FROM tab1 WHERE + 67 / 84 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT + 47 + - + MIN( DISTINCT + - col1 ) AS col1 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-9998
SELECT + 47 + - + MIN ( DISTINCT + - col1 ) AS col1 FROM tab1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9999
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE - 25 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE - 25 IS NOT NULL
----
NULL
NULL
NULL