sqllogictest
Artifact Content
Not logged in

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

s